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 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 JAVA_FLAGS_BIG
 648 JAVA_FLAGS
 649 JOBS
 650 MEMORY_SIZE
 651 NUM_CORES
 652 ENABLE_INTREE_EC
 653 SALIB_NAME
 654 HOTSPOT_MAKE_ARGS
 655 LIBZIP_CAN_USE_MMAP
 656 LIBDL
 657 LIBM
 658 USE_EXTERNAL_LCMS
 659 LCMS_LIBS
 660 LCMS_CFLAGS
 661 USE_EXTERNAL_LIBZ
 662 USE_EXTERNAL_LIBPNG
 663 PNG_LIBS
 664 PNG_CFLAGS
 665 USE_EXTERNAL_LIBGIF
 666 USE_EXTERNAL_LIBJPEG
 667 LLVM_LIBS
 668 LLVM_LDFLAGS
 669 LLVM_CFLAGS
 670 LLVM_CONFIG
 671 LIBFFI_LIBS
 672 LIBFFI_CFLAGS
 673 ALSA_LIBS
 674 ALSA_CFLAGS
 675 FREETYPE_BUNDLE_LIB_PATH
 676 FREETYPE_LIBS
 677 FREETYPE_CFLAGS
 678 CUPS_CFLAGS
 679 X_EXTRA_LIBS
 680 X_LIBS
 681 X_PRE_LIBS
 682 X_CFLAGS
 683 XMKMF
 684 MSVCP_DLL
 685 MSVCR_DLL
 686 LIBCXX
 687 STATIC_CXX_SETTING
 688 FIXPATH_DETACH_FLAG
 689 FIXPATH
 690 GCOV_ENABLED
 691 ZIP_DEBUGINFO_FILES
 692 ENABLE_DEBUG_SYMBOLS
 693 STRIP_POLICY
 694 DEBUG_BINARIES
 695 NATIVE_DEBUG_SYMBOLS
 696 CFLAGS_WARNINGS_ARE_ERRORS
 697 DISABLE_WARNING_PREFIX
 698 HOTSPOT_SET_WARNINGS_AS_ERRORS
 699 WARNINGS_AS_ERRORS
 700 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 701 ZERO_ARCHFLAG
 702 LDFLAGS_TESTEXE
 703 LDFLAGS_TESTLIB
 704 LDFLAGS_CXX_JDK
 705 JDKEXE_LIBS
 706 JDKLIB_LIBS
 707 LDFLAGS_JDKEXE
 708 LDFLAGS_JDKLIB
 709 CXXFLAGS_TESTEXE
 710 CXXFLAGS_TESTLIB
 711 CFLAGS_TESTEXE
 712 CFLAGS_TESTLIB
 713 CXXFLAGS_JDKEXE
 714 CXXFLAGS_JDKLIB
 715 CFLAGS_JDKEXE
 716 CFLAGS_JDKLIB
 717 MACOSX_VERSION_MIN
 718 CXX_O_FLAG_NONE
 719 CXX_O_FLAG_DEBUG
 720 CXX_O_FLAG_NORM
 721 CXX_O_FLAG_HI
 722 CXX_O_FLAG_HIGHEST
 723 C_O_FLAG_NONE
 724 C_O_FLAG_DEBUG
 725 C_O_FLAG_NORM
 726 C_O_FLAG_HI
 727 C_O_FLAG_HIGHEST
 728 CXXFLAGS_DEBUG_SYMBOLS
 729 CFLAGS_DEBUG_SYMBOLS
 730 CXX_FLAG_DEPS
 731 C_FLAG_DEPS
 732 SET_SHARED_LIBRARY_MAPFILE
 733 SET_SHARED_LIBRARY_NAME
 734 SET_SHARED_LIBRARY_ORIGIN
 735 SET_EXECUTABLE_ORIGIN
 736 CXX_FLAG_REORDER
 737 C_FLAG_REORDER
 738 RC_FLAGS
 739 AR_OUT_OPTION
 740 LD_OUT_OPTION
 741 EXE_OUT_OPTION
 742 CC_OUT_OPTION
 743 STRIPFLAGS
 744 ARFLAGS
 745 COMPILER_TARGET_BITS_FLAG
 746 JT_HOME
 747 JTREGEXE
 748 USING_BROKEN_SUSE_LD
 749 PACKAGE_PATH
 750 USE_CLANG
 751 HOTSPOT_LD
 752 HOTSPOT_CXX
 753 HOTSPOT_RC
 754 HOTSPOT_MT
 755 BUILD_AS
 756 BUILD_LD
 757 BUILD_AR
 758 BUILD_NM
 759 BUILD_CXX
 760 BUILD_CC
 761 BUILD_SYSROOT_LDFLAGS
 762 BUILD_SYSROOT_CFLAGS
 763 ac_ct_OBJDUMP
 764 OBJDUMP
 765 ac_ct_OBJCOPY
 766 OBJCOPY
 767 ac_ct_NM
 768 ac_ct_STRIP
 769 GNM
 770 NM
 771 STRIP
 772 MSBUILD
 773 DUMPBIN
 774 RC
 775 MT
 776 LIPO
 777 ac_ct_AR
 778 AR
 779 AS
 780 LDCXX
 781 LD
 782 CXXCPP
 783 CPP
 784 ac_ct_CXX
 785 CXXFLAGS
 786 CXX
 787 ac_ct_PROPER_COMPILER_CXX
 788 PROPER_COMPILER_CXX
 789 TOOLCHAIN_PATH_CXX
 790 POTENTIAL_CXX
 791 OBJEXT
 792 EXEEXT
 793 ac_ct_CC
 794 CPPFLAGS
 795 LDFLAGS
 796 CFLAGS
 797 CC
 798 ac_ct_PROPER_COMPILER_CC
 799 PROPER_COMPILER_CC
 800 TOOLCHAIN_PATH_CC
 801 POTENTIAL_CC
 802 VS_LIB
 803 VS_INCLUDE
 804 VS_PATH
 805 CYGWIN_LINK
 806 SYSROOT_LDFLAGS
 807 SYSROOT_CFLAGS
 808 LEGACY_EXTRA_LDFLAGS
 809 LEGACY_EXTRA_CXXFLAGS
 810 LEGACY_EXTRA_CFLAGS
 811 EXE_SUFFIX
 812 OBJ_SUFFIX
 813 STATIC_LIBRARY
 814 SHARED_LIBRARY
 815 STATIC_LIBRARY_SUFFIX
 816 SHARED_LIBRARY_SUFFIX
 817 LIBRARY_PREFIX
 818 TOOLCHAIN_TYPE
 819 STATIC_BUILD
 820 BUILD_HOTSPOT
 821 HOTSPOT_DIST
 822 BUILD_OUTPUT
 823 JDK_TOPDIR
 824 NASHORN_TOPDIR
 825 HOTSPOT_TOPDIR
 826 JAXWS_TOPDIR
 827 JAXP_TOPDIR
 828 CORBA_TOPDIR
 829 LANGTOOLS_TOPDIR
 830 BOOT_JDK_BITS
 831 JAVAC_FLAGS
 832 BOOT_JDK_SOURCETARGET
 833 JARSIGNER
 834 JAR
 835 JAVAH
 836 JAVAC
 837 JAVA
 838 BOOT_JDK
 839 JAVA_CHECK
 840 JAVAC_CHECK
 841 COOKED_BUILD_NUMBER
 842 JDK_VERSION
 843 COPYRIGHT_YEAR
 844 MACOSX_BUNDLE_ID_BASE
 845 MACOSX_BUNDLE_NAME_BASE
 846 COMPANY_NAME
 847 JDK_RC_PLATFORM_NAME
 848 PRODUCT_SUFFIX
 849 PRODUCT_NAME
 850 LAUNCHER_NAME
 851 MILESTONE
 852 JDK_BUILD_NUMBER
 853 JDK_UPDATE_VERSION
 854 JDK_MICRO_VERSION
 855 JDK_MINOR_VERSION
 856 JDK_MAJOR_VERSION
 857 USER_RELEASE_SUFFIX
 858 COMPRESS_JARS
 859 UNLIMITED_CRYPTO
 860 CACERTS_FILE
 861 TEST_IN_BUILD
 862 BUILD_HEADLESS
 863 SUPPORT_HEADFUL
 864 SUPPORT_HEADLESS
 865 OS_VERSION_MICRO
 866 OS_VERSION_MINOR
 867 OS_VERSION_MAJOR
 868 PKG_CONFIG
 869 BASH_ARGS
 870 SETFILE
 871 CODESIGN
 872 XATTR
 873 DSYMUTIL
 874 IS_GNU_TIME
 875 PATCH
 876 TIME
 877 STAT
 878 HG
 879 READELF
 880 OTOOL
 881 LDD
 882 ZIP
 883 UNZIP
 884 FIND_DELETE
 885 OUTPUT_SYNC
 886 OUTPUT_SYNC_SUPPORTED
 887 CHECK_TOOLSDIR_MAKE
 888 CHECK_TOOLSDIR_GMAKE
 889 CHECK_MAKE
 890 CHECK_GMAKE
 891 MAKE
 892 PKGHANDLER
 893 CONFIGURESUPPORT_OUTPUTDIR
 894 OUTPUT_ROOT
 895 CONF_NAME
 896 SPEC
 897 SDKROOT
 898 XCODEBUILD
 899 BUILD_VARIANT_RELEASE
 900 DEBUG_CLASSFILES
 901 FASTDEBUG
 902 VARIANT
 903 DEBUG_LEVEL
 904 MACOSX_UNIVERSAL
 905 INCLUDE_SA
 906 JVM_VARIANT_CORE
 907 JVM_VARIANT_ZEROSHARK
 908 JVM_VARIANT_ZERO
 909 JVM_VARIANT_KERNEL
 910 JVM_VARIANT_MINIMAL1
 911 JVM_VARIANT_CLIENT
 912 JVM_VARIANT_SERVER
 913 JVM_VARIANTS
 914 JVM_INTERPRETER
 915 JDK_VARIANT
 916 SET_OPENJDK
 917 CANONICAL_TOPDIR
 918 ORIGINAL_TOPDIR
 919 TOPDIR
 920 PATH_SEP
 921 ZERO_ARCHDEF
 922 DEFINE_CROSS_COMPILE_ARCH
 923 LP64
 924 OPENJDK_TARGET_OS_EXPORT_DIR
 925 OPENJDK_TARGET_CPU_JLI_CFLAGS
 926 OPENJDK_TARGET_CPU_OSARCH
 927 OPENJDK_TARGET_CPU_ISADIR
 928 OPENJDK_TARGET_CPU_LIBDIR
 929 OPENJDK_TARGET_CPU_LEGACY_LIB
 930 OPENJDK_TARGET_CPU_LEGACY
 931 REQUIRED_OS_VERSION
 932 REQUIRED_OS_NAME
 933 COMPILE_TYPE
 934 OPENJDK_TARGET_CPU_ENDIAN
 935 OPENJDK_TARGET_CPU_BITS
 936 OPENJDK_TARGET_CPU_ARCH
 937 OPENJDK_TARGET_CPU
 938 OPENJDK_TARGET_OS_ENV
 939 OPENJDK_TARGET_OS_TYPE
 940 OPENJDK_TARGET_OS
 941 OPENJDK_BUILD_CPU_ENDIAN
 942 OPENJDK_BUILD_CPU_BITS
 943 OPENJDK_BUILD_CPU_ARCH
 944 OPENJDK_BUILD_CPU
 945 OPENJDK_BUILD_OS_ENV
 946 OPENJDK_BUILD_OS_TYPE
 947 OPENJDK_BUILD_OS
 948 OPENJDK_BUILD_AUTOCONF_NAME
 949 OPENJDK_TARGET_AUTOCONF_NAME
 950 target_os
 951 target_vendor
 952 target_cpu
 953 target
 954 host_os
 955 host_vendor
 956 host_cpu
 957 host
 958 build_os
 959 build_vendor
 960 build_cpu
 961 build
 962 NICE
 963 CPIO
 964 DF
 965 READLINK
 966 CYGPATH
 967 SED
 968 FGREP
 969 EGREP
 970 GREP
 971 AWK
 972 XARGS
 973 WHICH
 974 WC
 975 UNIQ
 976 UNAME
 977 TR
 978 TOUCH
 979 TEE
 980 TAR
 981 TAIL
 982 SORT
 983 SH
 984 RMDIR
 985 RM
 986 PRINTF
 987 NAWK
 988 MV
 989 MKTEMP
 990 MKDIR
 991 LS
 992 LN
 993 HEAD
 994 FIND
 995 FILE
 996 EXPR
 997 ECHO
 998 DIRNAME
 999 DIFF
1000 DATE
1001 CUT
1002 CP
1003 COMM
1004 CMP
1005 CHMOD
1006 CAT
1007 BASH
1008 BASENAME
1009 DATE_WHEN_CONFIGURED
1010 ORIGINAL_PATH
1011 CONFIGURE_COMMAND_LINE
1012 target_alias
1013 host_alias
1014 build_alias
1015 LIBS
1016 ECHO_T
1017 ECHO_N
1018 ECHO_C
1019 DEFS
1020 mandir
1021 localedir
1022 libdir
1023 psdir
1024 pdfdir
1025 dvidir
1026 htmldir
1027 infodir
1028 docdir
1029 oldincludedir
1030 includedir
1031 localstatedir
1032 sharedstatedir
1033 sysconfdir
1034 datadir
1035 datarootdir
1036 libexecdir
1037 sbindir
1038 bindir
1039 program_transform_name
1040 prefix
1041 exec_prefix
1042 PACKAGE_URL
1043 PACKAGE_BUGREPORT
1044 PACKAGE_STRING
1045 PACKAGE_VERSION
1046 PACKAGE_TARNAME
1047 PACKAGE_NAME
1048 PATH_SEPARATOR
1049 SHELL'
1050 ac_subst_files=''
1051 ac_user_opts='
1052 enable_option_checking
1053 with_target_bits
1054 enable_openjdk_only
1055 with_custom_make_dir
1056 with_jdk_variant
1057 with_jvm_interpreter
1058 with_jvm_variants
1059 enable_debug
1060 with_debug_level
1061 with_devkit
1062 with_sys_root
1063 with_sysroot
1064 with_tools_dir
1065 with_toolchain_path
1066 with_extra_path
1067 with_sdk_name
1068 with_conf_name
1069 with_output_sync
1070 enable_headful
1071 enable_hotspot_test_in_build
1072 with_cacerts_file
1073 enable_unlimited_crypto
1074 with_milestone
1075 with_update_version
1076 with_user_release_suffix
1077 with_build_number
1078 with_copyright_year
1079 with_boot_jdk
1080 with_add_source_root
1081 with_override_source_root
1082 with_adds_and_overrides
1083 with_override_langtools
1084 with_override_corba
1085 with_override_jaxp
1086 with_override_jaxws
1087 with_override_hotspot
1088 with_override_nashorn
1089 with_override_jdk
1090 with_import_hotspot
1091 enable_static_build
1092 with_toolchain_type
1093 with_extra_cflags
1094 with_extra_cxxflags
1095 with_extra_ldflags
1096 with_toolchain_version
1097 with_build_devkit
1098 with_jtreg
1099 enable_warnings_as_errors
1100 with_native_debug_symbols
1101 enable_debug_symbols
1102 enable_zip_debug_info
1103 enable_native_coverage
1104 with_stdc__lib
1105 with_msvcr_dll
1106 with_msvcp_dll
1107 with_x
1108 with_cups
1109 with_cups_include
1110 with_freetype
1111 with_freetype_include
1112 with_freetype_lib
1113 with_freetype_src
1114 enable_freetype_bundling
1115 with_alsa
1116 with_alsa_include
1117 with_alsa_lib
1118 with_libffi
1119 with_libffi_include
1120 with_libffi_lib
1121 with_libjpeg
1122 with_giflib
1123 with_libpng
1124 with_zlib
1125 with_lcms
1126 with_dxsdk
1127 with_dxsdk_lib
1128 with_dxsdk_include
1129 with_num_cores
1130 with_memory_size
1131 with_jobs
1132 with_boot_jdk_jvmargs
1133 with_sjavac_server_java
1134 enable_sjavac
1135 enable_javac_server
1136 enable_icecc
1137 enable_precompiled_headers
1138 enable_ccache
1139 with_ccache_dir
1140 '
1141       ac_precious_vars='build_alias
1142 host_alias
1143 target_alias
1144 BASENAME
1145 BASH
1146 CAT
1147 CHMOD
1148 CMP
1149 COMM
1150 CP
1151 CUT
1152 DATE
1153 DIFF
1154 DIRNAME
1155 ECHO
1156 EXPR
1157 FILE
1158 FIND
1159 HEAD
1160 LN
1161 LS
1162 MKDIR
1163 MKTEMP
1164 MV
1165 NAWK
1166 PRINTF
1167 RM
1168 RMDIR
1169 SH
1170 SORT
1171 TAIL
1172 TAR
1173 TEE
1174 TOUCH
1175 TR
1176 UNAME
1177 UNIQ
1178 WC
1179 WHICH
1180 XARGS
1181 AWK
1182 GREP
1183 EGREP
1184 FGREP
1185 SED
1186 CYGPATH
1187 READLINK
1188 DF
1189 CPIO
1190 NICE
1191 MAKE
1192 UNZIP
1193 ZIP
1194 LDD
1195 OTOOL
1196 READELF
1197 HG
1198 STAT
1199 TIME
1200 PATCH
1201 DSYMUTIL
1202 XATTR
1203 CODESIGN
1204 SETFILE
1205 PKG_CONFIG
1206 JAVA
1207 JAVAC
1208 JAVAH
1209 JAR
1210 JARSIGNER
1211 CC
1212 CFLAGS
1213 LDFLAGS
1214 LIBS
1215 CPPFLAGS
1216 CXX
1217 CXXFLAGS
1218 CCC
1219 CPP
1220 CXXCPP
1221 AS
1222 AR
1223 LIPO
1224 STRIP
1225 NM
1226 GNM
1227 OBJCOPY
1228 OBJDUMP
1229 BUILD_CC
1230 BUILD_CXX
1231 BUILD_NM
1232 BUILD_AR
1233 JTREGEXE
1234 XMKMF
1235 FREETYPE_CFLAGS
1236 FREETYPE_LIBS
1237 ALSA_CFLAGS
1238 ALSA_LIBS
1239 LIBFFI_CFLAGS
1240 LIBFFI_LIBS
1241 PNG_CFLAGS
1242 PNG_LIBS
1243 LCMS_CFLAGS
1244 LCMS_LIBS
1245 ICECC_CMD
1246 ICECC_CREATE_ENV
1247 ICECC_WRAPPER
1248 CCACHE'
1249 
1250 
1251 # Initialize some variables set by options.
1252 ac_init_help=
1253 ac_init_version=false
1254 ac_unrecognized_opts=
1255 ac_unrecognized_sep=
1256 # The variables have the same names as the options, with
1257 # dashes changed to underlines.
1258 cache_file=/dev/null
1259 exec_prefix=NONE
1260 no_create=
1261 no_recursion=
1262 prefix=NONE
1263 program_prefix=NONE
1264 program_suffix=NONE
1265 program_transform_name=s,x,x,
1266 silent=
1267 site=
1268 srcdir=
1269 verbose=
1270 x_includes=NONE
1271 x_libraries=NONE
1272 
1273 # Installation directory options.
1274 # These are left unexpanded so users can "make install exec_prefix=/foo"
1275 # and all the variables that are supposed to be based on exec_prefix
1276 # by default will actually change.
1277 # Use braces instead of parens because sh, perl, etc. also accept them.
1278 # (The list follows the same order as the GNU Coding Standards.)
1279 bindir='${exec_prefix}/bin'
1280 sbindir='${exec_prefix}/sbin'
1281 libexecdir='${exec_prefix}/libexec'
1282 datarootdir='${prefix}/share'
1283 datadir='${datarootdir}'
1284 sysconfdir='${prefix}/etc'
1285 sharedstatedir='${prefix}/com'
1286 localstatedir='${prefix}/var'
1287 includedir='${prefix}/include'
1288 oldincludedir='/usr/include'
1289 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1290 infodir='${datarootdir}/info'
1291 htmldir='${docdir}'
1292 dvidir='${docdir}'
1293 pdfdir='${docdir}'
1294 psdir='${docdir}'
1295 libdir='${exec_prefix}/lib'
1296 localedir='${datarootdir}/locale'
1297 mandir='${datarootdir}/man'
1298 
1299 ac_prev=
1300 ac_dashdash=
1301 for ac_option
1302 do
1303   # If the previous option needs an argument, assign it.
1304   if test -n "$ac_prev"; then
1305     eval $ac_prev=\$ac_option
1306     ac_prev=
1307     continue
1308   fi
1309 
1310   case $ac_option in
1311   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1312   *=)   ac_optarg= ;;
1313   *)    ac_optarg=yes ;;
1314   esac
1315 
1316   # Accept the important Cygnus configure options, so we can diagnose typos.
1317 
1318   case $ac_dashdash$ac_option in
1319   --)
1320     ac_dashdash=yes ;;
1321 
1322   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1323     ac_prev=bindir ;;
1324   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1325     bindir=$ac_optarg ;;
1326 
1327   -build | --build | --buil | --bui | --bu)
1328     ac_prev=build_alias ;;
1329   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1330     build_alias=$ac_optarg ;;
1331 
1332   -cache-file | --cache-file | --cache-fil | --cache-fi \
1333   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1334     ac_prev=cache_file ;;
1335   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1336   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1337     cache_file=$ac_optarg ;;
1338 
1339   --config-cache | -C)
1340     cache_file=config.cache ;;
1341 
1342   -datadir | --datadir | --datadi | --datad)
1343     ac_prev=datadir ;;
1344   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1345     datadir=$ac_optarg ;;
1346 
1347   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1348   | --dataroo | --dataro | --datar)
1349     ac_prev=datarootdir ;;
1350   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1351   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1352     datarootdir=$ac_optarg ;;
1353 
1354   -disable-* | --disable-*)
1355     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358       as_fn_error $? "invalid feature name: $ac_useropt"
1359     ac_useropt_orig=$ac_useropt
1360     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361     case $ac_user_opts in
1362       *"
1363 "enable_$ac_useropt"
1364 "*) ;;
1365       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1366          ac_unrecognized_sep=', ';;
1367     esac
1368     eval enable_$ac_useropt=no ;;
1369 
1370   -docdir | --docdir | --docdi | --doc | --do)
1371     ac_prev=docdir ;;
1372   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1373     docdir=$ac_optarg ;;
1374 
1375   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1376     ac_prev=dvidir ;;
1377   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1378     dvidir=$ac_optarg ;;
1379 
1380   -enable-* | --enable-*)
1381     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384       as_fn_error $? "invalid feature name: $ac_useropt"
1385     ac_useropt_orig=$ac_useropt
1386     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387     case $ac_user_opts in
1388       *"
1389 "enable_$ac_useropt"
1390 "*) ;;
1391       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1392          ac_unrecognized_sep=', ';;
1393     esac
1394     eval enable_$ac_useropt=\$ac_optarg ;;
1395 
1396   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1397   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1398   | --exec | --exe | --ex)
1399     ac_prev=exec_prefix ;;
1400   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1401   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1402   | --exec=* | --exe=* | --ex=*)
1403     exec_prefix=$ac_optarg ;;
1404 
1405   -gas | --gas | --ga | --g)
1406     # Obsolete; use --with-gas.
1407     with_gas=yes ;;
1408 
1409   -help | --help | --hel | --he | -h)
1410     ac_init_help=long ;;
1411   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1412     ac_init_help=recursive ;;
1413   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1414     ac_init_help=short ;;
1415 
1416   -host | --host | --hos | --ho)
1417     ac_prev=host_alias ;;
1418   -host=* | --host=* | --hos=* | --ho=*)
1419     host_alias=$ac_optarg ;;
1420 
1421   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1422     ac_prev=htmldir ;;
1423   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1424   | --ht=*)
1425     htmldir=$ac_optarg ;;
1426 
1427   -includedir | --includedir | --includedi | --included | --include \
1428   | --includ | --inclu | --incl | --inc)
1429     ac_prev=includedir ;;
1430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1431   | --includ=* | --inclu=* | --incl=* | --inc=*)
1432     includedir=$ac_optarg ;;
1433 
1434   -infodir | --infodir | --infodi | --infod | --info | --inf)
1435     ac_prev=infodir ;;
1436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1437     infodir=$ac_optarg ;;
1438 
1439   -libdir | --libdir | --libdi | --libd)
1440     ac_prev=libdir ;;
1441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1442     libdir=$ac_optarg ;;
1443 
1444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1445   | --libexe | --libex | --libe)
1446     ac_prev=libexecdir ;;
1447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1448   | --libexe=* | --libex=* | --libe=*)
1449     libexecdir=$ac_optarg ;;
1450 
1451   -localedir | --localedir | --localedi | --localed | --locale)
1452     ac_prev=localedir ;;
1453   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1454     localedir=$ac_optarg ;;
1455 
1456   -localstatedir | --localstatedir | --localstatedi | --localstated \
1457   | --localstate | --localstat | --localsta | --localst | --locals)
1458     ac_prev=localstatedir ;;
1459   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1460   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1461     localstatedir=$ac_optarg ;;
1462 
1463   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1464     ac_prev=mandir ;;
1465   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1466     mandir=$ac_optarg ;;
1467 
1468   -nfp | --nfp | --nf)
1469     # Obsolete; use --without-fp.
1470     with_fp=no ;;
1471 
1472   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1473   | --no-cr | --no-c | -n)
1474     no_create=yes ;;
1475 
1476   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1477   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1478     no_recursion=yes ;;
1479 
1480   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1481   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1482   | --oldin | --oldi | --old | --ol | --o)
1483     ac_prev=oldincludedir ;;
1484   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1485   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1486   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1487     oldincludedir=$ac_optarg ;;
1488 
1489   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1490     ac_prev=prefix ;;
1491   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1492     prefix=$ac_optarg ;;
1493 
1494   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1495   | --program-pre | --program-pr | --program-p)
1496     ac_prev=program_prefix ;;
1497   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1498   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1499     program_prefix=$ac_optarg ;;
1500 
1501   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1502   | --program-suf | --program-su | --program-s)
1503     ac_prev=program_suffix ;;
1504   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1505   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1506     program_suffix=$ac_optarg ;;
1507 
1508   -program-transform-name | --program-transform-name \
1509   | --program-transform-nam | --program-transform-na \
1510   | --program-transform-n | --program-transform- \
1511   | --program-transform | --program-transfor \
1512   | --program-transfo | --program-transf \
1513   | --program-trans | --program-tran \
1514   | --progr-tra | --program-tr | --program-t)
1515     ac_prev=program_transform_name ;;
1516   -program-transform-name=* | --program-transform-name=* \
1517   | --program-transform-nam=* | --program-transform-na=* \
1518   | --program-transform-n=* | --program-transform-=* \
1519   | --program-transform=* | --program-transfor=* \
1520   | --program-transfo=* | --program-transf=* \
1521   | --program-trans=* | --program-tran=* \
1522   | --progr-tra=* | --program-tr=* | --program-t=*)
1523     program_transform_name=$ac_optarg ;;
1524 
1525   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1526     ac_prev=pdfdir ;;
1527   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1528     pdfdir=$ac_optarg ;;
1529 
1530   -psdir | --psdir | --psdi | --psd | --ps)
1531     ac_prev=psdir ;;
1532   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1533     psdir=$ac_optarg ;;
1534 
1535   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536   | -silent | --silent | --silen | --sile | --sil)
1537     silent=yes ;;
1538 
1539   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1540     ac_prev=sbindir ;;
1541   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1542   | --sbi=* | --sb=*)
1543     sbindir=$ac_optarg ;;
1544 
1545   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1546   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1547   | --sharedst | --shareds | --shared | --share | --shar \
1548   | --sha | --sh)
1549     ac_prev=sharedstatedir ;;
1550   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1551   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1552   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1553   | --sha=* | --sh=*)
1554     sharedstatedir=$ac_optarg ;;
1555 
1556   -site | --site | --sit)
1557     ac_prev=site ;;
1558   -site=* | --site=* | --sit=*)
1559     site=$ac_optarg ;;
1560 
1561   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1562     ac_prev=srcdir ;;
1563   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1564     srcdir=$ac_optarg ;;
1565 
1566   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1567   | --syscon | --sysco | --sysc | --sys | --sy)
1568     ac_prev=sysconfdir ;;
1569   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1570   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1571     sysconfdir=$ac_optarg ;;
1572 
1573   -target | --target | --targe | --targ | --tar | --ta | --t)
1574     ac_prev=target_alias ;;
1575   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1576     target_alias=$ac_optarg ;;
1577 
1578   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1579     verbose=yes ;;
1580 
1581   -version | --version | --versio | --versi | --vers | -V)
1582     ac_init_version=: ;;
1583 
1584   -with-* | --with-*)
1585     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1586     # Reject names that are not valid shell variable names.
1587     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1588       as_fn_error $? "invalid package name: $ac_useropt"
1589     ac_useropt_orig=$ac_useropt
1590     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1591     case $ac_user_opts in
1592       *"
1593 "with_$ac_useropt"
1594 "*) ;;
1595       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1596          ac_unrecognized_sep=', ';;
1597     esac
1598     eval with_$ac_useropt=\$ac_optarg ;;
1599 
1600   -without-* | --without-*)
1601     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1602     # Reject names that are not valid shell variable names.
1603     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1604       as_fn_error $? "invalid package name: $ac_useropt"
1605     ac_useropt_orig=$ac_useropt
1606     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1607     case $ac_user_opts in
1608       *"
1609 "with_$ac_useropt"
1610 "*) ;;
1611       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1612          ac_unrecognized_sep=', ';;
1613     esac
1614     eval with_$ac_useropt=no ;;
1615 
1616   --x)
1617     # Obsolete; use --with-x.
1618     with_x=yes ;;
1619 
1620   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1621   | --x-incl | --x-inc | --x-in | --x-i)
1622     ac_prev=x_includes ;;
1623   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1624   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1625     x_includes=$ac_optarg ;;
1626 
1627   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1628   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1629     ac_prev=x_libraries ;;
1630   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1631   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1632     x_libraries=$ac_optarg ;;
1633 
1634   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1635 Try \`$0 --help' for more information"
1636     ;;
1637 
1638   *=*)
1639     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1640     # Reject names that are not valid shell variable names.
1641     case $ac_envvar in #(
1642       '' | [0-9]* | *[!_$as_cr_alnum]* )
1643       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1644     esac
1645     eval $ac_envvar=\$ac_optarg
1646     export $ac_envvar ;;
1647 
1648   *)
1649     # FIXME: should be removed in autoconf 3.0.
1650     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1651     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1652       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1653     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1654     ;;
1655 
1656   esac
1657 done
1658 
1659 if test -n "$ac_prev"; then
1660   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1661   as_fn_error $? "missing argument to $ac_option"
1662 fi
1663 
1664 if test -n "$ac_unrecognized_opts"; then
1665   case $enable_option_checking in
1666     no) ;;
1667     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1668     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1669   esac
1670 fi
1671 
1672 # Check all directory arguments for consistency.
1673 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1674                 datadir sysconfdir sharedstatedir localstatedir includedir \
1675                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1676                 libdir localedir mandir
1677 do
1678   eval ac_val=\$$ac_var
1679   # Remove trailing slashes.
1680   case $ac_val in
1681     */ )
1682       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1683       eval $ac_var=\$ac_val;;
1684   esac
1685   # Be sure to have absolute directory names.
1686   case $ac_val in
1687     [\\/$]* | ?:[\\/]* )  continue;;
1688     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1689   esac
1690   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1691 done
1692 
1693 # There might be people who depend on the old broken behavior: `$host'
1694 # used to hold the argument of --host etc.
1695 # FIXME: To remove some day.
1696 build=$build_alias
1697 host=$host_alias
1698 target=$target_alias
1699 
1700 # FIXME: To remove some day.
1701 if test "x$host_alias" != x; then
1702   if test "x$build_alias" = x; then
1703     cross_compiling=maybe
1704   elif test "x$build_alias" != "x$host_alias"; then
1705     cross_compiling=yes
1706   fi
1707 fi
1708 
1709 ac_tool_prefix=
1710 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1711 
1712 test "$silent" = yes && exec 6>/dev/null
1713 
1714 
1715 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1716 ac_ls_di=`ls -di .` &&
1717 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1718   as_fn_error $? "working directory cannot be determined"
1719 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1720   as_fn_error $? "pwd does not report name of working directory"
1721 
1722 
1723 # Find the source files, if location was not specified.
1724 if test -z "$srcdir"; then
1725   ac_srcdir_defaulted=yes
1726   # Try the directory containing this script, then the parent directory.
1727   ac_confdir=`$as_dirname -- "$as_myself" ||
1728 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1729          X"$as_myself" : 'X\(//\)[^/]' \| \
1730          X"$as_myself" : 'X\(//\)$' \| \
1731          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1732 $as_echo X"$as_myself" |
1733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1734             s//\1/
1735             q
1736           }
1737           /^X\(\/\/\)[^/].*/{
1738             s//\1/
1739             q
1740           }
1741           /^X\(\/\/\)$/{
1742             s//\1/
1743             q
1744           }
1745           /^X\(\/\).*/{
1746             s//\1/
1747             q
1748           }
1749           s/.*/./; q'`
1750   srcdir=$ac_confdir
1751   if test ! -r "$srcdir/$ac_unique_file"; then
1752     srcdir=..
1753   fi
1754 else
1755   ac_srcdir_defaulted=no
1756 fi
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1759   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1760 fi
1761 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1762 ac_abs_confdir=`(
1763         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1764         pwd)`
1765 # When building in place, set srcdir=.
1766 if test "$ac_abs_confdir" = "$ac_pwd"; then
1767   srcdir=.
1768 fi
1769 # Remove unnecessary trailing slashes from srcdir.
1770 # Double slashes in file names in object file debugging info
1771 # mess up M-x gdb in Emacs.
1772 case $srcdir in
1773 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1774 esac
1775 for ac_var in $ac_precious_vars; do
1776   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1777   eval ac_env_${ac_var}_value=\$${ac_var}
1778   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1779   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1780 done
1781 
1782 #
1783 # Report the --help message.
1784 #
1785 if test "$ac_init_help" = "long"; then
1786   # Omit some internal or obsolete options to make the list less imposing.
1787   # This message is too long to be a string in the A/UX 3.1 sh.
1788   cat <<_ACEOF
1789 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1790 
1791 Usage: $0 [OPTION]... [VAR=VALUE]...
1792 
1793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1794 VAR=VALUE.  See below for descriptions of some of the useful variables.
1795 
1796 Defaults for the options are specified in brackets.
1797 
1798 Configuration:
1799   -h, --help              display this help and exit
1800       --help=short        display options specific to this package
1801       --help=recursive    display the short help of all the included packages
1802   -V, --version           display version information and exit
1803   -q, --quiet, --silent   do not print \`checking ...' messages
1804       --cache-file=FILE   cache test results in FILE [disabled]
1805   -C, --config-cache      alias for \`--cache-file=config.cache'
1806   -n, --no-create         do not create output files
1807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1808 
1809 Installation directories:
1810   --prefix=PREFIX         install architecture-independent files in PREFIX
1811                           [$ac_default_prefix]
1812   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1813                           [PREFIX]
1814 
1815 By default, \`make install' will install all the files in
1816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1818 for instance \`--prefix=\$HOME'.
1819 
1820 For better control, use the options below.
1821 
1822 Fine tuning of the installation directories:
1823   --bindir=DIR            user executables [EPREFIX/bin]
1824   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1825   --libexecdir=DIR        program executables [EPREFIX/libexec]
1826   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1827   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1828   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1829   --libdir=DIR            object code libraries [EPREFIX/lib]
1830   --includedir=DIR        C header files [PREFIX/include]
1831   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1832   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1833   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1834   --infodir=DIR           info documentation [DATAROOTDIR/info]
1835   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1836   --mandir=DIR            man documentation [DATAROOTDIR/man]
1837   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1838   --htmldir=DIR           html documentation [DOCDIR]
1839   --dvidir=DIR            dvi documentation [DOCDIR]
1840   --pdfdir=DIR            pdf documentation [DOCDIR]
1841   --psdir=DIR             ps documentation [DOCDIR]
1842 _ACEOF
1843 
1844   cat <<\_ACEOF
1845 
1846 X features:
1847   --x-includes=DIR    X include files are in DIR
1848   --x-libraries=DIR   X library files are in DIR
1849 
1850 System types:
1851   --build=BUILD     configure for building on BUILD [guessed]
1852   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1853   --target=TARGET   configure for building compilers for TARGET [HOST]
1854 _ACEOF
1855 fi
1856 
1857 if test -n "$ac_init_help"; then
1858   case $ac_init_help in
1859      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1860    esac
1861   cat <<\_ACEOF
1862 
1863 Optional Features:
1864   --disable-option-checking  ignore unrecognized --enable/--with options
1865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1867   --enable-openjdk-only   suppress building custom source even if present
1868                           [disabled]
1869   --enable-debug          set the debug level to fastdebug (shorthand for
1870                           --with-debug-level=fastdebug) [disabled]
1871   --disable-headful       disable building headful support (graphical UI
1872                           support) [enabled]
1873   --enable-hotspot-test-in-build
1874                           run the Queens test after Hotspot build [disabled]
1875   --enable-unlimited-crypto
1876                           Enable unlimited crypto policy [disabled]
1877   --enable-static-build   enable static library build [disabled]
1878   --disable-warnings-as-errors
1879                           do not consider native warnings to be an error
1880                           [enabled]
1881   --enable-debug-symbols  Deprecated. Option is kept for backwards
1882                           compatibility and is ignored
1883   --enable-zip-debug-info Deprecated. Option is kept for backwards
1884                           compatibility and is ignored
1885   --enable-native-coverage
1886                           enable native compilation with code coverage
1887                           data[disabled]
1888   --disable-freetype-bundling
1889                           disable bundling of the freetype library with the
1890                           build result [enabled on Windows or when using
1891                           --with-freetype, disabled otherwise]
1892   --enable-sjavac         use sjavac to do fast incremental compiles
1893                           [disabled]
1894   --disable-javac-server  disable javac server [enabled]
1895   --enable-icecc          enable distribted compilation of native code using
1896                           icecc/icecream [disabled]
1897   --disable-precompiled-headers
1898                           disable using precompiled headers when compiling C++
1899                           [enabled]
1900   --enable-ccache         enable using ccache to speed up recompilations
1901                           [disabled]
1902 
1903 Optional Packages:
1904   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1905   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1906   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1907                           support it), e.g. --with-target-bits=32 [guessed]
1908   --with-custom-make-dir  Deprecated. Option is kept for backwards
1909                           compatibility and is ignored
1910   --with-jdk-variant      JDK variant to build (normal) [normal]
1911   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1912   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1913                           client, minimal1, kernel, zero, zeroshark, core)
1914                           [server]
1915   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1916                           optimized (HotSpot build only)) [release]
1917   --with-devkit           use this devkit for compilers, tools and resources
1918   --with-sys-root         alias for --with-sysroot for backwards compatability
1919   --with-sysroot          use this directory as sysroot
1920   --with-tools-dir        alias for --with-toolchain-path for backwards
1921                           compatibility
1922   --with-toolchain-path   prepend these directories when searching for
1923                           toolchain binaries (compilers etc)
1924   --with-extra-path       prepend these directories to the default path
1925   --with-sdk-name         use the platform SDK of the given name. [macosx]
1926   --with-conf-name        use this as the name of the configuration [generated
1927                           from important configuration options]
1928   --with-output-sync      set make output sync type if supported by make.
1929                           [recurse]
1930   --with-cacerts-file     specify alternative cacerts file
1931   --with-milestone        Set milestone value for build [internal]
1932   --with-update-version   Set update version value for build [b00]
1933   --with-user-release-suffix
1934                           Add a custom string to the version string if build
1935                           number is not set.[username_builddateb00]
1936   --with-build-number     Set build number value for build [b00]
1937   --with-copyright-year   Set copyright year value for build [current year]
1938   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1939   --with-add-source-root  Deprecated. Option is kept for backwards
1940                           compatibility and is ignored
1941   --with-override-source-root
1942                           Deprecated. Option is kept for backwards
1943                           compatibility and is ignored
1944   --with-adds-and-overrides
1945                           Deprecated. Option is kept for backwards
1946                           compatibility and is ignored
1947   --with-override-langtools
1948                           Deprecated. Option is kept for backwards
1949                           compatibility and is ignored
1950   --with-override-corba   Deprecated. Option is kept for backwards
1951                           compatibility and is ignored
1952   --with-override-jaxp    Deprecated. Option is kept for backwards
1953                           compatibility and is ignored
1954   --with-override-jaxws   Deprecated. Option is kept for backwards
1955                           compatibility and is ignored
1956   --with-override-hotspot Deprecated. Option is kept for backwards
1957                           compatibility and is ignored
1958   --with-override-nashorn Deprecated. Option is kept for backwards
1959                           compatibility and is ignored
1960   --with-override-jdk     Deprecated. Option is kept for backwards
1961                           compatibility and is ignored
1962   --with-import-hotspot   import hotspot binaries from this jdk image or
1963                           hotspot build dist dir instead of building from
1964                           source
1965   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1966                           to show possible values [platform dependent]
1967   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1968   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1969   --with-extra-ldflags    extra flags to be used when linking jdk
1970   --with-toolchain-version
1971                           the version of the toolchain to look for, use
1972                           '--help' to show possible values [platform
1973                           dependent]
1974   --with-build-devkit     Devkit to use for the build platform toolchain
1975   --with-jtreg            Regression Test Harness [probed]
1976   --with-native-debug-symbols
1977                           set the native debug symbol configuration (none,
1978                           internal, external, zipped) [zipped]
1979   --with-stdc++lib=<static>,<dynamic>,<default>
1980                           force linking of the C++ runtime on Linux to either
1981                           static or dynamic, default is static with dynamic as
1982                           fallback
1983   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1984                           (Windows only) [probed]
1985   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1986                           (Windows only) [probed]
1987   --with-x                use the X Window System
1988   --with-cups             specify prefix directory for the cups package
1989                           (expecting the headers under PATH/include)
1990   --with-cups-include     specify directory for the cups include files
1991   --with-freetype         specify prefix directory for the freetype package
1992                           (expecting the libraries under PATH/lib and the
1993                           headers under PATH/include)
1994   --with-freetype-include specify directory for the freetype include files
1995   --with-freetype-lib     specify directory for the freetype library
1996   --with-freetype-src     specify directory with freetype sources to
1997                           automatically build the library (experimental,
1998                           Windows-only)
1999   --with-alsa             specify prefix directory for the alsa package
2000                           (expecting the libraries under PATH/lib and the
2001                           headers under PATH/include)
2002   --with-alsa-include     specify directory for the alsa include files
2003   --with-alsa-lib         specify directory for the alsa library
2004   --with-libffi           specify prefix directory for the libffi package
2005                           (expecting the libraries under PATH/lib and the
2006                           headers under PATH/include)
2007   --with-libffi-include   specify directory for the libffi include files
2008   --with-libffi-lib       specify directory for the libffi library
2009   --with-libjpeg          use libjpeg from build system or OpenJDK source
2010                           (system, bundled) [bundled]
2011   --with-giflib           use giflib from build system or OpenJDK source
2012                           (system, bundled) [bundled]
2013   --with-libpng           use libpng from build system or OpenJDK source
2014                           (system, bundled) [bundled]
2015   --with-zlib             use zlib from build system or OpenJDK source
2016                           (system, bundled) [bundled]
2017   --with-lcms             use lcms2 from build system or OpenJDK source
2018                           (system, bundled) [bundled]
2019   --with-dxsdk            Deprecated. Option is kept for backwards
2020                           compatibility and is ignored
2021   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2022                           compatibility and is ignored
2023   --with-dxsdk-include    Deprecated. Option is kept for backwards
2024                           compatibility and is ignored
2025   --with-num-cores        number of cores in the build system, e.g.
2026                           --with-num-cores=8 [probed]
2027   --with-memory-size      memory (in MB) available in the build system, e.g.
2028                           --with-memory-size=1024 [probed]
2029   --with-jobs             number of parallel jobs to let make run [calculated
2030                           based on cores and memory]
2031   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2032                           invocations of boot JDK, overriding the default
2033                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2034                           -enableassertions"
2035   --with-sjavac-server-java
2036                           use this java binary for running the sjavac
2037                           background server [Boot JDK java]
2038   --with-ccache-dir       where to store ccache files [~/.ccache]
2039 
2040 Some influential environment variables:
2041   BASENAME    Override default value for BASENAME
2042   BASH        Override default value for BASH
2043   CAT         Override default value for CAT
2044   CHMOD       Override default value for CHMOD
2045   CMP         Override default value for CMP
2046   COMM        Override default value for COMM
2047   CP          Override default value for CP
2048   CUT         Override default value for CUT
2049   DATE        Override default value for DATE
2050   DIFF        Override default value for DIFF
2051   DIRNAME     Override default value for DIRNAME
2052   ECHO        Override default value for ECHO
2053   EXPR        Override default value for EXPR
2054   FILE        Override default value for FILE
2055   FIND        Override default value for FIND
2056   HEAD        Override default value for HEAD
2057   LN          Override default value for LN
2058   LS          Override default value for LS
2059   MKDIR       Override default value for MKDIR
2060   MKTEMP      Override default value for MKTEMP
2061   MV          Override default value for MV
2062   NAWK        Override default value for NAWK
2063   PRINTF      Override default value for PRINTF
2064   RM          Override default value for RM
2065   RMDIR       Override default value for RMDIR
2066   SH          Override default value for SH
2067   SORT        Override default value for SORT
2068   TAIL        Override default value for TAIL
2069   TAR         Override default value for TAR
2070   TEE         Override default value for TEE
2071   TOUCH       Override default value for TOUCH
2072   TR          Override default value for TR
2073   UNAME       Override default value for UNAME
2074   UNIQ        Override default value for UNIQ
2075   WC          Override default value for WC
2076   WHICH       Override default value for WHICH
2077   XARGS       Override default value for XARGS
2078   AWK         Override default value for AWK
2079   GREP        Override default value for GREP
2080   EGREP       Override default value for EGREP
2081   FGREP       Override default value for FGREP
2082   SED         Override default value for SED
2083   CYGPATH     Override default value for CYGPATH
2084   READLINK    Override default value for READLINK
2085   DF          Override default value for DF
2086   CPIO        Override default value for CPIO
2087   NICE        Override default value for NICE
2088   MAKE        Override default value for MAKE
2089   UNZIP       Override default value for UNZIP
2090   ZIP         Override default value for ZIP
2091   LDD         Override default value for LDD
2092   OTOOL       Override default value for OTOOL
2093   READELF     Override default value for READELF
2094   HG          Override default value for HG
2095   STAT        Override default value for STAT
2096   TIME        Override default value for TIME
2097   PATCH       Override default value for PATCH
2098   DSYMUTIL    Override default value for DSYMUTIL
2099   XATTR       Override default value for XATTR
2100   CODESIGN    Override default value for CODESIGN
2101   SETFILE     Override default value for SETFILE
2102   PKG_CONFIG  path to pkg-config utility
2103   JAVA        Override default value for JAVA
2104   JAVAC       Override default value for JAVAC
2105   JAVAH       Override default value for JAVAH
2106   JAR         Override default value for JAR
2107   JARSIGNER   Override default value for JARSIGNER
2108   CC          C compiler command
2109   CFLAGS      C compiler flags
2110   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2111               nonstandard directory <lib dir>
2112   LIBS        libraries to pass to the linker, e.g. -l<library>
2113   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2114               you have headers in a nonstandard directory <include dir>
2115   CXX         C++ compiler command
2116   CXXFLAGS    C++ compiler flags
2117   CPP         C preprocessor
2118   CXXCPP      C++ preprocessor
2119   AS          Override default value for AS
2120   AR          Override default value for AR
2121   LIPO        Override default value for LIPO
2122   STRIP       Override default value for STRIP
2123   NM          Override default value for NM
2124   GNM         Override default value for GNM
2125   OBJCOPY     Override default value for OBJCOPY
2126   OBJDUMP     Override default value for OBJDUMP
2127   BUILD_CC    Override default value for BUILD_CC
2128   BUILD_CXX   Override default value for BUILD_CXX
2129   BUILD_NM    Override default value for BUILD_NM
2130   BUILD_AR    Override default value for BUILD_AR
2131   JTREGEXE    Override default value for JTREGEXE
2132   XMKMF       Path to xmkmf, Makefile generator for X Window System
2133   FREETYPE_CFLAGS
2134               C compiler flags for FREETYPE, overriding pkg-config
2135   FREETYPE_LIBS
2136               linker flags for FREETYPE, overriding pkg-config
2137   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2138   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2139   LIBFFI_CFLAGS
2140               C compiler flags for LIBFFI, overriding pkg-config
2141   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2142   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2143   PNG_LIBS    linker flags for PNG, overriding pkg-config
2144   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2145   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2146   ICECC_CMD   Override default value for ICECC_CMD
2147   ICECC_CREATE_ENV
2148               Override default value for ICECC_CREATE_ENV
2149   ICECC_WRAPPER
2150               Override default value for ICECC_WRAPPER
2151   CCACHE      Override default value for CCACHE
2152 
2153 Use these variables to override the choices made by `configure' or to help
2154 it to find libraries and programs with nonstandard names/locations.
2155 
2156 Report bugs to <build-dev@openjdk.java.net>.
2157 OpenJDK home page: <http://openjdk.java.net>.
2158 _ACEOF
2159 ac_status=$?
2160 fi
2161 
2162 if test "$ac_init_help" = "recursive"; then
2163   # If there are subdirs, report their specific --help.
2164   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2165     test -d "$ac_dir" ||
2166       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2167       continue
2168     ac_builddir=.
2169 
2170 case "$ac_dir" in
2171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2172 *)
2173   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2174   # A ".." for each directory in $ac_dir_suffix.
2175   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2176   case $ac_top_builddir_sub in
2177   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2178   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2179   esac ;;
2180 esac
2181 ac_abs_top_builddir=$ac_pwd
2182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2183 # for backward compatibility:
2184 ac_top_builddir=$ac_top_build_prefix
2185 
2186 case $srcdir in
2187   .)  # We are building in place.
2188     ac_srcdir=.
2189     ac_top_srcdir=$ac_top_builddir_sub
2190     ac_abs_top_srcdir=$ac_pwd ;;
2191   [\\/]* | ?:[\\/]* )  # Absolute name.
2192     ac_srcdir=$srcdir$ac_dir_suffix;
2193     ac_top_srcdir=$srcdir
2194     ac_abs_top_srcdir=$srcdir ;;
2195   *) # Relative name.
2196     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2197     ac_top_srcdir=$ac_top_build_prefix$srcdir
2198     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2199 esac
2200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2201 
2202     cd "$ac_dir" || { ac_status=$?; continue; }
2203     # Check for guested configure.
2204     if test -f "$ac_srcdir/configure.gnu"; then
2205       echo &&
2206       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2207     elif test -f "$ac_srcdir/configure"; then
2208       echo &&
2209       $SHELL "$ac_srcdir/configure" --help=recursive
2210     else
2211       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2212     fi || ac_status=$?
2213     cd "$ac_pwd" || { ac_status=$?; break; }
2214   done
2215 fi
2216 
2217 test -n "$ac_init_help" && exit $ac_status
2218 if $ac_init_version; then
2219   cat <<\_ACEOF
2220 OpenJDK configure jdk9
2221 generated by GNU Autoconf 2.69
2222 
2223 Copyright (C) 2012 Free Software Foundation, Inc.
2224 This configure script is free software; the Free Software Foundation
2225 gives unlimited permission to copy, distribute and modify it.
2226 _ACEOF
2227   exit
2228 fi
2229 
2230 ## ------------------------ ##
2231 ## Autoconf initialization. ##
2232 ## ------------------------ ##
2233 
2234 # ac_fn_c_try_compile LINENO
2235 # --------------------------
2236 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2237 ac_fn_c_try_compile ()
2238 {
2239   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240   rm -f conftest.$ac_objext
2241   if { { ac_try="$ac_compile"
2242 case "(($ac_try" in
2243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244   *) ac_try_echo=$ac_try;;
2245 esac
2246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2247 $as_echo "$ac_try_echo"; } >&5
2248   (eval "$ac_compile") 2>conftest.err
2249   ac_status=$?
2250   if test -s conftest.err; then
2251     grep -v '^ *+' conftest.err >conftest.er1
2252     cat conftest.er1 >&5
2253     mv -f conftest.er1 conftest.err
2254   fi
2255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256   test $ac_status = 0; } && {
2257          test -z "$ac_c_werror_flag" ||
2258          test ! -s conftest.err
2259        } && test -s conftest.$ac_objext; then :
2260   ac_retval=0
2261 else
2262   $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264 
2265         ac_retval=1
2266 fi
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268   as_fn_set_status $ac_retval
2269 
2270 } # ac_fn_c_try_compile
2271 
2272 # ac_fn_cxx_try_compile LINENO
2273 # ----------------------------
2274 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2275 ac_fn_cxx_try_compile ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   rm -f conftest.$ac_objext
2279   if { { ac_try="$ac_compile"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285 $as_echo "$ac_try_echo"; } >&5
2286   (eval "$ac_compile") 2>conftest.err
2287   ac_status=$?
2288   if test -s conftest.err; then
2289     grep -v '^ *+' conftest.err >conftest.er1
2290     cat conftest.er1 >&5
2291     mv -f conftest.er1 conftest.err
2292   fi
2293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294   test $ac_status = 0; } && {
2295          test -z "$ac_cxx_werror_flag" ||
2296          test ! -s conftest.err
2297        } && test -s conftest.$ac_objext; then :
2298   ac_retval=0
2299 else
2300   $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302 
2303         ac_retval=1
2304 fi
2305   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306   as_fn_set_status $ac_retval
2307 
2308 } # ac_fn_cxx_try_compile
2309 
2310 # ac_fn_c_try_cpp LINENO
2311 # ----------------------
2312 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2313 ac_fn_c_try_cpp ()
2314 {
2315   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316   if { { ac_try="$ac_cpp conftest.$ac_ext"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322 $as_echo "$ac_try_echo"; } >&5
2323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2324   ac_status=$?
2325   if test -s conftest.err; then
2326     grep -v '^ *+' conftest.err >conftest.er1
2327     cat conftest.er1 >&5
2328     mv -f conftest.er1 conftest.err
2329   fi
2330   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2331   test $ac_status = 0; } > conftest.i && {
2332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2333          test ! -s conftest.err
2334        }; then :
2335   ac_retval=0
2336 else
2337   $as_echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2339 
2340     ac_retval=1
2341 fi
2342   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343   as_fn_set_status $ac_retval
2344 
2345 } # ac_fn_c_try_cpp
2346 
2347 # ac_fn_cxx_try_cpp LINENO
2348 # ------------------------
2349 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2350 ac_fn_cxx_try_cpp ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   if { { ac_try="$ac_cpp conftest.$ac_ext"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2361   ac_status=$?
2362   if test -s conftest.err; then
2363     grep -v '^ *+' conftest.err >conftest.er1
2364     cat conftest.er1 >&5
2365     mv -f conftest.er1 conftest.err
2366   fi
2367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368   test $ac_status = 0; } > conftest.i && {
2369          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2370          test ! -s conftest.err
2371        }; then :
2372   ac_retval=0
2373 else
2374   $as_echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376 
2377     ac_retval=1
2378 fi
2379   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380   as_fn_set_status $ac_retval
2381 
2382 } # ac_fn_cxx_try_cpp
2383 
2384 # ac_fn_c_try_link LINENO
2385 # -----------------------
2386 # Try to link conftest.$ac_ext, and return whether this succeeded.
2387 ac_fn_c_try_link ()
2388 {
2389   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390   rm -f conftest.$ac_objext conftest$ac_exeext
2391   if { { ac_try="$ac_link"
2392 case "(($ac_try" in
2393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394   *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398   (eval "$ac_link") 2>conftest.err
2399   ac_status=$?
2400   if test -s conftest.err; then
2401     grep -v '^ *+' conftest.err >conftest.er1
2402     cat conftest.er1 >&5
2403     mv -f conftest.er1 conftest.err
2404   fi
2405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406   test $ac_status = 0; } && {
2407          test -z "$ac_c_werror_flag" ||
2408          test ! -s conftest.err
2409        } && test -s conftest$ac_exeext && {
2410          test "$cross_compiling" = yes ||
2411          test -x conftest$ac_exeext
2412        }; then :
2413   ac_retval=0
2414 else
2415   $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417 
2418         ac_retval=1
2419 fi
2420   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422   # interfere with the next link command; also delete a directory that is
2423   # left behind by Apple's compiler.  We do this before executing the actions.
2424   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426   as_fn_set_status $ac_retval
2427 
2428 } # ac_fn_c_try_link
2429 
2430 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2431 # ---------------------------------------------------------
2432 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2433 # the include files in INCLUDES and setting the cache variable VAR
2434 # accordingly.
2435 ac_fn_cxx_check_header_mongrel ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   if eval \${$3+:} false; then :
2439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2440 $as_echo_n "checking for $2... " >&6; }
2441 if eval \${$3+:} false; then :
2442   $as_echo_n "(cached) " >&6
2443 fi
2444 eval ac_res=\$$3
2445                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 $as_echo "$ac_res" >&6; }
2447 else
2448   # Is the header compilable?
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2450 $as_echo_n "checking $2 usability... " >&6; }
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 $4
2454 #include <$2>
2455 _ACEOF
2456 if ac_fn_cxx_try_compile "$LINENO"; then :
2457   ac_header_compiler=yes
2458 else
2459   ac_header_compiler=no
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2463 $as_echo "$ac_header_compiler" >&6; }
2464 
2465 # Is the header present?
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2467 $as_echo_n "checking $2 presence... " >&6; }
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h.  */
2470 #include <$2>
2471 _ACEOF
2472 if ac_fn_cxx_try_cpp "$LINENO"; then :
2473   ac_header_preproc=yes
2474 else
2475   ac_header_preproc=no
2476 fi
2477 rm -f conftest.err conftest.i conftest.$ac_ext
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2479 $as_echo "$ac_header_preproc" >&6; }
2480 
2481 # So?  What about this header?
2482 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2483   yes:no: )
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2485 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2487 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2488     ;;
2489   no:yes:* )
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2491 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2493 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2494     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2495 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2496     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2497 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2498     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2499 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2500 ( $as_echo "## ----------------------------------------- ##
2501 ## Report this to build-dev@openjdk.java.net ##
2502 ## ----------------------------------------- ##"
2503      ) | sed "s/^/$as_me: WARNING:     /" >&2
2504     ;;
2505 esac
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2507 $as_echo_n "checking for $2... " >&6; }
2508 if eval \${$3+:} false; then :
2509   $as_echo_n "(cached) " >&6
2510 else
2511   eval "$3=\$ac_header_compiler"
2512 fi
2513 eval ac_res=\$$3
2514                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 fi
2517   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518 
2519 } # ac_fn_cxx_check_header_mongrel
2520 
2521 # ac_fn_cxx_try_run LINENO
2522 # ------------------------
2523 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2524 # that executables *can* be run.
2525 ac_fn_cxx_try_run ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   if { { ac_try="$ac_link"
2529 case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2534 $as_echo "$ac_try_echo"; } >&5
2535   (eval "$ac_link") 2>&5
2536   ac_status=$?
2537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2538   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2539   { { case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2548   test $ac_status = 0; }; }; then :
2549   ac_retval=0
2550 else
2551   $as_echo "$as_me: program exited with status $ac_status" >&5
2552        $as_echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554 
2555        ac_retval=$ac_status
2556 fi
2557   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559   as_fn_set_status $ac_retval
2560 
2561 } # ac_fn_cxx_try_run
2562 
2563 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2564 # ---------------------------------------------------------
2565 # Tests whether HEADER exists and can be compiled using the include files in
2566 # INCLUDES, setting the cache variable VAR accordingly.
2567 ac_fn_cxx_check_header_compile ()
2568 {
2569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if eval \${$3+:} false; then :
2573   $as_echo_n "(cached) " >&6
2574 else
2575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h.  */
2577 $4
2578 #include <$2>
2579 _ACEOF
2580 if ac_fn_cxx_try_compile "$LINENO"; then :
2581   eval "$3=yes"
2582 else
2583   eval "$3=no"
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 eval ac_res=\$$3
2588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591 
2592 } # ac_fn_cxx_check_header_compile
2593 
2594 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2595 # ----------------------------------------------
2596 # Tries to find the compile-time value of EXPR in a program that includes
2597 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2598 # computed
2599 ac_fn_cxx_compute_int ()
2600 {
2601   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602   if test "$cross_compiling" = yes; then
2603     # Depending upon the size, compute the lo and hi bounds.
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) >= 0)];
2611 test_array [0] = 0;
2612 return test_array [0];
2613 
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_cxx_try_compile "$LINENO"; then :
2619   ac_lo=0 ac_mid=0
2620   while :; do
2621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h.  */
2623 $4
2624 int
2625 main ()
2626 {
2627 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2628 test_array [0] = 0;
2629 return test_array [0];
2630 
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 if ac_fn_cxx_try_compile "$LINENO"; then :
2636   ac_hi=$ac_mid; break
2637 else
2638   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2639                         if test $ac_lo -le $ac_mid; then
2640                           ac_lo= ac_hi=
2641                           break
2642                         fi
2643                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646   done
2647 else
2648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h.  */
2650 $4
2651 int
2652 main ()
2653 {
2654 static int test_array [1 - 2 * !(($2) < 0)];
2655 test_array [0] = 0;
2656 return test_array [0];
2657 
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 if ac_fn_cxx_try_compile "$LINENO"; then :
2663   ac_hi=-1 ac_mid=-1
2664   while :; do
2665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $4
2668 int
2669 main ()
2670 {
2671 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2672 test_array [0] = 0;
2673 return test_array [0];
2674 
2675   ;
2676   return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_cxx_try_compile "$LINENO"; then :
2680   ac_lo=$ac_mid; break
2681 else
2682   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2683                         if test $ac_mid -le $ac_hi; then
2684                           ac_lo= ac_hi=
2685                           break
2686                         fi
2687                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2688 fi
2689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690   done
2691 else
2692   ac_lo= ac_hi=
2693 fi
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 # Binary search between lo and hi bounds.
2698 while test "x$ac_lo" != "x$ac_hi"; do
2699   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h.  */
2702 $4
2703 int
2704 main ()
2705 {
2706 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2707 test_array [0] = 0;
2708 return test_array [0];
2709 
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_cxx_try_compile "$LINENO"; then :
2715   ac_hi=$ac_mid
2716 else
2717   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2718 fi
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 case $ac_lo in #((
2722 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2723 '') ac_retval=1 ;;
2724 esac
2725   else
2726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h.  */
2728 $4
2729 static long int longval () { return $2; }
2730 static unsigned long int ulongval () { return $2; }
2731 #include <stdio.h>
2732 #include <stdlib.h>
2733 int
2734 main ()
2735 {
2736 
2737   FILE *f = fopen ("conftest.val", "w");
2738   if (! f)
2739     return 1;
2740   if (($2) < 0)
2741     {
2742       long int i = longval ();
2743       if (i != ($2))
2744         return 1;
2745       fprintf (f, "%ld", i);
2746     }
2747   else
2748     {
2749       unsigned long int i = ulongval ();
2750       if (i != ($2))
2751         return 1;
2752       fprintf (f, "%lu", i);
2753     }
2754   /* Do not output a trailing newline, as this causes \r\n confusion
2755      on some platforms.  */
2756   return ferror (f) || fclose (f) != 0;
2757 
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_cxx_try_run "$LINENO"; then :
2763   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2764 else
2765   ac_retval=1
2766 fi
2767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2768   conftest.$ac_objext conftest.beam conftest.$ac_ext
2769 rm -f conftest.val
2770 
2771   fi
2772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773   as_fn_set_status $ac_retval
2774 
2775 } # ac_fn_cxx_compute_int
2776 
2777 # ac_fn_cxx_try_link LINENO
2778 # -------------------------
2779 # Try to link conftest.$ac_ext, and return whether this succeeded.
2780 ac_fn_cxx_try_link ()
2781 {
2782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783   rm -f conftest.$ac_objext conftest$ac_exeext
2784   if { { ac_try="$ac_link"
2785 case "(($ac_try" in
2786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787   *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791   (eval "$ac_link") 2>conftest.err
2792   ac_status=$?
2793   if test -s conftest.err; then
2794     grep -v '^ *+' conftest.err >conftest.er1
2795     cat conftest.er1 >&5
2796     mv -f conftest.er1 conftest.err
2797   fi
2798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799   test $ac_status = 0; } && {
2800          test -z "$ac_cxx_werror_flag" ||
2801          test ! -s conftest.err
2802        } && test -s conftest$ac_exeext && {
2803          test "$cross_compiling" = yes ||
2804          test -x conftest$ac_exeext
2805        }; then :
2806   ac_retval=0
2807 else
2808   $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810 
2811         ac_retval=1
2812 fi
2813   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2814   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2815   # interfere with the next link command; also delete a directory that is
2816   # left behind by Apple's compiler.  We do this before executing the actions.
2817   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2818   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2819   as_fn_set_status $ac_retval
2820 
2821 } # ac_fn_cxx_try_link
2822 
2823 # ac_fn_cxx_check_func LINENO FUNC VAR
2824 # ------------------------------------
2825 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2826 ac_fn_cxx_check_func ()
2827 {
2828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2830 $as_echo_n "checking for $2... " >&6; }
2831 if eval \${$3+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h.  */
2836 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2838 #define $2 innocuous_$2
2839 
2840 /* System header to define __stub macros and hopefully few prototypes,
2841     which can conflict with char $2 (); below.
2842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843     <limits.h> exists even on freestanding compilers.  */
2844 
2845 #ifdef __STDC__
2846 # include <limits.h>
2847 #else
2848 # include <assert.h>
2849 #endif
2850 
2851 #undef $2
2852 
2853 /* Override any GCC internal prototype to avoid an error.
2854    Use char because int might match the return type of a GCC
2855    builtin and then its argument prototype would still apply.  */
2856 #ifdef __cplusplus
2857 extern "C"
2858 #endif
2859 char $2 ();
2860 /* The GNU C library defines this for functions which it implements
2861     to always fail with ENOSYS.  Some functions are actually named
2862     something starting with __ and the normal name is an alias.  */
2863 #if defined __stub_$2 || defined __stub___$2
2864 choke me
2865 #endif
2866 
2867 int
2868 main ()
2869 {
2870 return $2 ();
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 if ac_fn_cxx_try_link "$LINENO"; then :
2876   eval "$3=yes"
2877 else
2878   eval "$3=no"
2879 fi
2880 rm -f core conftest.err conftest.$ac_objext \
2881     conftest$ac_exeext conftest.$ac_ext
2882 fi
2883 eval ac_res=\$$3
2884                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2886   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2887 
2888 } # ac_fn_cxx_check_func
2889 
2890 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2891 # -------------------------------------------------------
2892 # Tests whether HEADER exists and can be compiled using the include files in
2893 # INCLUDES, setting the cache variable VAR accordingly.
2894 ac_fn_c_check_header_compile ()
2895 {
2896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2898 $as_echo_n "checking for $2... " >&6; }
2899 if eval \${$3+:} false; then :
2900   $as_echo_n "(cached) " >&6
2901 else
2902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h.  */
2904 $4
2905 #include <$2>
2906 _ACEOF
2907 if ac_fn_c_try_compile "$LINENO"; then :
2908   eval "$3=yes"
2909 else
2910   eval "$3=no"
2911 fi
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 fi
2914 eval ac_res=\$$3
2915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2916 $as_echo "$ac_res" >&6; }
2917   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2918 
2919 } # ac_fn_c_check_header_compile
2920 cat >config.log <<_ACEOF
2921 This file contains any messages produced by compilers while
2922 running configure, to aid debugging if configure makes a mistake.
2923 
2924 It was created by OpenJDK $as_me jdk9, which was
2925 generated by GNU Autoconf 2.69.  Invocation command line was
2926 
2927   $ $0 $@
2928 
2929 _ACEOF
2930 exec 5>>config.log
2931 {
2932 cat <<_ASUNAME
2933 ## --------- ##
2934 ## Platform. ##
2935 ## --------- ##
2936 
2937 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2938 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2939 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2940 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2941 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2942 
2943 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2944 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2945 
2946 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2947 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2948 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2949 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2950 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2951 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2952 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2953 
2954 _ASUNAME
2955 
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961     $as_echo "PATH: $as_dir"
2962   done
2963 IFS=$as_save_IFS
2964 
2965 } >&5
2966 
2967 cat >&5 <<_ACEOF
2968 
2969 
2970 ## ----------- ##
2971 ## Core tests. ##
2972 ## ----------- ##
2973 
2974 _ACEOF
2975 
2976 
2977 # Keep a trace of the command line.
2978 # Strip out --no-create and --no-recursion so they do not pile up.
2979 # Strip out --silent because we don't want to record it for future runs.
2980 # Also quote any args containing shell meta-characters.
2981 # Make two passes to allow for proper duplicate-argument suppression.
2982 ac_configure_args=
2983 ac_configure_args0=
2984 ac_configure_args1=
2985 ac_must_keep_next=false
2986 for ac_pass in 1 2
2987 do
2988   for ac_arg
2989   do
2990     case $ac_arg in
2991     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2992     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2993     | -silent | --silent | --silen | --sile | --sil)
2994       continue ;;
2995     *\'*)
2996       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2997     esac
2998     case $ac_pass in
2999     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3000     2)
3001       as_fn_append ac_configure_args1 " '$ac_arg'"
3002       if test $ac_must_keep_next = true; then
3003         ac_must_keep_next=false # Got value, back to normal.
3004       else
3005         case $ac_arg in
3006           *=* | --config-cache | -C | -disable-* | --disable-* \
3007           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3008           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3009           | -with-* | --with-* | -without-* | --without-* | --x)
3010             case "$ac_configure_args0 " in
3011               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3012             esac
3013             ;;
3014           -* ) ac_must_keep_next=true ;;
3015         esac
3016       fi
3017       as_fn_append ac_configure_args " '$ac_arg'"
3018       ;;
3019     esac
3020   done
3021 done
3022 { ac_configure_args0=; unset ac_configure_args0;}
3023 { ac_configure_args1=; unset ac_configure_args1;}
3024 
3025 # When interrupted or exit'd, cleanup temporary files, and complete
3026 # config.log.  We remove comments because anyway the quotes in there
3027 # would cause problems or look ugly.
3028 # WARNING: Use '\'' to represent an apostrophe within the trap.
3029 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3030 trap 'exit_status=$?
3031   # Save into config.log some information that might help in debugging.
3032   {
3033     echo
3034 
3035     $as_echo "## ---------------- ##
3036 ## Cache variables. ##
3037 ## ---------------- ##"
3038     echo
3039     # The following way of writing the cache mishandles newlines in values,
3040 (
3041   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3042     eval ac_val=\$$ac_var
3043     case $ac_val in #(
3044     *${as_nl}*)
3045       case $ac_var in #(
3046       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3048       esac
3049       case $ac_var in #(
3050       _ | IFS | as_nl) ;; #(
3051       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3052       *) { eval $ac_var=; unset $ac_var;} ;;
3053       esac ;;
3054     esac
3055   done
3056   (set) 2>&1 |
3057     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3058     *${as_nl}ac_space=\ *)
3059       sed -n \
3060         "s/'\''/'\''\\\\'\'''\''/g;
3061           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3062       ;; #(
3063     *)
3064       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3065       ;;
3066     esac |
3067     sort
3068 )
3069     echo
3070 
3071     $as_echo "## ----------------- ##
3072 ## Output variables. ##
3073 ## ----------------- ##"
3074     echo
3075     for ac_var in $ac_subst_vars
3076     do
3077       eval ac_val=\$$ac_var
3078       case $ac_val in
3079       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3080       esac
3081       $as_echo "$ac_var='\''$ac_val'\''"
3082     done | sort
3083     echo
3084 
3085     if test -n "$ac_subst_files"; then
3086       $as_echo "## ------------------- ##
3087 ## File substitutions. ##
3088 ## ------------------- ##"
3089       echo
3090       for ac_var in $ac_subst_files
3091       do
3092         eval ac_val=\$$ac_var
3093         case $ac_val in
3094         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3095         esac
3096         $as_echo "$ac_var='\''$ac_val'\''"
3097       done | sort
3098       echo
3099     fi
3100 
3101     if test -s confdefs.h; then
3102       $as_echo "## ----------- ##
3103 ## confdefs.h. ##
3104 ## ----------- ##"
3105       echo
3106       cat confdefs.h
3107       echo
3108     fi
3109     test "$ac_signal" != 0 &&
3110       $as_echo "$as_me: caught signal $ac_signal"
3111     $as_echo "$as_me: exit $exit_status"
3112   } >&5
3113   rm -f core *.core core.conftest.* &&
3114     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3115     exit $exit_status
3116 ' 0
3117 for ac_signal in 1 2 13 15; do
3118   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3119 done
3120 ac_signal=0
3121 
3122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3123 rm -f -r conftest* confdefs.h
3124 
3125 $as_echo "/* confdefs.h */" > confdefs.h
3126 
3127 # Predefined preprocessor variables.
3128 
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_NAME "$PACKAGE_NAME"
3131 _ACEOF
3132 
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3135 _ACEOF
3136 
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3139 _ACEOF
3140 
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_STRING "$PACKAGE_STRING"
3143 _ACEOF
3144 
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3147 _ACEOF
3148 
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE_URL "$PACKAGE_URL"
3151 _ACEOF
3152 
3153 
3154 # Let the site file select an alternate cache file if it wants to.
3155 # Prefer an explicitly selected file to automatically selected ones.
3156 ac_site_file1=NONE
3157 ac_site_file2=NONE
3158 if test -n "$CONFIG_SITE"; then
3159   # We do not want a PATH search for config.site.
3160   case $CONFIG_SITE in #((
3161     -*)  ac_site_file1=./$CONFIG_SITE;;
3162     */*) ac_site_file1=$CONFIG_SITE;;
3163     *)   ac_site_file1=./$CONFIG_SITE;;
3164   esac
3165 elif test "x$prefix" != xNONE; then
3166   ac_site_file1=$prefix/share/config.site
3167   ac_site_file2=$prefix/etc/config.site
3168 else
3169   ac_site_file1=$ac_default_prefix/share/config.site
3170   ac_site_file2=$ac_default_prefix/etc/config.site
3171 fi
3172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3173 do
3174   test "x$ac_site_file" = xNONE && continue
3175   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3176     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3178     sed 's/^/| /' "$ac_site_file" >&5
3179     . "$ac_site_file" \
3180       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "failed to load site script $ac_site_file
3183 See \`config.log' for more details" "$LINENO" 5; }
3184   fi
3185 done
3186 
3187 if test -r "$cache_file"; then
3188   # Some versions of bash will fail to source /dev/null (special files
3189   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3190   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3191     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3192 $as_echo "$as_me: loading cache $cache_file" >&6;}
3193     case $cache_file in
3194       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3195       *)                      . "./$cache_file";;
3196     esac
3197   fi
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3200 $as_echo "$as_me: creating cache $cache_file" >&6;}
3201   >$cache_file
3202 fi
3203 
3204 # Check that the precious variables saved in the cache have kept the same
3205 # value.
3206 ac_cache_corrupted=false
3207 for ac_var in $ac_precious_vars; do
3208   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3209   eval ac_new_set=\$ac_env_${ac_var}_set
3210   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3211   eval ac_new_val=\$ac_env_${ac_var}_value
3212   case $ac_old_set,$ac_new_set in
3213     set,)
3214       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3215 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3216       ac_cache_corrupted=: ;;
3217     ,set)
3218       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3219 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3220       ac_cache_corrupted=: ;;
3221     ,);;
3222     *)
3223       if test "x$ac_old_val" != "x$ac_new_val"; then
3224         # differences in whitespace do not lead to failure.
3225         ac_old_val_w=`echo x $ac_old_val`
3226         ac_new_val_w=`echo x $ac_new_val`
3227         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3228           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3229 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3230           ac_cache_corrupted=:
3231         else
3232           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3233 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3234           eval $ac_var=\$ac_old_val
3235         fi
3236         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3237 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3238         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3239 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3240       fi;;
3241   esac
3242   # Pass precious variables to config.status.
3243   if test "$ac_new_set" = set; then
3244     case $ac_new_val in
3245     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3246     *) ac_arg=$ac_var=$ac_new_val ;;
3247     esac
3248     case " $ac_configure_args " in
3249       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3250       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3251     esac
3252   fi
3253 done
3254 if $ac_cache_corrupted; then
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3258 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3259   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3260 fi
3261 ## -------------------- ##
3262 ## Main body of script. ##
3263 ## -------------------- ##
3264 
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 
3271 
3272 
3273 ac_aux_dir=
3274 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3275   if test -f "$ac_dir/install-sh"; then
3276     ac_aux_dir=$ac_dir
3277     ac_install_sh="$ac_aux_dir/install-sh -c"
3278     break
3279   elif test -f "$ac_dir/install.sh"; then
3280     ac_aux_dir=$ac_dir
3281     ac_install_sh="$ac_aux_dir/install.sh -c"
3282     break
3283   elif test -f "$ac_dir/shtool"; then
3284     ac_aux_dir=$ac_dir
3285     ac_install_sh="$ac_aux_dir/shtool install -c"
3286     break
3287   fi
3288 done
3289 if test -z "$ac_aux_dir"; then
3290   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
3291 fi
3292 
3293 # These three variables are undocumented and unsupported,
3294 # and are intended to be withdrawn in a future Autoconf release.
3295 # They can cause serious problems if a builder's source tree is in a directory
3296 # whose full name contains unusual characters.
3297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3299 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3300 
3301 
3302 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3303 
3304 #
3305 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3306 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3307 #
3308 # This code is free software; you can redistribute it and/or modify it
3309 # under the terms of the GNU General Public License version 2 only, as
3310 # published by the Free Software Foundation.  Oracle designates this
3311 # particular file as subject to the "Classpath" exception as provided
3312 # by Oracle in the LICENSE file that accompanied this code.
3313 #
3314 # This code is distributed in the hope that it will be useful, but WITHOUT
3315 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3316 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3317 # version 2 for more details (a copy is included in the LICENSE file that
3318 # accompanied this code).
3319 #
3320 # You should have received a copy of the GNU General Public License version
3321 # 2 along with this work; if not, write to the Free Software Foundation,
3322 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3323 #
3324 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3325 # or visit www.oracle.com if you need additional information or have any
3326 # questions.
3327 #
3328 
3329 #
3330 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3331 #
3332 # This program is free software; you can redistribute it and/or modify
3333 # it under the terms of the GNU General Public License as published by
3334 # the Free Software Foundation; either version 2 of the License, or
3335 # (at your option) any later version.
3336 #
3337 # This program is distributed in the hope that it will be useful, but
3338 # WITHOUT ANY WARRANTY; without even the implied warranty of
3339 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3340 # General Public License for more details.
3341 #
3342 # You should have received a copy of the GNU General Public License
3343 # along with this program; if not, write to the Free Software
3344 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3345 #
3346 # As a special exception to the GNU General Public License, if you
3347 # distribute this file as part of a program that contains a
3348 # configuration script generated by Autoconf, you may include it under
3349 # the same distribution terms that you use for the rest of that program.
3350 
3351 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3352 # ----------------------------------
3353 # PKG_PROG_PKG_CONFIG
3354 
3355 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3356 #
3357 # Check to see whether a particular set of modules exists.  Similar
3358 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3359 #
3360 #
3361 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3362 # this or PKG_CHECK_MODULES is called, or make sure to call
3363 # PKG_CHECK_EXISTS manually
3364 # --------------------------------------------------------------
3365 
3366 
3367 
3368 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3369 # ---------------------------------------------
3370 # _PKG_CONFIG
3371 
3372 # _PKG_SHORT_ERRORS_SUPPORTED
3373 # -----------------------------
3374 # _PKG_SHORT_ERRORS_SUPPORTED
3375 
3376 
3377 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3378 # [ACTION-IF-NOT-FOUND])
3379 #
3380 #
3381 # Note that if there is a possibility the first call to
3382 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3383 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3384 #
3385 #
3386 # --------------------------------------------------------------
3387 # PKG_CHECK_MODULES
3388 
3389 
3390 # Include these first...
3391 #
3392 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3393 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3394 #
3395 # This code is free software; you can redistribute it and/or modify it
3396 # under the terms of the GNU General Public License version 2 only, as
3397 # published by the Free Software Foundation.  Oracle designates this
3398 # particular file as subject to the "Classpath" exception as provided
3399 # by Oracle in the LICENSE file that accompanied this code.
3400 #
3401 # This code is distributed in the hope that it will be useful, but WITHOUT
3402 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3403 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3404 # version 2 for more details (a copy is included in the LICENSE file that
3405 # accompanied this code).
3406 #
3407 # You should have received a copy of the GNU General Public License version
3408 # 2 along with this work; if not, write to the Free Software Foundation,
3409 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3410 #
3411 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3412 # or visit www.oracle.com if you need additional information or have any
3413 # questions.
3414 #
3415 
3416 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3417 # If so, then append $1 to $2 \
3418 # Also set JVM_ARG_OK to true/false depending on outcome.
3419 
3420 
3421 # Appends a string to a path variable, only adding the : when needed.
3422 
3423 
3424 # Prepends a string to a path variable, only adding the : when needed.
3425 
3426 
3427 # This will make sure the given variable points to a full and proper
3428 # path. This means:
3429 # 1) There will be no spaces in the path. On unix platforms,
3430 #    spaces in the path will result in an error. On Windows,
3431 #    the path will be rewritten using short-style to be space-free.
3432 # 2) The path will be absolute, and it will be in unix-style (on
3433 #     cygwin).
3434 # $1: The name of the variable to fix
3435 
3436 
3437 # This will make sure the given variable points to a executable
3438 # with a full and proper path. This means:
3439 # 1) There will be no spaces in the path. On unix platforms,
3440 #    spaces in the path will result in an error. On Windows,
3441 #    the path will be rewritten using short-style to be space-free.
3442 # 2) The path will be absolute, and it will be in unix-style (on
3443 #     cygwin).
3444 # Any arguments given to the executable is preserved.
3445 # If the input variable does not have a directory specification, then
3446 # it need to be in the PATH.
3447 # $1: The name of the variable to fix
3448 
3449 
3450 
3451 
3452 # Register a --with argument but mark it as deprecated
3453 # $1: The name of the with argument to deprecate, not including --with-
3454 
3455 
3456 # Register a --enable argument but mark it as deprecated
3457 # $1: The name of the with argument to deprecate, not including --enable-
3458 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3459 
3460 
3461 
3462 
3463 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3464 # $1: variable to check
3465 
3466 
3467 # Check that there are no unprocessed overridden variables left.
3468 # If so, they are an incorrect argument and we will exit with an error.
3469 
3470 
3471 # Setup a tool for the given variable. If correctly specified by the user,
3472 # use that value, otherwise search for the tool using the supplied code snippet.
3473 # $1: variable to set
3474 # $2: code snippet to call to look for the tool
3475 # $3: code snippet to call if variable was used to find tool
3476 
3477 
3478 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3479 # $1: variable to set
3480 # $2: executable name (or list of names) to look for
3481 
3482 
3483 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3484 # $1: variable to set
3485 # $2: executable name (or list of names) to look for
3486 
3487 
3488 # Like BASIC_PATH_PROGS but fails if no tool was found.
3489 # $1: variable to set
3490 # $2: executable name (or list of names) to look for
3491 
3492 
3493 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3494 # $1: variable to set
3495 # $2: autoconf macro to call to look for the special tool
3496 
3497 
3498 # Setup the most fundamental tools that relies on not much else to set up,
3499 # but is used by much of the early bootstrap code.
3500 
3501 
3502 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3503 
3504 
3505 # Evaluates platform specific overrides for devkit variables.
3506 # $1: Name of variable
3507 
3508 
3509 
3510 
3511 
3512 
3513 #%%% Simple tools %%%
3514 
3515 # Check if we have found a usable version of make
3516 # $1: the path to a potential make binary (or empty)
3517 # $2: the description on how we found this
3518 
3519 
3520 
3521 
3522 # Goes looking for a usable version of GNU make.
3523 
3524 
3525 
3526 
3527 
3528 
3529 # Check if build directory is on local disk. If not possible to determine,
3530 # we prefer to claim it's local.
3531 # Argument 1: directory to test
3532 # Argument 2: what to do if it is on local disk
3533 # Argument 3: what to do otherwise (remote disk or failure)
3534 
3535 
3536 # Check that source files have basic read permissions set. This might
3537 # not be the case in cygwin in certain conditions.
3538 
3539 
3540 
3541 
3542 # Check for support for specific options in bash
3543 
3544 
3545 # Code to run after AC_OUTPUT
3546 
3547 
3548 #
3549 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3550 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3551 #
3552 # This code is free software; you can redistribute it and/or modify it
3553 # under the terms of the GNU General Public License version 2 only, as
3554 # published by the Free Software Foundation.  Oracle designates this
3555 # particular file as subject to the "Classpath" exception as provided
3556 # by Oracle in the LICENSE file that accompanied this code.
3557 #
3558 # This code is distributed in the hope that it will be useful, but WITHOUT
3559 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3560 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3561 # version 2 for more details (a copy is included in the LICENSE file that
3562 # accompanied this code).
3563 #
3564 # You should have received a copy of the GNU General Public License version
3565 # 2 along with this work; if not, write to the Free Software Foundation,
3566 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3567 #
3568 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3569 # or visit www.oracle.com if you need additional information or have any
3570 # questions.
3571 #
3572 
3573 
3574 
3575 
3576 
3577 # Helper function which possibly converts a path using DOS-style short mode.
3578 # If so, the updated path is stored in $new_path.
3579 # $1: The path to check
3580 
3581 
3582 # Helper function which possibly converts a path using DOS-style short mode.
3583 # If so, the updated path is stored in $new_path.
3584 # $1: The path to check
3585 
3586 
3587 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3588 # and could probably be heavily simplified. However, all changes in this
3589 # area tend to need lot of testing in different scenarios, and in lack of
3590 # proper unit testing, cleaning this up has not been deemed worth the effort
3591 # at the moment.
3592 
3593 
3594 
3595 
3596 
3597 
3598 
3599 
3600 
3601 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3602 
3603 
3604 
3605 
3606 # ... then the rest
3607 #
3608 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3609 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3610 #
3611 # This code is free software; you can redistribute it and/or modify it
3612 # under the terms of the GNU General Public License version 2 only, as
3613 # published by the Free Software Foundation.  Oracle designates this
3614 # particular file as subject to the "Classpath" exception as provided
3615 # by Oracle in the LICENSE file that accompanied this code.
3616 #
3617 # This code is distributed in the hope that it will be useful, but WITHOUT
3618 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3619 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3620 # version 2 for more details (a copy is included in the LICENSE file that
3621 # accompanied this code).
3622 #
3623 # You should have received a copy of the GNU General Public License version
3624 # 2 along with this work; if not, write to the Free Software Foundation,
3625 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3626 #
3627 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3628 # or visit www.oracle.com if you need additional information or have any
3629 # questions.
3630 #
3631 
3632 ########################################################################
3633 # This file handles detection of the Boot JDK. The Boot JDK detection
3634 # process has been developed as a response to solve a complex real-world
3635 # problem. Initially, it was simple, but it has grown as platform after
3636 # platform, idiosyncracy after idiosyncracy has been supported.
3637 #
3638 # The basic idea is this:
3639 # 1) You need an acceptable *) JDK to use as a Boot JDK
3640 # 2) There are several ways to locate a JDK, that are mostly platform
3641 #    dependent **)
3642 # 3) You can have multiple JDKs installed
3643 # 4) If possible, configure should try to dig out an acceptable JDK
3644 #    automatically, without having to resort to command-line options
3645 #
3646 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3647 #     javac) and not a JRE, etc.
3648 #
3649 # **) On Windows we typically use a well-known path.
3650 #     On MacOSX we typically use the tool java_home.
3651 #     On Linux we typically find javac in the $PATH, and then follow a
3652 #     chain of symlinks that often ends up in a real JDK.
3653 #
3654 # This leads to the code where we check in different ways to locate a
3655 # JDK, and if one is found, check if it is acceptable. If not, we print
3656 # our reasons for rejecting it (useful when debugging non-working
3657 # configure situations) and continue checking the next one.
3658 ########################################################################
3659 
3660 # Execute the check given as argument, and verify the result
3661 # If the Boot JDK was previously found, do nothing
3662 # $1 A command line (typically autoconf macro) to execute
3663 
3664 
3665 # Test: Is bootjdk explicitely set by command line arguments?
3666 
3667 
3668 # Test: Is $JAVA_HOME set?
3669 
3670 
3671 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3672 
3673 
3674 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3675 # $1: Argument to the java_home binary (optional)
3676 
3677 
3678 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3679 
3680 
3681 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3682 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3683 # $1 = Path to directory containing jdk installations.
3684 # $2 = String to append to the found JDK directory to get the proper JDK home
3685 
3686 
3687 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3688 # environmental variable as base for where to look.
3689 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3690 
3691 
3692 # Test: Is there a JDK installed in default, well-known locations?
3693 
3694 
3695 # Check that a command-line tool in the Boot JDK is correct
3696 # $1 = name of variable to assign
3697 # $2 = name of binary
3698 
3699 
3700 ###############################################################################
3701 #
3702 # We need a Boot JDK to bootstrap the build.
3703 #
3704 
3705 
3706 
3707 
3708 
3709 #
3710 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3711 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3712 #
3713 # This code is free software; you can redistribute it and/or modify it
3714 # under the terms of the GNU General Public License version 2 only, as
3715 # published by the Free Software Foundation.  Oracle designates this
3716 # particular file as subject to the "Classpath" exception as provided
3717 # by Oracle in the LICENSE file that accompanied this code.
3718 #
3719 # This code is distributed in the hope that it will be useful, but WITHOUT
3720 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3721 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3722 # version 2 for more details (a copy is included in the LICENSE file that
3723 # accompanied this code).
3724 #
3725 # You should have received a copy of the GNU General Public License version
3726 # 2 along with this work; if not, write to the Free Software Foundation,
3727 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3728 #
3729 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3730 # or visit www.oracle.com if you need additional information or have any
3731 # questions.
3732 #
3733 
3734 
3735 
3736 
3737 
3738 
3739 
3740 
3741 
3742 
3743 
3744 
3745 
3746 
3747 
3748 ################################################################################
3749 #
3750 # Optionally enable distributed compilation of native code using icecc/icecream
3751 #
3752 
3753 
3754 
3755 
3756 
3757 
3758 
3759 #
3760 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3761 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3762 #
3763 # This code is free software; you can redistribute it and/or modify it
3764 # under the terms of the GNU General Public License version 2 only, as
3765 # published by the Free Software Foundation.  Oracle designates this
3766 # particular file as subject to the "Classpath" exception as provided
3767 # by Oracle in the LICENSE file that accompanied this code.
3768 #
3769 # This code is distributed in the hope that it will be useful, but WITHOUT
3770 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3771 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3772 # version 2 for more details (a copy is included in the LICENSE file that
3773 # accompanied this code).
3774 #
3775 # You should have received a copy of the GNU General Public License version
3776 # 2 along with this work; if not, write to the Free Software Foundation,
3777 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3778 #
3779 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3780 # or visit www.oracle.com if you need additional information or have any
3781 # questions.
3782 #
3783 
3784 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3785 # corresponding configure arguments instead
3786 
3787 
3788 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3789 # that configure can use them while detecting compilers.
3790 # TOOLCHAIN_TYPE is available here.
3791 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3792 
3793 
3794 
3795 
3796 
3797 
3798 # Documentation on common flags used for solstudio in HIGHEST.
3799 #
3800 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3801 #          done with care, there are some assumptions below that need to
3802 #          be understood about the use of pointers, and IEEE behavior.
3803 #
3804 # -fns: Use non-standard floating point mode (not IEEE 754)
3805 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3806 # -fsingle: Use single precision floating point with 'float'
3807 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3808 #   (Source with excessing pointer casting and data access with mixed
3809 #    pointer types are not recommended)
3810 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3811 #   (If you expect perfect errno behavior, do not use this)
3812 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3813 # -xrestrict: Pointer parameters to functions do not overlap
3814 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3815 #    If you pass in multiple pointers to the same data, do not use this)
3816 # -xlibmil: Inline some library routines
3817 #   (If you expect perfect errno behavior, do not use this)
3818 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3819 #   (If you expect perfect errno behavior, do not use this)
3820 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3821 
3822     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3823     # Bug?
3824     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3825     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3826     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3827     #fi
3828 
3829 
3830 
3831 
3832 
3833 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3834 #                                   [RUN-IF-FALSE])
3835 # ------------------------------------------------------------
3836 # Check that the c and c++ compilers support an argument
3837 
3838 
3839 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3840 #                                    [RUN-IF-FALSE])
3841 # ------------------------------------------------------------
3842 # Check that the linker support an argument
3843 
3844 
3845 
3846 
3847 #
3848 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3849 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3850 #
3851 # This code is free software; you can redistribute it and/or modify it
3852 # under the terms of the GNU General Public License version 2 only, as
3853 # published by the Free Software Foundation.  Oracle designates this
3854 # particular file as subject to the "Classpath" exception as provided
3855 # by Oracle in the LICENSE file that accompanied this code.
3856 #
3857 # This code is distributed in the hope that it will be useful, but WITHOUT
3858 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3859 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3860 # version 2 for more details (a copy is included in the LICENSE file that
3861 # accompanied this code).
3862 #
3863 # You should have received a copy of the GNU General Public License version
3864 # 2 along with this work; if not, write to the Free Software Foundation,
3865 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3866 #
3867 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3868 # or visit www.oracle.com if you need additional information or have any
3869 # questions.
3870 #
3871 
3872 
3873 
3874 
3875 
3876 cygwin_help() {
3877   case $1 in
3878     unzip)
3879       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3880       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3881       ;;
3882     zip)
3883       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3884       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3885       ;;
3886     make)
3887       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3888       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3889       ;;
3890     freetype)
3891       HELP_MSG="
3892 The freetype library can now be build during the configure process.
3893 Download the freetype sources and unpack them into an arbitrary directory:
3894 
3895 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3896 tar -xzf freetype-2.5.3.tar.gz
3897 
3898 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3899 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3900 builds or into '<freetype_src>/lib32' for 32-bit builds.
3901 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3902 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3903       ;;
3904   esac
3905 }
3906 
3907 msys_help() {
3908   PKGHANDLER_COMMAND=""
3909 }
3910 
3911 apt_help() {
3912   case $1 in
3913     reduced)
3914       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3915     devkit)
3916       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3917     openjdk)
3918       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3919     alsa)
3920       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3921     cups)
3922       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3923     freetype)
3924       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3925     ffi)
3926       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3927     x11)
3928       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3929     ccache)
3930       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3931   esac
3932 }
3933 
3934 yum_help() {
3935   case $1 in
3936     devkit)
3937       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3938     openjdk)
3939       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3940     alsa)
3941       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3942     cups)
3943       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3944     freetype)
3945       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3946     x11)
3947       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3948     ccache)
3949       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3950   esac
3951 }
3952 
3953 port_help() {
3954   PKGHANDLER_COMMAND=""
3955 }
3956 
3957 pkgutil_help() {
3958   PKGHANDLER_COMMAND=""
3959 }
3960 
3961 pkgadd_help() {
3962   PKGHANDLER_COMMAND=""
3963 }
3964 
3965 # This function will check if we're called from the "configure" wrapper while
3966 # printing --help. If so, we will print out additional information that can
3967 # only be extracted within the autoconf script, and then exit. This must be
3968 # called at the very beginning in configure.ac.
3969 
3970 
3971 
3972 
3973 
3974 
3975 #
3976 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3978 #
3979 # This code is free software; you can redistribute it and/or modify it
3980 # under the terms of the GNU General Public License version 2 only, as
3981 # published by the Free Software Foundation.  Oracle designates this
3982 # particular file as subject to the "Classpath" exception as provided
3983 # by Oracle in the LICENSE file that accompanied this code.
3984 #
3985 # This code is distributed in the hope that it will be useful, but WITHOUT
3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3987 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3988 # version 2 for more details (a copy is included in the LICENSE file that
3989 # accompanied this code).
3990 #
3991 # You should have received a copy of the GNU General Public License version
3992 # 2 along with this work; if not, write to the Free Software Foundation,
3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3994 #
3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3996 # or visit www.oracle.com if you need additional information or have any
3997 # questions.
3998 #
3999 
4000 
4001 
4002 
4003 
4004 
4005 
4006 
4007 
4008 
4009 ###############################################################################
4010 #
4011 # Should we build only OpenJDK even if closed sources are present?
4012 #
4013 
4014 
4015 
4016 
4017 ###############################################################################
4018 #
4019 # Setup version numbers
4020 #
4021 
4022 
4023 
4024 
4025 
4026 
4027 ################################################################################
4028 #
4029 # Gcov coverage data for hotspot
4030 #
4031 
4032 
4033 ################################################################################
4034 #
4035 # Static build support.  When enabled will generate static
4036 # libraries instead of shared libraries for all JDK libs.
4037 #
4038 
4039 
4040 
4041 
4042 #
4043 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4044 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4045 #
4046 # This code is free software; you can redistribute it and/or modify it
4047 # under the terms of the GNU General Public License version 2 only, as
4048 # published by the Free Software Foundation.  Oracle designates this
4049 # particular file as subject to the "Classpath" exception as provided
4050 # by Oracle in the LICENSE file that accompanied this code.
4051 #
4052 # This code is distributed in the hope that it will be useful, but WITHOUT
4053 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4054 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4055 # version 2 for more details (a copy is included in the LICENSE file that
4056 # accompanied this code).
4057 #
4058 # You should have received a copy of the GNU General Public License version
4059 # 2 along with this work; if not, write to the Free Software Foundation,
4060 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4061 #
4062 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4063 # or visit www.oracle.com if you need additional information or have any
4064 # questions.
4065 #
4066 
4067 # Major library component reside in separate files.
4068 #
4069 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4070 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4071 #
4072 # This code is free software; you can redistribute it and/or modify it
4073 # under the terms of the GNU General Public License version 2 only, as
4074 # published by the Free Software Foundation.  Oracle designates this
4075 # particular file as subject to the "Classpath" exception as provided
4076 # by Oracle in the LICENSE file that accompanied this code.
4077 #
4078 # This code is distributed in the hope that it will be useful, but WITHOUT
4079 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4080 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4081 # version 2 for more details (a copy is included in the LICENSE file that
4082 # accompanied this code).
4083 #
4084 # You should have received a copy of the GNU General Public License version
4085 # 2 along with this work; if not, write to the Free Software Foundation,
4086 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4087 #
4088 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4089 # or visit www.oracle.com if you need additional information or have any
4090 # questions.
4091 #
4092 
4093 ################################################################################
4094 # Setup alsa (Advanced Linux Sound Architecture)
4095 ################################################################################
4096 
4097 
4098 #
4099 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4100 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4101 #
4102 # This code is free software; you can redistribute it and/or modify it
4103 # under the terms of the GNU General Public License version 2 only, as
4104 # published by the Free Software Foundation.  Oracle designates this
4105 # particular file as subject to the "Classpath" exception as provided
4106 # by Oracle in the LICENSE file that accompanied this code.
4107 #
4108 # This code is distributed in the hope that it will be useful, but WITHOUT
4109 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4110 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4111 # version 2 for more details (a copy is included in the LICENSE file that
4112 # accompanied this code).
4113 #
4114 # You should have received a copy of the GNU General Public License version
4115 # 2 along with this work; if not, write to the Free Software Foundation,
4116 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4117 #
4118 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4119 # or visit www.oracle.com if you need additional information or have any
4120 # questions.
4121 #
4122 
4123 ################################################################################
4124 # Setup bundled libraries.
4125 #
4126 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4127 # OpenJDK repository. Default is to use these libraries as bundled, but they
4128 # might be replaced by en external version by the user.
4129 ################################################################################
4130 
4131 
4132 ################################################################################
4133 # Setup libjpeg
4134 ################################################################################
4135 
4136 
4137 ################################################################################
4138 # Setup giflib
4139 ################################################################################
4140 
4141 
4142 ################################################################################
4143 # Setup libpng
4144 ################################################################################
4145 
4146 
4147 ################################################################################
4148 # Setup zlib
4149 ################################################################################
4150 
4151 
4152 ################################################################################
4153 # Setup lcms (Little CMS)
4154 ################################################################################
4155 
4156 
4157 #
4158 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4159 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4160 #
4161 # This code is free software; you can redistribute it and/or modify it
4162 # under the terms of the GNU General Public License version 2 only, as
4163 # published by the Free Software Foundation.  Oracle designates this
4164 # particular file as subject to the "Classpath" exception as provided
4165 # by Oracle in the LICENSE file that accompanied this code.
4166 #
4167 # This code is distributed in the hope that it will be useful, but WITHOUT
4168 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4169 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4170 # version 2 for more details (a copy is included in the LICENSE file that
4171 # accompanied this code).
4172 #
4173 # You should have received a copy of the GNU General Public License version
4174 # 2 along with this work; if not, write to the Free Software Foundation,
4175 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4176 #
4177 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4178 # or visit www.oracle.com if you need additional information or have any
4179 # questions.
4180 #
4181 
4182 ################################################################################
4183 # Setup cups (Common Unix Printing System)
4184 ################################################################################
4185 
4186 
4187 #
4188 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4189 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4190 #
4191 # This code is free software; you can redistribute it and/or modify it
4192 # under the terms of the GNU General Public License version 2 only, as
4193 # published by the Free Software Foundation.  Oracle designates this
4194 # particular file as subject to the "Classpath" exception as provided
4195 # by Oracle in the LICENSE file that accompanied this code.
4196 #
4197 # This code is distributed in the hope that it will be useful, but WITHOUT
4198 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4199 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4200 # version 2 for more details (a copy is included in the LICENSE file that
4201 # accompanied this code).
4202 #
4203 # You should have received a copy of the GNU General Public License version
4204 # 2 along with this work; if not, write to the Free Software Foundation,
4205 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4206 #
4207 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4208 # or visit www.oracle.com if you need additional information or have any
4209 # questions.
4210 #
4211 
4212 ################################################################################
4213 # Setup libffi (Foreign Function Interface)
4214 ################################################################################
4215 
4216 
4217 #
4218 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4219 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4220 #
4221 # This code is free software; you can redistribute it and/or modify it
4222 # under the terms of the GNU General Public License version 2 only, as
4223 # published by the Free Software Foundation.  Oracle designates this
4224 # particular file as subject to the "Classpath" exception as provided
4225 # by Oracle in the LICENSE file that accompanied this code.
4226 #
4227 # This code is distributed in the hope that it will be useful, but WITHOUT
4228 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4229 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4230 # version 2 for more details (a copy is included in the LICENSE file that
4231 # accompanied this code).
4232 #
4233 # You should have received a copy of the GNU General Public License version
4234 # 2 along with this work; if not, write to the Free Software Foundation,
4235 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4236 #
4237 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4238 # or visit www.oracle.com if you need additional information or have any
4239 # questions.
4240 #
4241 
4242 ################################################################################
4243 # Build the freetype lib from source
4244 ################################################################################
4245 
4246 
4247 ################################################################################
4248 # Check if a potential freeype library match is correct and usable
4249 ################################################################################
4250 
4251 
4252 ################################################################################
4253 # Setup freetype (The FreeType2 font rendering library)
4254 ################################################################################
4255 
4256 
4257 #
4258 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4259 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4260 #
4261 # This code is free software; you can redistribute it and/or modify it
4262 # under the terms of the GNU General Public License version 2 only, as
4263 # published by the Free Software Foundation.  Oracle designates this
4264 # particular file as subject to the "Classpath" exception as provided
4265 # by Oracle in the LICENSE file that accompanied this code.
4266 #
4267 # This code is distributed in the hope that it will be useful, but WITHOUT
4268 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4269 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4270 # version 2 for more details (a copy is included in the LICENSE file that
4271 # accompanied this code).
4272 #
4273 # You should have received a copy of the GNU General Public License version
4274 # 2 along with this work; if not, write to the Free Software Foundation,
4275 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4276 #
4277 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4278 # or visit www.oracle.com if you need additional information or have any
4279 # questions.
4280 #
4281 
4282 ################################################################################
4283 # Setup the standard C/C++ runtime libraries.
4284 #
4285 # Most importantly, determine if stdc++ should be linked statically or
4286 # dynamically.
4287 ################################################################################
4288 
4289 
4290 #
4291 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4292 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4293 #
4294 # This code is free software; you can redistribute it and/or modify it
4295 # under the terms of the GNU General Public License version 2 only, as
4296 # published by the Free Software Foundation.  Oracle designates this
4297 # particular file as subject to the "Classpath" exception as provided
4298 # by Oracle in the LICENSE file that accompanied this code.
4299 #
4300 # This code is distributed in the hope that it will be useful, but WITHOUT
4301 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4302 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4303 # version 2 for more details (a copy is included in the LICENSE file that
4304 # accompanied this code).
4305 #
4306 # You should have received a copy of the GNU General Public License version
4307 # 2 along with this work; if not, write to the Free Software Foundation,
4308 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4309 #
4310 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4311 # or visit www.oracle.com if you need additional information or have any
4312 # questions.
4313 #
4314 
4315 ################################################################################
4316 # Setup X11 Windows system
4317 ################################################################################
4318 
4319 
4320 
4321 ################################################################################
4322 # Determine which libraries are needed for this configuration
4323 ################################################################################
4324 
4325 
4326 ################################################################################
4327 # Parse library options, and setup needed libraries
4328 ################################################################################
4329 
4330 
4331 ################################################################################
4332 # Setup llvm (Low-Level VM)
4333 ################################################################################
4334 
4335 
4336 ################################################################################
4337 # Setup various libraries, typically small system libraries
4338 ################################################################################
4339 
4340 
4341 #
4342 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4343 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4344 #
4345 # This code is free software; you can redistribute it and/or modify it
4346 # under the terms of the GNU General Public License version 2 only, as
4347 # published by the Free Software Foundation.  Oracle designates this
4348 # particular file as subject to the "Classpath" exception as provided
4349 # by Oracle in the LICENSE file that accompanied this code.
4350 #
4351 # This code is distributed in the hope that it will be useful, but WITHOUT
4352 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4353 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4354 # version 2 for more details (a copy is included in the LICENSE file that
4355 # accompanied this code).
4356 #
4357 # You should have received a copy of the GNU General Public License version
4358 # 2 along with this work; if not, write to the Free Software Foundation,
4359 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4360 #
4361 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4362 # or visit www.oracle.com if you need additional information or have any
4363 # questions.
4364 #
4365 
4366 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4367 # Converts autoconf style CPU name to OpenJDK style, into
4368 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4369 
4370 
4371 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4372 # Converts autoconf style OS name to OpenJDK style, into
4373 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4374 
4375 
4376 # Expects $host_os $host_cpu $build_os and $build_cpu
4377 # and $with_target_bits to have been setup!
4378 #
4379 # Translate the standard triplet(quadruplet) definition
4380 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4381 # OPENJDK_BUILD_OS, etc.
4382 
4383 
4384 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4385 # accordingly. Must be done after setting up build and target system, but before
4386 # doing anything else with these values.
4387 
4388 
4389 # Setup the legacy variables, for controlling the old makefiles.
4390 #
4391 
4392 
4393 
4394 
4395 #%%% Build and target systems %%%
4396 
4397 
4398 
4399 
4400 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4401 # Add -mX to various FLAGS variables.
4402 
4403 
4404 
4405 
4406 
4407 
4408 #
4409 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4410 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4411 #
4412 # This code is free software; you can redistribute it and/or modify it
4413 # under the terms of the GNU General Public License version 2 only, as
4414 # published by the Free Software Foundation.  Oracle designates this
4415 # particular file as subject to the "Classpath" exception as provided
4416 # by Oracle in the LICENSE file that accompanied this code.
4417 #
4418 # This code is distributed in the hope that it will be useful, but WITHOUT
4419 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4420 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4421 # version 2 for more details (a copy is included in the LICENSE file that
4422 # accompanied this code).
4423 #
4424 # You should have received a copy of the GNU General Public License version
4425 # 2 along with this work; if not, write to the Free Software Foundation,
4426 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4427 #
4428 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4429 # or visit www.oracle.com if you need additional information or have any
4430 # questions.
4431 #
4432 
4433 
4434 
4435 
4436 
4437 
4438 
4439 #
4440 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4441 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4442 #
4443 # This code is free software; you can redistribute it and/or modify it
4444 # under the terms of the GNU General Public License version 2 only, as
4445 # published by the Free Software Foundation.  Oracle designates this
4446 # particular file as subject to the "Classpath" exception as provided
4447 # by Oracle in the LICENSE file that accompanied this code.
4448 #
4449 # This code is distributed in the hope that it will be useful, but WITHOUT
4450 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4451 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4452 # version 2 for more details (a copy is included in the LICENSE file that
4453 # accompanied this code).
4454 #
4455 # You should have received a copy of the GNU General Public License version
4456 # 2 along with this work; if not, write to the Free Software Foundation,
4457 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4458 #
4459 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4460 # or visit www.oracle.com if you need additional information or have any
4461 # questions.
4462 #
4463 
4464 ########################################################################
4465 # This file is responsible for detecting, verifying and setting up the
4466 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4467 # proper paths to the binaries, but it will not setup any flags.
4468 #
4469 # The binaries used is determined by the toolchain type, which is the family of
4470 # compilers and related tools that are used.
4471 ########################################################################
4472 
4473 
4474 # All valid toolchains, regardless of platform (used by help.m4)
4475 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4476 
4477 # These toolchains are valid on different platforms
4478 VALID_TOOLCHAINS_linux="gcc clang"
4479 VALID_TOOLCHAINS_solaris="solstudio"
4480 VALID_TOOLCHAINS_macosx="gcc clang"
4481 VALID_TOOLCHAINS_aix="xlc"
4482 VALID_TOOLCHAINS_windows="microsoft"
4483 
4484 # Toolchain descriptions
4485 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4486 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4487 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4488 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4489 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4490 
4491 # Setup a number of variables describing how native output files are
4492 # named on this platform/toolchain.
4493 
4494 
4495 # Determine which toolchain type to use, and make sure it is valid for this
4496 # platform. Setup various information about the selected toolchain.
4497 
4498 
4499 # Before we start detecting the toolchain executables, we might need some
4500 # special setup, e.g. additional paths etc.
4501 
4502 
4503 # Restore path, etc
4504 
4505 
4506 # Check if a compiler is of the toolchain type we expect, and save the version
4507 # information from it. If the compiler does not match the expected type,
4508 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4509 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4510 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4511 #
4512 # $1 = compiler to test (CC or CXX)
4513 # $2 = human readable name of compiler (C or C++)
4514 
4515 
4516 # Try to locate the given C or C++ compiler in the path, or otherwise.
4517 #
4518 # $1 = compiler to test (CC or CXX)
4519 # $2 = human readable name of compiler (C or C++)
4520 # $3 = list of compiler names to search for
4521 
4522 
4523 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4524 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4525 # archiver (AR). Verify that the compilers are correct according to the
4526 # toolchain type.
4527 
4528 
4529 # Setup additional tools that is considered a part of the toolchain, but not the
4530 # core part. Many of these are highly platform-specific and do not exist,
4531 # and/or are not needed on all platforms.
4532 
4533 
4534 # Setup the build tools (i.e, the compiler and linker used to build programs
4535 # that should be run on the build platform, not the target platform, as a build
4536 # helper). Since the non-cross-compile case uses the normal, target compilers
4537 # for this, we can only do this after these have been setup.
4538 
4539 
4540 # Setup legacy variables that are still needed as alternative ways to refer to
4541 # parts of the toolchain.
4542 
4543 
4544 # Do some additional checks on the detected tools.
4545 
4546 
4547 # Setup the JTReg Regression Test Harness.
4548 
4549 
4550 #
4551 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4552 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4553 #
4554 # This code is free software; you can redistribute it and/or modify it
4555 # under the terms of the GNU General Public License version 2 only, as
4556 # published by the Free Software Foundation.  Oracle designates this
4557 # particular file as subject to the "Classpath" exception as provided
4558 # by Oracle in the LICENSE file that accompanied this code.
4559 #
4560 # This code is distributed in the hope that it will be useful, but WITHOUT
4561 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4562 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4563 # version 2 for more details (a copy is included in the LICENSE file that
4564 # accompanied this code).
4565 #
4566 # You should have received a copy of the GNU General Public License version
4567 # 2 along with this work; if not, write to the Free Software Foundation,
4568 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4569 #
4570 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4571 # or visit www.oracle.com if you need additional information or have any
4572 # questions.
4573 #
4574 
4575 ################################################################################
4576 # The order of these defines the priority by which we try to find them.
4577 VALID_VS_VERSIONS="2013 2012 2010"
4578 
4579 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4580 VS_VERSION_INTERNAL_2010=100
4581 VS_MSVCR_2010=msvcr100.dll
4582 # We don't use msvcp on Visual Studio 2010
4583 #VS_MSVCP_2010=msvcp100.dll
4584 VS_ENVVAR_2010="VS100COMNTOOLS"
4585 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4586 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4587 VS_VS_PLATFORM_NAME_2010="v100"
4588 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4589 
4590 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4591 VS_VERSION_INTERNAL_2012=110
4592 VS_MSVCR_2012=msvcr110.dll
4593 VS_MSVCP_2012=msvcp110.dll
4594 VS_ENVVAR_2012="VS110COMNTOOLS"
4595 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4596 VS_SDK_INSTALLDIR_2012=
4597 VS_VS_PLATFORM_NAME_2012="v110"
4598 VS_SDK_PLATFORM_NAME_2012=
4599 
4600 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4601 VS_VERSION_INTERNAL_2013=120
4602 VS_MSVCR_2013=msvcr120.dll
4603 VS_MSVCP_2013=msvcp120.dll
4604 VS_ENVVAR_2013="VS120COMNTOOLS"
4605 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4606 VS_SDK_INSTALLDIR_2013=
4607 VS_VS_PLATFORM_NAME_2013="v120"
4608 VS_SDK_PLATFORM_NAME_2013=
4609 
4610 ################################################################################
4611 
4612 
4613 
4614 ################################################################################
4615 
4616 
4617 
4618 ################################################################################
4619 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4620 # build environment and assigns it to VS_ENV_CMD
4621 
4622 
4623 ################################################################################
4624 
4625 
4626 
4627 ################################################################################
4628 # Check if the VS env variables were setup prior to running configure.
4629 # If not, then find vcvarsall.bat and run it automatically, and integrate
4630 # the set env variables into the spec file.
4631 
4632 
4633 
4634 
4635 
4636 
4637 
4638 
4639 
4640 
4641 
4642 
4643 
4644 
4645 # This line needs to be here, verbatim, after all includes and the dummy hook
4646 # definitions. It is replaced with custom functionality when building
4647 # custom sources.
4648 #CUSTOM_AUTOCONF_INCLUDE
4649 
4650 # Do not change or remove the following line, it is needed for consistency checks:
4651 DATE_WHEN_GENERATED=1448889620
4652 
4653 ###############################################################################
4654 #
4655 # Initialization / Boot-strapping
4656 #
4657 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4658 # thus it jumps back and forth, each time gaining something needed later on.
4659 #
4660 ###############################################################################
4661 
4662 # If we are requested to print additional help, do that and then exit.
4663 # This must be the very first call.
4664 
4665   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4666     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4667     $PRINTF "Which are valid to use depends on the build platform.\n"
4668     for toolchain in $VALID_TOOLCHAINS_all; do
4669       # Use indirect variable referencing
4670       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4671       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4672       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4673     done
4674 
4675     # And now exit directly
4676     exit 0
4677   fi
4678 
4679 
4680 # Basic initialization that must happen first of all in the normal process.
4681 
4682   # Save the original command line. This is passed to us by the wrapper configure script.
4683 
4684   # Save the path variable before it gets changed
4685   ORIGINAL_PATH="$PATH"
4686 
4687   DATE_WHEN_CONFIGURED=`LANG=C date`
4688 
4689   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4690 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4691   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4692 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4693 
4694 
4695   # Start with tools that do not need have cross compilation support
4696   # and can be expected to be found in the default PATH. These tools are
4697   # used by configure.
4698 
4699   # First are all the simple required tools.
4700 
4701 
4702 
4703   # Publish this variable in the help.
4704 
4705 
4706   if [ -z "${BASENAME+x}" ]; then
4707     # The variable is not set by user, try to locate tool using the code snippet
4708     for ac_prog in basename
4709 do
4710   # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_path_BASENAME+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   case $BASENAME in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727     for ac_exec_ext in '' $ac_executable_extensions; do
4728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734   done
4735 IFS=$as_save_IFS
4736 
4737   ;;
4738 esac
4739 fi
4740 BASENAME=$ac_cv_path_BASENAME
4741 if test -n "$BASENAME"; then
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4743 $as_echo "$BASENAME" >&6; }
4744 else
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748 
4749 
4750   test -n "$BASENAME" && break
4751 done
4752 
4753   else
4754     # The variable is set, but is it from the command line or the environment?
4755 
4756     # Try to remove the string !BASENAME! from our list.
4757     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4758     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4759       # If it failed, the variable was not from the command line. Ignore it,
4760       # but warn the user (except for BASH, which is always set by the calling BASH).
4761       if test "xBASENAME" != xBASH; then
4762         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4763 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4764       fi
4765       # Try to locate tool using the code snippet
4766       for ac_prog in basename
4767 do
4768   # Extract the first word of "$ac_prog", so it can be a program name with args.
4769 set dummy $ac_prog; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_BASENAME+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   case $BASENAME in
4776   [\\/]* | ?:[\\/]*)
4777   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4778   ;;
4779   *)
4780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785     for ac_exec_ext in '' $ac_executable_extensions; do
4786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792   done
4793 IFS=$as_save_IFS
4794 
4795   ;;
4796 esac
4797 fi
4798 BASENAME=$ac_cv_path_BASENAME
4799 if test -n "$BASENAME"; then
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4801 $as_echo "$BASENAME" >&6; }
4802 else
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806 
4807 
4808   test -n "$BASENAME" && break
4809 done
4810 
4811     else
4812       # If it succeeded, then it was overridden by the user. We will use it
4813       # for the tool.
4814 
4815       # First remove it from the list of overridden variables, so we can test
4816       # for unknown variables in the end.
4817       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4818 
4819       # Check if we try to supply an empty value
4820       if test "x$BASENAME" = x; then
4821         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4822 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4824 $as_echo_n "checking for BASENAME... " >&6; }
4825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4826 $as_echo "disabled" >&6; }
4827       else
4828         # Check if the provided tool contains a complete path.
4829         tool_specified="$BASENAME"
4830         tool_basename="${tool_specified##*/}"
4831         if test "x$tool_basename" = "x$tool_specified"; then
4832           # A command without a complete path is provided, search $PATH.
4833           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4834 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4835           # Extract the first word of "$tool_basename", so it can be a program name with args.
4836 set dummy $tool_basename; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_path_BASENAME+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   case $BASENAME in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852     for ac_exec_ext in '' $ac_executable_extensions; do
4853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859   done
4860 IFS=$as_save_IFS
4861 
4862   ;;
4863 esac
4864 fi
4865 BASENAME=$ac_cv_path_BASENAME
4866 if test -n "$BASENAME"; then
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4868 $as_echo "$BASENAME" >&6; }
4869 else
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873 
4874 
4875           if test "x$BASENAME" = x; then
4876             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4877           fi
4878         else
4879           # Otherwise we believe it is a complete path. Use it as it is.
4880           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4881 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4882           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4883 $as_echo_n "checking for BASENAME... " >&6; }
4884           if test ! -x "$tool_specified"; then
4885             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4886 $as_echo "not found" >&6; }
4887             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4888           fi
4889           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4890 $as_echo "$tool_specified" >&6; }
4891         fi
4892       fi
4893     fi
4894 
4895   fi
4896 
4897 
4898 
4899   if test "x$BASENAME" = x; then
4900     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4901   fi
4902 
4903 
4904 
4905 
4906 
4907   # Publish this variable in the help.
4908 
4909 
4910   if [ -z "${BASH+x}" ]; then
4911     # The variable is not set by user, try to locate tool using the code snippet
4912     for ac_prog in bash
4913 do
4914   # Extract the first word of "$ac_prog", so it can be a program name with args.
4915 set dummy $ac_prog; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_path_BASH+:} false; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   case $BASH in
4922   [\\/]* | ?:[\\/]*)
4923   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4924   ;;
4925   *)
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938   done
4939 IFS=$as_save_IFS
4940 
4941   ;;
4942 esac
4943 fi
4944 BASH=$ac_cv_path_BASH
4945 if test -n "$BASH"; then
4946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4947 $as_echo "$BASH" >&6; }
4948 else
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4951 fi
4952 
4953 
4954   test -n "$BASH" && break
4955 done
4956 
4957   else
4958     # The variable is set, but is it from the command line or the environment?
4959 
4960     # Try to remove the string !BASH! from our list.
4961     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4962     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4963       # If it failed, the variable was not from the command line. Ignore it,
4964       # but warn the user (except for BASH, which is always set by the calling BASH).
4965       if test "xBASH" != xBASH; then
4966         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4967 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4968       fi
4969       # Try to locate tool using the code snippet
4970       for ac_prog in bash
4971 do
4972   # Extract the first word of "$ac_prog", so it can be a program name with args.
4973 set dummy $ac_prog; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_path_BASH+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   case $BASH in
4980   [\\/]* | ?:[\\/]*)
4981   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4982   ;;
4983   *)
4984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998 
4999   ;;
5000 esac
5001 fi
5002 BASH=$ac_cv_path_BASH
5003 if test -n "$BASH"; then
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5005 $as_echo "$BASH" >&6; }
5006 else
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010 
5011 
5012   test -n "$BASH" && break
5013 done
5014 
5015     else
5016       # If it succeeded, then it was overridden by the user. We will use it
5017       # for the tool.
5018 
5019       # First remove it from the list of overridden variables, so we can test
5020       # for unknown variables in the end.
5021       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5022 
5023       # Check if we try to supply an empty value
5024       if test "x$BASH" = x; then
5025         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5026 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5028 $as_echo_n "checking for BASH... " >&6; }
5029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5030 $as_echo "disabled" >&6; }
5031       else
5032         # Check if the provided tool contains a complete path.
5033         tool_specified="$BASH"
5034         tool_basename="${tool_specified##*/}"
5035         if test "x$tool_basename" = "x$tool_specified"; then
5036           # A command without a complete path is provided, search $PATH.
5037           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5038 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5039           # Extract the first word of "$tool_basename", so it can be a program name with args.
5040 set dummy $tool_basename; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_path_BASH+:} false; then :
5044   $as_echo_n "(cached) " >&6
5045 else
5046   case $BASH in
5047   [\\/]* | ?:[\\/]*)
5048   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5049   ;;
5050   *)
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056     for ac_exec_ext in '' $ac_executable_extensions; do
5057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060     break 2
5061   fi
5062 done
5063   done
5064 IFS=$as_save_IFS
5065 
5066   ;;
5067 esac
5068 fi
5069 BASH=$ac_cv_path_BASH
5070 if test -n "$BASH"; then
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5072 $as_echo "$BASH" >&6; }
5073 else
5074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077 
5078 
5079           if test "x$BASH" = x; then
5080             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5081           fi
5082         else
5083           # Otherwise we believe it is a complete path. Use it as it is.
5084           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5085 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5086           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5087 $as_echo_n "checking for BASH... " >&6; }
5088           if test ! -x "$tool_specified"; then
5089             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5090 $as_echo "not found" >&6; }
5091             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5092           fi
5093           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5094 $as_echo "$tool_specified" >&6; }
5095         fi
5096       fi
5097     fi
5098 
5099   fi
5100 
5101 
5102 
5103   if test "x$BASH" = x; then
5104     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5105   fi
5106 
5107 
5108 
5109 
5110 
5111   # Publish this variable in the help.
5112 
5113 
5114   if [ -z "${CAT+x}" ]; then
5115     # The variable is not set by user, try to locate tool using the code snippet
5116     for ac_prog in cat
5117 do
5118   # Extract the first word of "$ac_prog", so it can be a program name with args.
5119 set dummy $ac_prog; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_path_CAT+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   case $CAT in
5126   [\\/]* | ?:[\\/]*)
5127   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5128   ;;
5129   *)
5130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142   done
5143 IFS=$as_save_IFS
5144 
5145   ;;
5146 esac
5147 fi
5148 CAT=$ac_cv_path_CAT
5149 if test -n "$CAT"; then
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5151 $as_echo "$CAT" >&6; }
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156 
5157 
5158   test -n "$CAT" && break
5159 done
5160 
5161   else
5162     # The variable is set, but is it from the command line or the environment?
5163 
5164     # Try to remove the string !CAT! from our list.
5165     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5166     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5167       # If it failed, the variable was not from the command line. Ignore it,
5168       # but warn the user (except for BASH, which is always set by the calling BASH).
5169       if test "xCAT" != xBASH; then
5170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5171 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5172       fi
5173       # Try to locate tool using the code snippet
5174       for ac_prog in cat
5175 do
5176   # Extract the first word of "$ac_prog", so it can be a program name with args.
5177 set dummy $ac_prog; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_path_CAT+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   case $CAT in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193     for ac_exec_ext in '' $ac_executable_extensions; do
5194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200   done
5201 IFS=$as_save_IFS
5202 
5203   ;;
5204 esac
5205 fi
5206 CAT=$ac_cv_path_CAT
5207 if test -n "$CAT"; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5209 $as_echo "$CAT" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214 
5215 
5216   test -n "$CAT" && break
5217 done
5218 
5219     else
5220       # If it succeeded, then it was overridden by the user. We will use it
5221       # for the tool.
5222 
5223       # First remove it from the list of overridden variables, so we can test
5224       # for unknown variables in the end.
5225       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5226 
5227       # Check if we try to supply an empty value
5228       if test "x$CAT" = x; then
5229         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5230 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5232 $as_echo_n "checking for CAT... " >&6; }
5233         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5234 $as_echo "disabled" >&6; }
5235       else
5236         # Check if the provided tool contains a complete path.
5237         tool_specified="$CAT"
5238         tool_basename="${tool_specified##*/}"
5239         if test "x$tool_basename" = "x$tool_specified"; then
5240           # A command without a complete path is provided, search $PATH.
5241           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5242 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5243           # Extract the first word of "$tool_basename", so it can be a program name with args.
5244 set dummy $tool_basename; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_path_CAT+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250   case $CAT in
5251   [\\/]* | ?:[\\/]*)
5252   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5253   ;;
5254   *)
5255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258   IFS=$as_save_IFS
5259   test -z "$as_dir" && as_dir=.
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269 
5270   ;;
5271 esac
5272 fi
5273 CAT=$ac_cv_path_CAT
5274 if test -n "$CAT"; then
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5276 $as_echo "$CAT" >&6; }
5277 else
5278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281 
5282 
5283           if test "x$CAT" = x; then
5284             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5285           fi
5286         else
5287           # Otherwise we believe it is a complete path. Use it as it is.
5288           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5289 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5290           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5291 $as_echo_n "checking for CAT... " >&6; }
5292           if test ! -x "$tool_specified"; then
5293             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5294 $as_echo "not found" >&6; }
5295             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5296           fi
5297           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5298 $as_echo "$tool_specified" >&6; }
5299         fi
5300       fi
5301     fi
5302 
5303   fi
5304 
5305 
5306 
5307   if test "x$CAT" = x; then
5308     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5309   fi
5310 
5311 
5312 
5313 
5314 
5315   # Publish this variable in the help.
5316 
5317 
5318   if [ -z "${CHMOD+x}" ]; then
5319     # The variable is not set by user, try to locate tool using the code snippet
5320     for ac_prog in chmod
5321 do
5322   # Extract the first word of "$ac_prog", so it can be a program name with args.
5323 set dummy $ac_prog; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if ${ac_cv_path_CHMOD+:} false; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   case $CHMOD in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_exec_ext in '' $ac_executable_extensions; do
5340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346   done
5347 IFS=$as_save_IFS
5348 
5349   ;;
5350 esac
5351 fi
5352 CHMOD=$ac_cv_path_CHMOD
5353 if test -n "$CHMOD"; then
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5355 $as_echo "$CHMOD" >&6; }
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360 
5361 
5362   test -n "$CHMOD" && break
5363 done
5364 
5365   else
5366     # The variable is set, but is it from the command line or the environment?
5367 
5368     # Try to remove the string !CHMOD! from our list.
5369     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5370     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5371       # If it failed, the variable was not from the command line. Ignore it,
5372       # but warn the user (except for BASH, which is always set by the calling BASH).
5373       if test "xCHMOD" != xBASH; then
5374         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5375 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5376       fi
5377       # Try to locate tool using the code snippet
5378       for ac_prog in chmod
5379 do
5380   # Extract the first word of "$ac_prog", so it can be a program name with args.
5381 set dummy $ac_prog; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_path_CHMOD+:} false; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   case $CHMOD in
5388   [\\/]* | ?:[\\/]*)
5389   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5390   ;;
5391   *)
5392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_exec_ext in '' $ac_executable_extensions; do
5398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5399     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401     break 2
5402   fi
5403 done
5404   done
5405 IFS=$as_save_IFS
5406 
5407   ;;
5408 esac
5409 fi
5410 CHMOD=$ac_cv_path_CHMOD
5411 if test -n "$CHMOD"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5413 $as_echo "$CHMOD" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418 
5419 
5420   test -n "$CHMOD" && break
5421 done
5422 
5423     else
5424       # If it succeeded, then it was overridden by the user. We will use it
5425       # for the tool.
5426 
5427       # First remove it from the list of overridden variables, so we can test
5428       # for unknown variables in the end.
5429       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5430 
5431       # Check if we try to supply an empty value
5432       if test "x$CHMOD" = x; then
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5434 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5436 $as_echo_n "checking for CHMOD... " >&6; }
5437         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5438 $as_echo "disabled" >&6; }
5439       else
5440         # Check if the provided tool contains a complete path.
5441         tool_specified="$CHMOD"
5442         tool_basename="${tool_specified##*/}"
5443         if test "x$tool_basename" = "x$tool_specified"; then
5444           # A command without a complete path is provided, search $PATH.
5445           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5446 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5447           # Extract the first word of "$tool_basename", so it can be a program name with args.
5448 set dummy $tool_basename; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_path_CHMOD+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   case $CHMOD in
5455   [\\/]* | ?:[\\/]*)
5456   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5457   ;;
5458   *)
5459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473 
5474   ;;
5475 esac
5476 fi
5477 CHMOD=$ac_cv_path_CHMOD
5478 if test -n "$CHMOD"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5480 $as_echo "$CHMOD" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485 
5486 
5487           if test "x$CHMOD" = x; then
5488             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5489           fi
5490         else
5491           # Otherwise we believe it is a complete path. Use it as it is.
5492           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5493 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5494           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5495 $as_echo_n "checking for CHMOD... " >&6; }
5496           if test ! -x "$tool_specified"; then
5497             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5498 $as_echo "not found" >&6; }
5499             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5500           fi
5501           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5502 $as_echo "$tool_specified" >&6; }
5503         fi
5504       fi
5505     fi
5506 
5507   fi
5508 
5509 
5510 
5511   if test "x$CHMOD" = x; then
5512     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5513   fi
5514 
5515 
5516 
5517 
5518 
5519   # Publish this variable in the help.
5520 
5521 
5522   if [ -z "${CMP+x}" ]; then
5523     # The variable is not set by user, try to locate tool using the code snippet
5524     for ac_prog in cmp
5525 do
5526   # Extract the first word of "$ac_prog", so it can be a program name with args.
5527 set dummy $ac_prog; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_path_CMP+:} false; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533   case $CMP in
5534   [\\/]* | ?:[\\/]*)
5535   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5536   ;;
5537   *)
5538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541   IFS=$as_save_IFS
5542   test -z "$as_dir" && as_dir=.
5543     for ac_exec_ext in '' $ac_executable_extensions; do
5544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547     break 2
5548   fi
5549 done
5550   done
5551 IFS=$as_save_IFS
5552 
5553   ;;
5554 esac
5555 fi
5556 CMP=$ac_cv_path_CMP
5557 if test -n "$CMP"; then
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5559 $as_echo "$CMP" >&6; }
5560 else
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563 fi
5564 
5565 
5566   test -n "$CMP" && break
5567 done
5568 
5569   else
5570     # The variable is set, but is it from the command line or the environment?
5571 
5572     # Try to remove the string !CMP! from our list.
5573     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5574     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5575       # If it failed, the variable was not from the command line. Ignore it,
5576       # but warn the user (except for BASH, which is always set by the calling BASH).
5577       if test "xCMP" != xBASH; then
5578         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5579 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5580       fi
5581       # Try to locate tool using the code snippet
5582       for ac_prog in cmp
5583 do
5584   # Extract the first word of "$ac_prog", so it can be a program name with args.
5585 set dummy $ac_prog; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_path_CMP+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   case $CMP in
5592   [\\/]* | ?:[\\/]*)
5593   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5594   ;;
5595   *)
5596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601     for ac_exec_ext in '' $ac_executable_extensions; do
5602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608   done
5609 IFS=$as_save_IFS
5610 
5611   ;;
5612 esac
5613 fi
5614 CMP=$ac_cv_path_CMP
5615 if test -n "$CMP"; then
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5617 $as_echo "$CMP" >&6; }
5618 else
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5621 fi
5622 
5623 
5624   test -n "$CMP" && break
5625 done
5626 
5627     else
5628       # If it succeeded, then it was overridden by the user. We will use it
5629       # for the tool.
5630 
5631       # First remove it from the list of overridden variables, so we can test
5632       # for unknown variables in the end.
5633       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5634 
5635       # Check if we try to supply an empty value
5636       if test "x$CMP" = x; then
5637         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5638 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5639         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5640 $as_echo_n "checking for CMP... " >&6; }
5641         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5642 $as_echo "disabled" >&6; }
5643       else
5644         # Check if the provided tool contains a complete path.
5645         tool_specified="$CMP"
5646         tool_basename="${tool_specified##*/}"
5647         if test "x$tool_basename" = "x$tool_specified"; then
5648           # A command without a complete path is provided, search $PATH.
5649           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5650 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5651           # Extract the first word of "$tool_basename", so it can be a program name with args.
5652 set dummy $tool_basename; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_path_CMP+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   case $CMP in
5659   [\\/]* | ?:[\\/]*)
5660   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5661   ;;
5662   *)
5663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668     for ac_exec_ext in '' $ac_executable_extensions; do
5669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672     break 2
5673   fi
5674 done
5675   done
5676 IFS=$as_save_IFS
5677 
5678   ;;
5679 esac
5680 fi
5681 CMP=$ac_cv_path_CMP
5682 if test -n "$CMP"; then
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5684 $as_echo "$CMP" >&6; }
5685 else
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689 
5690 
5691           if test "x$CMP" = x; then
5692             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5693           fi
5694         else
5695           # Otherwise we believe it is a complete path. Use it as it is.
5696           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5697 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5698           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5699 $as_echo_n "checking for CMP... " >&6; }
5700           if test ! -x "$tool_specified"; then
5701             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5702 $as_echo "not found" >&6; }
5703             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5704           fi
5705           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5706 $as_echo "$tool_specified" >&6; }
5707         fi
5708       fi
5709     fi
5710 
5711   fi
5712 
5713 
5714 
5715   if test "x$CMP" = x; then
5716     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5717   fi
5718 
5719 
5720 
5721 
5722 
5723   # Publish this variable in the help.
5724 
5725 
5726   if [ -z "${COMM+x}" ]; then
5727     # The variable is not set by user, try to locate tool using the code snippet
5728     for ac_prog in comm
5729 do
5730   # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_path_COMM+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   case $COMM in
5738   [\\/]* | ?:[\\/]*)
5739   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5740   ;;
5741   *)
5742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756 
5757   ;;
5758 esac
5759 fi
5760 COMM=$ac_cv_path_COMM
5761 if test -n "$COMM"; then
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5763 $as_echo "$COMM" >&6; }
5764 else
5765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768 
5769 
5770   test -n "$COMM" && break
5771 done
5772 
5773   else
5774     # The variable is set, but is it from the command line or the environment?
5775 
5776     # Try to remove the string !COMM! from our list.
5777     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5778     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5779       # If it failed, the variable was not from the command line. Ignore it,
5780       # but warn the user (except for BASH, which is always set by the calling BASH).
5781       if test "xCOMM" != xBASH; then
5782         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5783 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5784       fi
5785       # Try to locate tool using the code snippet
5786       for ac_prog in comm
5787 do
5788   # Extract the first word of "$ac_prog", so it can be a program name with args.
5789 set dummy $ac_prog; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if ${ac_cv_path_COMM+:} false; then :
5793   $as_echo_n "(cached) " >&6
5794 else
5795   case $COMM in
5796   [\\/]* | ?:[\\/]*)
5797   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5798   ;;
5799   *)
5800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812   done
5813 IFS=$as_save_IFS
5814 
5815   ;;
5816 esac
5817 fi
5818 COMM=$ac_cv_path_COMM
5819 if test -n "$COMM"; then
5820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5821 $as_echo "$COMM" >&6; }
5822 else
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 fi
5826 
5827 
5828   test -n "$COMM" && break
5829 done
5830 
5831     else
5832       # If it succeeded, then it was overridden by the user. We will use it
5833       # for the tool.
5834 
5835       # First remove it from the list of overridden variables, so we can test
5836       # for unknown variables in the end.
5837       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5838 
5839       # Check if we try to supply an empty value
5840       if test "x$COMM" = x; then
5841         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5842 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5844 $as_echo_n "checking for COMM... " >&6; }
5845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5846 $as_echo "disabled" >&6; }
5847       else
5848         # Check if the provided tool contains a complete path.
5849         tool_specified="$COMM"
5850         tool_basename="${tool_specified##*/}"
5851         if test "x$tool_basename" = "x$tool_specified"; then
5852           # A command without a complete path is provided, search $PATH.
5853           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5854 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5855           # Extract the first word of "$tool_basename", so it can be a program name with args.
5856 set dummy $tool_basename; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_path_COMM+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   case $COMM in
5863   [\\/]* | ?:[\\/]*)
5864   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5865   ;;
5866   *)
5867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done
5880 IFS=$as_save_IFS
5881 
5882   ;;
5883 esac
5884 fi
5885 COMM=$ac_cv_path_COMM
5886 if test -n "$COMM"; then
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5888 $as_echo "$COMM" >&6; }
5889 else
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893 
5894 
5895           if test "x$COMM" = x; then
5896             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5897           fi
5898         else
5899           # Otherwise we believe it is a complete path. Use it as it is.
5900           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5901 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5902           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5903 $as_echo_n "checking for COMM... " >&6; }
5904           if test ! -x "$tool_specified"; then
5905             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5906 $as_echo "not found" >&6; }
5907             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5908           fi
5909           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5910 $as_echo "$tool_specified" >&6; }
5911         fi
5912       fi
5913     fi
5914 
5915   fi
5916 
5917 
5918 
5919   if test "x$COMM" = x; then
5920     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5921   fi
5922 
5923 
5924 
5925 
5926 
5927   # Publish this variable in the help.
5928 
5929 
5930   if [ -z "${CP+x}" ]; then
5931     # The variable is not set by user, try to locate tool using the code snippet
5932     for ac_prog in cp
5933 do
5934   # Extract the first word of "$ac_prog", so it can be a program name with args.
5935 set dummy $ac_prog; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_path_CP+:} false; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   case $CP in
5942   [\\/]* | ?:[\\/]*)
5943   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5944   ;;
5945   *)
5946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949   IFS=$as_save_IFS
5950   test -z "$as_dir" && as_dir=.
5951     for ac_exec_ext in '' $ac_executable_extensions; do
5952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5953     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955     break 2
5956   fi
5957 done
5958   done
5959 IFS=$as_save_IFS
5960 
5961   ;;
5962 esac
5963 fi
5964 CP=$ac_cv_path_CP
5965 if test -n "$CP"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5967 $as_echo "$CP" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972 
5973 
5974   test -n "$CP" && break
5975 done
5976 
5977   else
5978     # The variable is set, but is it from the command line or the environment?
5979 
5980     # Try to remove the string !CP! from our list.
5981     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5982     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5983       # If it failed, the variable was not from the command line. Ignore it,
5984       # but warn the user (except for BASH, which is always set by the calling BASH).
5985       if test "xCP" != xBASH; then
5986         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5987 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5988       fi
5989       # Try to locate tool using the code snippet
5990       for ac_prog in cp
5991 do
5992   # Extract the first word of "$ac_prog", so it can be a program name with args.
5993 set dummy $ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_path_CP+:} false; then :
5997   $as_echo_n "(cached) " >&6
5998 else
5999   case $CP in
6000   [\\/]* | ?:[\\/]*)
6001   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6002   ;;
6003   *)
6004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009     for ac_exec_ext in '' $ac_executable_extensions; do
6010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016   done
6017 IFS=$as_save_IFS
6018 
6019   ;;
6020 esac
6021 fi
6022 CP=$ac_cv_path_CP
6023 if test -n "$CP"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6025 $as_echo "$CP" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030 
6031 
6032   test -n "$CP" && break
6033 done
6034 
6035     else
6036       # If it succeeded, then it was overridden by the user. We will use it
6037       # for the tool.
6038 
6039       # First remove it from the list of overridden variables, so we can test
6040       # for unknown variables in the end.
6041       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6042 
6043       # Check if we try to supply an empty value
6044       if test "x$CP" = x; then
6045         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6046 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6047         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6048 $as_echo_n "checking for CP... " >&6; }
6049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6050 $as_echo "disabled" >&6; }
6051       else
6052         # Check if the provided tool contains a complete path.
6053         tool_specified="$CP"
6054         tool_basename="${tool_specified##*/}"
6055         if test "x$tool_basename" = "x$tool_specified"; then
6056           # A command without a complete path is provided, search $PATH.
6057           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6058 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6059           # Extract the first word of "$tool_basename", so it can be a program name with args.
6060 set dummy $tool_basename; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if ${ac_cv_path_CP+:} false; then :
6064   $as_echo_n "(cached) " >&6
6065 else
6066   case $CP in
6067   [\\/]* | ?:[\\/]*)
6068   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6069   ;;
6070   *)
6071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074   IFS=$as_save_IFS
6075   test -z "$as_dir" && as_dir=.
6076     for ac_exec_ext in '' $ac_executable_extensions; do
6077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080     break 2
6081   fi
6082 done
6083   done
6084 IFS=$as_save_IFS
6085 
6086   ;;
6087 esac
6088 fi
6089 CP=$ac_cv_path_CP
6090 if test -n "$CP"; then
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6092 $as_echo "$CP" >&6; }
6093 else
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097 
6098 
6099           if test "x$CP" = x; then
6100             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6101           fi
6102         else
6103           # Otherwise we believe it is a complete path. Use it as it is.
6104           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6105 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6106           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6107 $as_echo_n "checking for CP... " >&6; }
6108           if test ! -x "$tool_specified"; then
6109             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6110 $as_echo "not found" >&6; }
6111             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6112           fi
6113           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6114 $as_echo "$tool_specified" >&6; }
6115         fi
6116       fi
6117     fi
6118 
6119   fi
6120 
6121 
6122 
6123   if test "x$CP" = x; then
6124     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6125   fi
6126 
6127 
6128 
6129 
6130 
6131   # Publish this variable in the help.
6132 
6133 
6134   if [ -z "${CUT+x}" ]; then
6135     # The variable is not set by user, try to locate tool using the code snippet
6136     for ac_prog in cut
6137 do
6138   # Extract the first word of "$ac_prog", so it can be a program name with args.
6139 set dummy $ac_prog; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_path_CUT+:} false; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   case $CUT in
6146   [\\/]* | ?:[\\/]*)
6147   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6148   ;;
6149   *)
6150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6152 do
6153   IFS=$as_save_IFS
6154   test -z "$as_dir" && as_dir=.
6155     for ac_exec_ext in '' $ac_executable_extensions; do
6156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6159     break 2
6160   fi
6161 done
6162   done
6163 IFS=$as_save_IFS
6164 
6165   ;;
6166 esac
6167 fi
6168 CUT=$ac_cv_path_CUT
6169 if test -n "$CUT"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6171 $as_echo "$CUT" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176 
6177 
6178   test -n "$CUT" && break
6179 done
6180 
6181   else
6182     # The variable is set, but is it from the command line or the environment?
6183 
6184     # Try to remove the string !CUT! from our list.
6185     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6186     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6187       # If it failed, the variable was not from the command line. Ignore it,
6188       # but warn the user (except for BASH, which is always set by the calling BASH).
6189       if test "xCUT" != xBASH; then
6190         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6191 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6192       fi
6193       # Try to locate tool using the code snippet
6194       for ac_prog in cut
6195 do
6196   # Extract the first word of "$ac_prog", so it can be a program name with args.
6197 set dummy $ac_prog; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_path_CUT+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   case $CUT in
6204   [\\/]* | ?:[\\/]*)
6205   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6206   ;;
6207   *)
6208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222 
6223   ;;
6224 esac
6225 fi
6226 CUT=$ac_cv_path_CUT
6227 if test -n "$CUT"; then
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6229 $as_echo "$CUT" >&6; }
6230 else
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6233 fi
6234 
6235 
6236   test -n "$CUT" && break
6237 done
6238 
6239     else
6240       # If it succeeded, then it was overridden by the user. We will use it
6241       # for the tool.
6242 
6243       # First remove it from the list of overridden variables, so we can test
6244       # for unknown variables in the end.
6245       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6246 
6247       # Check if we try to supply an empty value
6248       if test "x$CUT" = x; then
6249         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6250 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6251         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6252 $as_echo_n "checking for CUT... " >&6; }
6253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6254 $as_echo "disabled" >&6; }
6255       else
6256         # Check if the provided tool contains a complete path.
6257         tool_specified="$CUT"
6258         tool_basename="${tool_specified##*/}"
6259         if test "x$tool_basename" = "x$tool_specified"; then
6260           # A command without a complete path is provided, search $PATH.
6261           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6262 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6263           # Extract the first word of "$tool_basename", so it can be a program name with args.
6264 set dummy $tool_basename; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_path_CUT+:} false; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   case $CUT in
6271   [\\/]* | ?:[\\/]*)
6272   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6273   ;;
6274   *)
6275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289 
6290   ;;
6291 esac
6292 fi
6293 CUT=$ac_cv_path_CUT
6294 if test -n "$CUT"; then
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6296 $as_echo "$CUT" >&6; }
6297 else
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301 
6302 
6303           if test "x$CUT" = x; then
6304             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6305           fi
6306         else
6307           # Otherwise we believe it is a complete path. Use it as it is.
6308           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6309 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6310           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6311 $as_echo_n "checking for CUT... " >&6; }
6312           if test ! -x "$tool_specified"; then
6313             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6314 $as_echo "not found" >&6; }
6315             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6316           fi
6317           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6318 $as_echo "$tool_specified" >&6; }
6319         fi
6320       fi
6321     fi
6322 
6323   fi
6324 
6325 
6326 
6327   if test "x$CUT" = x; then
6328     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6329   fi
6330 
6331 
6332 
6333 
6334 
6335   # Publish this variable in the help.
6336 
6337 
6338   if [ -z "${DATE+x}" ]; then
6339     # The variable is not set by user, try to locate tool using the code snippet
6340     for ac_prog in date
6341 do
6342   # Extract the first word of "$ac_prog", so it can be a program name with args.
6343 set dummy $ac_prog; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_path_DATE+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   case $DATE in
6350   [\\/]* | ?:[\\/]*)
6351   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6352   ;;
6353   *)
6354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368 
6369   ;;
6370 esac
6371 fi
6372 DATE=$ac_cv_path_DATE
6373 if test -n "$DATE"; then
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6375 $as_echo "$DATE" >&6; }
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380 
6381 
6382   test -n "$DATE" && break
6383 done
6384 
6385   else
6386     # The variable is set, but is it from the command line or the environment?
6387 
6388     # Try to remove the string !DATE! from our list.
6389     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6390     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6391       # If it failed, the variable was not from the command line. Ignore it,
6392       # but warn the user (except for BASH, which is always set by the calling BASH).
6393       if test "xDATE" != xBASH; then
6394         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6395 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6396       fi
6397       # Try to locate tool using the code snippet
6398       for ac_prog in date
6399 do
6400   # Extract the first word of "$ac_prog", so it can be a program name with args.
6401 set dummy $ac_prog; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_path_DATE+:} false; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   case $DATE in
6408   [\\/]* | ?:[\\/]*)
6409   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6410   ;;
6411   *)
6412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415   IFS=$as_save_IFS
6416   test -z "$as_dir" && as_dir=.
6417     for ac_exec_ext in '' $ac_executable_extensions; do
6418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6419     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421     break 2
6422   fi
6423 done
6424   done
6425 IFS=$as_save_IFS
6426 
6427   ;;
6428 esac
6429 fi
6430 DATE=$ac_cv_path_DATE
6431 if test -n "$DATE"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6433 $as_echo "$DATE" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438 
6439 
6440   test -n "$DATE" && break
6441 done
6442 
6443     else
6444       # If it succeeded, then it was overridden by the user. We will use it
6445       # for the tool.
6446 
6447       # First remove it from the list of overridden variables, so we can test
6448       # for unknown variables in the end.
6449       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6450 
6451       # Check if we try to supply an empty value
6452       if test "x$DATE" = x; then
6453         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6454 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6456 $as_echo_n "checking for DATE... " >&6; }
6457         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6458 $as_echo "disabled" >&6; }
6459       else
6460         # Check if the provided tool contains a complete path.
6461         tool_specified="$DATE"
6462         tool_basename="${tool_specified##*/}"
6463         if test "x$tool_basename" = "x$tool_specified"; then
6464           # A command without a complete path is provided, search $PATH.
6465           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6466 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6467           # Extract the first word of "$tool_basename", so it can be a program name with args.
6468 set dummy $tool_basename; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_path_DATE+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   case $DATE in
6475   [\\/]* | ?:[\\/]*)
6476   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6477   ;;
6478   *)
6479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484     for ac_exec_ext in '' $ac_executable_extensions; do
6485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491   done
6492 IFS=$as_save_IFS
6493 
6494   ;;
6495 esac
6496 fi
6497 DATE=$ac_cv_path_DATE
6498 if test -n "$DATE"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6500 $as_echo "$DATE" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505 
6506 
6507           if test "x$DATE" = x; then
6508             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6509           fi
6510         else
6511           # Otherwise we believe it is a complete path. Use it as it is.
6512           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6513 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6514           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6515 $as_echo_n "checking for DATE... " >&6; }
6516           if test ! -x "$tool_specified"; then
6517             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6518 $as_echo "not found" >&6; }
6519             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6520           fi
6521           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6522 $as_echo "$tool_specified" >&6; }
6523         fi
6524       fi
6525     fi
6526 
6527   fi
6528 
6529 
6530 
6531   if test "x$DATE" = x; then
6532     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6533   fi
6534 
6535 
6536 
6537 
6538 
6539   # Publish this variable in the help.
6540 
6541 
6542   if [ -z "${DIFF+x}" ]; then
6543     # The variable is not set by user, try to locate tool using the code snippet
6544     for ac_prog in gdiff diff
6545 do
6546   # Extract the first word of "$ac_prog", so it can be a program name with args.
6547 set dummy $ac_prog; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_path_DIFF+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   case $DIFF in
6554   [\\/]* | ?:[\\/]*)
6555   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6556   ;;
6557   *)
6558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563     for ac_exec_ext in '' $ac_executable_extensions; do
6564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570   done
6571 IFS=$as_save_IFS
6572 
6573   ;;
6574 esac
6575 fi
6576 DIFF=$ac_cv_path_DIFF
6577 if test -n "$DIFF"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6579 $as_echo "$DIFF" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584 
6585 
6586   test -n "$DIFF" && break
6587 done
6588 
6589   else
6590     # The variable is set, but is it from the command line or the environment?
6591 
6592     # Try to remove the string !DIFF! from our list.
6593     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6594     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6595       # If it failed, the variable was not from the command line. Ignore it,
6596       # but warn the user (except for BASH, which is always set by the calling BASH).
6597       if test "xDIFF" != xBASH; then
6598         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6599 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6600       fi
6601       # Try to locate tool using the code snippet
6602       for ac_prog in gdiff diff
6603 do
6604   # Extract the first word of "$ac_prog", so it can be a program name with args.
6605 set dummy $ac_prog; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_path_DIFF+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   case $DIFF in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621     for ac_exec_ext in '' $ac_executable_extensions; do
6622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628   done
6629 IFS=$as_save_IFS
6630 
6631   ;;
6632 esac
6633 fi
6634 DIFF=$ac_cv_path_DIFF
6635 if test -n "$DIFF"; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6637 $as_echo "$DIFF" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642 
6643 
6644   test -n "$DIFF" && break
6645 done
6646 
6647     else
6648       # If it succeeded, then it was overridden by the user. We will use it
6649       # for the tool.
6650 
6651       # First remove it from the list of overridden variables, so we can test
6652       # for unknown variables in the end.
6653       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6654 
6655       # Check if we try to supply an empty value
6656       if test "x$DIFF" = x; then
6657         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6658 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6659         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6660 $as_echo_n "checking for DIFF... " >&6; }
6661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6662 $as_echo "disabled" >&6; }
6663       else
6664         # Check if the provided tool contains a complete path.
6665         tool_specified="$DIFF"
6666         tool_basename="${tool_specified##*/}"
6667         if test "x$tool_basename" = "x$tool_specified"; then
6668           # A command without a complete path is provided, search $PATH.
6669           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6670 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6671           # Extract the first word of "$tool_basename", so it can be a program name with args.
6672 set dummy $tool_basename; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if ${ac_cv_path_DIFF+:} false; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   case $DIFF in
6679   [\\/]* | ?:[\\/]*)
6680   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6681   ;;
6682   *)
6683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697 
6698   ;;
6699 esac
6700 fi
6701 DIFF=$ac_cv_path_DIFF
6702 if test -n "$DIFF"; then
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6704 $as_echo "$DIFF" >&6; }
6705 else
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709 
6710 
6711           if test "x$DIFF" = x; then
6712             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6713           fi
6714         else
6715           # Otherwise we believe it is a complete path. Use it as it is.
6716           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6717 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6718           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6719 $as_echo_n "checking for DIFF... " >&6; }
6720           if test ! -x "$tool_specified"; then
6721             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6722 $as_echo "not found" >&6; }
6723             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6724           fi
6725           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6726 $as_echo "$tool_specified" >&6; }
6727         fi
6728       fi
6729     fi
6730 
6731   fi
6732 
6733 
6734 
6735   if test "x$DIFF" = x; then
6736     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6737   fi
6738 
6739 
6740 
6741 
6742 
6743   # Publish this variable in the help.
6744 
6745 
6746   if [ -z "${DIRNAME+x}" ]; then
6747     # The variable is not set by user, try to locate tool using the code snippet
6748     for ac_prog in dirname
6749 do
6750   # Extract the first word of "$ac_prog", so it can be a program name with args.
6751 set dummy $ac_prog; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_path_DIRNAME+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   case $DIRNAME in
6758   [\\/]* | ?:[\\/]*)
6759   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6760   ;;
6761   *)
6762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776 
6777   ;;
6778 esac
6779 fi
6780 DIRNAME=$ac_cv_path_DIRNAME
6781 if test -n "$DIRNAME"; then
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6783 $as_echo "$DIRNAME" >&6; }
6784 else
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788 
6789 
6790   test -n "$DIRNAME" && break
6791 done
6792 
6793   else
6794     # The variable is set, but is it from the command line or the environment?
6795 
6796     # Try to remove the string !DIRNAME! from our list.
6797     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6798     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6799       # If it failed, the variable was not from the command line. Ignore it,
6800       # but warn the user (except for BASH, which is always set by the calling BASH).
6801       if test "xDIRNAME" != xBASH; then
6802         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6803 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6804       fi
6805       # Try to locate tool using the code snippet
6806       for ac_prog in dirname
6807 do
6808   # Extract the first word of "$ac_prog", so it can be a program name with args.
6809 set dummy $ac_prog; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_path_DIRNAME+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   case $DIRNAME in
6816   [\\/]* | ?:[\\/]*)
6817   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6818   ;;
6819   *)
6820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825     for ac_exec_ext in '' $ac_executable_extensions; do
6826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832   done
6833 IFS=$as_save_IFS
6834 
6835   ;;
6836 esac
6837 fi
6838 DIRNAME=$ac_cv_path_DIRNAME
6839 if test -n "$DIRNAME"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6841 $as_echo "$DIRNAME" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846 
6847 
6848   test -n "$DIRNAME" && break
6849 done
6850 
6851     else
6852       # If it succeeded, then it was overridden by the user. We will use it
6853       # for the tool.
6854 
6855       # First remove it from the list of overridden variables, so we can test
6856       # for unknown variables in the end.
6857       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6858 
6859       # Check if we try to supply an empty value
6860       if test "x$DIRNAME" = x; then
6861         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6862 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6863         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6864 $as_echo_n "checking for DIRNAME... " >&6; }
6865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6866 $as_echo "disabled" >&6; }
6867       else
6868         # Check if the provided tool contains a complete path.
6869         tool_specified="$DIRNAME"
6870         tool_basename="${tool_specified##*/}"
6871         if test "x$tool_basename" = "x$tool_specified"; then
6872           # A command without a complete path is provided, search $PATH.
6873           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6874 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6875           # Extract the first word of "$tool_basename", so it can be a program name with args.
6876 set dummy $tool_basename; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_path_DIRNAME+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   case $DIRNAME in
6883   [\\/]* | ?:[\\/]*)
6884   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6885   ;;
6886   *)
6887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901 
6902   ;;
6903 esac
6904 fi
6905 DIRNAME=$ac_cv_path_DIRNAME
6906 if test -n "$DIRNAME"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6908 $as_echo "$DIRNAME" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913 
6914 
6915           if test "x$DIRNAME" = x; then
6916             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6917           fi
6918         else
6919           # Otherwise we believe it is a complete path. Use it as it is.
6920           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6921 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6922           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6923 $as_echo_n "checking for DIRNAME... " >&6; }
6924           if test ! -x "$tool_specified"; then
6925             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6926 $as_echo "not found" >&6; }
6927             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6928           fi
6929           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6930 $as_echo "$tool_specified" >&6; }
6931         fi
6932       fi
6933     fi
6934 
6935   fi
6936 
6937 
6938 
6939   if test "x$DIRNAME" = x; then
6940     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6941   fi
6942 
6943 
6944 
6945 
6946 
6947   # Publish this variable in the help.
6948 
6949 
6950   if [ -z "${ECHO+x}" ]; then
6951     # The variable is not set by user, try to locate tool using the code snippet
6952     for ac_prog in echo
6953 do
6954   # Extract the first word of "$ac_prog", so it can be a program name with args.
6955 set dummy $ac_prog; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_path_ECHO+:} false; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   case $ECHO in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971     for ac_exec_ext in '' $ac_executable_extensions; do
6972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978   done
6979 IFS=$as_save_IFS
6980 
6981   ;;
6982 esac
6983 fi
6984 ECHO=$ac_cv_path_ECHO
6985 if test -n "$ECHO"; then
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6987 $as_echo "$ECHO" >&6; }
6988 else
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992 
6993 
6994   test -n "$ECHO" && break
6995 done
6996 
6997   else
6998     # The variable is set, but is it from the command line or the environment?
6999 
7000     # Try to remove the string !ECHO! from our list.
7001     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7002     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7003       # If it failed, the variable was not from the command line. Ignore it,
7004       # but warn the user (except for BASH, which is always set by the calling BASH).
7005       if test "xECHO" != xBASH; then
7006         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7007 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7008       fi
7009       # Try to locate tool using the code snippet
7010       for ac_prog in echo
7011 do
7012   # Extract the first word of "$ac_prog", so it can be a program name with args.
7013 set dummy $ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_path_ECHO+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   case $ECHO in
7020   [\\/]* | ?:[\\/]*)
7021   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7022   ;;
7023   *)
7024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029     for ac_exec_ext in '' $ac_executable_extensions; do
7030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036   done
7037 IFS=$as_save_IFS
7038 
7039   ;;
7040 esac
7041 fi
7042 ECHO=$ac_cv_path_ECHO
7043 if test -n "$ECHO"; then
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7045 $as_echo "$ECHO" >&6; }
7046 else
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050 
7051 
7052   test -n "$ECHO" && break
7053 done
7054 
7055     else
7056       # If it succeeded, then it was overridden by the user. We will use it
7057       # for the tool.
7058 
7059       # First remove it from the list of overridden variables, so we can test
7060       # for unknown variables in the end.
7061       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7062 
7063       # Check if we try to supply an empty value
7064       if test "x$ECHO" = x; then
7065         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7066 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7067         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7068 $as_echo_n "checking for ECHO... " >&6; }
7069         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7070 $as_echo "disabled" >&6; }
7071       else
7072         # Check if the provided tool contains a complete path.
7073         tool_specified="$ECHO"
7074         tool_basename="${tool_specified##*/}"
7075         if test "x$tool_basename" = "x$tool_specified"; then
7076           # A command without a complete path is provided, search $PATH.
7077           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7078 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7079           # Extract the first word of "$tool_basename", so it can be a program name with args.
7080 set dummy $tool_basename; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_path_ECHO+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   case $ECHO in
7087   [\\/]* | ?:[\\/]*)
7088   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7089   ;;
7090   *)
7091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096     for ac_exec_ext in '' $ac_executable_extensions; do
7097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103   done
7104 IFS=$as_save_IFS
7105 
7106   ;;
7107 esac
7108 fi
7109 ECHO=$ac_cv_path_ECHO
7110 if test -n "$ECHO"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7112 $as_echo "$ECHO" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117 
7118 
7119           if test "x$ECHO" = x; then
7120             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7121           fi
7122         else
7123           # Otherwise we believe it is a complete path. Use it as it is.
7124           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7125 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7126           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7127 $as_echo_n "checking for ECHO... " >&6; }
7128           if test ! -x "$tool_specified"; then
7129             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7130 $as_echo "not found" >&6; }
7131             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7132           fi
7133           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7134 $as_echo "$tool_specified" >&6; }
7135         fi
7136       fi
7137     fi
7138 
7139   fi
7140 
7141 
7142 
7143   if test "x$ECHO" = x; then
7144     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7145   fi
7146 
7147 
7148 
7149 
7150 
7151   # Publish this variable in the help.
7152 
7153 
7154   if [ -z "${EXPR+x}" ]; then
7155     # The variable is not set by user, try to locate tool using the code snippet
7156     for ac_prog in expr
7157 do
7158   # Extract the first word of "$ac_prog", so it can be a program name with args.
7159 set dummy $ac_prog; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_path_EXPR+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   case $EXPR in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_exec_ext in '' $ac_executable_extensions; do
7176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182   done
7183 IFS=$as_save_IFS
7184 
7185   ;;
7186 esac
7187 fi
7188 EXPR=$ac_cv_path_EXPR
7189 if test -n "$EXPR"; then
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7191 $as_echo "$EXPR" >&6; }
7192 else
7193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196 
7197 
7198   test -n "$EXPR" && break
7199 done
7200 
7201   else
7202     # The variable is set, but is it from the command line or the environment?
7203 
7204     # Try to remove the string !EXPR! from our list.
7205     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7206     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7207       # If it failed, the variable was not from the command line. Ignore it,
7208       # but warn the user (except for BASH, which is always set by the calling BASH).
7209       if test "xEXPR" != xBASH; then
7210         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7211 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7212       fi
7213       # Try to locate tool using the code snippet
7214       for ac_prog in expr
7215 do
7216   # Extract the first word of "$ac_prog", so it can be a program name with args.
7217 set dummy $ac_prog; ac_word=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if ${ac_cv_path_EXPR+:} false; then :
7221   $as_echo_n "(cached) " >&6
7222 else
7223   case $EXPR in
7224   [\\/]* | ?:[\\/]*)
7225   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7226   ;;
7227   *)
7228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233     for ac_exec_ext in '' $ac_executable_extensions; do
7234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240   done
7241 IFS=$as_save_IFS
7242 
7243   ;;
7244 esac
7245 fi
7246 EXPR=$ac_cv_path_EXPR
7247 if test -n "$EXPR"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7249 $as_echo "$EXPR" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254 
7255 
7256   test -n "$EXPR" && break
7257 done
7258 
7259     else
7260       # If it succeeded, then it was overridden by the user. We will use it
7261       # for the tool.
7262 
7263       # First remove it from the list of overridden variables, so we can test
7264       # for unknown variables in the end.
7265       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7266 
7267       # Check if we try to supply an empty value
7268       if test "x$EXPR" = x; then
7269         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7270 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7272 $as_echo_n "checking for EXPR... " >&6; }
7273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7274 $as_echo "disabled" >&6; }
7275       else
7276         # Check if the provided tool contains a complete path.
7277         tool_specified="$EXPR"
7278         tool_basename="${tool_specified##*/}"
7279         if test "x$tool_basename" = "x$tool_specified"; then
7280           # A command without a complete path is provided, search $PATH.
7281           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7282 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7283           # Extract the first word of "$tool_basename", so it can be a program name with args.
7284 set dummy $tool_basename; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_path_EXPR+:} false; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   case $EXPR in
7291   [\\/]* | ?:[\\/]*)
7292   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7293   ;;
7294   *)
7295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307   done
7308 IFS=$as_save_IFS
7309 
7310   ;;
7311 esac
7312 fi
7313 EXPR=$ac_cv_path_EXPR
7314 if test -n "$EXPR"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7316 $as_echo "$EXPR" >&6; }
7317 else
7318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321 
7322 
7323           if test "x$EXPR" = x; then
7324             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7325           fi
7326         else
7327           # Otherwise we believe it is a complete path. Use it as it is.
7328           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7329 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7330           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7331 $as_echo_n "checking for EXPR... " >&6; }
7332           if test ! -x "$tool_specified"; then
7333             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7334 $as_echo "not found" >&6; }
7335             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7336           fi
7337           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7338 $as_echo "$tool_specified" >&6; }
7339         fi
7340       fi
7341     fi
7342 
7343   fi
7344 
7345 
7346 
7347   if test "x$EXPR" = x; then
7348     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7349   fi
7350 
7351 
7352 
7353 
7354 
7355   # Publish this variable in the help.
7356 
7357 
7358   if [ -z "${FILE+x}" ]; then
7359     # The variable is not set by user, try to locate tool using the code snippet
7360     for ac_prog in file
7361 do
7362   # Extract the first word of "$ac_prog", so it can be a program name with args.
7363 set dummy $ac_prog; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_path_FILE+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   case $FILE in
7370   [\\/]* | ?:[\\/]*)
7371   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7372   ;;
7373   *)
7374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388 
7389   ;;
7390 esac
7391 fi
7392 FILE=$ac_cv_path_FILE
7393 if test -n "$FILE"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7395 $as_echo "$FILE" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400 
7401 
7402   test -n "$FILE" && break
7403 done
7404 
7405   else
7406     # The variable is set, but is it from the command line or the environment?
7407 
7408     # Try to remove the string !FILE! from our list.
7409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7411       # If it failed, the variable was not from the command line. Ignore it,
7412       # but warn the user (except for BASH, which is always set by the calling BASH).
7413       if test "xFILE" != xBASH; then
7414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7415 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7416       fi
7417       # Try to locate tool using the code snippet
7418       for ac_prog in file
7419 do
7420   # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_path_FILE+:} false; then :
7425   $as_echo_n "(cached) " >&6
7426 else
7427   case $FILE in
7428   [\\/]* | ?:[\\/]*)
7429   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7430   ;;
7431   *)
7432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444   done
7445 IFS=$as_save_IFS
7446 
7447   ;;
7448 esac
7449 fi
7450 FILE=$ac_cv_path_FILE
7451 if test -n "$FILE"; then
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7453 $as_echo "$FILE" >&6; }
7454 else
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458 
7459 
7460   test -n "$FILE" && break
7461 done
7462 
7463     else
7464       # If it succeeded, then it was overridden by the user. We will use it
7465       # for the tool.
7466 
7467       # First remove it from the list of overridden variables, so we can test
7468       # for unknown variables in the end.
7469       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7470 
7471       # Check if we try to supply an empty value
7472       if test "x$FILE" = x; then
7473         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7474 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7476 $as_echo_n "checking for FILE... " >&6; }
7477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7478 $as_echo "disabled" >&6; }
7479       else
7480         # Check if the provided tool contains a complete path.
7481         tool_specified="$FILE"
7482         tool_basename="${tool_specified##*/}"
7483         if test "x$tool_basename" = "x$tool_specified"; then
7484           # A command without a complete path is provided, search $PATH.
7485           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7486 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7487           # Extract the first word of "$tool_basename", so it can be a program name with args.
7488 set dummy $tool_basename; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_path_FILE+:} false; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   case $FILE in
7495   [\\/]* | ?:[\\/]*)
7496   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7497   ;;
7498   *)
7499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502   IFS=$as_save_IFS
7503   test -z "$as_dir" && as_dir=.
7504     for ac_exec_ext in '' $ac_executable_extensions; do
7505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508     break 2
7509   fi
7510 done
7511   done
7512 IFS=$as_save_IFS
7513 
7514   ;;
7515 esac
7516 fi
7517 FILE=$ac_cv_path_FILE
7518 if test -n "$FILE"; then
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7520 $as_echo "$FILE" >&6; }
7521 else
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525 
7526 
7527           if test "x$FILE" = x; then
7528             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7529           fi
7530         else
7531           # Otherwise we believe it is a complete path. Use it as it is.
7532           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7533 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7534           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7535 $as_echo_n "checking for FILE... " >&6; }
7536           if test ! -x "$tool_specified"; then
7537             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7538 $as_echo "not found" >&6; }
7539             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7540           fi
7541           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7542 $as_echo "$tool_specified" >&6; }
7543         fi
7544       fi
7545     fi
7546 
7547   fi
7548 
7549 
7550 
7551   if test "x$FILE" = x; then
7552     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7553   fi
7554 
7555 
7556 
7557 
7558 
7559   # Publish this variable in the help.
7560 
7561 
7562   if [ -z "${FIND+x}" ]; then
7563     # The variable is not set by user, try to locate tool using the code snippet
7564     for ac_prog in find
7565 do
7566   # Extract the first word of "$ac_prog", so it can be a program name with args.
7567 set dummy $ac_prog; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_path_FIND+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   case $FIND in
7574   [\\/]* | ?:[\\/]*)
7575   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7576   ;;
7577   *)
7578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592 
7593   ;;
7594 esac
7595 fi
7596 FIND=$ac_cv_path_FIND
7597 if test -n "$FIND"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7599 $as_echo "$FIND" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604 
7605 
7606   test -n "$FIND" && break
7607 done
7608 
7609   else
7610     # The variable is set, but is it from the command line or the environment?
7611 
7612     # Try to remove the string !FIND! from our list.
7613     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7614     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7615       # If it failed, the variable was not from the command line. Ignore it,
7616       # but warn the user (except for BASH, which is always set by the calling BASH).
7617       if test "xFIND" != xBASH; then
7618         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7619 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7620       fi
7621       # Try to locate tool using the code snippet
7622       for ac_prog in find
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_path_FIND+:} false; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   case $FIND in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641     for ac_exec_ext in '' $ac_executable_extensions; do
7642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648   done
7649 IFS=$as_save_IFS
7650 
7651   ;;
7652 esac
7653 fi
7654 FIND=$ac_cv_path_FIND
7655 if test -n "$FIND"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7657 $as_echo "$FIND" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662 
7663 
7664   test -n "$FIND" && break
7665 done
7666 
7667     else
7668       # If it succeeded, then it was overridden by the user. We will use it
7669       # for the tool.
7670 
7671       # First remove it from the list of overridden variables, so we can test
7672       # for unknown variables in the end.
7673       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7674 
7675       # Check if we try to supply an empty value
7676       if test "x$FIND" = x; then
7677         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7678 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7680 $as_echo_n "checking for FIND... " >&6; }
7681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7682 $as_echo "disabled" >&6; }
7683       else
7684         # Check if the provided tool contains a complete path.
7685         tool_specified="$FIND"
7686         tool_basename="${tool_specified##*/}"
7687         if test "x$tool_basename" = "x$tool_specified"; then
7688           # A command without a complete path is provided, search $PATH.
7689           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7690 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7691           # Extract the first word of "$tool_basename", so it can be a program name with args.
7692 set dummy $tool_basename; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_path_FIND+:} false; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   case $FIND in
7699   [\\/]* | ?:[\\/]*)
7700   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7701   ;;
7702   *)
7703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706   IFS=$as_save_IFS
7707   test -z "$as_dir" && as_dir=.
7708     for ac_exec_ext in '' $ac_executable_extensions; do
7709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712     break 2
7713   fi
7714 done
7715   done
7716 IFS=$as_save_IFS
7717 
7718   ;;
7719 esac
7720 fi
7721 FIND=$ac_cv_path_FIND
7722 if test -n "$FIND"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7724 $as_echo "$FIND" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729 
7730 
7731           if test "x$FIND" = x; then
7732             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7733           fi
7734         else
7735           # Otherwise we believe it is a complete path. Use it as it is.
7736           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7737 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7738           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7739 $as_echo_n "checking for FIND... " >&6; }
7740           if test ! -x "$tool_specified"; then
7741             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7742 $as_echo "not found" >&6; }
7743             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7744           fi
7745           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7746 $as_echo "$tool_specified" >&6; }
7747         fi
7748       fi
7749     fi
7750 
7751   fi
7752 
7753 
7754 
7755   if test "x$FIND" = x; then
7756     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7757   fi
7758 
7759 
7760 
7761 
7762 
7763   # Publish this variable in the help.
7764 
7765 
7766   if [ -z "${HEAD+x}" ]; then
7767     # The variable is not set by user, try to locate tool using the code snippet
7768     for ac_prog in head
7769 do
7770   # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_path_HEAD+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   case $HEAD in
7778   [\\/]* | ?:[\\/]*)
7779   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7780   ;;
7781   *)
7782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787     for ac_exec_ext in '' $ac_executable_extensions; do
7788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794   done
7795 IFS=$as_save_IFS
7796 
7797   ;;
7798 esac
7799 fi
7800 HEAD=$ac_cv_path_HEAD
7801 if test -n "$HEAD"; then
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7803 $as_echo "$HEAD" >&6; }
7804 else
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808 
7809 
7810   test -n "$HEAD" && break
7811 done
7812 
7813   else
7814     # The variable is set, but is it from the command line or the environment?
7815 
7816     # Try to remove the string !HEAD! from our list.
7817     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7818     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7819       # If it failed, the variable was not from the command line. Ignore it,
7820       # but warn the user (except for BASH, which is always set by the calling BASH).
7821       if test "xHEAD" != xBASH; then
7822         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7823 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7824       fi
7825       # Try to locate tool using the code snippet
7826       for ac_prog in head
7827 do
7828   # Extract the first word of "$ac_prog", so it can be a program name with args.
7829 set dummy $ac_prog; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_path_HEAD+:} false; then :
7833   $as_echo_n "(cached) " >&6
7834 else
7835   case $HEAD in
7836   [\\/]* | ?:[\\/]*)
7837   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7838   ;;
7839   *)
7840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7842 do
7843   IFS=$as_save_IFS
7844   test -z "$as_dir" && as_dir=.
7845     for ac_exec_ext in '' $ac_executable_extensions; do
7846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849     break 2
7850   fi
7851 done
7852   done
7853 IFS=$as_save_IFS
7854 
7855   ;;
7856 esac
7857 fi
7858 HEAD=$ac_cv_path_HEAD
7859 if test -n "$HEAD"; then
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7861 $as_echo "$HEAD" >&6; }
7862 else
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866 
7867 
7868   test -n "$HEAD" && break
7869 done
7870 
7871     else
7872       # If it succeeded, then it was overridden by the user. We will use it
7873       # for the tool.
7874 
7875       # First remove it from the list of overridden variables, so we can test
7876       # for unknown variables in the end.
7877       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7878 
7879       # Check if we try to supply an empty value
7880       if test "x$HEAD" = x; then
7881         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7882 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7884 $as_echo_n "checking for HEAD... " >&6; }
7885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7886 $as_echo "disabled" >&6; }
7887       else
7888         # Check if the provided tool contains a complete path.
7889         tool_specified="$HEAD"
7890         tool_basename="${tool_specified##*/}"
7891         if test "x$tool_basename" = "x$tool_specified"; then
7892           # A command without a complete path is provided, search $PATH.
7893           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7894 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7895           # Extract the first word of "$tool_basename", so it can be a program name with args.
7896 set dummy $tool_basename; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_path_HEAD+:} false; then :
7900   $as_echo_n "(cached) " >&6
7901 else
7902   case $HEAD in
7903   [\\/]* | ?:[\\/]*)
7904   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7905   ;;
7906   *)
7907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921 
7922   ;;
7923 esac
7924 fi
7925 HEAD=$ac_cv_path_HEAD
7926 if test -n "$HEAD"; then
7927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7928 $as_echo "$HEAD" >&6; }
7929 else
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933 
7934 
7935           if test "x$HEAD" = x; then
7936             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7937           fi
7938         else
7939           # Otherwise we believe it is a complete path. Use it as it is.
7940           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7941 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7942           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7943 $as_echo_n "checking for HEAD... " >&6; }
7944           if test ! -x "$tool_specified"; then
7945             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7946 $as_echo "not found" >&6; }
7947             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7948           fi
7949           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7950 $as_echo "$tool_specified" >&6; }
7951         fi
7952       fi
7953     fi
7954 
7955   fi
7956 
7957 
7958 
7959   if test "x$HEAD" = x; then
7960     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7961   fi
7962 
7963 
7964 
7965 
7966 
7967   # Publish this variable in the help.
7968 
7969 
7970   if [ -z "${LN+x}" ]; then
7971     # The variable is not set by user, try to locate tool using the code snippet
7972     for ac_prog in ln
7973 do
7974   # Extract the first word of "$ac_prog", so it can be a program name with args.
7975 set dummy $ac_prog; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_path_LN+:} false; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   case $LN in
7982   [\\/]* | ?:[\\/]*)
7983   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7984   ;;
7985   *)
7986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991     for ac_exec_ext in '' $ac_executable_extensions; do
7992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995     break 2
7996   fi
7997 done
7998   done
7999 IFS=$as_save_IFS
8000 
8001   ;;
8002 esac
8003 fi
8004 LN=$ac_cv_path_LN
8005 if test -n "$LN"; then
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8007 $as_echo "$LN" >&6; }
8008 else
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012 
8013 
8014   test -n "$LN" && break
8015 done
8016 
8017   else
8018     # The variable is set, but is it from the command line or the environment?
8019 
8020     # Try to remove the string !LN! from our list.
8021     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8022     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8023       # If it failed, the variable was not from the command line. Ignore it,
8024       # but warn the user (except for BASH, which is always set by the calling BASH).
8025       if test "xLN" != xBASH; then
8026         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8027 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8028       fi
8029       # Try to locate tool using the code snippet
8030       for ac_prog in ln
8031 do
8032   # Extract the first word of "$ac_prog", so it can be a program name with args.
8033 set dummy $ac_prog; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_path_LN+:} false; then :
8037   $as_echo_n "(cached) " >&6
8038 else
8039   case $LN in
8040   [\\/]* | ?:[\\/]*)
8041   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8042   ;;
8043   *)
8044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047   IFS=$as_save_IFS
8048   test -z "$as_dir" && as_dir=.
8049     for ac_exec_ext in '' $ac_executable_extensions; do
8050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053     break 2
8054   fi
8055 done
8056   done
8057 IFS=$as_save_IFS
8058 
8059   ;;
8060 esac
8061 fi
8062 LN=$ac_cv_path_LN
8063 if test -n "$LN"; then
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8065 $as_echo "$LN" >&6; }
8066 else
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8069 fi
8070 
8071 
8072   test -n "$LN" && break
8073 done
8074 
8075     else
8076       # If it succeeded, then it was overridden by the user. We will use it
8077       # for the tool.
8078 
8079       # First remove it from the list of overridden variables, so we can test
8080       # for unknown variables in the end.
8081       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8082 
8083       # Check if we try to supply an empty value
8084       if test "x$LN" = x; then
8085         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8086 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8088 $as_echo_n "checking for LN... " >&6; }
8089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8090 $as_echo "disabled" >&6; }
8091       else
8092         # Check if the provided tool contains a complete path.
8093         tool_specified="$LN"
8094         tool_basename="${tool_specified##*/}"
8095         if test "x$tool_basename" = "x$tool_specified"; then
8096           # A command without a complete path is provided, search $PATH.
8097           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8098 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8099           # Extract the first word of "$tool_basename", so it can be a program name with args.
8100 set dummy $tool_basename; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if ${ac_cv_path_LN+:} false; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   case $LN in
8107   [\\/]* | ?:[\\/]*)
8108   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8109   ;;
8110   *)
8111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8113 do
8114   IFS=$as_save_IFS
8115   test -z "$as_dir" && as_dir=.
8116     for ac_exec_ext in '' $ac_executable_extensions; do
8117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120     break 2
8121   fi
8122 done
8123   done
8124 IFS=$as_save_IFS
8125 
8126   ;;
8127 esac
8128 fi
8129 LN=$ac_cv_path_LN
8130 if test -n "$LN"; then
8131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8132 $as_echo "$LN" >&6; }
8133 else
8134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 fi
8137 
8138 
8139           if test "x$LN" = x; then
8140             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8141           fi
8142         else
8143           # Otherwise we believe it is a complete path. Use it as it is.
8144           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8145 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8146           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8147 $as_echo_n "checking for LN... " >&6; }
8148           if test ! -x "$tool_specified"; then
8149             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8150 $as_echo "not found" >&6; }
8151             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8152           fi
8153           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8154 $as_echo "$tool_specified" >&6; }
8155         fi
8156       fi
8157     fi
8158 
8159   fi
8160 
8161 
8162 
8163   if test "x$LN" = x; then
8164     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8165   fi
8166 
8167 
8168 
8169 
8170 
8171   # Publish this variable in the help.
8172 
8173 
8174   if [ -z "${LS+x}" ]; then
8175     # The variable is not set by user, try to locate tool using the code snippet
8176     for ac_prog in ls
8177 do
8178   # Extract the first word of "$ac_prog", so it can be a program name with args.
8179 set dummy $ac_prog; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_path_LS+:} false; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185   case $LS in
8186   [\\/]* | ?:[\\/]*)
8187   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8188   ;;
8189   *)
8190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8192 do
8193   IFS=$as_save_IFS
8194   test -z "$as_dir" && as_dir=.
8195     for ac_exec_ext in '' $ac_executable_extensions; do
8196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199     break 2
8200   fi
8201 done
8202   done
8203 IFS=$as_save_IFS
8204 
8205   ;;
8206 esac
8207 fi
8208 LS=$ac_cv_path_LS
8209 if test -n "$LS"; then
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8211 $as_echo "$LS" >&6; }
8212 else
8213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8215 fi
8216 
8217 
8218   test -n "$LS" && break
8219 done
8220 
8221   else
8222     # The variable is set, but is it from the command line or the environment?
8223 
8224     # Try to remove the string !LS! from our list.
8225     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8226     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8227       # If it failed, the variable was not from the command line. Ignore it,
8228       # but warn the user (except for BASH, which is always set by the calling BASH).
8229       if test "xLS" != xBASH; then
8230         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8231 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8232       fi
8233       # Try to locate tool using the code snippet
8234       for ac_prog in ls
8235 do
8236   # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_path_LS+:} false; then :
8241   $as_echo_n "(cached) " >&6
8242 else
8243   case $LS in
8244   [\\/]* | ?:[\\/]*)
8245   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8246   ;;
8247   *)
8248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8250 do
8251   IFS=$as_save_IFS
8252   test -z "$as_dir" && as_dir=.
8253     for ac_exec_ext in '' $ac_executable_extensions; do
8254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257     break 2
8258   fi
8259 done
8260   done
8261 IFS=$as_save_IFS
8262 
8263   ;;
8264 esac
8265 fi
8266 LS=$ac_cv_path_LS
8267 if test -n "$LS"; then
8268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8269 $as_echo "$LS" >&6; }
8270 else
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274 
8275 
8276   test -n "$LS" && break
8277 done
8278 
8279     else
8280       # If it succeeded, then it was overridden by the user. We will use it
8281       # for the tool.
8282 
8283       # First remove it from the list of overridden variables, so we can test
8284       # for unknown variables in the end.
8285       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8286 
8287       # Check if we try to supply an empty value
8288       if test "x$LS" = x; then
8289         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8290 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8291         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8292 $as_echo_n "checking for LS... " >&6; }
8293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8294 $as_echo "disabled" >&6; }
8295       else
8296         # Check if the provided tool contains a complete path.
8297         tool_specified="$LS"
8298         tool_basename="${tool_specified##*/}"
8299         if test "x$tool_basename" = "x$tool_specified"; then
8300           # A command without a complete path is provided, search $PATH.
8301           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8302 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8303           # Extract the first word of "$tool_basename", so it can be a program name with args.
8304 set dummy $tool_basename; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_path_LS+:} false; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   case $LS in
8311   [\\/]* | ?:[\\/]*)
8312   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8313   ;;
8314   *)
8315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329 
8330   ;;
8331 esac
8332 fi
8333 LS=$ac_cv_path_LS
8334 if test -n "$LS"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8336 $as_echo "$LS" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341 
8342 
8343           if test "x$LS" = x; then
8344             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8345           fi
8346         else
8347           # Otherwise we believe it is a complete path. Use it as it is.
8348           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8349 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8350           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8351 $as_echo_n "checking for LS... " >&6; }
8352           if test ! -x "$tool_specified"; then
8353             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8354 $as_echo "not found" >&6; }
8355             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8356           fi
8357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8358 $as_echo "$tool_specified" >&6; }
8359         fi
8360       fi
8361     fi
8362 
8363   fi
8364 
8365 
8366 
8367   if test "x$LS" = x; then
8368     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8369   fi
8370 
8371 
8372 
8373 
8374 
8375   # Publish this variable in the help.
8376 
8377 
8378   if [ -z "${MKDIR+x}" ]; then
8379     # The variable is not set by user, try to locate tool using the code snippet
8380     for ac_prog in mkdir
8381 do
8382   # Extract the first word of "$ac_prog", so it can be a program name with args.
8383 set dummy $ac_prog; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_path_MKDIR+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   case $MKDIR in
8390   [\\/]* | ?:[\\/]*)
8391   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8392   ;;
8393   *)
8394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397   IFS=$as_save_IFS
8398   test -z "$as_dir" && as_dir=.
8399     for ac_exec_ext in '' $ac_executable_extensions; do
8400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403     break 2
8404   fi
8405 done
8406   done
8407 IFS=$as_save_IFS
8408 
8409   ;;
8410 esac
8411 fi
8412 MKDIR=$ac_cv_path_MKDIR
8413 if test -n "$MKDIR"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8415 $as_echo "$MKDIR" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420 
8421 
8422   test -n "$MKDIR" && break
8423 done
8424 
8425   else
8426     # The variable is set, but is it from the command line or the environment?
8427 
8428     # Try to remove the string !MKDIR! from our list.
8429     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8430     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8431       # If it failed, the variable was not from the command line. Ignore it,
8432       # but warn the user (except for BASH, which is always set by the calling BASH).
8433       if test "xMKDIR" != xBASH; then
8434         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8435 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8436       fi
8437       # Try to locate tool using the code snippet
8438       for ac_prog in mkdir
8439 do
8440   # Extract the first word of "$ac_prog", so it can be a program name with args.
8441 set dummy $ac_prog; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if ${ac_cv_path_MKDIR+:} false; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   case $MKDIR in
8448   [\\/]* | ?:[\\/]*)
8449   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8450   ;;
8451   *)
8452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8454 do
8455   IFS=$as_save_IFS
8456   test -z "$as_dir" && as_dir=.
8457     for ac_exec_ext in '' $ac_executable_extensions; do
8458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461     break 2
8462   fi
8463 done
8464   done
8465 IFS=$as_save_IFS
8466 
8467   ;;
8468 esac
8469 fi
8470 MKDIR=$ac_cv_path_MKDIR
8471 if test -n "$MKDIR"; then
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8473 $as_echo "$MKDIR" >&6; }
8474 else
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478 
8479 
8480   test -n "$MKDIR" && break
8481 done
8482 
8483     else
8484       # If it succeeded, then it was overridden by the user. We will use it
8485       # for the tool.
8486 
8487       # First remove it from the list of overridden variables, so we can test
8488       # for unknown variables in the end.
8489       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8490 
8491       # Check if we try to supply an empty value
8492       if test "x$MKDIR" = x; then
8493         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8494 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8496 $as_echo_n "checking for MKDIR... " >&6; }
8497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8498 $as_echo "disabled" >&6; }
8499       else
8500         # Check if the provided tool contains a complete path.
8501         tool_specified="$MKDIR"
8502         tool_basename="${tool_specified##*/}"
8503         if test "x$tool_basename" = "x$tool_specified"; then
8504           # A command without a complete path is provided, search $PATH.
8505           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8506 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8507           # Extract the first word of "$tool_basename", so it can be a program name with args.
8508 set dummy $tool_basename; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_path_MKDIR+:} false; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   case $MKDIR in
8515   [\\/]* | ?:[\\/]*)
8516   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8517   ;;
8518   *)
8519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524     for ac_exec_ext in '' $ac_executable_extensions; do
8525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531   done
8532 IFS=$as_save_IFS
8533 
8534   ;;
8535 esac
8536 fi
8537 MKDIR=$ac_cv_path_MKDIR
8538 if test -n "$MKDIR"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8540 $as_echo "$MKDIR" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545 
8546 
8547           if test "x$MKDIR" = x; then
8548             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8549           fi
8550         else
8551           # Otherwise we believe it is a complete path. Use it as it is.
8552           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8553 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8554           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8555 $as_echo_n "checking for MKDIR... " >&6; }
8556           if test ! -x "$tool_specified"; then
8557             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8558 $as_echo "not found" >&6; }
8559             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8560           fi
8561           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8562 $as_echo "$tool_specified" >&6; }
8563         fi
8564       fi
8565     fi
8566 
8567   fi
8568 
8569 
8570 
8571   if test "x$MKDIR" = x; then
8572     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8573   fi
8574 
8575 
8576 
8577 
8578 
8579   # Publish this variable in the help.
8580 
8581 
8582   if [ -z "${MKTEMP+x}" ]; then
8583     # The variable is not set by user, try to locate tool using the code snippet
8584     for ac_prog in mktemp
8585 do
8586   # Extract the first word of "$ac_prog", so it can be a program name with args.
8587 set dummy $ac_prog; ac_word=$2
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589 $as_echo_n "checking for $ac_word... " >&6; }
8590 if ${ac_cv_path_MKTEMP+:} false; then :
8591   $as_echo_n "(cached) " >&6
8592 else
8593   case $MKTEMP in
8594   [\\/]* | ?:[\\/]*)
8595   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8596   ;;
8597   *)
8598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601   IFS=$as_save_IFS
8602   test -z "$as_dir" && as_dir=.
8603     for ac_exec_ext in '' $ac_executable_extensions; do
8604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607     break 2
8608   fi
8609 done
8610   done
8611 IFS=$as_save_IFS
8612 
8613   ;;
8614 esac
8615 fi
8616 MKTEMP=$ac_cv_path_MKTEMP
8617 if test -n "$MKTEMP"; then
8618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8619 $as_echo "$MKTEMP" >&6; }
8620 else
8621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624 
8625 
8626   test -n "$MKTEMP" && break
8627 done
8628 
8629   else
8630     # The variable is set, but is it from the command line or the environment?
8631 
8632     # Try to remove the string !MKTEMP! from our list.
8633     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8634     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8635       # If it failed, the variable was not from the command line. Ignore it,
8636       # but warn the user (except for BASH, which is always set by the calling BASH).
8637       if test "xMKTEMP" != xBASH; then
8638         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8639 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8640       fi
8641       # Try to locate tool using the code snippet
8642       for ac_prog in mktemp
8643 do
8644   # Extract the first word of "$ac_prog", so it can be a program name with args.
8645 set dummy $ac_prog; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_path_MKTEMP+:} false; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   case $MKTEMP in
8652   [\\/]* | ?:[\\/]*)
8653   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8654   ;;
8655   *)
8656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8658 do
8659   IFS=$as_save_IFS
8660   test -z "$as_dir" && as_dir=.
8661     for ac_exec_ext in '' $ac_executable_extensions; do
8662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8663     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665     break 2
8666   fi
8667 done
8668   done
8669 IFS=$as_save_IFS
8670 
8671   ;;
8672 esac
8673 fi
8674 MKTEMP=$ac_cv_path_MKTEMP
8675 if test -n "$MKTEMP"; then
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8677 $as_echo "$MKTEMP" >&6; }
8678 else
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682 
8683 
8684   test -n "$MKTEMP" && break
8685 done
8686 
8687     else
8688       # If it succeeded, then it was overridden by the user. We will use it
8689       # for the tool.
8690 
8691       # First remove it from the list of overridden variables, so we can test
8692       # for unknown variables in the end.
8693       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8694 
8695       # Check if we try to supply an empty value
8696       if test "x$MKTEMP" = x; then
8697         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8698 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8700 $as_echo_n "checking for MKTEMP... " >&6; }
8701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8702 $as_echo "disabled" >&6; }
8703       else
8704         # Check if the provided tool contains a complete path.
8705         tool_specified="$MKTEMP"
8706         tool_basename="${tool_specified##*/}"
8707         if test "x$tool_basename" = "x$tool_specified"; then
8708           # A command without a complete path is provided, search $PATH.
8709           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8710 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8711           # Extract the first word of "$tool_basename", so it can be a program name with args.
8712 set dummy $tool_basename; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_path_MKTEMP+:} false; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718   case $MKTEMP in
8719   [\\/]* | ?:[\\/]*)
8720   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8721   ;;
8722   *)
8723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726   IFS=$as_save_IFS
8727   test -z "$as_dir" && as_dir=.
8728     for ac_exec_ext in '' $ac_executable_extensions; do
8729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732     break 2
8733   fi
8734 done
8735   done
8736 IFS=$as_save_IFS
8737 
8738   ;;
8739 esac
8740 fi
8741 MKTEMP=$ac_cv_path_MKTEMP
8742 if test -n "$MKTEMP"; then
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8744 $as_echo "$MKTEMP" >&6; }
8745 else
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8748 fi
8749 
8750 
8751           if test "x$MKTEMP" = x; then
8752             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8753           fi
8754         else
8755           # Otherwise we believe it is a complete path. Use it as it is.
8756           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8757 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8758           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8759 $as_echo_n "checking for MKTEMP... " >&6; }
8760           if test ! -x "$tool_specified"; then
8761             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8762 $as_echo "not found" >&6; }
8763             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8764           fi
8765           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8766 $as_echo "$tool_specified" >&6; }
8767         fi
8768       fi
8769     fi
8770 
8771   fi
8772 
8773 
8774 
8775   if test "x$MKTEMP" = x; then
8776     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8777   fi
8778 
8779 
8780 
8781 
8782 
8783   # Publish this variable in the help.
8784 
8785 
8786   if [ -z "${MV+x}" ]; then
8787     # The variable is not set by user, try to locate tool using the code snippet
8788     for ac_prog in mv
8789 do
8790   # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_path_MV+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   case $MV in
8798   [\\/]* | ?:[\\/]*)
8799   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8800   ;;
8801   *)
8802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816 
8817   ;;
8818 esac
8819 fi
8820 MV=$ac_cv_path_MV
8821 if test -n "$MV"; then
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8823 $as_echo "$MV" >&6; }
8824 else
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8827 fi
8828 
8829 
8830   test -n "$MV" && break
8831 done
8832 
8833   else
8834     # The variable is set, but is it from the command line or the environment?
8835 
8836     # Try to remove the string !MV! from our list.
8837     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8838     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8839       # If it failed, the variable was not from the command line. Ignore it,
8840       # but warn the user (except for BASH, which is always set by the calling BASH).
8841       if test "xMV" != xBASH; then
8842         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8843 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8844       fi
8845       # Try to locate tool using the code snippet
8846       for ac_prog in mv
8847 do
8848   # Extract the first word of "$ac_prog", so it can be a program name with args.
8849 set dummy $ac_prog; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_path_MV+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   case $MV in
8856   [\\/]* | ?:[\\/]*)
8857   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8858   ;;
8859   *)
8860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863   IFS=$as_save_IFS
8864   test -z "$as_dir" && as_dir=.
8865     for ac_exec_ext in '' $ac_executable_extensions; do
8866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869     break 2
8870   fi
8871 done
8872   done
8873 IFS=$as_save_IFS
8874 
8875   ;;
8876 esac
8877 fi
8878 MV=$ac_cv_path_MV
8879 if test -n "$MV"; then
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8881 $as_echo "$MV" >&6; }
8882 else
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886 
8887 
8888   test -n "$MV" && break
8889 done
8890 
8891     else
8892       # If it succeeded, then it was overridden by the user. We will use it
8893       # for the tool.
8894 
8895       # First remove it from the list of overridden variables, so we can test
8896       # for unknown variables in the end.
8897       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8898 
8899       # Check if we try to supply an empty value
8900       if test "x$MV" = x; then
8901         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8902 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8903         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8904 $as_echo_n "checking for MV... " >&6; }
8905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8906 $as_echo "disabled" >&6; }
8907       else
8908         # Check if the provided tool contains a complete path.
8909         tool_specified="$MV"
8910         tool_basename="${tool_specified##*/}"
8911         if test "x$tool_basename" = "x$tool_specified"; then
8912           # A command without a complete path is provided, search $PATH.
8913           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8914 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8915           # Extract the first word of "$tool_basename", so it can be a program name with args.
8916 set dummy $tool_basename; ac_word=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if ${ac_cv_path_MV+:} false; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922   case $MV in
8923   [\\/]* | ?:[\\/]*)
8924   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8925   ;;
8926   *)
8927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930   IFS=$as_save_IFS
8931   test -z "$as_dir" && as_dir=.
8932     for ac_exec_ext in '' $ac_executable_extensions; do
8933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936     break 2
8937   fi
8938 done
8939   done
8940 IFS=$as_save_IFS
8941 
8942   ;;
8943 esac
8944 fi
8945 MV=$ac_cv_path_MV
8946 if test -n "$MV"; then
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8948 $as_echo "$MV" >&6; }
8949 else
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953 
8954 
8955           if test "x$MV" = x; then
8956             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8957           fi
8958         else
8959           # Otherwise we believe it is a complete path. Use it as it is.
8960           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8961 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8962           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8963 $as_echo_n "checking for MV... " >&6; }
8964           if test ! -x "$tool_specified"; then
8965             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8966 $as_echo "not found" >&6; }
8967             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8968           fi
8969           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8970 $as_echo "$tool_specified" >&6; }
8971         fi
8972       fi
8973     fi
8974 
8975   fi
8976 
8977 
8978 
8979   if test "x$MV" = x; then
8980     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8981   fi
8982 
8983 
8984 
8985 
8986 
8987   # Publish this variable in the help.
8988 
8989 
8990   if [ -z "${NAWK+x}" ]; then
8991     # The variable is not set by user, try to locate tool using the code snippet
8992     for ac_prog in nawk gawk awk
8993 do
8994   # Extract the first word of "$ac_prog", so it can be a program name with args.
8995 set dummy $ac_prog; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_path_NAWK+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   case $NAWK in
9002   [\\/]* | ?:[\\/]*)
9003   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9004   ;;
9005   *)
9006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9008 do
9009   IFS=$as_save_IFS
9010   test -z "$as_dir" && as_dir=.
9011     for ac_exec_ext in '' $ac_executable_extensions; do
9012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015     break 2
9016   fi
9017 done
9018   done
9019 IFS=$as_save_IFS
9020 
9021   ;;
9022 esac
9023 fi
9024 NAWK=$ac_cv_path_NAWK
9025 if test -n "$NAWK"; then
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9027 $as_echo "$NAWK" >&6; }
9028 else
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9031 fi
9032 
9033 
9034   test -n "$NAWK" && break
9035 done
9036 
9037   else
9038     # The variable is set, but is it from the command line or the environment?
9039 
9040     # Try to remove the string !NAWK! from our list.
9041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9043       # If it failed, the variable was not from the command line. Ignore it,
9044       # but warn the user (except for BASH, which is always set by the calling BASH).
9045       if test "xNAWK" != xBASH; then
9046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9047 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9048       fi
9049       # Try to locate tool using the code snippet
9050       for ac_prog in nawk gawk awk
9051 do
9052   # Extract the first word of "$ac_prog", so it can be a program name with args.
9053 set dummy $ac_prog; ac_word=$2
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 $as_echo_n "checking for $ac_word... " >&6; }
9056 if ${ac_cv_path_NAWK+:} false; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059   case $NAWK in
9060   [\\/]* | ?:[\\/]*)
9061   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9062   ;;
9063   *)
9064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067   IFS=$as_save_IFS
9068   test -z "$as_dir" && as_dir=.
9069     for ac_exec_ext in '' $ac_executable_extensions; do
9070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073     break 2
9074   fi
9075 done
9076   done
9077 IFS=$as_save_IFS
9078 
9079   ;;
9080 esac
9081 fi
9082 NAWK=$ac_cv_path_NAWK
9083 if test -n "$NAWK"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9085 $as_echo "$NAWK" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090 
9091 
9092   test -n "$NAWK" && break
9093 done
9094 
9095     else
9096       # If it succeeded, then it was overridden by the user. We will use it
9097       # for the tool.
9098 
9099       # First remove it from the list of overridden variables, so we can test
9100       # for unknown variables in the end.
9101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9102 
9103       # Check if we try to supply an empty value
9104       if test "x$NAWK" = x; then
9105         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9106 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9108 $as_echo_n "checking for NAWK... " >&6; }
9109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9110 $as_echo "disabled" >&6; }
9111       else
9112         # Check if the provided tool contains a complete path.
9113         tool_specified="$NAWK"
9114         tool_basename="${tool_specified##*/}"
9115         if test "x$tool_basename" = "x$tool_specified"; then
9116           # A command without a complete path is provided, search $PATH.
9117           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9118 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9119           # Extract the first word of "$tool_basename", so it can be a program name with args.
9120 set dummy $tool_basename; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if ${ac_cv_path_NAWK+:} false; then :
9124   $as_echo_n "(cached) " >&6
9125 else
9126   case $NAWK in
9127   [\\/]* | ?:[\\/]*)
9128   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9129   ;;
9130   *)
9131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134   IFS=$as_save_IFS
9135   test -z "$as_dir" && as_dir=.
9136     for ac_exec_ext in '' $ac_executable_extensions; do
9137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9138     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140     break 2
9141   fi
9142 done
9143   done
9144 IFS=$as_save_IFS
9145 
9146   ;;
9147 esac
9148 fi
9149 NAWK=$ac_cv_path_NAWK
9150 if test -n "$NAWK"; then
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9152 $as_echo "$NAWK" >&6; }
9153 else
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9156 fi
9157 
9158 
9159           if test "x$NAWK" = x; then
9160             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9161           fi
9162         else
9163           # Otherwise we believe it is a complete path. Use it as it is.
9164           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9165 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9166           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9167 $as_echo_n "checking for NAWK... " >&6; }
9168           if test ! -x "$tool_specified"; then
9169             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9170 $as_echo "not found" >&6; }
9171             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9172           fi
9173           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9174 $as_echo "$tool_specified" >&6; }
9175         fi
9176       fi
9177     fi
9178 
9179   fi
9180 
9181 
9182 
9183   if test "x$NAWK" = x; then
9184     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9185   fi
9186 
9187 
9188 
9189 
9190 
9191   # Publish this variable in the help.
9192 
9193 
9194   if [ -z "${PRINTF+x}" ]; then
9195     # The variable is not set by user, try to locate tool using the code snippet
9196     for ac_prog in printf
9197 do
9198   # Extract the first word of "$ac_prog", so it can be a program name with args.
9199 set dummy $ac_prog; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_path_PRINTF+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   case $PRINTF in
9206   [\\/]* | ?:[\\/]*)
9207   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9208   ;;
9209   *)
9210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9212 do
9213   IFS=$as_save_IFS
9214   test -z "$as_dir" && as_dir=.
9215     for ac_exec_ext in '' $ac_executable_extensions; do
9216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219     break 2
9220   fi
9221 done
9222   done
9223 IFS=$as_save_IFS
9224 
9225   ;;
9226 esac
9227 fi
9228 PRINTF=$ac_cv_path_PRINTF
9229 if test -n "$PRINTF"; then
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9231 $as_echo "$PRINTF" >&6; }
9232 else
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9235 fi
9236 
9237 
9238   test -n "$PRINTF" && break
9239 done
9240 
9241   else
9242     # The variable is set, but is it from the command line or the environment?
9243 
9244     # Try to remove the string !PRINTF! from our list.
9245     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9246     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9247       # If it failed, the variable was not from the command line. Ignore it,
9248       # but warn the user (except for BASH, which is always set by the calling BASH).
9249       if test "xPRINTF" != xBASH; then
9250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9251 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9252       fi
9253       # Try to locate tool using the code snippet
9254       for ac_prog in printf
9255 do
9256   # Extract the first word of "$ac_prog", so it can be a program name with args.
9257 set dummy $ac_prog; ac_word=$2
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259 $as_echo_n "checking for $ac_word... " >&6; }
9260 if ${ac_cv_path_PRINTF+:} false; then :
9261   $as_echo_n "(cached) " >&6
9262 else
9263   case $PRINTF in
9264   [\\/]* | ?:[\\/]*)
9265   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9266   ;;
9267   *)
9268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in $PATH
9270 do
9271   IFS=$as_save_IFS
9272   test -z "$as_dir" && as_dir=.
9273     for ac_exec_ext in '' $ac_executable_extensions; do
9274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9275     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277     break 2
9278   fi
9279 done
9280   done
9281 IFS=$as_save_IFS
9282 
9283   ;;
9284 esac
9285 fi
9286 PRINTF=$ac_cv_path_PRINTF
9287 if test -n "$PRINTF"; then
9288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9289 $as_echo "$PRINTF" >&6; }
9290 else
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9293 fi
9294 
9295 
9296   test -n "$PRINTF" && break
9297 done
9298 
9299     else
9300       # If it succeeded, then it was overridden by the user. We will use it
9301       # for the tool.
9302 
9303       # First remove it from the list of overridden variables, so we can test
9304       # for unknown variables in the end.
9305       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9306 
9307       # Check if we try to supply an empty value
9308       if test "x$PRINTF" = x; then
9309         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9310 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9312 $as_echo_n "checking for PRINTF... " >&6; }
9313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9314 $as_echo "disabled" >&6; }
9315       else
9316         # Check if the provided tool contains a complete path.
9317         tool_specified="$PRINTF"
9318         tool_basename="${tool_specified##*/}"
9319         if test "x$tool_basename" = "x$tool_specified"; then
9320           # A command without a complete path is provided, search $PATH.
9321           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9322 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9323           # Extract the first word of "$tool_basename", so it can be a program name with args.
9324 set dummy $tool_basename; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if ${ac_cv_path_PRINTF+:} false; then :
9328   $as_echo_n "(cached) " >&6
9329 else
9330   case $PRINTF in
9331   [\\/]* | ?:[\\/]*)
9332   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9333   ;;
9334   *)
9335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9337 do
9338   IFS=$as_save_IFS
9339   test -z "$as_dir" && as_dir=.
9340     for ac_exec_ext in '' $ac_executable_extensions; do
9341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9342     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344     break 2
9345   fi
9346 done
9347   done
9348 IFS=$as_save_IFS
9349 
9350   ;;
9351 esac
9352 fi
9353 PRINTF=$ac_cv_path_PRINTF
9354 if test -n "$PRINTF"; then
9355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9356 $as_echo "$PRINTF" >&6; }
9357 else
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9360 fi
9361 
9362 
9363           if test "x$PRINTF" = x; then
9364             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9365           fi
9366         else
9367           # Otherwise we believe it is a complete path. Use it as it is.
9368           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9369 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9370           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9371 $as_echo_n "checking for PRINTF... " >&6; }
9372           if test ! -x "$tool_specified"; then
9373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9374 $as_echo "not found" >&6; }
9375             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9376           fi
9377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9378 $as_echo "$tool_specified" >&6; }
9379         fi
9380       fi
9381     fi
9382 
9383   fi
9384 
9385 
9386 
9387   if test "x$PRINTF" = x; then
9388     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9389   fi
9390 
9391 
9392 
9393 
9394 
9395   # Publish this variable in the help.
9396 
9397 
9398   if [ -z "${RM+x}" ]; then
9399     # The variable is not set by user, try to locate tool using the code snippet
9400     for ac_prog in rm
9401 do
9402   # Extract the first word of "$ac_prog", so it can be a program name with args.
9403 set dummy $ac_prog; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_path_RM+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   case $RM in
9410   [\\/]* | ?:[\\/]*)
9411   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9412   ;;
9413   *)
9414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417   IFS=$as_save_IFS
9418   test -z "$as_dir" && as_dir=.
9419     for ac_exec_ext in '' $ac_executable_extensions; do
9420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9421     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423     break 2
9424   fi
9425 done
9426   done
9427 IFS=$as_save_IFS
9428 
9429   ;;
9430 esac
9431 fi
9432 RM=$ac_cv_path_RM
9433 if test -n "$RM"; then
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9435 $as_echo "$RM" >&6; }
9436 else
9437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9438 $as_echo "no" >&6; }
9439 fi
9440 
9441 
9442   test -n "$RM" && break
9443 done
9444 
9445   else
9446     # The variable is set, but is it from the command line or the environment?
9447 
9448     # Try to remove the string !RM! from our list.
9449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9451       # If it failed, the variable was not from the command line. Ignore it,
9452       # but warn the user (except for BASH, which is always set by the calling BASH).
9453       if test "xRM" != xBASH; then
9454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9455 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9456       fi
9457       # Try to locate tool using the code snippet
9458       for ac_prog in rm
9459 do
9460   # Extract the first word of "$ac_prog", so it can be a program name with args.
9461 set dummy $ac_prog; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if ${ac_cv_path_RM+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   case $RM in
9468   [\\/]* | ?:[\\/]*)
9469   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9470   ;;
9471   *)
9472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9474 do
9475   IFS=$as_save_IFS
9476   test -z "$as_dir" && as_dir=.
9477     for ac_exec_ext in '' $ac_executable_extensions; do
9478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481     break 2
9482   fi
9483 done
9484   done
9485 IFS=$as_save_IFS
9486 
9487   ;;
9488 esac
9489 fi
9490 RM=$ac_cv_path_RM
9491 if test -n "$RM"; then
9492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9493 $as_echo "$RM" >&6; }
9494 else
9495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9497 fi
9498 
9499 
9500   test -n "$RM" && break
9501 done
9502 
9503     else
9504       # If it succeeded, then it was overridden by the user. We will use it
9505       # for the tool.
9506 
9507       # First remove it from the list of overridden variables, so we can test
9508       # for unknown variables in the end.
9509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9510 
9511       # Check if we try to supply an empty value
9512       if test "x$RM" = x; then
9513         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9514 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9515         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9516 $as_echo_n "checking for RM... " >&6; }
9517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9518 $as_echo "disabled" >&6; }
9519       else
9520         # Check if the provided tool contains a complete path.
9521         tool_specified="$RM"
9522         tool_basename="${tool_specified##*/}"
9523         if test "x$tool_basename" = "x$tool_specified"; then
9524           # A command without a complete path is provided, search $PATH.
9525           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9526 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9527           # Extract the first word of "$tool_basename", so it can be a program name with args.
9528 set dummy $tool_basename; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if ${ac_cv_path_RM+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   case $RM in
9535   [\\/]* | ?:[\\/]*)
9536   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9537   ;;
9538   *)
9539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 for as_dir in $PATH
9541 do
9542   IFS=$as_save_IFS
9543   test -z "$as_dir" && as_dir=.
9544     for ac_exec_ext in '' $ac_executable_extensions; do
9545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9546     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548     break 2
9549   fi
9550 done
9551   done
9552 IFS=$as_save_IFS
9553 
9554   ;;
9555 esac
9556 fi
9557 RM=$ac_cv_path_RM
9558 if test -n "$RM"; then
9559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9560 $as_echo "$RM" >&6; }
9561 else
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565 
9566 
9567           if test "x$RM" = x; then
9568             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9569           fi
9570         else
9571           # Otherwise we believe it is a complete path. Use it as it is.
9572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9573 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9574           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9575 $as_echo_n "checking for RM... " >&6; }
9576           if test ! -x "$tool_specified"; then
9577             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9578 $as_echo "not found" >&6; }
9579             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9580           fi
9581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9582 $as_echo "$tool_specified" >&6; }
9583         fi
9584       fi
9585     fi
9586 
9587   fi
9588 
9589 
9590 
9591   if test "x$RM" = x; then
9592     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9593   fi
9594 
9595 
9596 
9597 
9598 
9599   # Publish this variable in the help.
9600 
9601 
9602   if [ -z "${RMDIR+x}" ]; then
9603     # The variable is not set by user, try to locate tool using the code snippet
9604     for ac_prog in rmdir
9605 do
9606   # Extract the first word of "$ac_prog", so it can be a program name with args.
9607 set dummy $ac_prog; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if ${ac_cv_path_RMDIR+:} false; then :
9611   $as_echo_n "(cached) " >&6
9612 else
9613   case $RMDIR in
9614   [\\/]* | ?:[\\/]*)
9615   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9616   ;;
9617   *)
9618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9620 do
9621   IFS=$as_save_IFS
9622   test -z "$as_dir" && as_dir=.
9623     for ac_exec_ext in '' $ac_executable_extensions; do
9624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9625     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627     break 2
9628   fi
9629 done
9630   done
9631 IFS=$as_save_IFS
9632 
9633   ;;
9634 esac
9635 fi
9636 RMDIR=$ac_cv_path_RMDIR
9637 if test -n "$RMDIR"; then
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9639 $as_echo "$RMDIR" >&6; }
9640 else
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9643 fi
9644 
9645 
9646   test -n "$RMDIR" && break
9647 done
9648 
9649   else
9650     # The variable is set, but is it from the command line or the environment?
9651 
9652     # Try to remove the string !RMDIR! from our list.
9653     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9654     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9655       # If it failed, the variable was not from the command line. Ignore it,
9656       # but warn the user (except for BASH, which is always set by the calling BASH).
9657       if test "xRMDIR" != xBASH; then
9658         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9659 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9660       fi
9661       # Try to locate tool using the code snippet
9662       for ac_prog in rmdir
9663 do
9664   # Extract the first word of "$ac_prog", so it can be a program name with args.
9665 set dummy $ac_prog; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_path_RMDIR+:} false; then :
9669   $as_echo_n "(cached) " >&6
9670 else
9671   case $RMDIR in
9672   [\\/]* | ?:[\\/]*)
9673   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9674   ;;
9675   *)
9676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9678 do
9679   IFS=$as_save_IFS
9680   test -z "$as_dir" && as_dir=.
9681     for ac_exec_ext in '' $ac_executable_extensions; do
9682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9683     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685     break 2
9686   fi
9687 done
9688   done
9689 IFS=$as_save_IFS
9690 
9691   ;;
9692 esac
9693 fi
9694 RMDIR=$ac_cv_path_RMDIR
9695 if test -n "$RMDIR"; then
9696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9697 $as_echo "$RMDIR" >&6; }
9698 else
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9701 fi
9702 
9703 
9704   test -n "$RMDIR" && break
9705 done
9706 
9707     else
9708       # If it succeeded, then it was overridden by the user. We will use it
9709       # for the tool.
9710 
9711       # First remove it from the list of overridden variables, so we can test
9712       # for unknown variables in the end.
9713       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9714 
9715       # Check if we try to supply an empty value
9716       if test "x$RMDIR" = x; then
9717         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9718 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9720 $as_echo_n "checking for RMDIR... " >&6; }
9721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9722 $as_echo "disabled" >&6; }
9723       else
9724         # Check if the provided tool contains a complete path.
9725         tool_specified="$RMDIR"
9726         tool_basename="${tool_specified##*/}"
9727         if test "x$tool_basename" = "x$tool_specified"; then
9728           # A command without a complete path is provided, search $PATH.
9729           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9730 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9731           # Extract the first word of "$tool_basename", so it can be a program name with args.
9732 set dummy $tool_basename; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if ${ac_cv_path_RMDIR+:} false; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   case $RMDIR in
9739   [\\/]* | ?:[\\/]*)
9740   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9741   ;;
9742   *)
9743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 for as_dir in $PATH
9745 do
9746   IFS=$as_save_IFS
9747   test -z "$as_dir" && as_dir=.
9748     for ac_exec_ext in '' $ac_executable_extensions; do
9749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752     break 2
9753   fi
9754 done
9755   done
9756 IFS=$as_save_IFS
9757 
9758   ;;
9759 esac
9760 fi
9761 RMDIR=$ac_cv_path_RMDIR
9762 if test -n "$RMDIR"; then
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9764 $as_echo "$RMDIR" >&6; }
9765 else
9766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9768 fi
9769 
9770 
9771           if test "x$RMDIR" = x; then
9772             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9773           fi
9774         else
9775           # Otherwise we believe it is a complete path. Use it as it is.
9776           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9777 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9778           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9779 $as_echo_n "checking for RMDIR... " >&6; }
9780           if test ! -x "$tool_specified"; then
9781             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9782 $as_echo "not found" >&6; }
9783             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9784           fi
9785           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9786 $as_echo "$tool_specified" >&6; }
9787         fi
9788       fi
9789     fi
9790 
9791   fi
9792 
9793 
9794 
9795   if test "x$RMDIR" = x; then
9796     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9797   fi
9798 
9799 
9800 
9801 
9802 
9803   # Publish this variable in the help.
9804 
9805 
9806   if [ -z "${SH+x}" ]; then
9807     # The variable is not set by user, try to locate tool using the code snippet
9808     for ac_prog in sh
9809 do
9810   # Extract the first word of "$ac_prog", so it can be a program name with args.
9811 set dummy $ac_prog; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_path_SH+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   case $SH in
9818   [\\/]* | ?:[\\/]*)
9819   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9820   ;;
9821   *)
9822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825   IFS=$as_save_IFS
9826   test -z "$as_dir" && as_dir=.
9827     for ac_exec_ext in '' $ac_executable_extensions; do
9828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831     break 2
9832   fi
9833 done
9834   done
9835 IFS=$as_save_IFS
9836 
9837   ;;
9838 esac
9839 fi
9840 SH=$ac_cv_path_SH
9841 if test -n "$SH"; then
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9843 $as_echo "$SH" >&6; }
9844 else
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9847 fi
9848 
9849 
9850   test -n "$SH" && break
9851 done
9852 
9853   else
9854     # The variable is set, but is it from the command line or the environment?
9855 
9856     # Try to remove the string !SH! from our list.
9857     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9858     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9859       # If it failed, the variable was not from the command line. Ignore it,
9860       # but warn the user (except for BASH, which is always set by the calling BASH).
9861       if test "xSH" != xBASH; then
9862         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9863 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9864       fi
9865       # Try to locate tool using the code snippet
9866       for ac_prog in sh
9867 do
9868   # Extract the first word of "$ac_prog", so it can be a program name with args.
9869 set dummy $ac_prog; ac_word=$2
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9871 $as_echo_n "checking for $ac_word... " >&6; }
9872 if ${ac_cv_path_SH+:} false; then :
9873   $as_echo_n "(cached) " >&6
9874 else
9875   case $SH in
9876   [\\/]* | ?:[\\/]*)
9877   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9878   ;;
9879   *)
9880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885     for ac_exec_ext in '' $ac_executable_extensions; do
9886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892   done
9893 IFS=$as_save_IFS
9894 
9895   ;;
9896 esac
9897 fi
9898 SH=$ac_cv_path_SH
9899 if test -n "$SH"; then
9900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9901 $as_echo "$SH" >&6; }
9902 else
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9905 fi
9906 
9907 
9908   test -n "$SH" && break
9909 done
9910 
9911     else
9912       # If it succeeded, then it was overridden by the user. We will use it
9913       # for the tool.
9914 
9915       # First remove it from the list of overridden variables, so we can test
9916       # for unknown variables in the end.
9917       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9918 
9919       # Check if we try to supply an empty value
9920       if test "x$SH" = x; then
9921         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9922 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9924 $as_echo_n "checking for SH... " >&6; }
9925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9926 $as_echo "disabled" >&6; }
9927       else
9928         # Check if the provided tool contains a complete path.
9929         tool_specified="$SH"
9930         tool_basename="${tool_specified##*/}"
9931         if test "x$tool_basename" = "x$tool_specified"; then
9932           # A command without a complete path is provided, search $PATH.
9933           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9934 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9935           # Extract the first word of "$tool_basename", so it can be a program name with args.
9936 set dummy $tool_basename; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_path_SH+:} false; then :
9940   $as_echo_n "(cached) " >&6
9941 else
9942   case $SH in
9943   [\\/]* | ?:[\\/]*)
9944   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9945   ;;
9946   *)
9947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9949 do
9950   IFS=$as_save_IFS
9951   test -z "$as_dir" && as_dir=.
9952     for ac_exec_ext in '' $ac_executable_extensions; do
9953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956     break 2
9957   fi
9958 done
9959   done
9960 IFS=$as_save_IFS
9961 
9962   ;;
9963 esac
9964 fi
9965 SH=$ac_cv_path_SH
9966 if test -n "$SH"; then
9967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9968 $as_echo "$SH" >&6; }
9969 else
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9972 fi
9973 
9974 
9975           if test "x$SH" = x; then
9976             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9977           fi
9978         else
9979           # Otherwise we believe it is a complete path. Use it as it is.
9980           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9981 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9982           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9983 $as_echo_n "checking for SH... " >&6; }
9984           if test ! -x "$tool_specified"; then
9985             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9986 $as_echo "not found" >&6; }
9987             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9988           fi
9989           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9990 $as_echo "$tool_specified" >&6; }
9991         fi
9992       fi
9993     fi
9994 
9995   fi
9996 
9997 
9998 
9999   if test "x$SH" = x; then
10000     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10001   fi
10002 
10003 
10004 
10005 
10006 
10007   # Publish this variable in the help.
10008 
10009 
10010   if [ -z "${SORT+x}" ]; then
10011     # The variable is not set by user, try to locate tool using the code snippet
10012     for ac_prog in sort
10013 do
10014   # Extract the first word of "$ac_prog", so it can be a program name with args.
10015 set dummy $ac_prog; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_path_SORT+:} false; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   case $SORT in
10022   [\\/]* | ?:[\\/]*)
10023   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10024   ;;
10025   *)
10026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10028 do
10029   IFS=$as_save_IFS
10030   test -z "$as_dir" && as_dir=.
10031     for ac_exec_ext in '' $ac_executable_extensions; do
10032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035     break 2
10036   fi
10037 done
10038   done
10039 IFS=$as_save_IFS
10040 
10041   ;;
10042 esac
10043 fi
10044 SORT=$ac_cv_path_SORT
10045 if test -n "$SORT"; then
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10047 $as_echo "$SORT" >&6; }
10048 else
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10051 fi
10052 
10053 
10054   test -n "$SORT" && break
10055 done
10056 
10057   else
10058     # The variable is set, but is it from the command line or the environment?
10059 
10060     # Try to remove the string !SORT! from our list.
10061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10063       # If it failed, the variable was not from the command line. Ignore it,
10064       # but warn the user (except for BASH, which is always set by the calling BASH).
10065       if test "xSORT" != xBASH; then
10066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10067 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10068       fi
10069       # Try to locate tool using the code snippet
10070       for ac_prog in sort
10071 do
10072   # Extract the first word of "$ac_prog", so it can be a program name with args.
10073 set dummy $ac_prog; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if ${ac_cv_path_SORT+:} false; then :
10077   $as_echo_n "(cached) " >&6
10078 else
10079   case $SORT in
10080   [\\/]* | ?:[\\/]*)
10081   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10082   ;;
10083   *)
10084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10086 do
10087   IFS=$as_save_IFS
10088   test -z "$as_dir" && as_dir=.
10089     for ac_exec_ext in '' $ac_executable_extensions; do
10090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093     break 2
10094   fi
10095 done
10096   done
10097 IFS=$as_save_IFS
10098 
10099   ;;
10100 esac
10101 fi
10102 SORT=$ac_cv_path_SORT
10103 if test -n "$SORT"; then
10104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10105 $as_echo "$SORT" >&6; }
10106 else
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10109 fi
10110 
10111 
10112   test -n "$SORT" && break
10113 done
10114 
10115     else
10116       # If it succeeded, then it was overridden by the user. We will use it
10117       # for the tool.
10118 
10119       # First remove it from the list of overridden variables, so we can test
10120       # for unknown variables in the end.
10121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10122 
10123       # Check if we try to supply an empty value
10124       if test "x$SORT" = x; then
10125         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10126 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10128 $as_echo_n "checking for SORT... " >&6; }
10129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10130 $as_echo "disabled" >&6; }
10131       else
10132         # Check if the provided tool contains a complete path.
10133         tool_specified="$SORT"
10134         tool_basename="${tool_specified##*/}"
10135         if test "x$tool_basename" = "x$tool_specified"; then
10136           # A command without a complete path is provided, search $PATH.
10137           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10138 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10139           # Extract the first word of "$tool_basename", so it can be a program name with args.
10140 set dummy $tool_basename; ac_word=$2
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if ${ac_cv_path_SORT+:} false; then :
10144   $as_echo_n "(cached) " >&6
10145 else
10146   case $SORT in
10147   [\\/]* | ?:[\\/]*)
10148   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10149   ;;
10150   *)
10151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10153 do
10154   IFS=$as_save_IFS
10155   test -z "$as_dir" && as_dir=.
10156     for ac_exec_ext in '' $ac_executable_extensions; do
10157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160     break 2
10161   fi
10162 done
10163   done
10164 IFS=$as_save_IFS
10165 
10166   ;;
10167 esac
10168 fi
10169 SORT=$ac_cv_path_SORT
10170 if test -n "$SORT"; then
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10172 $as_echo "$SORT" >&6; }
10173 else
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10176 fi
10177 
10178 
10179           if test "x$SORT" = x; then
10180             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10181           fi
10182         else
10183           # Otherwise we believe it is a complete path. Use it as it is.
10184           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10185 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10186           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10187 $as_echo_n "checking for SORT... " >&6; }
10188           if test ! -x "$tool_specified"; then
10189             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10190 $as_echo "not found" >&6; }
10191             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10192           fi
10193           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10194 $as_echo "$tool_specified" >&6; }
10195         fi
10196       fi
10197     fi
10198 
10199   fi
10200 
10201 
10202 
10203   if test "x$SORT" = x; then
10204     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10205   fi
10206 
10207 
10208 
10209 
10210 
10211   # Publish this variable in the help.
10212 
10213 
10214   if [ -z "${TAIL+x}" ]; then
10215     # The variable is not set by user, try to locate tool using the code snippet
10216     for ac_prog in tail
10217 do
10218   # Extract the first word of "$ac_prog", so it can be a program name with args.
10219 set dummy $ac_prog; ac_word=$2
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221 $as_echo_n "checking for $ac_word... " >&6; }
10222 if ${ac_cv_path_TAIL+:} false; then :
10223   $as_echo_n "(cached) " >&6
10224 else
10225   case $TAIL in
10226   [\\/]* | ?:[\\/]*)
10227   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10228   ;;
10229   *)
10230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233   IFS=$as_save_IFS
10234   test -z "$as_dir" && as_dir=.
10235     for ac_exec_ext in '' $ac_executable_extensions; do
10236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239     break 2
10240   fi
10241 done
10242   done
10243 IFS=$as_save_IFS
10244 
10245   ;;
10246 esac
10247 fi
10248 TAIL=$ac_cv_path_TAIL
10249 if test -n "$TAIL"; then
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10251 $as_echo "$TAIL" >&6; }
10252 else
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254 $as_echo "no" >&6; }
10255 fi
10256 
10257 
10258   test -n "$TAIL" && break
10259 done
10260 
10261   else
10262     # The variable is set, but is it from the command line or the environment?
10263 
10264     # Try to remove the string !TAIL! from our list.
10265     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10266     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10267       # If it failed, the variable was not from the command line. Ignore it,
10268       # but warn the user (except for BASH, which is always set by the calling BASH).
10269       if test "xTAIL" != xBASH; then
10270         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10271 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10272       fi
10273       # Try to locate tool using the code snippet
10274       for ac_prog in tail
10275 do
10276   # Extract the first word of "$ac_prog", so it can be a program name with args.
10277 set dummy $ac_prog; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if ${ac_cv_path_TAIL+:} false; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   case $TAIL in
10284   [\\/]* | ?:[\\/]*)
10285   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10286   ;;
10287   *)
10288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291   IFS=$as_save_IFS
10292   test -z "$as_dir" && as_dir=.
10293     for ac_exec_ext in '' $ac_executable_extensions; do
10294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297     break 2
10298   fi
10299 done
10300   done
10301 IFS=$as_save_IFS
10302 
10303   ;;
10304 esac
10305 fi
10306 TAIL=$ac_cv_path_TAIL
10307 if test -n "$TAIL"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10309 $as_echo "$TAIL" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314 
10315 
10316   test -n "$TAIL" && break
10317 done
10318 
10319     else
10320       # If it succeeded, then it was overridden by the user. We will use it
10321       # for the tool.
10322 
10323       # First remove it from the list of overridden variables, so we can test
10324       # for unknown variables in the end.
10325       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10326 
10327       # Check if we try to supply an empty value
10328       if test "x$TAIL" = x; then
10329         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10330 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10332 $as_echo_n "checking for TAIL... " >&6; }
10333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10334 $as_echo "disabled" >&6; }
10335       else
10336         # Check if the provided tool contains a complete path.
10337         tool_specified="$TAIL"
10338         tool_basename="${tool_specified##*/}"
10339         if test "x$tool_basename" = "x$tool_specified"; then
10340           # A command without a complete path is provided, search $PATH.
10341           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10342 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10343           # Extract the first word of "$tool_basename", so it can be a program name with args.
10344 set dummy $tool_basename; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_path_TAIL+:} false; then :
10348   $as_echo_n "(cached) " >&6
10349 else
10350   case $TAIL in
10351   [\\/]* | ?:[\\/]*)
10352   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10353   ;;
10354   *)
10355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369 
10370   ;;
10371 esac
10372 fi
10373 TAIL=$ac_cv_path_TAIL
10374 if test -n "$TAIL"; then
10375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10376 $as_echo "$TAIL" >&6; }
10377 else
10378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10380 fi
10381 
10382 
10383           if test "x$TAIL" = x; then
10384             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10385           fi
10386         else
10387           # Otherwise we believe it is a complete path. Use it as it is.
10388           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10389 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10390           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10391 $as_echo_n "checking for TAIL... " >&6; }
10392           if test ! -x "$tool_specified"; then
10393             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10394 $as_echo "not found" >&6; }
10395             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10396           fi
10397           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10398 $as_echo "$tool_specified" >&6; }
10399         fi
10400       fi
10401     fi
10402 
10403   fi
10404 
10405 
10406 
10407   if test "x$TAIL" = x; then
10408     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10409   fi
10410 
10411 
10412 
10413 
10414 
10415   # Publish this variable in the help.
10416 
10417 
10418   if [ -z "${TAR+x}" ]; then
10419     # The variable is not set by user, try to locate tool using the code snippet
10420     for ac_prog in tar
10421 do
10422   # Extract the first word of "$ac_prog", so it can be a program name with args.
10423 set dummy $ac_prog; ac_word=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_path_TAR+:} false; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   case $TAR in
10430   [\\/]* | ?:[\\/]*)
10431   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10432   ;;
10433   *)
10434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437   IFS=$as_save_IFS
10438   test -z "$as_dir" && as_dir=.
10439     for ac_exec_ext in '' $ac_executable_extensions; do
10440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443     break 2
10444   fi
10445 done
10446   done
10447 IFS=$as_save_IFS
10448 
10449   ;;
10450 esac
10451 fi
10452 TAR=$ac_cv_path_TAR
10453 if test -n "$TAR"; then
10454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10455 $as_echo "$TAR" >&6; }
10456 else
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10459 fi
10460 
10461 
10462   test -n "$TAR" && break
10463 done
10464 
10465   else
10466     # The variable is set, but is it from the command line or the environment?
10467 
10468     # Try to remove the string !TAR! from our list.
10469     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10470     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10471       # If it failed, the variable was not from the command line. Ignore it,
10472       # but warn the user (except for BASH, which is always set by the calling BASH).
10473       if test "xTAR" != xBASH; then
10474         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10475 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10476       fi
10477       # Try to locate tool using the code snippet
10478       for ac_prog in tar
10479 do
10480   # Extract the first word of "$ac_prog", so it can be a program name with args.
10481 set dummy $ac_prog; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if ${ac_cv_path_TAR+:} false; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   case $TAR in
10488   [\\/]* | ?:[\\/]*)
10489   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10490   ;;
10491   *)
10492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10494 do
10495   IFS=$as_save_IFS
10496   test -z "$as_dir" && as_dir=.
10497     for ac_exec_ext in '' $ac_executable_extensions; do
10498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10499     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501     break 2
10502   fi
10503 done
10504   done
10505 IFS=$as_save_IFS
10506 
10507   ;;
10508 esac
10509 fi
10510 TAR=$ac_cv_path_TAR
10511 if test -n "$TAR"; then
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10513 $as_echo "$TAR" >&6; }
10514 else
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10517 fi
10518 
10519 
10520   test -n "$TAR" && break
10521 done
10522 
10523     else
10524       # If it succeeded, then it was overridden by the user. We will use it
10525       # for the tool.
10526 
10527       # First remove it from the list of overridden variables, so we can test
10528       # for unknown variables in the end.
10529       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10530 
10531       # Check if we try to supply an empty value
10532       if test "x$TAR" = x; then
10533         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10534 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10536 $as_echo_n "checking for TAR... " >&6; }
10537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10538 $as_echo "disabled" >&6; }
10539       else
10540         # Check if the provided tool contains a complete path.
10541         tool_specified="$TAR"
10542         tool_basename="${tool_specified##*/}"
10543         if test "x$tool_basename" = "x$tool_specified"; then
10544           # A command without a complete path is provided, search $PATH.
10545           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10546 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10547           # Extract the first word of "$tool_basename", so it can be a program name with args.
10548 set dummy $tool_basename; ac_word=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_TAR+:} false; then :
10552   $as_echo_n "(cached) " >&6
10553 else
10554   case $TAR in
10555   [\\/]* | ?:[\\/]*)
10556   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10557   ;;
10558   *)
10559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10561 do
10562   IFS=$as_save_IFS
10563   test -z "$as_dir" && as_dir=.
10564     for ac_exec_ext in '' $ac_executable_extensions; do
10565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568     break 2
10569   fi
10570 done
10571   done
10572 IFS=$as_save_IFS
10573 
10574   ;;
10575 esac
10576 fi
10577 TAR=$ac_cv_path_TAR
10578 if test -n "$TAR"; then
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10580 $as_echo "$TAR" >&6; }
10581 else
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585 
10586 
10587           if test "x$TAR" = x; then
10588             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10589           fi
10590         else
10591           # Otherwise we believe it is a complete path. Use it as it is.
10592           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10593 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10594           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10595 $as_echo_n "checking for TAR... " >&6; }
10596           if test ! -x "$tool_specified"; then
10597             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10598 $as_echo "not found" >&6; }
10599             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10600           fi
10601           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10602 $as_echo "$tool_specified" >&6; }
10603         fi
10604       fi
10605     fi
10606 
10607   fi
10608 
10609 
10610 
10611   if test "x$TAR" = x; then
10612     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10613   fi
10614 
10615 
10616 
10617 
10618 
10619   # Publish this variable in the help.
10620 
10621 
10622   if [ -z "${TEE+x}" ]; then
10623     # The variable is not set by user, try to locate tool using the code snippet
10624     for ac_prog in tee
10625 do
10626   # Extract the first word of "$ac_prog", so it can be a program name with args.
10627 set dummy $ac_prog; ac_word=$2
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10629 $as_echo_n "checking for $ac_word... " >&6; }
10630 if ${ac_cv_path_TEE+:} false; then :
10631   $as_echo_n "(cached) " >&6
10632 else
10633   case $TEE in
10634   [\\/]* | ?:[\\/]*)
10635   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10636   ;;
10637   *)
10638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10640 do
10641   IFS=$as_save_IFS
10642   test -z "$as_dir" && as_dir=.
10643     for ac_exec_ext in '' $ac_executable_extensions; do
10644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647     break 2
10648   fi
10649 done
10650   done
10651 IFS=$as_save_IFS
10652 
10653   ;;
10654 esac
10655 fi
10656 TEE=$ac_cv_path_TEE
10657 if test -n "$TEE"; then
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10659 $as_echo "$TEE" >&6; }
10660 else
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 fi
10664 
10665 
10666   test -n "$TEE" && break
10667 done
10668 
10669   else
10670     # The variable is set, but is it from the command line or the environment?
10671 
10672     # Try to remove the string !TEE! from our list.
10673     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10674     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10675       # If it failed, the variable was not from the command line. Ignore it,
10676       # but warn the user (except for BASH, which is always set by the calling BASH).
10677       if test "xTEE" != xBASH; then
10678         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10679 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10680       fi
10681       # Try to locate tool using the code snippet
10682       for ac_prog in tee
10683 do
10684   # Extract the first word of "$ac_prog", so it can be a program name with args.
10685 set dummy $ac_prog; ac_word=$2
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687 $as_echo_n "checking for $ac_word... " >&6; }
10688 if ${ac_cv_path_TEE+:} false; then :
10689   $as_echo_n "(cached) " >&6
10690 else
10691   case $TEE in
10692   [\\/]* | ?:[\\/]*)
10693   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10694   ;;
10695   *)
10696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10698 do
10699   IFS=$as_save_IFS
10700   test -z "$as_dir" && as_dir=.
10701     for ac_exec_ext in '' $ac_executable_extensions; do
10702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705     break 2
10706   fi
10707 done
10708   done
10709 IFS=$as_save_IFS
10710 
10711   ;;
10712 esac
10713 fi
10714 TEE=$ac_cv_path_TEE
10715 if test -n "$TEE"; then
10716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10717 $as_echo "$TEE" >&6; }
10718 else
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720 $as_echo "no" >&6; }
10721 fi
10722 
10723 
10724   test -n "$TEE" && break
10725 done
10726 
10727     else
10728       # If it succeeded, then it was overridden by the user. We will use it
10729       # for the tool.
10730 
10731       # First remove it from the list of overridden variables, so we can test
10732       # for unknown variables in the end.
10733       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10734 
10735       # Check if we try to supply an empty value
10736       if test "x$TEE" = x; then
10737         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10738 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10739         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10740 $as_echo_n "checking for TEE... " >&6; }
10741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10742 $as_echo "disabled" >&6; }
10743       else
10744         # Check if the provided tool contains a complete path.
10745         tool_specified="$TEE"
10746         tool_basename="${tool_specified##*/}"
10747         if test "x$tool_basename" = "x$tool_specified"; then
10748           # A command without a complete path is provided, search $PATH.
10749           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10750 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10751           # Extract the first word of "$tool_basename", so it can be a program name with args.
10752 set dummy $tool_basename; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if ${ac_cv_path_TEE+:} false; then :
10756   $as_echo_n "(cached) " >&6
10757 else
10758   case $TEE in
10759   [\\/]* | ?:[\\/]*)
10760   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10761   ;;
10762   *)
10763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10765 do
10766   IFS=$as_save_IFS
10767   test -z "$as_dir" && as_dir=.
10768     for ac_exec_ext in '' $ac_executable_extensions; do
10769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772     break 2
10773   fi
10774 done
10775   done
10776 IFS=$as_save_IFS
10777 
10778   ;;
10779 esac
10780 fi
10781 TEE=$ac_cv_path_TEE
10782 if test -n "$TEE"; then
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10784 $as_echo "$TEE" >&6; }
10785 else
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 fi
10789 
10790 
10791           if test "x$TEE" = x; then
10792             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10793           fi
10794         else
10795           # Otherwise we believe it is a complete path. Use it as it is.
10796           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10797 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10798           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10799 $as_echo_n "checking for TEE... " >&6; }
10800           if test ! -x "$tool_specified"; then
10801             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10802 $as_echo "not found" >&6; }
10803             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10804           fi
10805           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10806 $as_echo "$tool_specified" >&6; }
10807         fi
10808       fi
10809     fi
10810 
10811   fi
10812 
10813 
10814 
10815   if test "x$TEE" = x; then
10816     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10817   fi
10818 
10819 
10820 
10821 
10822 
10823   # Publish this variable in the help.
10824 
10825 
10826   if [ -z "${TOUCH+x}" ]; then
10827     # The variable is not set by user, try to locate tool using the code snippet
10828     for ac_prog in touch
10829 do
10830   # Extract the first word of "$ac_prog", so it can be a program name with args.
10831 set dummy $ac_prog; ac_word=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_path_TOUCH+:} false; then :
10835   $as_echo_n "(cached) " >&6
10836 else
10837   case $TOUCH in
10838   [\\/]* | ?:[\\/]*)
10839   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10840   ;;
10841   *)
10842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10844 do
10845   IFS=$as_save_IFS
10846   test -z "$as_dir" && as_dir=.
10847     for ac_exec_ext in '' $ac_executable_extensions; do
10848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10849     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851     break 2
10852   fi
10853 done
10854   done
10855 IFS=$as_save_IFS
10856 
10857   ;;
10858 esac
10859 fi
10860 TOUCH=$ac_cv_path_TOUCH
10861 if test -n "$TOUCH"; then
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10863 $as_echo "$TOUCH" >&6; }
10864 else
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10867 fi
10868 
10869 
10870   test -n "$TOUCH" && break
10871 done
10872 
10873   else
10874     # The variable is set, but is it from the command line or the environment?
10875 
10876     # Try to remove the string !TOUCH! from our list.
10877     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10878     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10879       # If it failed, the variable was not from the command line. Ignore it,
10880       # but warn the user (except for BASH, which is always set by the calling BASH).
10881       if test "xTOUCH" != xBASH; then
10882         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10883 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10884       fi
10885       # Try to locate tool using the code snippet
10886       for ac_prog in touch
10887 do
10888   # Extract the first word of "$ac_prog", so it can be a program name with args.
10889 set dummy $ac_prog; ac_word=$2
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891 $as_echo_n "checking for $ac_word... " >&6; }
10892 if ${ac_cv_path_TOUCH+:} false; then :
10893   $as_echo_n "(cached) " >&6
10894 else
10895   case $TOUCH in
10896   [\\/]* | ?:[\\/]*)
10897   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10898   ;;
10899   *)
10900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10902 do
10903   IFS=$as_save_IFS
10904   test -z "$as_dir" && as_dir=.
10905     for ac_exec_ext in '' $ac_executable_extensions; do
10906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909     break 2
10910   fi
10911 done
10912   done
10913 IFS=$as_save_IFS
10914 
10915   ;;
10916 esac
10917 fi
10918 TOUCH=$ac_cv_path_TOUCH
10919 if test -n "$TOUCH"; then
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10921 $as_echo "$TOUCH" >&6; }
10922 else
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10925 fi
10926 
10927 
10928   test -n "$TOUCH" && break
10929 done
10930 
10931     else
10932       # If it succeeded, then it was overridden by the user. We will use it
10933       # for the tool.
10934 
10935       # First remove it from the list of overridden variables, so we can test
10936       # for unknown variables in the end.
10937       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10938 
10939       # Check if we try to supply an empty value
10940       if test "x$TOUCH" = x; then
10941         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
10942 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
10943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10944 $as_echo_n "checking for TOUCH... " >&6; }
10945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10946 $as_echo "disabled" >&6; }
10947       else
10948         # Check if the provided tool contains a complete path.
10949         tool_specified="$TOUCH"
10950         tool_basename="${tool_specified##*/}"
10951         if test "x$tool_basename" = "x$tool_specified"; then
10952           # A command without a complete path is provided, search $PATH.
10953           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10954 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10955           # Extract the first word of "$tool_basename", so it can be a program name with args.
10956 set dummy $tool_basename; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if ${ac_cv_path_TOUCH+:} false; then :
10960   $as_echo_n "(cached) " >&6
10961 else
10962   case $TOUCH in
10963   [\\/]* | ?:[\\/]*)
10964   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10965   ;;
10966   *)
10967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10969 do
10970   IFS=$as_save_IFS
10971   test -z "$as_dir" && as_dir=.
10972     for ac_exec_ext in '' $ac_executable_extensions; do
10973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976     break 2
10977   fi
10978 done
10979   done
10980 IFS=$as_save_IFS
10981 
10982   ;;
10983 esac
10984 fi
10985 TOUCH=$ac_cv_path_TOUCH
10986 if test -n "$TOUCH"; then
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10988 $as_echo "$TOUCH" >&6; }
10989 else
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993 
10994 
10995           if test "x$TOUCH" = x; then
10996             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10997           fi
10998         else
10999           # Otherwise we believe it is a complete path. Use it as it is.
11000           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11001 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11002           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11003 $as_echo_n "checking for TOUCH... " >&6; }
11004           if test ! -x "$tool_specified"; then
11005             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11006 $as_echo "not found" >&6; }
11007             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11008           fi
11009           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11010 $as_echo "$tool_specified" >&6; }
11011         fi
11012       fi
11013     fi
11014 
11015   fi
11016 
11017 
11018 
11019   if test "x$TOUCH" = x; then
11020     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11021   fi
11022 
11023 
11024 
11025 
11026 
11027   # Publish this variable in the help.
11028 
11029 
11030   if [ -z "${TR+x}" ]; then
11031     # The variable is not set by user, try to locate tool using the code snippet
11032     for ac_prog in tr
11033 do
11034   # Extract the first word of "$ac_prog", so it can be a program name with args.
11035 set dummy $ac_prog; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11037 $as_echo_n "checking for $ac_word... " >&6; }
11038 if ${ac_cv_path_TR+:} false; then :
11039   $as_echo_n "(cached) " >&6
11040 else
11041   case $TR in
11042   [\\/]* | ?:[\\/]*)
11043   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11044   ;;
11045   *)
11046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11048 do
11049   IFS=$as_save_IFS
11050   test -z "$as_dir" && as_dir=.
11051     for ac_exec_ext in '' $ac_executable_extensions; do
11052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055     break 2
11056   fi
11057 done
11058   done
11059 IFS=$as_save_IFS
11060 
11061   ;;
11062 esac
11063 fi
11064 TR=$ac_cv_path_TR
11065 if test -n "$TR"; then
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11067 $as_echo "$TR" >&6; }
11068 else
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11071 fi
11072 
11073 
11074   test -n "$TR" && break
11075 done
11076 
11077   else
11078     # The variable is set, but is it from the command line or the environment?
11079 
11080     # Try to remove the string !TR! from our list.
11081     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11082     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11083       # If it failed, the variable was not from the command line. Ignore it,
11084       # but warn the user (except for BASH, which is always set by the calling BASH).
11085       if test "xTR" != xBASH; then
11086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11087 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11088       fi
11089       # Try to locate tool using the code snippet
11090       for ac_prog in tr
11091 do
11092   # Extract the first word of "$ac_prog", so it can be a program name with args.
11093 set dummy $ac_prog; ac_word=$2
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095 $as_echo_n "checking for $ac_word... " >&6; }
11096 if ${ac_cv_path_TR+:} false; then :
11097   $as_echo_n "(cached) " >&6
11098 else
11099   case $TR in
11100   [\\/]* | ?:[\\/]*)
11101   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11102   ;;
11103   *)
11104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107   IFS=$as_save_IFS
11108   test -z "$as_dir" && as_dir=.
11109     for ac_exec_ext in '' $ac_executable_extensions; do
11110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11111     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113     break 2
11114   fi
11115 done
11116   done
11117 IFS=$as_save_IFS
11118 
11119   ;;
11120 esac
11121 fi
11122 TR=$ac_cv_path_TR
11123 if test -n "$TR"; then
11124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11125 $as_echo "$TR" >&6; }
11126 else
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11129 fi
11130 
11131 
11132   test -n "$TR" && break
11133 done
11134 
11135     else
11136       # If it succeeded, then it was overridden by the user. We will use it
11137       # for the tool.
11138 
11139       # First remove it from the list of overridden variables, so we can test
11140       # for unknown variables in the end.
11141       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11142 
11143       # Check if we try to supply an empty value
11144       if test "x$TR" = x; then
11145         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11146 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11148 $as_echo_n "checking for TR... " >&6; }
11149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11150 $as_echo "disabled" >&6; }
11151       else
11152         # Check if the provided tool contains a complete path.
11153         tool_specified="$TR"
11154         tool_basename="${tool_specified##*/}"
11155         if test "x$tool_basename" = "x$tool_specified"; then
11156           # A command without a complete path is provided, search $PATH.
11157           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11158 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11159           # Extract the first word of "$tool_basename", so it can be a program name with args.
11160 set dummy $tool_basename; ac_word=$2
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162 $as_echo_n "checking for $ac_word... " >&6; }
11163 if ${ac_cv_path_TR+:} false; then :
11164   $as_echo_n "(cached) " >&6
11165 else
11166   case $TR in
11167   [\\/]* | ?:[\\/]*)
11168   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11169   ;;
11170   *)
11171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11173 do
11174   IFS=$as_save_IFS
11175   test -z "$as_dir" && as_dir=.
11176     for ac_exec_ext in '' $ac_executable_extensions; do
11177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11178     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180     break 2
11181   fi
11182 done
11183   done
11184 IFS=$as_save_IFS
11185 
11186   ;;
11187 esac
11188 fi
11189 TR=$ac_cv_path_TR
11190 if test -n "$TR"; then
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11192 $as_echo "$TR" >&6; }
11193 else
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11196 fi
11197 
11198 
11199           if test "x$TR" = x; then
11200             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11201           fi
11202         else
11203           # Otherwise we believe it is a complete path. Use it as it is.
11204           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11205 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11206           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11207 $as_echo_n "checking for TR... " >&6; }
11208           if test ! -x "$tool_specified"; then
11209             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11210 $as_echo "not found" >&6; }
11211             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11212           fi
11213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11214 $as_echo "$tool_specified" >&6; }
11215         fi
11216       fi
11217     fi
11218 
11219   fi
11220 
11221 
11222 
11223   if test "x$TR" = x; then
11224     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11225   fi
11226 
11227 
11228 
11229 
11230 
11231   # Publish this variable in the help.
11232 
11233 
11234   if [ -z "${UNAME+x}" ]; then
11235     # The variable is not set by user, try to locate tool using the code snippet
11236     for ac_prog in uname
11237 do
11238   # Extract the first word of "$ac_prog", so it can be a program name with args.
11239 set dummy $ac_prog; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if ${ac_cv_path_UNAME+:} false; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245   case $UNAME in
11246   [\\/]* | ?:[\\/]*)
11247   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11248   ;;
11249   *)
11250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11252 do
11253   IFS=$as_save_IFS
11254   test -z "$as_dir" && as_dir=.
11255     for ac_exec_ext in '' $ac_executable_extensions; do
11256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11257     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259     break 2
11260   fi
11261 done
11262   done
11263 IFS=$as_save_IFS
11264 
11265   ;;
11266 esac
11267 fi
11268 UNAME=$ac_cv_path_UNAME
11269 if test -n "$UNAME"; then
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11271 $as_echo "$UNAME" >&6; }
11272 else
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11275 fi
11276 
11277 
11278   test -n "$UNAME" && break
11279 done
11280 
11281   else
11282     # The variable is set, but is it from the command line or the environment?
11283 
11284     # Try to remove the string !UNAME! from our list.
11285     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11286     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11287       # If it failed, the variable was not from the command line. Ignore it,
11288       # but warn the user (except for BASH, which is always set by the calling BASH).
11289       if test "xUNAME" != xBASH; then
11290         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11291 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11292       fi
11293       # Try to locate tool using the code snippet
11294       for ac_prog in uname
11295 do
11296   # Extract the first word of "$ac_prog", so it can be a program name with args.
11297 set dummy $ac_prog; ac_word=$2
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11299 $as_echo_n "checking for $ac_word... " >&6; }
11300 if ${ac_cv_path_UNAME+:} false; then :
11301   $as_echo_n "(cached) " >&6
11302 else
11303   case $UNAME in
11304   [\\/]* | ?:[\\/]*)
11305   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11306   ;;
11307   *)
11308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311   IFS=$as_save_IFS
11312   test -z "$as_dir" && as_dir=.
11313     for ac_exec_ext in '' $ac_executable_extensions; do
11314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317     break 2
11318   fi
11319 done
11320   done
11321 IFS=$as_save_IFS
11322 
11323   ;;
11324 esac
11325 fi
11326 UNAME=$ac_cv_path_UNAME
11327 if test -n "$UNAME"; then
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11329 $as_echo "$UNAME" >&6; }
11330 else
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334 
11335 
11336   test -n "$UNAME" && break
11337 done
11338 
11339     else
11340       # If it succeeded, then it was overridden by the user. We will use it
11341       # for the tool.
11342 
11343       # First remove it from the list of overridden variables, so we can test
11344       # for unknown variables in the end.
11345       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11346 
11347       # Check if we try to supply an empty value
11348       if test "x$UNAME" = x; then
11349         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11350 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11352 $as_echo_n "checking for UNAME... " >&6; }
11353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11354 $as_echo "disabled" >&6; }
11355       else
11356         # Check if the provided tool contains a complete path.
11357         tool_specified="$UNAME"
11358         tool_basename="${tool_specified##*/}"
11359         if test "x$tool_basename" = "x$tool_specified"; then
11360           # A command without a complete path is provided, search $PATH.
11361           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11362 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11363           # Extract the first word of "$tool_basename", so it can be a program name with args.
11364 set dummy $tool_basename; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if ${ac_cv_path_UNAME+:} false; then :
11368   $as_echo_n "(cached) " >&6
11369 else
11370   case $UNAME in
11371   [\\/]* | ?:[\\/]*)
11372   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11373   ;;
11374   *)
11375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376 for as_dir in $PATH
11377 do
11378   IFS=$as_save_IFS
11379   test -z "$as_dir" && as_dir=.
11380     for ac_exec_ext in '' $ac_executable_extensions; do
11381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11382     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11384     break 2
11385   fi
11386 done
11387   done
11388 IFS=$as_save_IFS
11389 
11390   ;;
11391 esac
11392 fi
11393 UNAME=$ac_cv_path_UNAME
11394 if test -n "$UNAME"; then
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11396 $as_echo "$UNAME" >&6; }
11397 else
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401 
11402 
11403           if test "x$UNAME" = x; then
11404             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11405           fi
11406         else
11407           # Otherwise we believe it is a complete path. Use it as it is.
11408           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11409 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11410           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11411 $as_echo_n "checking for UNAME... " >&6; }
11412           if test ! -x "$tool_specified"; then
11413             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11414 $as_echo "not found" >&6; }
11415             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11416           fi
11417           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11418 $as_echo "$tool_specified" >&6; }
11419         fi
11420       fi
11421     fi
11422 
11423   fi
11424 
11425 
11426 
11427   if test "x$UNAME" = x; then
11428     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11429   fi
11430 
11431 
11432 
11433 
11434 
11435   # Publish this variable in the help.
11436 
11437 
11438   if [ -z "${UNIQ+x}" ]; then
11439     # The variable is not set by user, try to locate tool using the code snippet
11440     for ac_prog in uniq
11441 do
11442   # Extract the first word of "$ac_prog", so it can be a program name with args.
11443 set dummy $ac_prog; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if ${ac_cv_path_UNIQ+:} false; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   case $UNIQ in
11450   [\\/]* | ?:[\\/]*)
11451   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11452   ;;
11453   *)
11454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11456 do
11457   IFS=$as_save_IFS
11458   test -z "$as_dir" && as_dir=.
11459     for ac_exec_ext in '' $ac_executable_extensions; do
11460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463     break 2
11464   fi
11465 done
11466   done
11467 IFS=$as_save_IFS
11468 
11469   ;;
11470 esac
11471 fi
11472 UNIQ=$ac_cv_path_UNIQ
11473 if test -n "$UNIQ"; then
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11475 $as_echo "$UNIQ" >&6; }
11476 else
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479 fi
11480 
11481 
11482   test -n "$UNIQ" && break
11483 done
11484 
11485   else
11486     # The variable is set, but is it from the command line or the environment?
11487 
11488     # Try to remove the string !UNIQ! from our list.
11489     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11490     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11491       # If it failed, the variable was not from the command line. Ignore it,
11492       # but warn the user (except for BASH, which is always set by the calling BASH).
11493       if test "xUNIQ" != xBASH; then
11494         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11495 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11496       fi
11497       # Try to locate tool using the code snippet
11498       for ac_prog in uniq
11499 do
11500   # Extract the first word of "$ac_prog", so it can be a program name with args.
11501 set dummy $ac_prog; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_path_UNIQ+:} false; then :
11505   $as_echo_n "(cached) " >&6
11506 else
11507   case $UNIQ in
11508   [\\/]* | ?:[\\/]*)
11509   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11510   ;;
11511   *)
11512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515   IFS=$as_save_IFS
11516   test -z "$as_dir" && as_dir=.
11517     for ac_exec_ext in '' $ac_executable_extensions; do
11518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11519     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521     break 2
11522   fi
11523 done
11524   done
11525 IFS=$as_save_IFS
11526 
11527   ;;
11528 esac
11529 fi
11530 UNIQ=$ac_cv_path_UNIQ
11531 if test -n "$UNIQ"; then
11532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11533 $as_echo "$UNIQ" >&6; }
11534 else
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537 fi
11538 
11539 
11540   test -n "$UNIQ" && break
11541 done
11542 
11543     else
11544       # If it succeeded, then it was overridden by the user. We will use it
11545       # for the tool.
11546 
11547       # First remove it from the list of overridden variables, so we can test
11548       # for unknown variables in the end.
11549       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11550 
11551       # Check if we try to supply an empty value
11552       if test "x$UNIQ" = x; then
11553         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11554 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11556 $as_echo_n "checking for UNIQ... " >&6; }
11557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11558 $as_echo "disabled" >&6; }
11559       else
11560         # Check if the provided tool contains a complete path.
11561         tool_specified="$UNIQ"
11562         tool_basename="${tool_specified##*/}"
11563         if test "x$tool_basename" = "x$tool_specified"; then
11564           # A command without a complete path is provided, search $PATH.
11565           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11566 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11567           # Extract the first word of "$tool_basename", so it can be a program name with args.
11568 set dummy $tool_basename; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_path_UNIQ+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   case $UNIQ in
11575   [\\/]* | ?:[\\/]*)
11576   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11577   ;;
11578   *)
11579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584     for ac_exec_ext in '' $ac_executable_extensions; do
11585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588     break 2
11589   fi
11590 done
11591   done
11592 IFS=$as_save_IFS
11593 
11594   ;;
11595 esac
11596 fi
11597 UNIQ=$ac_cv_path_UNIQ
11598 if test -n "$UNIQ"; then
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11600 $as_echo "$UNIQ" >&6; }
11601 else
11602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 fi
11605 
11606 
11607           if test "x$UNIQ" = x; then
11608             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11609           fi
11610         else
11611           # Otherwise we believe it is a complete path. Use it as it is.
11612           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11613 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11614           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11615 $as_echo_n "checking for UNIQ... " >&6; }
11616           if test ! -x "$tool_specified"; then
11617             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11618 $as_echo "not found" >&6; }
11619             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11620           fi
11621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11622 $as_echo "$tool_specified" >&6; }
11623         fi
11624       fi
11625     fi
11626 
11627   fi
11628 
11629 
11630 
11631   if test "x$UNIQ" = x; then
11632     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11633   fi
11634 
11635 
11636 
11637 
11638 
11639   # Publish this variable in the help.
11640 
11641 
11642   if [ -z "${WC+x}" ]; then
11643     # The variable is not set by user, try to locate tool using the code snippet
11644     for ac_prog in wc
11645 do
11646   # Extract the first word of "$ac_prog", so it can be a program name with args.
11647 set dummy $ac_prog; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if ${ac_cv_path_WC+:} false; then :
11651   $as_echo_n "(cached) " >&6
11652 else
11653   case $WC in
11654   [\\/]* | ?:[\\/]*)
11655   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11656   ;;
11657   *)
11658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11660 do
11661   IFS=$as_save_IFS
11662   test -z "$as_dir" && as_dir=.
11663     for ac_exec_ext in '' $ac_executable_extensions; do
11664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11665     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667     break 2
11668   fi
11669 done
11670   done
11671 IFS=$as_save_IFS
11672 
11673   ;;
11674 esac
11675 fi
11676 WC=$ac_cv_path_WC
11677 if test -n "$WC"; then
11678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11679 $as_echo "$WC" >&6; }
11680 else
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11683 fi
11684 
11685 
11686   test -n "$WC" && break
11687 done
11688 
11689   else
11690     # The variable is set, but is it from the command line or the environment?
11691 
11692     # Try to remove the string !WC! from our list.
11693     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11694     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11695       # If it failed, the variable was not from the command line. Ignore it,
11696       # but warn the user (except for BASH, which is always set by the calling BASH).
11697       if test "xWC" != xBASH; then
11698         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11699 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11700       fi
11701       # Try to locate tool using the code snippet
11702       for ac_prog in wc
11703 do
11704   # Extract the first word of "$ac_prog", so it can be a program name with args.
11705 set dummy $ac_prog; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if ${ac_cv_path_WC+:} false; then :
11709   $as_echo_n "(cached) " >&6
11710 else
11711   case $WC in
11712   [\\/]* | ?:[\\/]*)
11713   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11714   ;;
11715   *)
11716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $PATH
11718 do
11719   IFS=$as_save_IFS
11720   test -z "$as_dir" && as_dir=.
11721     for ac_exec_ext in '' $ac_executable_extensions; do
11722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725     break 2
11726   fi
11727 done
11728   done
11729 IFS=$as_save_IFS
11730 
11731   ;;
11732 esac
11733 fi
11734 WC=$ac_cv_path_WC
11735 if test -n "$WC"; then
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11737 $as_echo "$WC" >&6; }
11738 else
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11741 fi
11742 
11743 
11744   test -n "$WC" && break
11745 done
11746 
11747     else
11748       # If it succeeded, then it was overridden by the user. We will use it
11749       # for the tool.
11750 
11751       # First remove it from the list of overridden variables, so we can test
11752       # for unknown variables in the end.
11753       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11754 
11755       # Check if we try to supply an empty value
11756       if test "x$WC" = x; then
11757         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11758 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11760 $as_echo_n "checking for WC... " >&6; }
11761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11762 $as_echo "disabled" >&6; }
11763       else
11764         # Check if the provided tool contains a complete path.
11765         tool_specified="$WC"
11766         tool_basename="${tool_specified##*/}"
11767         if test "x$tool_basename" = "x$tool_specified"; then
11768           # A command without a complete path is provided, search $PATH.
11769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11770 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11771           # Extract the first word of "$tool_basename", so it can be a program name with args.
11772 set dummy $tool_basename; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if ${ac_cv_path_WC+:} false; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   case $WC in
11779   [\\/]* | ?:[\\/]*)
11780   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11781   ;;
11782   *)
11783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788     for ac_exec_ext in '' $ac_executable_extensions; do
11789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792     break 2
11793   fi
11794 done
11795   done
11796 IFS=$as_save_IFS
11797 
11798   ;;
11799 esac
11800 fi
11801 WC=$ac_cv_path_WC
11802 if test -n "$WC"; then
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11804 $as_echo "$WC" >&6; }
11805 else
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 fi
11809 
11810 
11811           if test "x$WC" = x; then
11812             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11813           fi
11814         else
11815           # Otherwise we believe it is a complete path. Use it as it is.
11816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11817 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11819 $as_echo_n "checking for WC... " >&6; }
11820           if test ! -x "$tool_specified"; then
11821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11822 $as_echo "not found" >&6; }
11823             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11824           fi
11825           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11826 $as_echo "$tool_specified" >&6; }
11827         fi
11828       fi
11829     fi
11830 
11831   fi
11832 
11833 
11834 
11835   if test "x$WC" = x; then
11836     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11837   fi
11838 
11839 
11840 
11841 
11842 
11843   # Publish this variable in the help.
11844 
11845 
11846   if [ -z "${WHICH+x}" ]; then
11847     # The variable is not set by user, try to locate tool using the code snippet
11848     for ac_prog in which
11849 do
11850   # Extract the first word of "$ac_prog", so it can be a program name with args.
11851 set dummy $ac_prog; ac_word=$2
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853 $as_echo_n "checking for $ac_word... " >&6; }
11854 if ${ac_cv_path_WHICH+:} false; then :
11855   $as_echo_n "(cached) " >&6
11856 else
11857   case $WHICH in
11858   [\\/]* | ?:[\\/]*)
11859   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11860   ;;
11861   *)
11862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865   IFS=$as_save_IFS
11866   test -z "$as_dir" && as_dir=.
11867     for ac_exec_ext in '' $ac_executable_extensions; do
11868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871     break 2
11872   fi
11873 done
11874   done
11875 IFS=$as_save_IFS
11876 
11877   ;;
11878 esac
11879 fi
11880 WHICH=$ac_cv_path_WHICH
11881 if test -n "$WHICH"; then
11882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11883 $as_echo "$WHICH" >&6; }
11884 else
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11887 fi
11888 
11889 
11890   test -n "$WHICH" && break
11891 done
11892 
11893   else
11894     # The variable is set, but is it from the command line or the environment?
11895 
11896     # Try to remove the string !WHICH! from our list.
11897     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11898     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11899       # If it failed, the variable was not from the command line. Ignore it,
11900       # but warn the user (except for BASH, which is always set by the calling BASH).
11901       if test "xWHICH" != xBASH; then
11902         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11903 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11904       fi
11905       # Try to locate tool using the code snippet
11906       for ac_prog in which
11907 do
11908   # Extract the first word of "$ac_prog", so it can be a program name with args.
11909 set dummy $ac_prog; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if ${ac_cv_path_WHICH+:} false; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   case $WHICH in
11916   [\\/]* | ?:[\\/]*)
11917   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11918   ;;
11919   *)
11920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921 for as_dir in $PATH
11922 do
11923   IFS=$as_save_IFS
11924   test -z "$as_dir" && as_dir=.
11925     for ac_exec_ext in '' $ac_executable_extensions; do
11926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11927     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11929     break 2
11930   fi
11931 done
11932   done
11933 IFS=$as_save_IFS
11934 
11935   ;;
11936 esac
11937 fi
11938 WHICH=$ac_cv_path_WHICH
11939 if test -n "$WHICH"; then
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11941 $as_echo "$WHICH" >&6; }
11942 else
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 fi
11946 
11947 
11948   test -n "$WHICH" && break
11949 done
11950 
11951     else
11952       # If it succeeded, then it was overridden by the user. We will use it
11953       # for the tool.
11954 
11955       # First remove it from the list of overridden variables, so we can test
11956       # for unknown variables in the end.
11957       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11958 
11959       # Check if we try to supply an empty value
11960       if test "x$WHICH" = x; then
11961         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
11962 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
11963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11964 $as_echo_n "checking for WHICH... " >&6; }
11965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11966 $as_echo "disabled" >&6; }
11967       else
11968         # Check if the provided tool contains a complete path.
11969         tool_specified="$WHICH"
11970         tool_basename="${tool_specified##*/}"
11971         if test "x$tool_basename" = "x$tool_specified"; then
11972           # A command without a complete path is provided, search $PATH.
11973           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11974 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11975           # Extract the first word of "$tool_basename", so it can be a program name with args.
11976 set dummy $tool_basename; ac_word=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if ${ac_cv_path_WHICH+:} false; then :
11980   $as_echo_n "(cached) " >&6
11981 else
11982   case $WHICH in
11983   [\\/]* | ?:[\\/]*)
11984   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11985   ;;
11986   *)
11987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11989 do
11990   IFS=$as_save_IFS
11991   test -z "$as_dir" && as_dir=.
11992     for ac_exec_ext in '' $ac_executable_extensions; do
11993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996     break 2
11997   fi
11998 done
11999   done
12000 IFS=$as_save_IFS
12001 
12002   ;;
12003 esac
12004 fi
12005 WHICH=$ac_cv_path_WHICH
12006 if test -n "$WHICH"; then
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12008 $as_echo "$WHICH" >&6; }
12009 else
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 fi
12013 
12014 
12015           if test "x$WHICH" = x; then
12016             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12017           fi
12018         else
12019           # Otherwise we believe it is a complete path. Use it as it is.
12020           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12021 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12022           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12023 $as_echo_n "checking for WHICH... " >&6; }
12024           if test ! -x "$tool_specified"; then
12025             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12026 $as_echo "not found" >&6; }
12027             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12028           fi
12029           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12030 $as_echo "$tool_specified" >&6; }
12031         fi
12032       fi
12033     fi
12034 
12035   fi
12036 
12037 
12038 
12039   if test "x$WHICH" = x; then
12040     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12041   fi
12042 
12043 
12044 
12045 
12046 
12047   # Publish this variable in the help.
12048 
12049 
12050   if [ -z "${XARGS+x}" ]; then
12051     # The variable is not set by user, try to locate tool using the code snippet
12052     for ac_prog in xargs
12053 do
12054   # Extract the first word of "$ac_prog", so it can be a program name with args.
12055 set dummy $ac_prog; ac_word=$2
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057 $as_echo_n "checking for $ac_word... " >&6; }
12058 if ${ac_cv_path_XARGS+:} false; then :
12059   $as_echo_n "(cached) " >&6
12060 else
12061   case $XARGS in
12062   [\\/]* | ?:[\\/]*)
12063   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12064   ;;
12065   *)
12066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12068 do
12069   IFS=$as_save_IFS
12070   test -z "$as_dir" && as_dir=.
12071     for ac_exec_ext in '' $ac_executable_extensions; do
12072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075     break 2
12076   fi
12077 done
12078   done
12079 IFS=$as_save_IFS
12080 
12081   ;;
12082 esac
12083 fi
12084 XARGS=$ac_cv_path_XARGS
12085 if test -n "$XARGS"; then
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12087 $as_echo "$XARGS" >&6; }
12088 else
12089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092 
12093 
12094   test -n "$XARGS" && break
12095 done
12096 
12097   else
12098     # The variable is set, but is it from the command line or the environment?
12099 
12100     # Try to remove the string !XARGS! from our list.
12101     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12102     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12103       # If it failed, the variable was not from the command line. Ignore it,
12104       # but warn the user (except for BASH, which is always set by the calling BASH).
12105       if test "xXARGS" != xBASH; then
12106         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12107 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12108       fi
12109       # Try to locate tool using the code snippet
12110       for ac_prog in xargs
12111 do
12112   # Extract the first word of "$ac_prog", so it can be a program name with args.
12113 set dummy $ac_prog; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if ${ac_cv_path_XARGS+:} false; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   case $XARGS in
12120   [\\/]* | ?:[\\/]*)
12121   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12122   ;;
12123   *)
12124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12126 do
12127   IFS=$as_save_IFS
12128   test -z "$as_dir" && as_dir=.
12129     for ac_exec_ext in '' $ac_executable_extensions; do
12130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133     break 2
12134   fi
12135 done
12136   done
12137 IFS=$as_save_IFS
12138 
12139   ;;
12140 esac
12141 fi
12142 XARGS=$ac_cv_path_XARGS
12143 if test -n "$XARGS"; then
12144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12145 $as_echo "$XARGS" >&6; }
12146 else
12147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12149 fi
12150 
12151 
12152   test -n "$XARGS" && break
12153 done
12154 
12155     else
12156       # If it succeeded, then it was overridden by the user. We will use it
12157       # for the tool.
12158 
12159       # First remove it from the list of overridden variables, so we can test
12160       # for unknown variables in the end.
12161       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12162 
12163       # Check if we try to supply an empty value
12164       if test "x$XARGS" = x; then
12165         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12166 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12168 $as_echo_n "checking for XARGS... " >&6; }
12169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12170 $as_echo "disabled" >&6; }
12171       else
12172         # Check if the provided tool contains a complete path.
12173         tool_specified="$XARGS"
12174         tool_basename="${tool_specified##*/}"
12175         if test "x$tool_basename" = "x$tool_specified"; then
12176           # A command without a complete path is provided, search $PATH.
12177           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12178 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12179           # Extract the first word of "$tool_basename", so it can be a program name with args.
12180 set dummy $tool_basename; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182 $as_echo_n "checking for $ac_word... " >&6; }
12183 if ${ac_cv_path_XARGS+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   case $XARGS in
12187   [\\/]* | ?:[\\/]*)
12188   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12189   ;;
12190   *)
12191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12193 do
12194   IFS=$as_save_IFS
12195   test -z "$as_dir" && as_dir=.
12196     for ac_exec_ext in '' $ac_executable_extensions; do
12197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200     break 2
12201   fi
12202 done
12203   done
12204 IFS=$as_save_IFS
12205 
12206   ;;
12207 esac
12208 fi
12209 XARGS=$ac_cv_path_XARGS
12210 if test -n "$XARGS"; then
12211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12212 $as_echo "$XARGS" >&6; }
12213 else
12214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217 
12218 
12219           if test "x$XARGS" = x; then
12220             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12221           fi
12222         else
12223           # Otherwise we believe it is a complete path. Use it as it is.
12224           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12225 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12226           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12227 $as_echo_n "checking for XARGS... " >&6; }
12228           if test ! -x "$tool_specified"; then
12229             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12230 $as_echo "not found" >&6; }
12231             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12232           fi
12233           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12234 $as_echo "$tool_specified" >&6; }
12235         fi
12236       fi
12237     fi
12238 
12239   fi
12240 
12241 
12242 
12243   if test "x$XARGS" = x; then
12244     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12245   fi
12246 
12247 
12248 
12249   # Then required tools that require some special treatment.
12250 
12251 
12252   # Publish this variable in the help.
12253 
12254 
12255   if [ -z "${AWK+x}" ]; then
12256     # The variable is not set by user, try to locate tool using the code snippet
12257     for ac_prog in gawk mawk nawk awk
12258 do
12259   # Extract the first word of "$ac_prog", so it can be a program name with args.
12260 set dummy $ac_prog; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if ${ac_cv_prog_AWK+:} false; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   if test -n "$AWK"; then
12267   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272   IFS=$as_save_IFS
12273   test -z "$as_dir" && as_dir=.
12274     for ac_exec_ext in '' $ac_executable_extensions; do
12275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276     ac_cv_prog_AWK="$ac_prog"
12277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278     break 2
12279   fi
12280 done
12281   done
12282 IFS=$as_save_IFS
12283 
12284 fi
12285 fi
12286 AWK=$ac_cv_prog_AWK
12287 if test -n "$AWK"; then
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12289 $as_echo "$AWK" >&6; }
12290 else
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294 
12295 
12296   test -n "$AWK" && break
12297 done
12298 
12299   else
12300     # The variable is set, but is it from the command line or the environment?
12301 
12302     # Try to remove the string !AWK! from our list.
12303     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12304     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12305       # If it failed, the variable was not from the command line. Ignore it,
12306       # but warn the user (except for BASH, which is always set by the calling BASH).
12307       if test "xAWK" != xBASH; then
12308         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12309 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12310       fi
12311       # Try to locate tool using the code snippet
12312       for ac_prog in gawk mawk nawk awk
12313 do
12314   # Extract the first word of "$ac_prog", so it can be a program name with args.
12315 set dummy $ac_prog; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_prog_AWK+:} false; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321   if test -n "$AWK"; then
12322   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327   IFS=$as_save_IFS
12328   test -z "$as_dir" && as_dir=.
12329     for ac_exec_ext in '' $ac_executable_extensions; do
12330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331     ac_cv_prog_AWK="$ac_prog"
12332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333     break 2
12334   fi
12335 done
12336   done
12337 IFS=$as_save_IFS
12338 
12339 fi
12340 fi
12341 AWK=$ac_cv_prog_AWK
12342 if test -n "$AWK"; then
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12344 $as_echo "$AWK" >&6; }
12345 else
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349 
12350 
12351   test -n "$AWK" && break
12352 done
12353 
12354     else
12355       # If it succeeded, then it was overridden by the user. We will use it
12356       # for the tool.
12357 
12358       # First remove it from the list of overridden variables, so we can test
12359       # for unknown variables in the end.
12360       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12361 
12362       # Check if we try to supply an empty value
12363       if test "x$AWK" = x; then
12364         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12365 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12366         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12367 $as_echo_n "checking for AWK... " >&6; }
12368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12369 $as_echo "disabled" >&6; }
12370       else
12371         # Check if the provided tool contains a complete path.
12372         tool_specified="$AWK"
12373         tool_basename="${tool_specified##*/}"
12374         if test "x$tool_basename" = "x$tool_specified"; then
12375           # A command without a complete path is provided, search $PATH.
12376           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12377 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12378           # Extract the first word of "$tool_basename", so it can be a program name with args.
12379 set dummy $tool_basename; ac_word=$2
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381 $as_echo_n "checking for $ac_word... " >&6; }
12382 if ${ac_cv_path_AWK+:} false; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   case $AWK in
12386   [\\/]* | ?:[\\/]*)
12387   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12388   ;;
12389   *)
12390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391 for as_dir in $PATH
12392 do
12393   IFS=$as_save_IFS
12394   test -z "$as_dir" && as_dir=.
12395     for ac_exec_ext in '' $ac_executable_extensions; do
12396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12397     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399     break 2
12400   fi
12401 done
12402   done
12403 IFS=$as_save_IFS
12404 
12405   ;;
12406 esac
12407 fi
12408 AWK=$ac_cv_path_AWK
12409 if test -n "$AWK"; then
12410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12411 $as_echo "$AWK" >&6; }
12412 else
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 fi
12416 
12417 
12418           if test "x$AWK" = x; then
12419             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12420           fi
12421         else
12422           # Otherwise we believe it is a complete path. Use it as it is.
12423           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12424 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12425           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12426 $as_echo_n "checking for AWK... " >&6; }
12427           if test ! -x "$tool_specified"; then
12428             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12429 $as_echo "not found" >&6; }
12430             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12431           fi
12432           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12433 $as_echo "$tool_specified" >&6; }
12434         fi
12435       fi
12436     fi
12437 
12438   fi
12439 
12440 
12441   if test "x$AWK" = x; then
12442     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12443   fi
12444 
12445 
12446 
12447 
12448   # Publish this variable in the help.
12449 
12450 
12451   if [ -z "${GREP+x}" ]; then
12452     # The variable is not set by user, try to locate tool using the code snippet
12453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12454 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12455 if ${ac_cv_path_GREP+:} false; then :
12456   $as_echo_n "(cached) " >&6
12457 else
12458   if test -z "$GREP"; then
12459   ac_path_GREP_found=false
12460   # Loop through the user's path and test for each of PROGNAME-LIST
12461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12463 do
12464   IFS=$as_save_IFS
12465   test -z "$as_dir" && as_dir=.
12466     for ac_prog in grep ggrep; do
12467     for ac_exec_ext in '' $ac_executable_extensions; do
12468       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12469       as_fn_executable_p "$ac_path_GREP" || continue
12470 # Check for GNU ac_path_GREP and select it if it is found.
12471   # Check for GNU $ac_path_GREP
12472 case `"$ac_path_GREP" --version 2>&1` in
12473 *GNU*)
12474   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12475 *)
12476   ac_count=0
12477   $as_echo_n 0123456789 >"conftest.in"
12478   while :
12479   do
12480     cat "conftest.in" "conftest.in" >"conftest.tmp"
12481     mv "conftest.tmp" "conftest.in"
12482     cp "conftest.in" "conftest.nl"
12483     $as_echo 'GREP' >> "conftest.nl"
12484     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12485     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12486     as_fn_arith $ac_count + 1 && ac_count=$as_val
12487     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12488       # Best one so far, save it but keep looking for a better one
12489       ac_cv_path_GREP="$ac_path_GREP"
12490       ac_path_GREP_max=$ac_count
12491     fi
12492     # 10*(2^10) chars as input seems more than enough
12493     test $ac_count -gt 10 && break
12494   done
12495   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12496 esac
12497 
12498       $ac_path_GREP_found && break 3
12499     done
12500   done
12501   done
12502 IFS=$as_save_IFS
12503   if test -z "$ac_cv_path_GREP"; then
12504     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12505   fi
12506 else
12507   ac_cv_path_GREP=$GREP
12508 fi
12509 
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12512 $as_echo "$ac_cv_path_GREP" >&6; }
12513  GREP="$ac_cv_path_GREP"
12514 
12515 
12516   else
12517     # The variable is set, but is it from the command line or the environment?
12518 
12519     # Try to remove the string !GREP! from our list.
12520     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12521     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12522       # If it failed, the variable was not from the command line. Ignore it,
12523       # but warn the user (except for BASH, which is always set by the calling BASH).
12524       if test "xGREP" != xBASH; then
12525         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12526 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12527       fi
12528       # Try to locate tool using the code snippet
12529       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12530 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12531 if ${ac_cv_path_GREP+:} false; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534   if test -z "$GREP"; then
12535   ac_path_GREP_found=false
12536   # Loop through the user's path and test for each of PROGNAME-LIST
12537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12539 do
12540   IFS=$as_save_IFS
12541   test -z "$as_dir" && as_dir=.
12542     for ac_prog in grep ggrep; do
12543     for ac_exec_ext in '' $ac_executable_extensions; do
12544       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12545       as_fn_executable_p "$ac_path_GREP" || continue
12546 # Check for GNU ac_path_GREP and select it if it is found.
12547   # Check for GNU $ac_path_GREP
12548 case `"$ac_path_GREP" --version 2>&1` in
12549 *GNU*)
12550   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12551 *)
12552   ac_count=0
12553   $as_echo_n 0123456789 >"conftest.in"
12554   while :
12555   do
12556     cat "conftest.in" "conftest.in" >"conftest.tmp"
12557     mv "conftest.tmp" "conftest.in"
12558     cp "conftest.in" "conftest.nl"
12559     $as_echo 'GREP' >> "conftest.nl"
12560     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12561     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12562     as_fn_arith $ac_count + 1 && ac_count=$as_val
12563     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12564       # Best one so far, save it but keep looking for a better one
12565       ac_cv_path_GREP="$ac_path_GREP"
12566       ac_path_GREP_max=$ac_count
12567     fi
12568     # 10*(2^10) chars as input seems more than enough
12569     test $ac_count -gt 10 && break
12570   done
12571   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12572 esac
12573 
12574       $ac_path_GREP_found && break 3
12575     done
12576   done
12577   done
12578 IFS=$as_save_IFS
12579   if test -z "$ac_cv_path_GREP"; then
12580     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12581   fi
12582 else
12583   ac_cv_path_GREP=$GREP
12584 fi
12585 
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12588 $as_echo "$ac_cv_path_GREP" >&6; }
12589  GREP="$ac_cv_path_GREP"
12590 
12591 
12592     else
12593       # If it succeeded, then it was overridden by the user. We will use it
12594       # for the tool.
12595 
12596       # First remove it from the list of overridden variables, so we can test
12597       # for unknown variables in the end.
12598       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12599 
12600       # Check if we try to supply an empty value
12601       if test "x$GREP" = x; then
12602         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12603 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12605 $as_echo_n "checking for GREP... " >&6; }
12606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12607 $as_echo "disabled" >&6; }
12608       else
12609         # Check if the provided tool contains a complete path.
12610         tool_specified="$GREP"
12611         tool_basename="${tool_specified##*/}"
12612         if test "x$tool_basename" = "x$tool_specified"; then
12613           # A command without a complete path is provided, search $PATH.
12614           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12615 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12616           # Extract the first word of "$tool_basename", so it can be a program name with args.
12617 set dummy $tool_basename; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_path_GREP+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   case $GREP in
12624   [\\/]* | ?:[\\/]*)
12625   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12626   ;;
12627   *)
12628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633     for ac_exec_ext in '' $ac_executable_extensions; do
12634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637     break 2
12638   fi
12639 done
12640   done
12641 IFS=$as_save_IFS
12642 
12643   ;;
12644 esac
12645 fi
12646 GREP=$ac_cv_path_GREP
12647 if test -n "$GREP"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12649 $as_echo "$GREP" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654 
12655 
12656           if test "x$GREP" = x; then
12657             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12658           fi
12659         else
12660           # Otherwise we believe it is a complete path. Use it as it is.
12661           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12662 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12663           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12664 $as_echo_n "checking for GREP... " >&6; }
12665           if test ! -x "$tool_specified"; then
12666             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12667 $as_echo "not found" >&6; }
12668             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12669           fi
12670           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12671 $as_echo "$tool_specified" >&6; }
12672         fi
12673       fi
12674     fi
12675 
12676   fi
12677 
12678 
12679   if test "x$GREP" = x; then
12680     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12681   fi
12682 
12683 
12684 
12685 
12686   # Publish this variable in the help.
12687 
12688 
12689   if [ -z "${EGREP+x}" ]; then
12690     # The variable is not set by user, try to locate tool using the code snippet
12691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12692 $as_echo_n "checking for egrep... " >&6; }
12693 if ${ac_cv_path_EGREP+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12697    then ac_cv_path_EGREP="$GREP -E"
12698    else
12699      if test -z "$EGREP"; then
12700   ac_path_EGREP_found=false
12701   # Loop through the user's path and test for each of PROGNAME-LIST
12702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12704 do
12705   IFS=$as_save_IFS
12706   test -z "$as_dir" && as_dir=.
12707     for ac_prog in egrep; do
12708     for ac_exec_ext in '' $ac_executable_extensions; do
12709       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12710       as_fn_executable_p "$ac_path_EGREP" || continue
12711 # Check for GNU ac_path_EGREP and select it if it is found.
12712   # Check for GNU $ac_path_EGREP
12713 case `"$ac_path_EGREP" --version 2>&1` in
12714 *GNU*)
12715   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12716 *)
12717   ac_count=0
12718   $as_echo_n 0123456789 >"conftest.in"
12719   while :
12720   do
12721     cat "conftest.in" "conftest.in" >"conftest.tmp"
12722     mv "conftest.tmp" "conftest.in"
12723     cp "conftest.in" "conftest.nl"
12724     $as_echo 'EGREP' >> "conftest.nl"
12725     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12727     as_fn_arith $ac_count + 1 && ac_count=$as_val
12728     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12729       # Best one so far, save it but keep looking for a better one
12730       ac_cv_path_EGREP="$ac_path_EGREP"
12731       ac_path_EGREP_max=$ac_count
12732     fi
12733     # 10*(2^10) chars as input seems more than enough
12734     test $ac_count -gt 10 && break
12735   done
12736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12737 esac
12738 
12739       $ac_path_EGREP_found && break 3
12740     done
12741   done
12742   done
12743 IFS=$as_save_IFS
12744   if test -z "$ac_cv_path_EGREP"; then
12745     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12746   fi
12747 else
12748   ac_cv_path_EGREP=$EGREP
12749 fi
12750 
12751    fi
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12754 $as_echo "$ac_cv_path_EGREP" >&6; }
12755  EGREP="$ac_cv_path_EGREP"
12756 
12757 
12758   else
12759     # The variable is set, but is it from the command line or the environment?
12760 
12761     # Try to remove the string !EGREP! from our list.
12762     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12763     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12764       # If it failed, the variable was not from the command line. Ignore it,
12765       # but warn the user (except for BASH, which is always set by the calling BASH).
12766       if test "xEGREP" != xBASH; then
12767         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12768 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12769       fi
12770       # Try to locate tool using the code snippet
12771       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12772 $as_echo_n "checking for egrep... " >&6; }
12773 if ${ac_cv_path_EGREP+:} false; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12777    then ac_cv_path_EGREP="$GREP -E"
12778    else
12779      if test -z "$EGREP"; then
12780   ac_path_EGREP_found=false
12781   # Loop through the user's path and test for each of PROGNAME-LIST
12782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     for ac_prog in egrep; do
12788     for ac_exec_ext in '' $ac_executable_extensions; do
12789       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12790       as_fn_executable_p "$ac_path_EGREP" || continue
12791 # Check for GNU ac_path_EGREP and select it if it is found.
12792   # Check for GNU $ac_path_EGREP
12793 case `"$ac_path_EGREP" --version 2>&1` in
12794 *GNU*)
12795   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12796 *)
12797   ac_count=0
12798   $as_echo_n 0123456789 >"conftest.in"
12799   while :
12800   do
12801     cat "conftest.in" "conftest.in" >"conftest.tmp"
12802     mv "conftest.tmp" "conftest.in"
12803     cp "conftest.in" "conftest.nl"
12804     $as_echo 'EGREP' >> "conftest.nl"
12805     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12806     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12807     as_fn_arith $ac_count + 1 && ac_count=$as_val
12808     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12809       # Best one so far, save it but keep looking for a better one
12810       ac_cv_path_EGREP="$ac_path_EGREP"
12811       ac_path_EGREP_max=$ac_count
12812     fi
12813     # 10*(2^10) chars as input seems more than enough
12814     test $ac_count -gt 10 && break
12815   done
12816   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12817 esac
12818 
12819       $ac_path_EGREP_found && break 3
12820     done
12821   done
12822   done
12823 IFS=$as_save_IFS
12824   if test -z "$ac_cv_path_EGREP"; then
12825     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12826   fi
12827 else
12828   ac_cv_path_EGREP=$EGREP
12829 fi
12830 
12831    fi
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12834 $as_echo "$ac_cv_path_EGREP" >&6; }
12835  EGREP="$ac_cv_path_EGREP"
12836 
12837 
12838     else
12839       # If it succeeded, then it was overridden by the user. We will use it
12840       # for the tool.
12841 
12842       # First remove it from the list of overridden variables, so we can test
12843       # for unknown variables in the end.
12844       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12845 
12846       # Check if we try to supply an empty value
12847       if test "x$EGREP" = x; then
12848         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12849 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12851 $as_echo_n "checking for EGREP... " >&6; }
12852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12853 $as_echo "disabled" >&6; }
12854       else
12855         # Check if the provided tool contains a complete path.
12856         tool_specified="$EGREP"
12857         tool_basename="${tool_specified##*/}"
12858         if test "x$tool_basename" = "x$tool_specified"; then
12859           # A command without a complete path is provided, search $PATH.
12860           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12861 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12862           # Extract the first word of "$tool_basename", so it can be a program name with args.
12863 set dummy $tool_basename; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if ${ac_cv_path_EGREP+:} false; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   case $EGREP in
12870   [\\/]* | ?:[\\/]*)
12871   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12872   ;;
12873   *)
12874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877   IFS=$as_save_IFS
12878   test -z "$as_dir" && as_dir=.
12879     for ac_exec_ext in '' $ac_executable_extensions; do
12880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883     break 2
12884   fi
12885 done
12886   done
12887 IFS=$as_save_IFS
12888 
12889   ;;
12890 esac
12891 fi
12892 EGREP=$ac_cv_path_EGREP
12893 if test -n "$EGREP"; then
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12895 $as_echo "$EGREP" >&6; }
12896 else
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900 
12901 
12902           if test "x$EGREP" = x; then
12903             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12904           fi
12905         else
12906           # Otherwise we believe it is a complete path. Use it as it is.
12907           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12908 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12909           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12910 $as_echo_n "checking for EGREP... " >&6; }
12911           if test ! -x "$tool_specified"; then
12912             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12913 $as_echo "not found" >&6; }
12914             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12915           fi
12916           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12917 $as_echo "$tool_specified" >&6; }
12918         fi
12919       fi
12920     fi
12921 
12922   fi
12923 
12924 
12925   if test "x$EGREP" = x; then
12926     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12927   fi
12928 
12929 
12930 
12931 
12932   # Publish this variable in the help.
12933 
12934 
12935   if [ -z "${FGREP+x}" ]; then
12936     # The variable is not set by user, try to locate tool using the code snippet
12937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12938 $as_echo_n "checking for fgrep... " >&6; }
12939 if ${ac_cv_path_FGREP+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12943    then ac_cv_path_FGREP="$GREP -F"
12944    else
12945      if test -z "$FGREP"; then
12946   ac_path_FGREP_found=false
12947   # Loop through the user's path and test for each of PROGNAME-LIST
12948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12950 do
12951   IFS=$as_save_IFS
12952   test -z "$as_dir" && as_dir=.
12953     for ac_prog in fgrep; do
12954     for ac_exec_ext in '' $ac_executable_extensions; do
12955       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12956       as_fn_executable_p "$ac_path_FGREP" || continue
12957 # Check for GNU ac_path_FGREP and select it if it is found.
12958   # Check for GNU $ac_path_FGREP
12959 case `"$ac_path_FGREP" --version 2>&1` in
12960 *GNU*)
12961   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12962 *)
12963   ac_count=0
12964   $as_echo_n 0123456789 >"conftest.in"
12965   while :
12966   do
12967     cat "conftest.in" "conftest.in" >"conftest.tmp"
12968     mv "conftest.tmp" "conftest.in"
12969     cp "conftest.in" "conftest.nl"
12970     $as_echo 'FGREP' >> "conftest.nl"
12971     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12972     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12973     as_fn_arith $ac_count + 1 && ac_count=$as_val
12974     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12975       # Best one so far, save it but keep looking for a better one
12976       ac_cv_path_FGREP="$ac_path_FGREP"
12977       ac_path_FGREP_max=$ac_count
12978     fi
12979     # 10*(2^10) chars as input seems more than enough
12980     test $ac_count -gt 10 && break
12981   done
12982   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12983 esac
12984 
12985       $ac_path_FGREP_found && break 3
12986     done
12987   done
12988   done
12989 IFS=$as_save_IFS
12990   if test -z "$ac_cv_path_FGREP"; then
12991     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12992   fi
12993 else
12994   ac_cv_path_FGREP=$FGREP
12995 fi
12996 
12997    fi
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13000 $as_echo "$ac_cv_path_FGREP" >&6; }
13001  FGREP="$ac_cv_path_FGREP"
13002 
13003 
13004   else
13005     # The variable is set, but is it from the command line or the environment?
13006 
13007     # Try to remove the string !FGREP! from our list.
13008     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13009     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13010       # If it failed, the variable was not from the command line. Ignore it,
13011       # but warn the user (except for BASH, which is always set by the calling BASH).
13012       if test "xFGREP" != xBASH; then
13013         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13014 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13015       fi
13016       # Try to locate tool using the code snippet
13017       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13018 $as_echo_n "checking for fgrep... " >&6; }
13019 if ${ac_cv_path_FGREP+:} false; then :
13020   $as_echo_n "(cached) " >&6
13021 else
13022   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13023    then ac_cv_path_FGREP="$GREP -F"
13024    else
13025      if test -z "$FGREP"; then
13026   ac_path_FGREP_found=false
13027   # Loop through the user's path and test for each of PROGNAME-LIST
13028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13030 do
13031   IFS=$as_save_IFS
13032   test -z "$as_dir" && as_dir=.
13033     for ac_prog in fgrep; do
13034     for ac_exec_ext in '' $ac_executable_extensions; do
13035       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13036       as_fn_executable_p "$ac_path_FGREP" || continue
13037 # Check for GNU ac_path_FGREP and select it if it is found.
13038   # Check for GNU $ac_path_FGREP
13039 case `"$ac_path_FGREP" --version 2>&1` in
13040 *GNU*)
13041   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13042 *)
13043   ac_count=0
13044   $as_echo_n 0123456789 >"conftest.in"
13045   while :
13046   do
13047     cat "conftest.in" "conftest.in" >"conftest.tmp"
13048     mv "conftest.tmp" "conftest.in"
13049     cp "conftest.in" "conftest.nl"
13050     $as_echo 'FGREP' >> "conftest.nl"
13051     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13053     as_fn_arith $ac_count + 1 && ac_count=$as_val
13054     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13055       # Best one so far, save it but keep looking for a better one
13056       ac_cv_path_FGREP="$ac_path_FGREP"
13057       ac_path_FGREP_max=$ac_count
13058     fi
13059     # 10*(2^10) chars as input seems more than enough
13060     test $ac_count -gt 10 && break
13061   done
13062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13063 esac
13064 
13065       $ac_path_FGREP_found && break 3
13066     done
13067   done
13068   done
13069 IFS=$as_save_IFS
13070   if test -z "$ac_cv_path_FGREP"; then
13071     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13072   fi
13073 else
13074   ac_cv_path_FGREP=$FGREP
13075 fi
13076 
13077    fi
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13080 $as_echo "$ac_cv_path_FGREP" >&6; }
13081  FGREP="$ac_cv_path_FGREP"
13082 
13083 
13084     else
13085       # If it succeeded, then it was overridden by the user. We will use it
13086       # for the tool.
13087 
13088       # First remove it from the list of overridden variables, so we can test
13089       # for unknown variables in the end.
13090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13091 
13092       # Check if we try to supply an empty value
13093       if test "x$FGREP" = x; then
13094         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13095 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13097 $as_echo_n "checking for FGREP... " >&6; }
13098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13099 $as_echo "disabled" >&6; }
13100       else
13101         # Check if the provided tool contains a complete path.
13102         tool_specified="$FGREP"
13103         tool_basename="${tool_specified##*/}"
13104         if test "x$tool_basename" = "x$tool_specified"; then
13105           # A command without a complete path is provided, search $PATH.
13106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13107 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13108           # Extract the first word of "$tool_basename", so it can be a program name with args.
13109 set dummy $tool_basename; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if ${ac_cv_path_FGREP+:} false; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   case $FGREP in
13116   [\\/]* | ?:[\\/]*)
13117   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13118   ;;
13119   *)
13120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13122 do
13123   IFS=$as_save_IFS
13124   test -z "$as_dir" && as_dir=.
13125     for ac_exec_ext in '' $ac_executable_extensions; do
13126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13127     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129     break 2
13130   fi
13131 done
13132   done
13133 IFS=$as_save_IFS
13134 
13135   ;;
13136 esac
13137 fi
13138 FGREP=$ac_cv_path_FGREP
13139 if test -n "$FGREP"; then
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13141 $as_echo "$FGREP" >&6; }
13142 else
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13145 fi
13146 
13147 
13148           if test "x$FGREP" = x; then
13149             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13150           fi
13151         else
13152           # Otherwise we believe it is a complete path. Use it as it is.
13153           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13154 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13156 $as_echo_n "checking for FGREP... " >&6; }
13157           if test ! -x "$tool_specified"; then
13158             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13159 $as_echo "not found" >&6; }
13160             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13161           fi
13162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13163 $as_echo "$tool_specified" >&6; }
13164         fi
13165       fi
13166     fi
13167 
13168   fi
13169 
13170 
13171   if test "x$FGREP" = x; then
13172     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13173   fi
13174 
13175 
13176 
13177 
13178   # Publish this variable in the help.
13179 
13180 
13181   if [ -z "${SED+x}" ]; then
13182     # The variable is not set by user, try to locate tool using the code snippet
13183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13185 if ${ac_cv_path_SED+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13189      for ac_i in 1 2 3 4 5 6 7; do
13190        ac_script="$ac_script$as_nl$ac_script"
13191      done
13192      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13193      { ac_script=; unset ac_script;}
13194      if test -z "$SED"; then
13195   ac_path_SED_found=false
13196   # Loop through the user's path and test for each of PROGNAME-LIST
13197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13199 do
13200   IFS=$as_save_IFS
13201   test -z "$as_dir" && as_dir=.
13202     for ac_prog in sed gsed; do
13203     for ac_exec_ext in '' $ac_executable_extensions; do
13204       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13205       as_fn_executable_p "$ac_path_SED" || continue
13206 # Check for GNU ac_path_SED and select it if it is found.
13207   # Check for GNU $ac_path_SED
13208 case `"$ac_path_SED" --version 2>&1` in
13209 *GNU*)
13210   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13211 *)
13212   ac_count=0
13213   $as_echo_n 0123456789 >"conftest.in"
13214   while :
13215   do
13216     cat "conftest.in" "conftest.in" >"conftest.tmp"
13217     mv "conftest.tmp" "conftest.in"
13218     cp "conftest.in" "conftest.nl"
13219     $as_echo '' >> "conftest.nl"
13220     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13221     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13222     as_fn_arith $ac_count + 1 && ac_count=$as_val
13223     if test $ac_count -gt ${ac_path_SED_max-0}; then
13224       # Best one so far, save it but keep looking for a better one
13225       ac_cv_path_SED="$ac_path_SED"
13226       ac_path_SED_max=$ac_count
13227     fi
13228     # 10*(2^10) chars as input seems more than enough
13229     test $ac_count -gt 10 && break
13230   done
13231   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13232 esac
13233 
13234       $ac_path_SED_found && break 3
13235     done
13236   done
13237   done
13238 IFS=$as_save_IFS
13239   if test -z "$ac_cv_path_SED"; then
13240     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13241   fi
13242 else
13243   ac_cv_path_SED=$SED
13244 fi
13245 
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13248 $as_echo "$ac_cv_path_SED" >&6; }
13249  SED="$ac_cv_path_SED"
13250   rm -f conftest.sed
13251 
13252   else
13253     # The variable is set, but is it from the command line or the environment?
13254 
13255     # Try to remove the string !SED! from our list.
13256     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13257     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13258       # If it failed, the variable was not from the command line. Ignore it,
13259       # but warn the user (except for BASH, which is always set by the calling BASH).
13260       if test "xSED" != xBASH; then
13261         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13262 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13263       fi
13264       # Try to locate tool using the code snippet
13265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13266 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13267 if ${ac_cv_path_SED+:} false; then :
13268   $as_echo_n "(cached) " >&6
13269 else
13270             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13271      for ac_i in 1 2 3 4 5 6 7; do
13272        ac_script="$ac_script$as_nl$ac_script"
13273      done
13274      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13275      { ac_script=; unset ac_script;}
13276      if test -z "$SED"; then
13277   ac_path_SED_found=false
13278   # Loop through the user's path and test for each of PROGNAME-LIST
13279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280 for as_dir in $PATH
13281 do
13282   IFS=$as_save_IFS
13283   test -z "$as_dir" && as_dir=.
13284     for ac_prog in sed gsed; do
13285     for ac_exec_ext in '' $ac_executable_extensions; do
13286       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13287       as_fn_executable_p "$ac_path_SED" || continue
13288 # Check for GNU ac_path_SED and select it if it is found.
13289   # Check for GNU $ac_path_SED
13290 case `"$ac_path_SED" --version 2>&1` in
13291 *GNU*)
13292   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13293 *)
13294   ac_count=0
13295   $as_echo_n 0123456789 >"conftest.in"
13296   while :
13297   do
13298     cat "conftest.in" "conftest.in" >"conftest.tmp"
13299     mv "conftest.tmp" "conftest.in"
13300     cp "conftest.in" "conftest.nl"
13301     $as_echo '' >> "conftest.nl"
13302     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13303     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13304     as_fn_arith $ac_count + 1 && ac_count=$as_val
13305     if test $ac_count -gt ${ac_path_SED_max-0}; then
13306       # Best one so far, save it but keep looking for a better one
13307       ac_cv_path_SED="$ac_path_SED"
13308       ac_path_SED_max=$ac_count
13309     fi
13310     # 10*(2^10) chars as input seems more than enough
13311     test $ac_count -gt 10 && break
13312   done
13313   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13314 esac
13315 
13316       $ac_path_SED_found && break 3
13317     done
13318   done
13319   done
13320 IFS=$as_save_IFS
13321   if test -z "$ac_cv_path_SED"; then
13322     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13323   fi
13324 else
13325   ac_cv_path_SED=$SED
13326 fi
13327 
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13330 $as_echo "$ac_cv_path_SED" >&6; }
13331  SED="$ac_cv_path_SED"
13332   rm -f conftest.sed
13333 
13334     else
13335       # If it succeeded, then it was overridden by the user. We will use it
13336       # for the tool.
13337 
13338       # First remove it from the list of overridden variables, so we can test
13339       # for unknown variables in the end.
13340       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13341 
13342       # Check if we try to supply an empty value
13343       if test "x$SED" = x; then
13344         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13345 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13347 $as_echo_n "checking for SED... " >&6; }
13348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13349 $as_echo "disabled" >&6; }
13350       else
13351         # Check if the provided tool contains a complete path.
13352         tool_specified="$SED"
13353         tool_basename="${tool_specified##*/}"
13354         if test "x$tool_basename" = "x$tool_specified"; then
13355           # A command without a complete path is provided, search $PATH.
13356           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13357 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13358           # Extract the first word of "$tool_basename", so it can be a program name with args.
13359 set dummy $tool_basename; ac_word=$2
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13361 $as_echo_n "checking for $ac_word... " >&6; }
13362 if ${ac_cv_path_SED+:} false; then :
13363   $as_echo_n "(cached) " >&6
13364 else
13365   case $SED in
13366   [\\/]* | ?:[\\/]*)
13367   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13368   ;;
13369   *)
13370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373   IFS=$as_save_IFS
13374   test -z "$as_dir" && as_dir=.
13375     for ac_exec_ext in '' $ac_executable_extensions; do
13376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379     break 2
13380   fi
13381 done
13382   done
13383 IFS=$as_save_IFS
13384 
13385   ;;
13386 esac
13387 fi
13388 SED=$ac_cv_path_SED
13389 if test -n "$SED"; then
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13391 $as_echo "$SED" >&6; }
13392 else
13393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396 
13397 
13398           if test "x$SED" = x; then
13399             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13400           fi
13401         else
13402           # Otherwise we believe it is a complete path. Use it as it is.
13403           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13404 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13405           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13406 $as_echo_n "checking for SED... " >&6; }
13407           if test ! -x "$tool_specified"; then
13408             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13409 $as_echo "not found" >&6; }
13410             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13411           fi
13412           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13413 $as_echo "$tool_specified" >&6; }
13414         fi
13415       fi
13416     fi
13417 
13418   fi
13419 
13420 
13421   if test "x$SED" = x; then
13422     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13423   fi
13424 
13425 
13426 
13427   # Always force rm.
13428   RM="$RM -f"
13429 
13430   # pwd behaves differently on various platforms and some don't support the -L flag.
13431   # Always use the bash builtin pwd to get uniform behavior.
13432   THEPWDCMD=pwd
13433 
13434   # These are not required on all platforms
13435 
13436 
13437   # Publish this variable in the help.
13438 
13439 
13440   if [ -z "${CYGPATH+x}" ]; then
13441     # The variable is not set by user, try to locate tool using the code snippet
13442     for ac_prog in cygpath
13443 do
13444   # Extract the first word of "$ac_prog", so it can be a program name with args.
13445 set dummy $ac_prog; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if ${ac_cv_path_CYGPATH+:} false; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   case $CYGPATH in
13452   [\\/]* | ?:[\\/]*)
13453   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13454   ;;
13455   *)
13456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13458 do
13459   IFS=$as_save_IFS
13460   test -z "$as_dir" && as_dir=.
13461     for ac_exec_ext in '' $ac_executable_extensions; do
13462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13463     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465     break 2
13466   fi
13467 done
13468   done
13469 IFS=$as_save_IFS
13470 
13471   ;;
13472 esac
13473 fi
13474 CYGPATH=$ac_cv_path_CYGPATH
13475 if test -n "$CYGPATH"; then
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13477 $as_echo "$CYGPATH" >&6; }
13478 else
13479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13481 fi
13482 
13483 
13484   test -n "$CYGPATH" && break
13485 done
13486 
13487   else
13488     # The variable is set, but is it from the command line or the environment?
13489 
13490     # Try to remove the string !CYGPATH! from our list.
13491     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13492     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13493       # If it failed, the variable was not from the command line. Ignore it,
13494       # but warn the user (except for BASH, which is always set by the calling BASH).
13495       if test "xCYGPATH" != xBASH; then
13496         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13497 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13498       fi
13499       # Try to locate tool using the code snippet
13500       for ac_prog in cygpath
13501 do
13502   # Extract the first word of "$ac_prog", so it can be a program name with args.
13503 set dummy $ac_prog; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if ${ac_cv_path_CYGPATH+:} false; then :
13507   $as_echo_n "(cached) " >&6
13508 else
13509   case $CYGPATH in
13510   [\\/]* | ?:[\\/]*)
13511   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13512   ;;
13513   *)
13514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13516 do
13517   IFS=$as_save_IFS
13518   test -z "$as_dir" && as_dir=.
13519     for ac_exec_ext in '' $ac_executable_extensions; do
13520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523     break 2
13524   fi
13525 done
13526   done
13527 IFS=$as_save_IFS
13528 
13529   ;;
13530 esac
13531 fi
13532 CYGPATH=$ac_cv_path_CYGPATH
13533 if test -n "$CYGPATH"; then
13534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13535 $as_echo "$CYGPATH" >&6; }
13536 else
13537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13539 fi
13540 
13541 
13542   test -n "$CYGPATH" && break
13543 done
13544 
13545     else
13546       # If it succeeded, then it was overridden by the user. We will use it
13547       # for the tool.
13548 
13549       # First remove it from the list of overridden variables, so we can test
13550       # for unknown variables in the end.
13551       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13552 
13553       # Check if we try to supply an empty value
13554       if test "x$CYGPATH" = x; then
13555         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13556 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13557         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13558 $as_echo_n "checking for CYGPATH... " >&6; }
13559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13560 $as_echo "disabled" >&6; }
13561       else
13562         # Check if the provided tool contains a complete path.
13563         tool_specified="$CYGPATH"
13564         tool_basename="${tool_specified##*/}"
13565         if test "x$tool_basename" = "x$tool_specified"; then
13566           # A command without a complete path is provided, search $PATH.
13567           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13568 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13569           # Extract the first word of "$tool_basename", so it can be a program name with args.
13570 set dummy $tool_basename; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13572 $as_echo_n "checking for $ac_word... " >&6; }
13573 if ${ac_cv_path_CYGPATH+:} false; then :
13574   $as_echo_n "(cached) " >&6
13575 else
13576   case $CYGPATH in
13577   [\\/]* | ?:[\\/]*)
13578   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13579   ;;
13580   *)
13581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13582 for as_dir in $PATH
13583 do
13584   IFS=$as_save_IFS
13585   test -z "$as_dir" && as_dir=.
13586     for ac_exec_ext in '' $ac_executable_extensions; do
13587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13588     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590     break 2
13591   fi
13592 done
13593   done
13594 IFS=$as_save_IFS
13595 
13596   ;;
13597 esac
13598 fi
13599 CYGPATH=$ac_cv_path_CYGPATH
13600 if test -n "$CYGPATH"; then
13601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13602 $as_echo "$CYGPATH" >&6; }
13603 else
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13606 fi
13607 
13608 
13609           if test "x$CYGPATH" = x; then
13610             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13611           fi
13612         else
13613           # Otherwise we believe it is a complete path. Use it as it is.
13614           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13615 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13616           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13617 $as_echo_n "checking for CYGPATH... " >&6; }
13618           if test ! -x "$tool_specified"; then
13619             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13620 $as_echo "not found" >&6; }
13621             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13622           fi
13623           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13624 $as_echo "$tool_specified" >&6; }
13625         fi
13626       fi
13627     fi
13628 
13629   fi
13630 
13631 
13632 
13633 
13634   # Publish this variable in the help.
13635 
13636 
13637   if [ -z "${READLINK+x}" ]; then
13638     # The variable is not set by user, try to locate tool using the code snippet
13639     for ac_prog in greadlink readlink
13640 do
13641   # Extract the first word of "$ac_prog", so it can be a program name with args.
13642 set dummy $ac_prog; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_path_READLINK+:} false; then :
13646   $as_echo_n "(cached) " >&6
13647 else
13648   case $READLINK in
13649   [\\/]* | ?:[\\/]*)
13650   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13651   ;;
13652   *)
13653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH
13655 do
13656   IFS=$as_save_IFS
13657   test -z "$as_dir" && as_dir=.
13658     for ac_exec_ext in '' $ac_executable_extensions; do
13659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13660     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662     break 2
13663   fi
13664 done
13665   done
13666 IFS=$as_save_IFS
13667 
13668   ;;
13669 esac
13670 fi
13671 READLINK=$ac_cv_path_READLINK
13672 if test -n "$READLINK"; then
13673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13674 $as_echo "$READLINK" >&6; }
13675 else
13676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 $as_echo "no" >&6; }
13678 fi
13679 
13680 
13681   test -n "$READLINK" && break
13682 done
13683 
13684   else
13685     # The variable is set, but is it from the command line or the environment?
13686 
13687     # Try to remove the string !READLINK! from our list.
13688     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13689     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13690       # If it failed, the variable was not from the command line. Ignore it,
13691       # but warn the user (except for BASH, which is always set by the calling BASH).
13692       if test "xREADLINK" != xBASH; then
13693         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13694 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13695       fi
13696       # Try to locate tool using the code snippet
13697       for ac_prog in greadlink readlink
13698 do
13699   # Extract the first word of "$ac_prog", so it can be a program name with args.
13700 set dummy $ac_prog; ac_word=$2
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13702 $as_echo_n "checking for $ac_word... " >&6; }
13703 if ${ac_cv_path_READLINK+:} false; then :
13704   $as_echo_n "(cached) " >&6
13705 else
13706   case $READLINK in
13707   [\\/]* | ?:[\\/]*)
13708   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13709   ;;
13710   *)
13711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13713 do
13714   IFS=$as_save_IFS
13715   test -z "$as_dir" && as_dir=.
13716     for ac_exec_ext in '' $ac_executable_extensions; do
13717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720     break 2
13721   fi
13722 done
13723   done
13724 IFS=$as_save_IFS
13725 
13726   ;;
13727 esac
13728 fi
13729 READLINK=$ac_cv_path_READLINK
13730 if test -n "$READLINK"; then
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13732 $as_echo "$READLINK" >&6; }
13733 else
13734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736 fi
13737 
13738 
13739   test -n "$READLINK" && break
13740 done
13741 
13742     else
13743       # If it succeeded, then it was overridden by the user. We will use it
13744       # for the tool.
13745 
13746       # First remove it from the list of overridden variables, so we can test
13747       # for unknown variables in the end.
13748       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13749 
13750       # Check if we try to supply an empty value
13751       if test "x$READLINK" = x; then
13752         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13753 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13755 $as_echo_n "checking for READLINK... " >&6; }
13756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13757 $as_echo "disabled" >&6; }
13758       else
13759         # Check if the provided tool contains a complete path.
13760         tool_specified="$READLINK"
13761         tool_basename="${tool_specified##*/}"
13762         if test "x$tool_basename" = "x$tool_specified"; then
13763           # A command without a complete path is provided, search $PATH.
13764           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13765 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13766           # Extract the first word of "$tool_basename", so it can be a program name with args.
13767 set dummy $tool_basename; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_path_READLINK+:} false; then :
13771   $as_echo_n "(cached) " >&6
13772 else
13773   case $READLINK in
13774   [\\/]* | ?:[\\/]*)
13775   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13776   ;;
13777   *)
13778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779 for as_dir in $PATH
13780 do
13781   IFS=$as_save_IFS
13782   test -z "$as_dir" && as_dir=.
13783     for ac_exec_ext in '' $ac_executable_extensions; do
13784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787     break 2
13788   fi
13789 done
13790   done
13791 IFS=$as_save_IFS
13792 
13793   ;;
13794 esac
13795 fi
13796 READLINK=$ac_cv_path_READLINK
13797 if test -n "$READLINK"; then
13798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13799 $as_echo "$READLINK" >&6; }
13800 else
13801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13803 fi
13804 
13805 
13806           if test "x$READLINK" = x; then
13807             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13808           fi
13809         else
13810           # Otherwise we believe it is a complete path. Use it as it is.
13811           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13812 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13813           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13814 $as_echo_n "checking for READLINK... " >&6; }
13815           if test ! -x "$tool_specified"; then
13816             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13817 $as_echo "not found" >&6; }
13818             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13819           fi
13820           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13821 $as_echo "$tool_specified" >&6; }
13822         fi
13823       fi
13824     fi
13825 
13826   fi
13827 
13828 
13829 
13830 
13831   # Publish this variable in the help.
13832 
13833 
13834   if [ -z "${DF+x}" ]; then
13835     # The variable is not set by user, try to locate tool using the code snippet
13836     for ac_prog in df
13837 do
13838   # Extract the first word of "$ac_prog", so it can be a program name with args.
13839 set dummy $ac_prog; ac_word=$2
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13841 $as_echo_n "checking for $ac_word... " >&6; }
13842 if ${ac_cv_path_DF+:} false; then :
13843   $as_echo_n "(cached) " >&6
13844 else
13845   case $DF in
13846   [\\/]* | ?:[\\/]*)
13847   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13848   ;;
13849   *)
13850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13851 for as_dir in $PATH
13852 do
13853   IFS=$as_save_IFS
13854   test -z "$as_dir" && as_dir=.
13855     for ac_exec_ext in '' $ac_executable_extensions; do
13856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13857     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13859     break 2
13860   fi
13861 done
13862   done
13863 IFS=$as_save_IFS
13864 
13865   ;;
13866 esac
13867 fi
13868 DF=$ac_cv_path_DF
13869 if test -n "$DF"; then
13870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13871 $as_echo "$DF" >&6; }
13872 else
13873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 fi
13876 
13877 
13878   test -n "$DF" && break
13879 done
13880 
13881   else
13882     # The variable is set, but is it from the command line or the environment?
13883 
13884     # Try to remove the string !DF! from our list.
13885     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13886     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13887       # If it failed, the variable was not from the command line. Ignore it,
13888       # but warn the user (except for BASH, which is always set by the calling BASH).
13889       if test "xDF" != xBASH; then
13890         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13891 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13892       fi
13893       # Try to locate tool using the code snippet
13894       for ac_prog in df
13895 do
13896   # Extract the first word of "$ac_prog", so it can be a program name with args.
13897 set dummy $ac_prog; ac_word=$2
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899 $as_echo_n "checking for $ac_word... " >&6; }
13900 if ${ac_cv_path_DF+:} false; then :
13901   $as_echo_n "(cached) " >&6
13902 else
13903   case $DF in
13904   [\\/]* | ?:[\\/]*)
13905   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13906   ;;
13907   *)
13908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909 for as_dir in $PATH
13910 do
13911   IFS=$as_save_IFS
13912   test -z "$as_dir" && as_dir=.
13913     for ac_exec_ext in '' $ac_executable_extensions; do
13914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13915     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13917     break 2
13918   fi
13919 done
13920   done
13921 IFS=$as_save_IFS
13922 
13923   ;;
13924 esac
13925 fi
13926 DF=$ac_cv_path_DF
13927 if test -n "$DF"; then
13928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13929 $as_echo "$DF" >&6; }
13930 else
13931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13932 $as_echo "no" >&6; }
13933 fi
13934 
13935 
13936   test -n "$DF" && break
13937 done
13938 
13939     else
13940       # If it succeeded, then it was overridden by the user. We will use it
13941       # for the tool.
13942 
13943       # First remove it from the list of overridden variables, so we can test
13944       # for unknown variables in the end.
13945       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13946 
13947       # Check if we try to supply an empty value
13948       if test "x$DF" = x; then
13949         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
13950 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
13951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13952 $as_echo_n "checking for DF... " >&6; }
13953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13954 $as_echo "disabled" >&6; }
13955       else
13956         # Check if the provided tool contains a complete path.
13957         tool_specified="$DF"
13958         tool_basename="${tool_specified##*/}"
13959         if test "x$tool_basename" = "x$tool_specified"; then
13960           # A command without a complete path is provided, search $PATH.
13961           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13962 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13963           # Extract the first word of "$tool_basename", so it can be a program name with args.
13964 set dummy $tool_basename; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_path_DF+:} false; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   case $DF in
13971   [\\/]* | ?:[\\/]*)
13972   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13973   ;;
13974   *)
13975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13977 do
13978   IFS=$as_save_IFS
13979   test -z "$as_dir" && as_dir=.
13980     for ac_exec_ext in '' $ac_executable_extensions; do
13981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13982     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984     break 2
13985   fi
13986 done
13987   done
13988 IFS=$as_save_IFS
13989 
13990   ;;
13991 esac
13992 fi
13993 DF=$ac_cv_path_DF
13994 if test -n "$DF"; then
13995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13996 $as_echo "$DF" >&6; }
13997 else
13998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14000 fi
14001 
14002 
14003           if test "x$DF" = x; then
14004             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14005           fi
14006         else
14007           # Otherwise we believe it is a complete path. Use it as it is.
14008           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14009 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14010           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14011 $as_echo_n "checking for DF... " >&6; }
14012           if test ! -x "$tool_specified"; then
14013             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14014 $as_echo "not found" >&6; }
14015             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14016           fi
14017           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14018 $as_echo "$tool_specified" >&6; }
14019         fi
14020       fi
14021     fi
14022 
14023   fi
14024 
14025 
14026 
14027 
14028   # Publish this variable in the help.
14029 
14030 
14031   if [ -z "${CPIO+x}" ]; then
14032     # The variable is not set by user, try to locate tool using the code snippet
14033     for ac_prog in cpio bsdcpio
14034 do
14035   # Extract the first word of "$ac_prog", so it can be a program name with args.
14036 set dummy $ac_prog; ac_word=$2
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14038 $as_echo_n "checking for $ac_word... " >&6; }
14039 if ${ac_cv_path_CPIO+:} false; then :
14040   $as_echo_n "(cached) " >&6
14041 else
14042   case $CPIO in
14043   [\\/]* | ?:[\\/]*)
14044   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14045   ;;
14046   *)
14047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14049 do
14050   IFS=$as_save_IFS
14051   test -z "$as_dir" && as_dir=.
14052     for ac_exec_ext in '' $ac_executable_extensions; do
14053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14056     break 2
14057   fi
14058 done
14059   done
14060 IFS=$as_save_IFS
14061 
14062   ;;
14063 esac
14064 fi
14065 CPIO=$ac_cv_path_CPIO
14066 if test -n "$CPIO"; then
14067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14068 $as_echo "$CPIO" >&6; }
14069 else
14070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072 fi
14073 
14074 
14075   test -n "$CPIO" && break
14076 done
14077 
14078   else
14079     # The variable is set, but is it from the command line or the environment?
14080 
14081     # Try to remove the string !CPIO! from our list.
14082     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14083     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14084       # If it failed, the variable was not from the command line. Ignore it,
14085       # but warn the user (except for BASH, which is always set by the calling BASH).
14086       if test "xCPIO" != xBASH; then
14087         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14088 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14089       fi
14090       # Try to locate tool using the code snippet
14091       for ac_prog in cpio bsdcpio
14092 do
14093   # Extract the first word of "$ac_prog", so it can be a program name with args.
14094 set dummy $ac_prog; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if ${ac_cv_path_CPIO+:} false; then :
14098   $as_echo_n "(cached) " >&6
14099 else
14100   case $CPIO in
14101   [\\/]* | ?:[\\/]*)
14102   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14103   ;;
14104   *)
14105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14107 do
14108   IFS=$as_save_IFS
14109   test -z "$as_dir" && as_dir=.
14110     for ac_exec_ext in '' $ac_executable_extensions; do
14111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114     break 2
14115   fi
14116 done
14117   done
14118 IFS=$as_save_IFS
14119 
14120   ;;
14121 esac
14122 fi
14123 CPIO=$ac_cv_path_CPIO
14124 if test -n "$CPIO"; then
14125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14126 $as_echo "$CPIO" >&6; }
14127 else
14128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131 
14132 
14133   test -n "$CPIO" && break
14134 done
14135 
14136     else
14137       # If it succeeded, then it was overridden by the user. We will use it
14138       # for the tool.
14139 
14140       # First remove it from the list of overridden variables, so we can test
14141       # for unknown variables in the end.
14142       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14143 
14144       # Check if we try to supply an empty value
14145       if test "x$CPIO" = x; then
14146         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14147 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14149 $as_echo_n "checking for CPIO... " >&6; }
14150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14151 $as_echo "disabled" >&6; }
14152       else
14153         # Check if the provided tool contains a complete path.
14154         tool_specified="$CPIO"
14155         tool_basename="${tool_specified##*/}"
14156         if test "x$tool_basename" = "x$tool_specified"; then
14157           # A command without a complete path is provided, search $PATH.
14158           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14159 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14160           # Extract the first word of "$tool_basename", so it can be a program name with args.
14161 set dummy $tool_basename; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if ${ac_cv_path_CPIO+:} false; then :
14165   $as_echo_n "(cached) " >&6
14166 else
14167   case $CPIO in
14168   [\\/]* | ?:[\\/]*)
14169   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14170   ;;
14171   *)
14172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14174 do
14175   IFS=$as_save_IFS
14176   test -z "$as_dir" && as_dir=.
14177     for ac_exec_ext in '' $ac_executable_extensions; do
14178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14179     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14181     break 2
14182   fi
14183 done
14184   done
14185 IFS=$as_save_IFS
14186 
14187   ;;
14188 esac
14189 fi
14190 CPIO=$ac_cv_path_CPIO
14191 if test -n "$CPIO"; then
14192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14193 $as_echo "$CPIO" >&6; }
14194 else
14195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14197 fi
14198 
14199 
14200           if test "x$CPIO" = x; then
14201             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14202           fi
14203         else
14204           # Otherwise we believe it is a complete path. Use it as it is.
14205           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14206 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14207           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14208 $as_echo_n "checking for CPIO... " >&6; }
14209           if test ! -x "$tool_specified"; then
14210             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14211 $as_echo "not found" >&6; }
14212             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14213           fi
14214           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14215 $as_echo "$tool_specified" >&6; }
14216         fi
14217       fi
14218     fi
14219 
14220   fi
14221 
14222 
14223 
14224 
14225   # Publish this variable in the help.
14226 
14227 
14228   if [ -z "${NICE+x}" ]; then
14229     # The variable is not set by user, try to locate tool using the code snippet
14230     for ac_prog in nice
14231 do
14232   # Extract the first word of "$ac_prog", so it can be a program name with args.
14233 set dummy $ac_prog; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14235 $as_echo_n "checking for $ac_word... " >&6; }
14236 if ${ac_cv_path_NICE+:} false; then :
14237   $as_echo_n "(cached) " >&6
14238 else
14239   case $NICE in
14240   [\\/]* | ?:[\\/]*)
14241   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14242   ;;
14243   *)
14244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14246 do
14247   IFS=$as_save_IFS
14248   test -z "$as_dir" && as_dir=.
14249     for ac_exec_ext in '' $ac_executable_extensions; do
14250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14251     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253     break 2
14254   fi
14255 done
14256   done
14257 IFS=$as_save_IFS
14258 
14259   ;;
14260 esac
14261 fi
14262 NICE=$ac_cv_path_NICE
14263 if test -n "$NICE"; then
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14265 $as_echo "$NICE" >&6; }
14266 else
14267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14269 fi
14270 
14271 
14272   test -n "$NICE" && break
14273 done
14274 
14275   else
14276     # The variable is set, but is it from the command line or the environment?
14277 
14278     # Try to remove the string !NICE! from our list.
14279     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14280     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14281       # If it failed, the variable was not from the command line. Ignore it,
14282       # but warn the user (except for BASH, which is always set by the calling BASH).
14283       if test "xNICE" != xBASH; then
14284         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14285 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14286       fi
14287       # Try to locate tool using the code snippet
14288       for ac_prog in nice
14289 do
14290   # Extract the first word of "$ac_prog", so it can be a program name with args.
14291 set dummy $ac_prog; ac_word=$2
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14293 $as_echo_n "checking for $ac_word... " >&6; }
14294 if ${ac_cv_path_NICE+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297   case $NICE in
14298   [\\/]* | ?:[\\/]*)
14299   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14300   ;;
14301   *)
14302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14304 do
14305   IFS=$as_save_IFS
14306   test -z "$as_dir" && as_dir=.
14307     for ac_exec_ext in '' $ac_executable_extensions; do
14308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311     break 2
14312   fi
14313 done
14314   done
14315 IFS=$as_save_IFS
14316 
14317   ;;
14318 esac
14319 fi
14320 NICE=$ac_cv_path_NICE
14321 if test -n "$NICE"; then
14322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14323 $as_echo "$NICE" >&6; }
14324 else
14325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14326 $as_echo "no" >&6; }
14327 fi
14328 
14329 
14330   test -n "$NICE" && break
14331 done
14332 
14333     else
14334       # If it succeeded, then it was overridden by the user. We will use it
14335       # for the tool.
14336 
14337       # First remove it from the list of overridden variables, so we can test
14338       # for unknown variables in the end.
14339       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14340 
14341       # Check if we try to supply an empty value
14342       if test "x$NICE" = x; then
14343         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14344 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14345         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14346 $as_echo_n "checking for NICE... " >&6; }
14347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14348 $as_echo "disabled" >&6; }
14349       else
14350         # Check if the provided tool contains a complete path.
14351         tool_specified="$NICE"
14352         tool_basename="${tool_specified##*/}"
14353         if test "x$tool_basename" = "x$tool_specified"; then
14354           # A command without a complete path is provided, search $PATH.
14355           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14356 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14357           # Extract the first word of "$tool_basename", so it can be a program name with args.
14358 set dummy $tool_basename; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14360 $as_echo_n "checking for $ac_word... " >&6; }
14361 if ${ac_cv_path_NICE+:} false; then :
14362   $as_echo_n "(cached) " >&6
14363 else
14364   case $NICE in
14365   [\\/]* | ?:[\\/]*)
14366   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14367   ;;
14368   *)
14369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14370 for as_dir in $PATH
14371 do
14372   IFS=$as_save_IFS
14373   test -z "$as_dir" && as_dir=.
14374     for ac_exec_ext in '' $ac_executable_extensions; do
14375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14376     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378     break 2
14379   fi
14380 done
14381   done
14382 IFS=$as_save_IFS
14383 
14384   ;;
14385 esac
14386 fi
14387 NICE=$ac_cv_path_NICE
14388 if test -n "$NICE"; then
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14390 $as_echo "$NICE" >&6; }
14391 else
14392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14394 fi
14395 
14396 
14397           if test "x$NICE" = x; then
14398             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14399           fi
14400         else
14401           # Otherwise we believe it is a complete path. Use it as it is.
14402           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14403 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14404           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14405 $as_echo_n "checking for NICE... " >&6; }
14406           if test ! -x "$tool_specified"; then
14407             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14408 $as_echo "not found" >&6; }
14409             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14410           fi
14411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14412 $as_echo "$tool_specified" >&6; }
14413         fi
14414       fi
14415     fi
14416 
14417   fi
14418 
14419 
14420 
14421 
14422 # Now we can determine OpenJDK build and target platforms. This is required to
14423 # have early on.
14424 # Make sure we can run config.sub.
14425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14426   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14427 
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14429 $as_echo_n "checking build system type... " >&6; }
14430 if ${ac_cv_build+:} false; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433   ac_build_alias=$build_alias
14434 test "x$ac_build_alias" = x &&
14435   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14436 test "x$ac_build_alias" = x &&
14437   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14439   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14440 
14441 fi
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14443 $as_echo "$ac_cv_build" >&6; }
14444 case $ac_cv_build in
14445 *-*-*) ;;
14446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14447 esac
14448 build=$ac_cv_build
14449 ac_save_IFS=$IFS; IFS='-'
14450 set x $ac_cv_build
14451 shift
14452 build_cpu=$1
14453 build_vendor=$2
14454 shift; shift
14455 # Remember, the first character of IFS is used to create $*,
14456 # except with old shells:
14457 build_os=$*
14458 IFS=$ac_save_IFS
14459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14460 
14461 
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14463 $as_echo_n "checking host system type... " >&6; }
14464 if ${ac_cv_host+:} false; then :
14465   $as_echo_n "(cached) " >&6
14466 else
14467   if test "x$host_alias" = x; then
14468   ac_cv_host=$ac_cv_build
14469 else
14470   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14471     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14472 fi
14473 
14474 fi
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14476 $as_echo "$ac_cv_host" >&6; }
14477 case $ac_cv_host in
14478 *-*-*) ;;
14479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14480 esac
14481 host=$ac_cv_host
14482 ac_save_IFS=$IFS; IFS='-'
14483 set x $ac_cv_host
14484 shift
14485 host_cpu=$1
14486 host_vendor=$2
14487 shift; shift
14488 # Remember, the first character of IFS is used to create $*,
14489 # except with old shells:
14490 host_os=$*
14491 IFS=$ac_save_IFS
14492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14493 
14494 
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14496 $as_echo_n "checking target system type... " >&6; }
14497 if ${ac_cv_target+:} false; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500   if test "x$target_alias" = x; then
14501   ac_cv_target=$ac_cv_host
14502 else
14503   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14504     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14505 fi
14506 
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14509 $as_echo "$ac_cv_target" >&6; }
14510 case $ac_cv_target in
14511 *-*-*) ;;
14512 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14513 esac
14514 target=$ac_cv_target
14515 ac_save_IFS=$IFS; IFS='-'
14516 set x $ac_cv_target
14517 shift
14518 target_cpu=$1
14519 target_vendor=$2
14520 shift; shift
14521 # Remember, the first character of IFS is used to create $*,
14522 # except with old shells:
14523 target_os=$*
14524 IFS=$ac_save_IFS
14525 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14526 
14527 
14528 # The aliases save the names the user supplied, while $host etc.
14529 # will get canonicalized.
14530 test -n "$target_alias" &&
14531   test "$program_prefix$program_suffix$program_transform_name" = \
14532     NONENONEs,x,x, &&
14533   program_prefix=${target_alias}-
14534 
14535   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14536   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14537   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14538   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14539   # to use the configure naming style.
14540 
14541 
14542 
14543 
14544 
14545   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14546   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14547   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14548   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14549   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14550   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14551 
14552 
14553 
14554   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14555 
14556   case "$build_os" in
14557     *linux*)
14558       VAR_OS=linux
14559       VAR_OS_TYPE=unix
14560       ;;
14561     *solaris*)
14562       VAR_OS=solaris
14563       VAR_OS_TYPE=unix
14564       ;;
14565     *darwin*)
14566       VAR_OS=macosx
14567       VAR_OS_TYPE=unix
14568       ;;
14569     *bsd*)
14570       VAR_OS=bsd
14571       VAR_OS_TYPE=unix
14572       ;;
14573     *cygwin*)
14574       VAR_OS=windows
14575       VAR_OS_ENV=windows.cygwin
14576       ;;
14577     *mingw*)
14578       VAR_OS=windows
14579       VAR_OS_ENV=windows.msys
14580       ;;
14581     *aix*)
14582       VAR_OS=aix
14583       VAR_OS_TYPE=unix
14584       ;;
14585     *)
14586       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14587       ;;
14588   esac
14589 
14590 
14591   # First argument is the cpu name from the trip/quad
14592   case "$build_cpu" in
14593     x86_64)
14594       VAR_CPU=x86_64
14595       VAR_CPU_ARCH=x86
14596       VAR_CPU_BITS=64
14597       VAR_CPU_ENDIAN=little
14598       ;;
14599     i?86)
14600       VAR_CPU=x86
14601       VAR_CPU_ARCH=x86
14602       VAR_CPU_BITS=32
14603       VAR_CPU_ENDIAN=little
14604       ;;
14605     arm*)
14606       VAR_CPU=arm
14607       VAR_CPU_ARCH=arm
14608       VAR_CPU_BITS=32
14609       VAR_CPU_ENDIAN=little
14610       ;;
14611     aarch64)
14612       VAR_CPU=aarch64
14613       VAR_CPU_ARCH=aarch64
14614       VAR_CPU_BITS=64
14615       VAR_CPU_ENDIAN=little
14616       ;;
14617     powerpc)
14618       VAR_CPU=ppc
14619       VAR_CPU_ARCH=ppc
14620       VAR_CPU_BITS=32
14621       VAR_CPU_ENDIAN=big
14622       ;;
14623     powerpc64)
14624       VAR_CPU=ppc64
14625       VAR_CPU_ARCH=ppc
14626       VAR_CPU_BITS=64
14627       VAR_CPU_ENDIAN=big
14628       ;;
14629     powerpc64le)
14630       VAR_CPU=ppc64
14631       VAR_CPU_ARCH=ppc
14632       VAR_CPU_BITS=64
14633       VAR_CPU_ENDIAN=little
14634       ;;
14635     s390)
14636       VAR_CPU=s390
14637       VAR_CPU_ARCH=s390
14638       VAR_CPU_BITS=32
14639       VAR_CPU_ENDIAN=big
14640       ;;
14641     s390x)
14642       VAR_CPU=s390x
14643       VAR_CPU_ARCH=s390
14644       VAR_CPU_BITS=64
14645       VAR_CPU_ENDIAN=big
14646       ;;
14647     sparc)
14648       VAR_CPU=sparc
14649       VAR_CPU_ARCH=sparc
14650       VAR_CPU_BITS=32
14651       VAR_CPU_ENDIAN=big
14652       ;;
14653     sparcv9|sparc64)
14654       VAR_CPU=sparcv9
14655       VAR_CPU_ARCH=sparc
14656       VAR_CPU_BITS=64
14657       VAR_CPU_ENDIAN=big
14658       ;;
14659     *)
14660       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14661       ;;
14662   esac
14663 
14664   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14665   OPENJDK_BUILD_OS="$VAR_OS"
14666   if test "x$VAR_OS_TYPE" != x; then
14667     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14668   else
14669     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14670   fi
14671   if test "x$VAR_OS_ENV" != x; then
14672     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14673   else
14674     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14675   fi
14676   OPENJDK_BUILD_CPU="$VAR_CPU"
14677   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14678   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14679   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14680 
14681 
14682 
14683 
14684 
14685 
14686 
14687 
14688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14689 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14691 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14692 
14693   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14694 
14695   case "$host_os" in
14696     *linux*)
14697       VAR_OS=linux
14698       VAR_OS_TYPE=unix
14699       ;;
14700     *solaris*)
14701       VAR_OS=solaris
14702       VAR_OS_TYPE=unix
14703       ;;
14704     *darwin*)
14705       VAR_OS=macosx
14706       VAR_OS_TYPE=unix
14707       ;;
14708     *bsd*)
14709       VAR_OS=bsd
14710       VAR_OS_TYPE=unix
14711       ;;
14712     *cygwin*)
14713       VAR_OS=windows
14714       VAR_OS_ENV=windows.cygwin
14715       ;;
14716     *mingw*)
14717       VAR_OS=windows
14718       VAR_OS_ENV=windows.msys
14719       ;;
14720     *aix*)
14721       VAR_OS=aix
14722       VAR_OS_TYPE=unix
14723       ;;
14724     *)
14725       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14726       ;;
14727   esac
14728 
14729 
14730   # First argument is the cpu name from the trip/quad
14731   case "$host_cpu" in
14732     x86_64)
14733       VAR_CPU=x86_64
14734       VAR_CPU_ARCH=x86
14735       VAR_CPU_BITS=64
14736       VAR_CPU_ENDIAN=little
14737       ;;
14738     i?86)
14739       VAR_CPU=x86
14740       VAR_CPU_ARCH=x86
14741       VAR_CPU_BITS=32
14742       VAR_CPU_ENDIAN=little
14743       ;;
14744     arm*)
14745       VAR_CPU=arm
14746       VAR_CPU_ARCH=arm
14747       VAR_CPU_BITS=32
14748       VAR_CPU_ENDIAN=little
14749       ;;
14750     aarch64)
14751       VAR_CPU=aarch64
14752       VAR_CPU_ARCH=aarch64
14753       VAR_CPU_BITS=64
14754       VAR_CPU_ENDIAN=little
14755       ;;
14756     powerpc)
14757       VAR_CPU=ppc
14758       VAR_CPU_ARCH=ppc
14759       VAR_CPU_BITS=32
14760       VAR_CPU_ENDIAN=big
14761       ;;
14762     powerpc64)
14763       VAR_CPU=ppc64
14764       VAR_CPU_ARCH=ppc
14765       VAR_CPU_BITS=64
14766       VAR_CPU_ENDIAN=big
14767       ;;
14768     powerpc64le)
14769       VAR_CPU=ppc64
14770       VAR_CPU_ARCH=ppc
14771       VAR_CPU_BITS=64
14772       VAR_CPU_ENDIAN=little
14773       ;;
14774     s390)
14775       VAR_CPU=s390
14776       VAR_CPU_ARCH=s390
14777       VAR_CPU_BITS=32
14778       VAR_CPU_ENDIAN=big
14779       ;;
14780     s390x)
14781       VAR_CPU=s390x
14782       VAR_CPU_ARCH=s390
14783       VAR_CPU_BITS=64
14784       VAR_CPU_ENDIAN=big
14785       ;;
14786     sparc)
14787       VAR_CPU=sparc
14788       VAR_CPU_ARCH=sparc
14789       VAR_CPU_BITS=32
14790       VAR_CPU_ENDIAN=big
14791       ;;
14792     sparcv9|sparc64)
14793       VAR_CPU=sparcv9
14794       VAR_CPU_ARCH=sparc
14795       VAR_CPU_BITS=64
14796       VAR_CPU_ENDIAN=big
14797       ;;
14798     *)
14799       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14800       ;;
14801   esac
14802 
14803   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14804   OPENJDK_TARGET_OS="$VAR_OS"
14805   if test "x$VAR_OS_TYPE" != x; then
14806     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14807   else
14808     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14809   fi
14810   if test "x$VAR_OS_ENV" != x; then
14811     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14812   else
14813     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14814   fi
14815   OPENJDK_TARGET_CPU="$VAR_CPU"
14816   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14817   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14818   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14819 
14820 
14821 
14822 
14823 
14824 
14825 
14826 
14827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14828 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14830 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14831 
14832 
14833 
14834 # Check whether --with-target-bits was given.
14835 if test "${with_target_bits+set}" = set; then :
14836   withval=$with_target_bits;
14837 fi
14838 
14839 
14840   # We have three types of compiles:
14841   # native  == normal compilation, target system == build system
14842   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14843   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14844   #
14845   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14846     # We're doing a proper cross-compilation
14847     COMPILE_TYPE="cross"
14848   else
14849     COMPILE_TYPE="native"
14850   fi
14851 
14852   if test "x$with_target_bits" != x; then
14853     if test "x$COMPILE_TYPE" = "xcross"; then
14854       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14855     fi
14856 
14857     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14858       # A reduced build is requested
14859       COMPILE_TYPE="reduced"
14860       OPENJDK_TARGET_CPU_BITS=32
14861       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14862         OPENJDK_TARGET_CPU=x86
14863       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14864         OPENJDK_TARGET_CPU=sparc
14865       else
14866         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14867       fi
14868     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14869       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
14870     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14871       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14872 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14873     else
14874       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14875     fi
14876   fi
14877 
14878 
14879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14880 $as_echo_n "checking compilation type... " >&6; }
14881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14882 $as_echo "$COMPILE_TYPE" >&6; }
14883 
14884 
14885   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14886     REQUIRED_OS_NAME=SunOS
14887     REQUIRED_OS_VERSION=5.10
14888   fi
14889   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14890     REQUIRED_OS_NAME=Linux
14891     REQUIRED_OS_VERSION=2.6
14892   fi
14893   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14894     REQUIRED_OS_NAME=Windows
14895     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14896       REQUIRED_OS_VERSION=5.2
14897     else
14898       REQUIRED_OS_VERSION=5.1
14899     fi
14900   fi
14901   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14902     REQUIRED_OS_NAME=Darwin
14903     REQUIRED_OS_VERSION=11.2
14904   fi
14905 
14906 
14907 
14908 
14909 
14910   # Also store the legacy naming of the cpu.
14911   # Ie i586 and amd64 instead of x86 and x86_64
14912   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14913   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14914     OPENJDK_TARGET_CPU_LEGACY="i586"
14915   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14916     # On all platforms except MacOSX replace x86_64 with amd64.
14917     OPENJDK_TARGET_CPU_LEGACY="amd64"
14918   fi
14919 
14920 
14921   # And the second legacy naming of the cpu.
14922   # Ie i386 and amd64 instead of x86 and x86_64.
14923   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14924   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14925     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14926   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14927     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14928   fi
14929 
14930 
14931   # This is the name of the cpu (but using i386 and amd64 instead of
14932   # x86 and x86_64, respectively), preceeded by a /, to be used when
14933   # locating libraries. On macosx, it's empty, though.
14934   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14935   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14936     OPENJDK_TARGET_CPU_LIBDIR=""
14937   fi
14938 
14939 
14940   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14941   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14942   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14943   OPENJDK_TARGET_CPU_ISADIR=""
14944   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14945     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14946       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14947     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14948       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14949     fi
14950   fi
14951 
14952 
14953   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14954   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14955   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14956     # On linux only, we replace x86 with i386.
14957     OPENJDK_TARGET_CPU_OSARCH="i386"
14958   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14959     # On all platforms except macosx, we replace x86_64 with amd64.
14960     OPENJDK_TARGET_CPU_OSARCH="amd64"
14961   fi
14962 
14963 
14964   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14965   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14966     OPENJDK_TARGET_CPU_JLI="i386"
14967   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14968     # On all platforms except macosx, we replace x86_64 with amd64.
14969     OPENJDK_TARGET_CPU_JLI="amd64"
14970   fi
14971   # Now setup the -D flags for building libjli.
14972   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14973   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14974     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14975       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14976     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14977       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14978     fi
14979   fi
14980 
14981 
14982   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14983       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14984   else
14985       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14986   fi
14987 
14988 
14989   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14990     A_LP64="LP64:="
14991     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14992     # unpack200.exe
14993     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14994       ADD_LP64="-D_LP64=1"
14995     fi
14996   fi
14997   LP64=$A_LP64
14998 
14999 
15000   if test "x$COMPILE_TYPE" = "xcross"; then
15001     # FIXME: ... or should this include reduced builds..?
15002     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15003   else
15004     DEFINE_CROSS_COMPILE_ARCH=""
15005   fi
15006 
15007 
15008   # ZERO_ARCHDEF is used to enable architecture-specific code
15009   case "${OPENJDK_TARGET_CPU}" in
15010     ppc)     ZERO_ARCHDEF=PPC32 ;;
15011     ppc64)   ZERO_ARCHDEF=PPC64 ;;
15012     s390*)   ZERO_ARCHDEF=S390  ;;
15013     sparc*)  ZERO_ARCHDEF=SPARC ;;
15014     x86_64*) ZERO_ARCHDEF=AMD64 ;;
15015     x86)     ZERO_ARCHDEF=IA32  ;;
15016     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
15017   esac
15018 
15019 
15020 
15021 
15022 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15023 
15024   # Save the current directory this script was started from
15025   CURDIR="$PWD"
15026 
15027   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15028   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15029   # was not available at that time.
15030   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15031   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15032     ORIGINAL_PATH="$REWRITTEN_PATH"
15033     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15034 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15035   fi
15036 
15037   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15038     PATH_SEP=";"
15039 
15040   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15041   if test $SRC_ROOT_LENGTH -gt 100; then
15042     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15043   fi
15044 
15045   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15047 $as_echo_n "checking cygwin release... " >&6; }
15048     CYGWIN_VERSION=`$UNAME -r`
15049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15050 $as_echo "$CYGWIN_VERSION" >&6; }
15051     WINDOWS_ENV_VENDOR='cygwin'
15052     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15053 
15054     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15055     if test "x$CYGWIN_VERSION_OLD" != x; then
15056       { $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
15057 $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;}
15058       as_fn_error $? "Cannot continue" "$LINENO" 5
15059     fi
15060     if test "x$CYGPATH" = x; then
15061       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15062     fi
15063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15064 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15065     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15066     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15067     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15068     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15070 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15071     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15072     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15073     if test "x$test_cygdrive_prefix" = x; then
15074       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15075     fi
15076   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15078 $as_echo_n "checking msys release... " >&6; }
15079     MSYS_VERSION=`$UNAME -r`
15080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15081 $as_echo "$MSYS_VERSION" >&6; }
15082 
15083     WINDOWS_ENV_VENDOR='msys'
15084     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15085 
15086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15087 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15088     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15089     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15090 
15091   windows_path="$MSYS_ROOT_PATH"
15092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15093     unix_path=`$CYGPATH -u "$windows_path"`
15094     MSYS_ROOT_PATH="$unix_path"
15095   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15096     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15097     MSYS_ROOT_PATH="$unix_path"
15098   fi
15099 
15100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15101 $as_echo "$MSYS_ROOT_PATH" >&6; }
15102     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15103   else
15104     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15105   fi
15106 
15107   # Test if windows or unix (cygwin/msys) find is first in path.
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15109 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15110   FIND_BINARY_OUTPUT=`find --version 2>&1`
15111   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15113 $as_echo "unix style" >&6; }
15114   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15116 $as_echo "Windows" >&6; }
15117     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15118 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15119     { $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
15120 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15121     as_fn_error $? "Cannot continue" "$LINENO" 5
15122   else
15123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15124 $as_echo "unknown" >&6; }
15125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15126 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15127   fi
15128 
15129   else
15130     PATH_SEP=":"
15131   fi
15132 
15133 
15134   # We get the top-level directory from the supporting wrappers.
15135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15136 $as_echo_n "checking for top-level directory... " >&6; }
15137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15138 $as_echo "$TOPDIR" >&6; }
15139 
15140 
15141   # Save the original version of TOPDIR for string comparisons
15142   ORIGINAL_TOPDIR="$TOPDIR"
15143 
15144 
15145   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15146 
15147   # Only process if variable expands to non-empty
15148 
15149   if test "x$CURDIR" != x; then
15150     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15151 
15152   # Input might be given as Windows format, start by converting to
15153   # unix format.
15154   path="$CURDIR"
15155   new_path=`$CYGPATH -u "$path"`
15156 
15157   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15158   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15159   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15160   # "foo.exe" is OK but "foo" is an error.
15161   #
15162   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15163   # It is also a way to make sure we got the proper file name for the real test later on.
15164   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15165   if test "x$test_shortpath" = x; then
15166     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15167 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15168     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15169   fi
15170 
15171   # Call helper function which possibly converts this using DOS-style short mode.
15172   # If so, the updated path is stored in $new_path.
15173 
15174   input_path="$new_path"
15175   # Check if we need to convert this using DOS-style short mode. If the path
15176   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15177   # take no chances and rewrite it.
15178   # Note: m4 eats our [], so we need to use [ and ] instead.
15179   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15180   if test "x$has_forbidden_chars" != x; then
15181     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15182     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15183     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15184     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15185       # Going to short mode and back again did indeed matter. Since short mode is
15186       # case insensitive, let's make it lowercase to improve readability.
15187       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15188       # Now convert it back to Unix-style (cygpath)
15189       input_path=`$CYGPATH -u "$shortmode_path"`
15190       new_path="$input_path"
15191     fi
15192   fi
15193 
15194   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15195   if test "x$test_cygdrive_prefix" = x; then
15196     # As a simple fix, exclude /usr/bin since it's not a real path.
15197     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15198       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15199       # a path prefixed by /cygdrive for fixpath to work.
15200       new_path="$CYGWIN_ROOT_PATH$input_path"
15201     fi
15202   fi
15203 
15204 
15205   if test "x$path" != "x$new_path"; then
15206     CURDIR="$new_path"
15207     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15208 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15209   fi
15210 
15211     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15212 
15213   path="$CURDIR"
15214   has_colon=`$ECHO $path | $GREP ^.:`
15215   new_path="$path"
15216   if test "x$has_colon" = x; then
15217     # Not in mixed or Windows style, start by that.
15218     new_path=`cmd //c echo $path`
15219   fi
15220 
15221 
15222   input_path="$new_path"
15223   # Check if we need to convert this using DOS-style short mode. If the path
15224   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15225   # take no chances and rewrite it.
15226   # Note: m4 eats our [], so we need to use [ and ] instead.
15227   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15228   if test "x$has_forbidden_chars" != x; then
15229     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15230     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15231   fi
15232 
15233 
15234   windows_path="$new_path"
15235   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15236     unix_path=`$CYGPATH -u "$windows_path"`
15237     new_path="$unix_path"
15238   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15239     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15240     new_path="$unix_path"
15241   fi
15242 
15243   if test "x$path" != "x$new_path"; then
15244     CURDIR="$new_path"
15245     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15246 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15247   fi
15248 
15249   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15250   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15251 
15252     else
15253       # We're on a unix platform. Hooray! :)
15254       path="$CURDIR"
15255       has_space=`$ECHO "$path" | $GREP " "`
15256       if test "x$has_space" != x; then
15257         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15258 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15259         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15260       fi
15261 
15262       # Use eval to expand a potential ~
15263       eval path="$path"
15264       if test ! -f "$path" && test ! -d "$path"; then
15265         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15266       fi
15267 
15268       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15269     fi
15270   fi
15271 
15272 
15273   # Only process if variable expands to non-empty
15274 
15275   if test "x$TOPDIR" != x; then
15276     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15277 
15278   # Input might be given as Windows format, start by converting to
15279   # unix format.
15280   path="$TOPDIR"
15281   new_path=`$CYGPATH -u "$path"`
15282 
15283   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15284   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15285   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15286   # "foo.exe" is OK but "foo" is an error.
15287   #
15288   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15289   # It is also a way to make sure we got the proper file name for the real test later on.
15290   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15291   if test "x$test_shortpath" = x; then
15292     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15293 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15294     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15295   fi
15296 
15297   # Call helper function which possibly converts this using DOS-style short mode.
15298   # If so, the updated path is stored in $new_path.
15299 
15300   input_path="$new_path"
15301   # Check if we need to convert this using DOS-style short mode. If the path
15302   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15303   # take no chances and rewrite it.
15304   # Note: m4 eats our [], so we need to use [ and ] instead.
15305   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15306   if test "x$has_forbidden_chars" != x; then
15307     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15308     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15309     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15310     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15311       # Going to short mode and back again did indeed matter. Since short mode is
15312       # case insensitive, let's make it lowercase to improve readability.
15313       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15314       # Now convert it back to Unix-style (cygpath)
15315       input_path=`$CYGPATH -u "$shortmode_path"`
15316       new_path="$input_path"
15317     fi
15318   fi
15319 
15320   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15321   if test "x$test_cygdrive_prefix" = x; then
15322     # As a simple fix, exclude /usr/bin since it's not a real path.
15323     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15324       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15325       # a path prefixed by /cygdrive for fixpath to work.
15326       new_path="$CYGWIN_ROOT_PATH$input_path"
15327     fi
15328   fi
15329 
15330 
15331   if test "x$path" != "x$new_path"; then
15332     TOPDIR="$new_path"
15333     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15334 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15335   fi
15336 
15337     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15338 
15339   path="$TOPDIR"
15340   has_colon=`$ECHO $path | $GREP ^.:`
15341   new_path="$path"
15342   if test "x$has_colon" = x; then
15343     # Not in mixed or Windows style, start by that.
15344     new_path=`cmd //c echo $path`
15345   fi
15346 
15347 
15348   input_path="$new_path"
15349   # Check if we need to convert this using DOS-style short mode. If the path
15350   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15351   # take no chances and rewrite it.
15352   # Note: m4 eats our [], so we need to use [ and ] instead.
15353   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15354   if test "x$has_forbidden_chars" != x; then
15355     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15356     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15357   fi
15358 
15359 
15360   windows_path="$new_path"
15361   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15362     unix_path=`$CYGPATH -u "$windows_path"`
15363     new_path="$unix_path"
15364   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15365     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15366     new_path="$unix_path"
15367   fi
15368 
15369   if test "x$path" != "x$new_path"; then
15370     TOPDIR="$new_path"
15371     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15372 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15373   fi
15374 
15375   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15376   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15377 
15378     else
15379       # We're on a unix platform. Hooray! :)
15380       path="$TOPDIR"
15381       has_space=`$ECHO "$path" | $GREP " "`
15382       if test "x$has_space" != x; then
15383         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15384 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15385         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15386       fi
15387 
15388       # Use eval to expand a potential ~
15389       eval path="$path"
15390       if test ! -f "$path" && test ! -d "$path"; then
15391         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15392       fi
15393 
15394       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15395     fi
15396   fi
15397 
15398   # SRC_ROOT is a traditional alias for TOPDIR.
15399   SRC_ROOT=$TOPDIR
15400 
15401   # Calculate a canonical version of TOPDIR for string comparisons
15402   CANONICAL_TOPDIR=$TOPDIR
15403 
15404   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15405     # Follow a chain of symbolic links. Use readlink
15406     # where it exists, else fall back to horribly
15407     # complicated shell code.
15408     if test "x$READLINK_TESTED" != yes; then
15409       # On MacOSX there is a readlink tool with a different
15410       # purpose than the GNU readlink tool. Check the found readlink.
15411       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15412       if test "x$ISGNU" = x; then
15413         # A readlink that we do not know how to use.
15414         # Are there other non-GNU readlinks out there?
15415         READLINK_TESTED=yes
15416         READLINK=
15417       fi
15418     fi
15419 
15420     if test "x$READLINK" != x; then
15421       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15422     else
15423       # Save the current directory for restoring afterwards
15424       STARTDIR=$PWD
15425       COUNTER=0
15426       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15427       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15428       cd $sym_link_dir
15429       # Use -P flag to resolve symlinks in directories.
15430       cd `$THEPWDCMD -P`
15431       sym_link_dir=`$THEPWDCMD -P`
15432       # Resolve file symlinks
15433       while test $COUNTER -lt 20; do
15434         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15435         if test "x$ISLINK" == x; then
15436           # This is not a symbolic link! We are done!
15437           break
15438         fi
15439         # Again resolve directory symlinks since the target of the just found
15440         # link could be in a different directory
15441         cd `$DIRNAME $ISLINK`
15442         sym_link_dir=`$THEPWDCMD -P`
15443         sym_link_file=`$BASENAME $ISLINK`
15444         let COUNTER=COUNTER+1
15445       done
15446       cd $STARTDIR
15447       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15448     fi
15449   fi
15450 
15451 
15452 
15453   # Locate the directory of this script.
15454   AUTOCONF_DIR=$TOPDIR/common/autoconf
15455 
15456 
15457 # Check if it's a pure open build or if custom sources are to be used.
15458 
15459   # Check whether --enable-openjdk-only was given.
15460 if test "${enable_openjdk_only+set}" = set; then :
15461   enableval=$enable_openjdk_only;
15462 else
15463   enable_openjdk_only="no"
15464 fi
15465 
15466 
15467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15468 $as_echo_n "checking for presence of closed sources... " >&6; }
15469   if test -d "$SRC_ROOT/jdk/src/closed"; then
15470     CLOSED_SOURCE_PRESENT=yes
15471   else
15472     CLOSED_SOURCE_PRESENT=no
15473   fi
15474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15475 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15476 
15477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15478 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15479   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15481 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15482 
15483   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15484     OPENJDK=true
15485     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15486       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15487 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15488     fi
15489   else
15490     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15491       OPENJDK=true
15492     else
15493       OPENJDK=false
15494     fi
15495   fi
15496 
15497   if test "x$OPENJDK" = "xtrue"; then
15498     SET_OPENJDK="OPENJDK=true"
15499   fi
15500 
15501 
15502 
15503   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15504   # the IncludeCustomExtension macro.
15505 
15506 
15507 # Check whether --with-custom-make-dir was given.
15508 if test "${with_custom_make_dir+set}" = set; then :
15509   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
15510 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15511 fi
15512 
15513 
15514 
15515 
15516 # These are needed to be able to create a configuration name (and thus the output directory)
15517 
15518   ###############################################################################
15519   #
15520   # Check which variant of the JDK that we want to build.
15521   # Currently we have:
15522   #    normal:   standard edition
15523   # but the custom make system may add other variants
15524   #
15525   # Effectively the JDK variant gives a name to a specific set of
15526   # modules to compile into the JDK. In the future, these modules
15527   # might even be Jigsaw modules.
15528   #
15529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15530 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15531 
15532 # Check whether --with-jdk-variant was given.
15533 if test "${with_jdk_variant+set}" = set; then :
15534   withval=$with_jdk_variant;
15535 fi
15536 
15537 
15538   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15539     JDK_VARIANT="normal"
15540   else
15541     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15542   fi
15543 
15544 
15545 
15546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15547 $as_echo "$JDK_VARIANT" >&6; }
15548 
15549 
15550 ###############################################################################
15551 #
15552 # Check which interpreter of the JVM we want to build.
15553 # Currently we have:
15554 #    template: Template interpreter (the default)
15555 #    cpp     : C++ interpreter
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15557 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15558 
15559 # Check whether --with-jvm-interpreter was given.
15560 if test "${with_jvm_interpreter+set}" = set; then :
15561   withval=$with_jvm_interpreter;
15562 fi
15563 
15564 
15565 if test "x$with_jvm_interpreter" = x; then
15566      with_jvm_interpreter="template"
15567 fi
15568 
15569 JVM_INTERPRETER="$with_jvm_interpreter"
15570 
15571 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15572    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15573 fi
15574 
15575 
15576 
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15578 $as_echo "$with_jvm_interpreter" >&6; }
15579 
15580 
15581 
15582   ###############################################################################
15583   #
15584   # Check which variants of the JVM that we want to build.
15585   # Currently we have:
15586   #    server: normal interpreter and a tiered C1/C2 compiler
15587   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15588   #    minimal1: reduced form of client with optional VM services and features stripped out
15589   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15590   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15591   #    zero: no machine code interpreter, no compiler
15592   #    zeroshark: zero interpreter and shark/llvm compiler backend
15593 #    core: interpreter only, no compiler (only works on some platforms)
15594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15595 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15596 
15597 # Check whether --with-jvm-variants was given.
15598 if test "${with_jvm_variants+set}" = set; then :
15599   withval=$with_jvm_variants;
15600 fi
15601 
15602 
15603   if test "x$with_jvm_variants" = x; then
15604     with_jvm_variants="server"
15605   fi
15606 
15607   JVM_VARIANTS=",$with_jvm_variants,"
15608   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,//'`
15609 
15610   if test "x$TEST_VARIANTS" != "x,"; then
15611      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15612   fi
15613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15614 $as_echo "$with_jvm_variants" >&6; }
15615 
15616   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15617   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15618   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15619   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15620   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15621   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15622   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15623 
15624   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15625     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15626       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15627     fi
15628   fi
15629   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15630     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15631       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15632     fi
15633   fi
15634   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15635     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15636       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15637     fi
15638   fi
15639 
15640   # Replace the commas with AND for use in the build directory name.
15641   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15642   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/'`
15643   if test "x$COUNT_VARIANTS" != "x,1"; then
15644     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15645   else
15646     BUILDING_MULTIPLE_JVM_VARIANTS=no
15647   fi
15648 
15649 
15650 
15651 
15652 
15653 
15654 
15655 
15656 
15657 
15658   INCLUDE_SA=true
15659   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15660     INCLUDE_SA=false
15661   fi
15662   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15663     INCLUDE_SA=false
15664   fi
15665   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15666     INCLUDE_SA=false
15667   fi
15668   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15669     INCLUDE_SA=false
15670   fi
15671 
15672 
15673   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15674     MACOSX_UNIVERSAL="true"
15675   fi
15676 
15677 
15678 
15679 
15680   ###############################################################################
15681   #
15682   # Set the debug level
15683   #    release: no debug information, all optimizations, no asserts.
15684   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15685   #    fastdebug: debug information (-g), all optimizations, all asserts
15686   #    slowdebug: debug information (-g), no optimizations, all asserts
15687   #
15688   DEBUG_LEVEL="release"
15689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15690 $as_echo_n "checking which debug level to use... " >&6; }
15691   # Check whether --enable-debug was given.
15692 if test "${enable_debug+set}" = set; then :
15693   enableval=$enable_debug;
15694         ENABLE_DEBUG="${enableval}"
15695         DEBUG_LEVEL="fastdebug"
15696 
15697 else
15698   ENABLE_DEBUG="no"
15699 fi
15700 
15701 
15702 
15703 # Check whether --with-debug-level was given.
15704 if test "${with_debug_level+set}" = set; then :
15705   withval=$with_debug_level;
15706         DEBUG_LEVEL="${withval}"
15707         if test "x$ENABLE_DEBUG" = xyes; then
15708           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15709         fi
15710 
15711 fi
15712 
15713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15714 $as_echo "$DEBUG_LEVEL" >&6; }
15715 
15716   if test "x$DEBUG_LEVEL" != xrelease && \
15717       test "x$DEBUG_LEVEL" != xoptimized && \
15718       test "x$DEBUG_LEVEL" != xfastdebug && \
15719       test "x$DEBUG_LEVEL" != xslowdebug; then
15720     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15721   fi
15722 
15723 
15724   ###############################################################################
15725   #
15726   # Setup legacy vars/targets and new vars to deal with different debug levels.
15727   #
15728 
15729   case $DEBUG_LEVEL in
15730     release )
15731       VARIANT="OPT"
15732       FASTDEBUG="false"
15733       DEBUG_CLASSFILES="false"
15734       BUILD_VARIANT_RELEASE=""
15735       HOTSPOT_DEBUG_LEVEL="product"
15736       HOTSPOT_EXPORT="product"
15737       ;;
15738     fastdebug )
15739       VARIANT="DBG"
15740       FASTDEBUG="true"
15741       DEBUG_CLASSFILES="true"
15742       BUILD_VARIANT_RELEASE="-fastdebug"
15743       HOTSPOT_DEBUG_LEVEL="fastdebug"
15744       HOTSPOT_EXPORT="fastdebug"
15745       ;;
15746     slowdebug )
15747       VARIANT="DBG"
15748       FASTDEBUG="false"
15749       DEBUG_CLASSFILES="true"
15750       BUILD_VARIANT_RELEASE="-debug"
15751       HOTSPOT_DEBUG_LEVEL="debug"
15752       HOTSPOT_EXPORT="debug"
15753       ;;
15754     optimized )
15755       VARIANT="OPT"
15756       FASTDEBUG="false"
15757       DEBUG_CLASSFILES="false"
15758       BUILD_VARIANT_RELEASE="-optimized"
15759       HOTSPOT_DEBUG_LEVEL="optimized"
15760       HOTSPOT_EXPORT="optimized"
15761       ;;
15762   esac
15763 
15764   # The debug level 'optimized' is a little special because it is currently only
15765   # applicable to the HotSpot build where it means to build a completely
15766   # optimized version of the VM without any debugging code (like for the
15767   # 'release' debug level which is called 'product' in the HotSpot build) but
15768   # with the exception that it can contain additional code which is otherwise
15769   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15770   # test new and/or experimental features which are not intended for customer
15771   # shipment. Because these new features need to be tested and benchmarked in
15772   # real world scenarios, we want to build the containing JDK at the 'release'
15773   # debug level.
15774   if test "x$DEBUG_LEVEL" = xoptimized; then
15775     DEBUG_LEVEL="release"
15776   fi
15777 
15778   #####
15779   # Generate the legacy makefile targets for hotspot.
15780   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15781   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15782   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15783   # But until then ...
15784   HOTSPOT_TARGET=""
15785 
15786   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15787     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15788   fi
15789 
15790   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15791     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15792   fi
15793 
15794   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15795     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15796   fi
15797 
15798   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15799     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15800   fi
15801 
15802   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15803     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15804   fi
15805 
15806   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15807     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15808   fi
15809 
15810   if test "x$JVM_VARIANT_CORE" = xtrue; then
15811     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15812   fi
15813 
15814   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15815 
15816   # On Macosx universal binaries are produced, but they only contain
15817   # 64 bit intel. This invalidates control of which jvms are built
15818   # from configure, but only server is valid anyway. Fix this
15819   # when hotspot makefiles are rewritten.
15820   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15821     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15822   fi
15823 
15824   #####
15825 
15826 
15827 
15828 
15829 
15830 
15831 
15832 
15833 # With basic setup done, call the custom early hook.
15834 
15835 
15836 # Check if we have devkits, extra paths or sysroot set.
15837 
15838 
15839 # Check whether --with-devkit was given.
15840 if test "${with_devkit+set}" = set; then :
15841   withval=$with_devkit;
15842 
15843   # Only process if variable expands to non-empty
15844 
15845   if test "x$with_devkit" != x; then
15846     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15847 
15848   # Input might be given as Windows format, start by converting to
15849   # unix format.
15850   path="$with_devkit"
15851   new_path=`$CYGPATH -u "$path"`
15852 
15853   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15854   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15855   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15856   # "foo.exe" is OK but "foo" is an error.
15857   #
15858   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15859   # It is also a way to make sure we got the proper file name for the real test later on.
15860   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15861   if test "x$test_shortpath" = x; then
15862     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15863 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15864     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15865   fi
15866 
15867   # Call helper function which possibly converts this using DOS-style short mode.
15868   # If so, the updated path is stored in $new_path.
15869 
15870   input_path="$new_path"
15871   # Check if we need to convert this using DOS-style short mode. If the path
15872   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15873   # take no chances and rewrite it.
15874   # Note: m4 eats our [], so we need to use [ and ] instead.
15875   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15876   if test "x$has_forbidden_chars" != x; then
15877     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15878     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15879     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15880     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15881       # Going to short mode and back again did indeed matter. Since short mode is
15882       # case insensitive, let's make it lowercase to improve readability.
15883       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15884       # Now convert it back to Unix-style (cygpath)
15885       input_path=`$CYGPATH -u "$shortmode_path"`
15886       new_path="$input_path"
15887     fi
15888   fi
15889 
15890   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15891   if test "x$test_cygdrive_prefix" = x; then
15892     # As a simple fix, exclude /usr/bin since it's not a real path.
15893     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15894       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15895       # a path prefixed by /cygdrive for fixpath to work.
15896       new_path="$CYGWIN_ROOT_PATH$input_path"
15897     fi
15898   fi
15899 
15900 
15901   if test "x$path" != "x$new_path"; then
15902     with_devkit="$new_path"
15903     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15904 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15905   fi
15906 
15907     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15908 
15909   path="$with_devkit"
15910   has_colon=`$ECHO $path | $GREP ^.:`
15911   new_path="$path"
15912   if test "x$has_colon" = x; then
15913     # Not in mixed or Windows style, start by that.
15914     new_path=`cmd //c echo $path`
15915   fi
15916 
15917 
15918   input_path="$new_path"
15919   # Check if we need to convert this using DOS-style short mode. If the path
15920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15921   # take no chances and rewrite it.
15922   # Note: m4 eats our [], so we need to use [ and ] instead.
15923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15924   if test "x$has_forbidden_chars" != x; then
15925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15926     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15927   fi
15928 
15929 
15930   windows_path="$new_path"
15931   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15932     unix_path=`$CYGPATH -u "$windows_path"`
15933     new_path="$unix_path"
15934   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15935     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15936     new_path="$unix_path"
15937   fi
15938 
15939   if test "x$path" != "x$new_path"; then
15940     with_devkit="$new_path"
15941     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15942 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15943   fi
15944 
15945   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15946   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15947 
15948     else
15949       # We're on a unix platform. Hooray! :)
15950       path="$with_devkit"
15951       has_space=`$ECHO "$path" | $GREP " "`
15952       if test "x$has_space" != x; then
15953         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15954 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15955         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15956       fi
15957 
15958       # Use eval to expand a potential ~
15959       eval path="$path"
15960       if test ! -f "$path" && test ! -d "$path"; then
15961         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15962       fi
15963 
15964       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15965     fi
15966   fi
15967 
15968         DEVKIT_ROOT="$with_devkit"
15969         # Check for a meta data info file in the root of the devkit
15970         if test -f "$DEVKIT_ROOT/devkit.info"; then
15971           . $DEVKIT_ROOT/devkit.info
15972           # This potentially sets the following:
15973           # A descriptive name of the devkit
15974 
15975   if test "x$DEVKIT_NAME" = x; then
15976     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
15977   fi
15978 
15979           # Corresponds to --with-extra-path
15980 
15981   if test "x$DEVKIT_EXTRA_PATH" = x; then
15982     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
15983   fi
15984 
15985           # Corresponds to --with-toolchain-path
15986 
15987   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15988     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
15989   fi
15990 
15991           # Corresponds to --with-sysroot
15992 
15993   if test "x$DEVKIT_SYSROOT" = x; then
15994     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
15995   fi
15996 
15997 
15998           # Identifies the Visual Studio version in the devkit
15999 
16000   if test "x$DEVKIT_VS_VERSION" = x; then
16001     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16002   fi
16003 
16004           # The Visual Studio include environment variable
16005 
16006   if test "x$DEVKIT_VS_INCLUDE" = x; then
16007     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16008   fi
16009 
16010           # The Visual Studio lib environment variable
16011 
16012   if test "x$DEVKIT_VS_LIB" = x; then
16013     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16014   fi
16015 
16016           # Corresponds to --with-msvcr-dll
16017 
16018   if test "x$DEVKIT_MSVCR_DLL" = x; then
16019     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16020   fi
16021 
16022           # Corresponds to --with-msvcp-dll
16023 
16024   if test "x$DEVKIT_MSVCP_DLL" = x; then
16025     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16026   fi
16027 
16028         fi
16029 
16030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16031 $as_echo_n "checking for devkit... " >&6; }
16032         if test "x$DEVKIT_NAME" != x; then
16033           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16034 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16035         else
16036           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16037 $as_echo "$DEVKIT_ROOT" >&6; }
16038         fi
16039 
16040 
16041   if test "x$DEVKIT_EXTRA_PATH" != x; then
16042     if test "x$EXTRA_PATH" = x; then
16043       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16044     else
16045       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16046     fi
16047   fi
16048 
16049 
16050         # Fallback default of just /bin if DEVKIT_PATH is not defined
16051         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16052           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16053         fi
16054 
16055   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16056     if test "x$TOOLCHAIN_PATH" = x; then
16057       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16058     else
16059       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16060     fi
16061   fi
16062 
16063 
16064         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16065         # places for backwards compatiblity.
16066         if test "x$DEVKIT_SYSROOT" != x; then
16067           SYSROOT="$DEVKIT_SYSROOT"
16068         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16069           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16070         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16071           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16072         fi
16073 
16074 
16075 fi
16076 
16077 
16078   # You can force the sysroot if the sysroot encoded into the compiler tools
16079   # is not correct.
16080 
16081 # Check whether --with-sys-root was given.
16082 if test "${with_sys_root+set}" = set; then :
16083   withval=$with_sys_root; SYSROOT=$with_sys_root
16084 
16085 fi
16086 
16087 
16088 
16089 # Check whether --with-sysroot was given.
16090 if test "${with_sysroot+set}" = set; then :
16091   withval=$with_sysroot; SYSROOT=$with_sysroot
16092 
16093 fi
16094 
16095 
16096 
16097 # Check whether --with-tools-dir was given.
16098 if test "${with_tools_dir+set}" = set; then :
16099   withval=$with_tools_dir;
16100   if test "x$with_tools_dir" != x; then
16101     if test "x$TOOLCHAIN_PATH" = x; then
16102       TOOLCHAIN_PATH="$with_tools_dir"
16103     else
16104       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16105     fi
16106   fi
16107 
16108 
16109 fi
16110 
16111 
16112 
16113 # Check whether --with-toolchain-path was given.
16114 if test "${with_toolchain_path+set}" = set; then :
16115   withval=$with_toolchain_path;
16116   if test "x$with_toolchain_path" != x; then
16117     if test "x$TOOLCHAIN_PATH" = x; then
16118       TOOLCHAIN_PATH="$with_toolchain_path"
16119     else
16120       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16121     fi
16122   fi
16123 
16124 
16125 fi
16126 
16127 
16128 
16129 # Check whether --with-extra-path was given.
16130 if test "${with_extra_path+set}" = set; then :
16131   withval=$with_extra_path;
16132   if test "x$with_extra_path" != x; then
16133     if test "x$EXTRA_PATH" = x; then
16134       EXTRA_PATH="$with_extra_path"
16135     else
16136       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16137     fi
16138   fi
16139 
16140 
16141 fi
16142 
16143 
16144   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16145     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16146     # If not, detect if Xcode is installed by running xcodebuild -version
16147     # if no Xcode installed, xcodebuild exits with 1
16148     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16149     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16150       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16151       # fall back on the stub binary in /usr/bin/xcodebuild
16152       # Extract the first word of "xcodebuild", so it can be a program name with args.
16153 set dummy xcodebuild; ac_word=$2
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16155 $as_echo_n "checking for $ac_word... " >&6; }
16156 if ${ac_cv_path_XCODEBUILD+:} false; then :
16157   $as_echo_n "(cached) " >&6
16158 else
16159   case $XCODEBUILD in
16160   [\\/]* | ?:[\\/]*)
16161   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16162   ;;
16163   *)
16164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $TOOLCHAIN_PATH
16166 do
16167   IFS=$as_save_IFS
16168   test -z "$as_dir" && as_dir=.
16169     for ac_exec_ext in '' $ac_executable_extensions; do
16170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16171     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16173     break 2
16174   fi
16175 done
16176   done
16177 IFS=$as_save_IFS
16178 
16179   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16180   ;;
16181 esac
16182 fi
16183 XCODEBUILD=$ac_cv_path_XCODEBUILD
16184 if test -n "$XCODEBUILD"; then
16185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16186 $as_echo "$XCODEBUILD" >&6; }
16187 else
16188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191 
16192 
16193     else
16194       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16195       # when only the command line tools are installed there are no SDKs, so headers
16196       # are copied into the system frameworks
16197       XCODEBUILD=
16198 
16199     fi
16200 
16201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16202 $as_echo_n "checking for sdk name... " >&6; }
16203 
16204 # Check whether --with-sdk-name was given.
16205 if test "${with_sdk_name+set}" = set; then :
16206   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16207 
16208 fi
16209 
16210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16211 $as_echo "$SDKNAME" >&6; }
16212 
16213     # if toolchain path is specified then don't rely on system headers, they may not compile
16214     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16215     test -z "$TOOLCHAIN_PATH" && \
16216       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16217 
16218     if test -z "$SYSROOT"; then
16219       if test -n "$XCODEBUILD"; then
16220         # if we don't have system headers, use default SDK name (last resort)
16221         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16222           SDKNAME=${SDKNAME:-macosx}
16223         fi
16224 
16225         if test -n "$SDKNAME"; then
16226           # Call xcodebuild to determine SYSROOT
16227           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16228         fi
16229       else
16230         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16231           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
16232         fi
16233       fi
16234     else
16235       # warn user if --with-sdk-name was also set
16236       if test -n "$with_sdk_name"; then
16237         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16238 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16239       fi
16240     fi
16241 
16242     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16243       # If no system framework headers, then SYSROOT must be set, or we won't build
16244       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
16245     fi
16246 
16247     # Perform a basic sanity test
16248     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16249       if test -z "$SYSROOT"; then
16250         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
16251       else
16252         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16253       fi
16254     fi
16255 
16256     # set SDKROOT too, Xcode tools will pick it up
16257     SDKROOT=$SYSROOT
16258 
16259   fi
16260 
16261   # Prepend the extra path to the global path
16262 
16263   if test "x$EXTRA_PATH" != x; then
16264     if test "x$PATH" = x; then
16265       PATH="$EXTRA_PATH"
16266     else
16267       PATH="$EXTRA_PATH:$PATH"
16268     fi
16269   fi
16270 
16271 
16272   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16273     # Add extra search paths on solaris for utilities like ar and as etc...
16274     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16275   fi
16276 
16277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16278 $as_echo_n "checking for sysroot... " >&6; }
16279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16280 $as_echo "$SYSROOT" >&6; }
16281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16282 $as_echo_n "checking for toolchain path... " >&6; }
16283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16284 $as_echo "$TOOLCHAIN_PATH" >&6; }
16285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16286 $as_echo_n "checking for extra path... " >&6; }
16287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16288 $as_echo "$EXTRA_PATH" >&6; }
16289 
16290 
16291 # To properly create a configuration name, we need to have the OpenJDK target
16292 # and options (variants and debug level) parsed.
16293 
16294 
16295 
16296 # Check whether --with-conf-name was given.
16297 if test "${with_conf_name+set}" = set; then :
16298   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16299 fi
16300 
16301 
16302   # Test from where we are running configure, in or outside of src root.
16303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16304 $as_echo_n "checking where to store configuration... " >&6; }
16305   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16306       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16307       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16308     # We are running configure from the src root.
16309     # Create a default ./build/target-variant-debuglevel output root.
16310     if test "x${CONF_NAME}" = x; then
16311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16312 $as_echo "in default location" >&6; }
16313       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16314     else
16315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16316 $as_echo "in build directory with custom name" >&6; }
16317     fi
16318     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16319     $MKDIR -p "$OUTPUT_ROOT"
16320     if test ! -d "$OUTPUT_ROOT"; then
16321       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16322     fi
16323   else
16324     # We are running configure from outside of the src dir.
16325     # Then use the current directory as output dir!
16326     # If configuration is situated in normal build directory, just use the build
16327     # directory name as configuration name, otherwise use the complete path.
16328     if test "x${CONF_NAME}" = x; then
16329       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16330     fi
16331     OUTPUT_ROOT="$CURDIR"
16332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16333 $as_echo "in current directory" >&6; }
16334 
16335     # WARNING: This might be a bad thing to do. You need to be sure you want to
16336     # have a configuration in this directory. Do some sanity checks!
16337 
16338     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16339       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16340       # other files
16341       files_present=`$LS $OUTPUT_ROOT`
16342       # Configure has already touched config.log and confdefs.h in the current dir when this check
16343       # is performed.
16344       filtered_files=`$ECHO "$files_present" \
16345           | $SED -e 's/config.log//g' \
16346               -e 's/configure.log//g' \
16347               -e 's/confdefs.h//g' \
16348               -e 's/ //g' \
16349           | $TR -d '\n'`
16350       if test "x$filtered_files" != x; then
16351         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16352 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16353         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16354 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16355         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16356 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16357         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16358 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16359         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16360 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16361         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16362 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16363         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16364 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16365         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16366       fi
16367     fi
16368   fi
16369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16370 $as_echo_n "checking what configuration name to use... " >&6; }
16371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16372 $as_echo "$CONF_NAME" >&6; }
16373 
16374 
16375   # Only process if variable expands to non-empty
16376 
16377   if test "x$OUTPUT_ROOT" != x; then
16378     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16379 
16380   # Input might be given as Windows format, start by converting to
16381   # unix format.
16382   path="$OUTPUT_ROOT"
16383   new_path=`$CYGPATH -u "$path"`
16384 
16385   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16386   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16387   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16388   # "foo.exe" is OK but "foo" is an error.
16389   #
16390   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16391   # It is also a way to make sure we got the proper file name for the real test later on.
16392   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16393   if test "x$test_shortpath" = x; then
16394     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16395 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16396     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16397   fi
16398 
16399   # Call helper function which possibly converts this using DOS-style short mode.
16400   # If so, the updated path is stored in $new_path.
16401 
16402   input_path="$new_path"
16403   # Check if we need to convert this using DOS-style short mode. If the path
16404   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16405   # take no chances and rewrite it.
16406   # Note: m4 eats our [], so we need to use [ and ] instead.
16407   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16408   if test "x$has_forbidden_chars" != x; then
16409     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16410     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16411     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16412     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16413       # Going to short mode and back again did indeed matter. Since short mode is
16414       # case insensitive, let's make it lowercase to improve readability.
16415       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16416       # Now convert it back to Unix-style (cygpath)
16417       input_path=`$CYGPATH -u "$shortmode_path"`
16418       new_path="$input_path"
16419     fi
16420   fi
16421 
16422   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16423   if test "x$test_cygdrive_prefix" = x; then
16424     # As a simple fix, exclude /usr/bin since it's not a real path.
16425     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16426       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16427       # a path prefixed by /cygdrive for fixpath to work.
16428       new_path="$CYGWIN_ROOT_PATH$input_path"
16429     fi
16430   fi
16431 
16432 
16433   if test "x$path" != "x$new_path"; then
16434     OUTPUT_ROOT="$new_path"
16435     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16436 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16437   fi
16438 
16439     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16440 
16441   path="$OUTPUT_ROOT"
16442   has_colon=`$ECHO $path | $GREP ^.:`
16443   new_path="$path"
16444   if test "x$has_colon" = x; then
16445     # Not in mixed or Windows style, start by that.
16446     new_path=`cmd //c echo $path`
16447   fi
16448 
16449 
16450   input_path="$new_path"
16451   # Check if we need to convert this using DOS-style short mode. If the path
16452   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16453   # take no chances and rewrite it.
16454   # Note: m4 eats our [], so we need to use [ and ] instead.
16455   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16456   if test "x$has_forbidden_chars" != x; then
16457     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16458     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16459   fi
16460 
16461 
16462   windows_path="$new_path"
16463   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16464     unix_path=`$CYGPATH -u "$windows_path"`
16465     new_path="$unix_path"
16466   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16467     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16468     new_path="$unix_path"
16469   fi
16470 
16471   if test "x$path" != "x$new_path"; then
16472     OUTPUT_ROOT="$new_path"
16473     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16474 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16475   fi
16476 
16477   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16478   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16479 
16480     else
16481       # We're on a unix platform. Hooray! :)
16482       path="$OUTPUT_ROOT"
16483       has_space=`$ECHO "$path" | $GREP " "`
16484       if test "x$has_space" != x; then
16485         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16486 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16487         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16488       fi
16489 
16490       # Use eval to expand a potential ~
16491       eval path="$path"
16492       if test ! -f "$path" && test ! -d "$path"; then
16493         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16494       fi
16495 
16496       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16497     fi
16498   fi
16499 
16500 
16501   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16502   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16503 
16504   SPEC=$OUTPUT_ROOT/spec.gmk
16505 
16506   CONF_NAME=$CONF_NAME
16507 
16508   OUTPUT_ROOT=$OUTPUT_ROOT
16509 
16510 
16511 
16512   # The spec.gmk file contains all variables for the make system.
16513   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16514 
16515   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16516   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16517 
16518   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16519   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16520 
16521   # The compare.sh is used to compare the build output to other builds.
16522   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16523 
16524   # The generated Makefile knows where the spec.gmk is and where the source is.
16525   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16526   # which will look for generated configurations
16527   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16528 
16529 
16530 
16531 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16532 
16533   for ac_prog in apt-get yum port pkgutil pkgadd
16534 do
16535   # Extract the first word of "$ac_prog", so it can be a program name with args.
16536 set dummy $ac_prog; ac_word=$2
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16538 $as_echo_n "checking for $ac_word... " >&6; }
16539 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16540   $as_echo_n "(cached) " >&6
16541 else
16542   if test -n "$PKGHANDLER"; then
16543   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16544 else
16545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16546 for as_dir in $PATH
16547 do
16548   IFS=$as_save_IFS
16549   test -z "$as_dir" && as_dir=.
16550     for ac_exec_ext in '' $ac_executable_extensions; do
16551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16552     ac_cv_prog_PKGHANDLER="$ac_prog"
16553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16554     break 2
16555   fi
16556 done
16557   done
16558 IFS=$as_save_IFS
16559 
16560 fi
16561 fi
16562 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16563 if test -n "$PKGHANDLER"; then
16564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16565 $as_echo "$PKGHANDLER" >&6; }
16566 else
16567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568 $as_echo "no" >&6; }
16569 fi
16570 
16571 
16572   test -n "$PKGHANDLER" && break
16573 done
16574 
16575 
16576 
16577 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16578 
16579 
16580 
16581   # Publish this variable in the help.
16582 
16583 
16584   if [ -z "${MAKE+x}" ]; then
16585     # The variable is not set by user, try to locate tool using the code snippet
16586 
16587     # Try our hardest to locate a correct version of GNU make
16588     for ac_prog in gmake
16589 do
16590   # Extract the first word of "$ac_prog", so it can be a program name with args.
16591 set dummy $ac_prog; ac_word=$2
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16593 $as_echo_n "checking for $ac_word... " >&6; }
16594 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16595   $as_echo_n "(cached) " >&6
16596 else
16597   case $CHECK_GMAKE in
16598   [\\/]* | ?:[\\/]*)
16599   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16600   ;;
16601   *)
16602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16603 for as_dir in $PATH
16604 do
16605   IFS=$as_save_IFS
16606   test -z "$as_dir" && as_dir=.
16607     for ac_exec_ext in '' $ac_executable_extensions; do
16608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16609     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16611     break 2
16612   fi
16613 done
16614   done
16615 IFS=$as_save_IFS
16616 
16617   ;;
16618 esac
16619 fi
16620 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16621 if test -n "$CHECK_GMAKE"; then
16622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16623 $as_echo "$CHECK_GMAKE" >&6; }
16624 else
16625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16626 $as_echo "no" >&6; }
16627 fi
16628 
16629 
16630   test -n "$CHECK_GMAKE" && break
16631 done
16632 
16633 
16634   MAKE_CANDIDATE=""$CHECK_GMAKE""
16635   DESCRIPTION="gmake in PATH"
16636 
16637   # On Cygwin, we require a newer version of make than on other platforms
16638   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16639     MAKE_VERSION_EXPR="-e 4\."
16640     MAKE_REQUIRED_VERSION="4.0"
16641    else
16642     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16643     MAKE_REQUIRED_VERSION="3.81"
16644   fi
16645 
16646   if test "x$MAKE_CANDIDATE" != x; then
16647     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16648 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16649     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16650     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16651     if test "x$IS_GNU_MAKE" = x; then
16652       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16653 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16654     else
16655       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16656       if test "x$IS_MODERN_MAKE" = x; then
16657         { $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
16658 $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;}
16659       else
16660         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16661           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16662             MAKE_EXPECTED_ENV='cygwin'
16663           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16664             MAKE_EXPECTED_ENV='msys'
16665           else
16666             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16667           fi
16668           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16669           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16670         else
16671           # Not relevant for non-Windows
16672           IS_MAKE_CORRECT_ENV=true
16673         fi
16674         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16675           { $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
16676 $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;}
16677         else
16678           FOUND_MAKE=$MAKE_CANDIDATE
16679 
16680   # Only process if variable expands to non-empty
16681 
16682   if test "x$FOUND_MAKE" != x; then
16683     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16684 
16685   # First separate the path from the arguments. This will split at the first
16686   # space.
16687   complete="$FOUND_MAKE"
16688   path="${complete%% *}"
16689   tmp="$complete EOL"
16690   arguments="${tmp#* }"
16691 
16692   # Input might be given as Windows format, start by converting to
16693   # unix format.
16694   new_path=`$CYGPATH -u "$path"`
16695 
16696   # Now try to locate executable using which
16697   new_path=`$WHICH "$new_path" 2> /dev/null`
16698   # bat and cmd files are not always considered executable in cygwin causing which
16699   # to not find them
16700   if test "x$new_path" = x \
16701       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16702       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16703     new_path=`$CYGPATH -u "$path"`
16704   fi
16705   if test "x$new_path" = x; then
16706     # Oops. Which didn't find the executable.
16707     # The splitting of arguments from the executable at a space might have been incorrect,
16708     # since paths with space are more likely in Windows. Give it another try with the whole
16709     # argument.
16710     path="$complete"
16711     arguments="EOL"
16712     new_path=`$CYGPATH -u "$path"`
16713     new_path=`$WHICH "$new_path" 2> /dev/null`
16714     # bat and cmd files are not always considered executable in cygwin causing which
16715     # to not find them
16716     if test "x$new_path" = x \
16717         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16718         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16719       new_path=`$CYGPATH -u "$path"`
16720     fi
16721     if test "x$new_path" = x; then
16722       # It's still not found. Now this is an unrecoverable error.
16723       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16724 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16725       has_space=`$ECHO "$complete" | $GREP " "`
16726       if test "x$has_space" != x; then
16727         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16728 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16729       fi
16730       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16731     fi
16732   fi
16733 
16734   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16735   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16736   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16737   # "foo.exe" is OK but "foo" is an error.
16738   #
16739   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16740   # It is also a way to make sure we got the proper file name for the real test later on.
16741   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16742   if test "x$test_shortpath" = x; then
16743     # Short path failed, file does not exist as specified.
16744     # Try adding .exe or .cmd
16745     if test -f "${new_path}.exe"; then
16746       input_to_shortpath="${new_path}.exe"
16747     elif test -f "${new_path}.cmd"; then
16748       input_to_shortpath="${new_path}.cmd"
16749     else
16750       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16751 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16752       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16753 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16754       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16755     fi
16756   else
16757     input_to_shortpath="$new_path"
16758   fi
16759 
16760   # Call helper function which possibly converts this using DOS-style short mode.
16761   # If so, the updated path is stored in $new_path.
16762   new_path="$input_to_shortpath"
16763 
16764   input_path="$input_to_shortpath"
16765   # Check if we need to convert this using DOS-style short mode. If the path
16766   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16767   # take no chances and rewrite it.
16768   # Note: m4 eats our [], so we need to use [ and ] instead.
16769   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16770   if test "x$has_forbidden_chars" != x; then
16771     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16772     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16773     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16774     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16775       # Going to short mode and back again did indeed matter. Since short mode is
16776       # case insensitive, let's make it lowercase to improve readability.
16777       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16778       # Now convert it back to Unix-style (cygpath)
16779       input_path=`$CYGPATH -u "$shortmode_path"`
16780       new_path="$input_path"
16781     fi
16782   fi
16783 
16784   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16785   if test "x$test_cygdrive_prefix" = x; then
16786     # As a simple fix, exclude /usr/bin since it's not a real path.
16787     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16788       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16789       # a path prefixed by /cygdrive for fixpath to work.
16790       new_path="$CYGWIN_ROOT_PATH$input_path"
16791     fi
16792   fi
16793 
16794   # remove trailing .exe if any
16795   new_path="${new_path/%.exe/}"
16796 
16797     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16798 
16799   # First separate the path from the arguments. This will split at the first
16800   # space.
16801   complete="$FOUND_MAKE"
16802   path="${complete%% *}"
16803   tmp="$complete EOL"
16804   arguments="${tmp#* }"
16805 
16806   # Input might be given as Windows format, start by converting to
16807   # unix format.
16808   new_path="$path"
16809 
16810   windows_path="$new_path"
16811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16812     unix_path=`$CYGPATH -u "$windows_path"`
16813     new_path="$unix_path"
16814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16815     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16816     new_path="$unix_path"
16817   fi
16818 
16819 
16820   # Now try to locate executable using which
16821   new_path=`$WHICH "$new_path" 2> /dev/null`
16822 
16823   if test "x$new_path" = x; then
16824     # Oops. Which didn't find the executable.
16825     # The splitting of arguments from the executable at a space might have been incorrect,
16826     # since paths with space are more likely in Windows. Give it another try with the whole
16827     # argument.
16828     path="$complete"
16829     arguments="EOL"
16830     new_path="$path"
16831 
16832   windows_path="$new_path"
16833   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16834     unix_path=`$CYGPATH -u "$windows_path"`
16835     new_path="$unix_path"
16836   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16837     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16838     new_path="$unix_path"
16839   fi
16840 
16841 
16842     new_path=`$WHICH "$new_path" 2> /dev/null`
16843     # bat and cmd files are not always considered executable in MSYS causing which
16844     # to not find them
16845     if test "x$new_path" = x \
16846         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16847         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16848       new_path="$path"
16849 
16850   windows_path="$new_path"
16851   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16852     unix_path=`$CYGPATH -u "$windows_path"`
16853     new_path="$unix_path"
16854   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16855     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16856     new_path="$unix_path"
16857   fi
16858 
16859     fi
16860 
16861     if test "x$new_path" = x; then
16862       # It's still not found. Now this is an unrecoverable error.
16863       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16864 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16865       has_space=`$ECHO "$complete" | $GREP " "`
16866       if test "x$has_space" != x; then
16867         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16868 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16869       fi
16870       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16871     fi
16872   fi
16873 
16874   # Now new_path has a complete unix path to the binary
16875   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16876     # Keep paths in /bin as-is, but remove trailing .exe if any
16877     new_path="${new_path/%.exe/}"
16878     # Do not save /bin paths to all_fixpath_prefixes!
16879   else
16880     # Not in mixed or Windows style, start by that.
16881     new_path=`cmd //c echo $new_path`
16882 
16883   input_path="$new_path"
16884   # Check if we need to convert this using DOS-style short mode. If the path
16885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16886   # take no chances and rewrite it.
16887   # Note: m4 eats our [], so we need to use [ and ] instead.
16888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16889   if test "x$has_forbidden_chars" != x; then
16890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16891     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16892   fi
16893 
16894     # Output is in $new_path
16895 
16896   windows_path="$new_path"
16897   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16898     unix_path=`$CYGPATH -u "$windows_path"`
16899     new_path="$unix_path"
16900   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16901     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16902     new_path="$unix_path"
16903   fi
16904 
16905     # remove trailing .exe if any
16906     new_path="${new_path/%.exe/}"
16907 
16908     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16909     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16910   fi
16911 
16912     else
16913       # We're on a unix platform. Hooray! :)
16914       # First separate the path from the arguments. This will split at the first
16915       # space.
16916       complete="$FOUND_MAKE"
16917       path="${complete%% *}"
16918       tmp="$complete EOL"
16919       arguments="${tmp#* }"
16920 
16921       # Cannot rely on the command "which" here since it doesn't always work.
16922       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16923       if test -z "$is_absolute_path"; then
16924         # Path to executable is not absolute. Find it.
16925         IFS_save="$IFS"
16926         IFS=:
16927         for p in $PATH; do
16928           if test -f "$p/$path" && test -x "$p/$path"; then
16929             new_path="$p/$path"
16930             break
16931           fi
16932         done
16933         IFS="$IFS_save"
16934       else
16935         # This is an absolute path, we can use it without further modifications.
16936         new_path="$path"
16937       fi
16938 
16939       if test "x$new_path" = x; then
16940         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16941 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16942         has_space=`$ECHO "$complete" | $GREP " "`
16943         if test "x$has_space" != x; then
16944           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16945 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16946         fi
16947         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16948       fi
16949     fi
16950 
16951     # Now join together the path and the arguments once again
16952     if test "x$arguments" != xEOL; then
16953       new_complete="$new_path ${arguments% *}"
16954     else
16955       new_complete="$new_path"
16956     fi
16957 
16958     if test "x$complete" != "x$new_complete"; then
16959       FOUND_MAKE="$new_complete"
16960       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16961 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16962     fi
16963   fi
16964 
16965         fi
16966       fi
16967     fi
16968   fi
16969 
16970 
16971     if test "x$FOUND_MAKE" = x; then
16972       for ac_prog in make
16973 do
16974   # Extract the first word of "$ac_prog", so it can be a program name with args.
16975 set dummy $ac_prog; ac_word=$2
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16977 $as_echo_n "checking for $ac_word... " >&6; }
16978 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16979   $as_echo_n "(cached) " >&6
16980 else
16981   case $CHECK_MAKE in
16982   [\\/]* | ?:[\\/]*)
16983   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16984   ;;
16985   *)
16986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16987 for as_dir in $PATH
16988 do
16989   IFS=$as_save_IFS
16990   test -z "$as_dir" && as_dir=.
16991     for ac_exec_ext in '' $ac_executable_extensions; do
16992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16993     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16995     break 2
16996   fi
16997 done
16998   done
16999 IFS=$as_save_IFS
17000 
17001   ;;
17002 esac
17003 fi
17004 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17005 if test -n "$CHECK_MAKE"; then
17006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17007 $as_echo "$CHECK_MAKE" >&6; }
17008 else
17009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17010 $as_echo "no" >&6; }
17011 fi
17012 
17013 
17014   test -n "$CHECK_MAKE" && break
17015 done
17016 
17017 
17018   MAKE_CANDIDATE=""$CHECK_MAKE""
17019   DESCRIPTION="make in PATH"
17020 
17021   # On Cygwin, we require a newer version of make than on other platforms
17022   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17023     MAKE_VERSION_EXPR="-e 4\."
17024     MAKE_REQUIRED_VERSION="4.0"
17025    else
17026     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17027     MAKE_REQUIRED_VERSION="3.81"
17028   fi
17029 
17030   if test "x$MAKE_CANDIDATE" != x; then
17031     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17032 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17033     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17034     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17035     if test "x$IS_GNU_MAKE" = x; then
17036       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17037 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17038     else
17039       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17040       if test "x$IS_MODERN_MAKE" = x; then
17041         { $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
17042 $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;}
17043       else
17044         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17045           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17046             MAKE_EXPECTED_ENV='cygwin'
17047           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17048             MAKE_EXPECTED_ENV='msys'
17049           else
17050             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17051           fi
17052           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17053           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17054         else
17055           # Not relevant for non-Windows
17056           IS_MAKE_CORRECT_ENV=true
17057         fi
17058         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17059           { $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
17060 $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;}
17061         else
17062           FOUND_MAKE=$MAKE_CANDIDATE
17063 
17064   # Only process if variable expands to non-empty
17065 
17066   if test "x$FOUND_MAKE" != x; then
17067     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17068 
17069   # First separate the path from the arguments. This will split at the first
17070   # space.
17071   complete="$FOUND_MAKE"
17072   path="${complete%% *}"
17073   tmp="$complete EOL"
17074   arguments="${tmp#* }"
17075 
17076   # Input might be given as Windows format, start by converting to
17077   # unix format.
17078   new_path=`$CYGPATH -u "$path"`
17079 
17080   # Now try to locate executable using which
17081   new_path=`$WHICH "$new_path" 2> /dev/null`
17082   # bat and cmd files are not always considered executable in cygwin causing which
17083   # to not find them
17084   if test "x$new_path" = x \
17085       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17086       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17087     new_path=`$CYGPATH -u "$path"`
17088   fi
17089   if test "x$new_path" = x; then
17090     # Oops. Which didn't find the executable.
17091     # The splitting of arguments from the executable at a space might have been incorrect,
17092     # since paths with space are more likely in Windows. Give it another try with the whole
17093     # argument.
17094     path="$complete"
17095     arguments="EOL"
17096     new_path=`$CYGPATH -u "$path"`
17097     new_path=`$WHICH "$new_path" 2> /dev/null`
17098     # bat and cmd files are not always considered executable in cygwin causing which
17099     # to not find them
17100     if test "x$new_path" = x \
17101         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17102         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17103       new_path=`$CYGPATH -u "$path"`
17104     fi
17105     if test "x$new_path" = x; then
17106       # It's still not found. Now this is an unrecoverable error.
17107       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17108 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17109       has_space=`$ECHO "$complete" | $GREP " "`
17110       if test "x$has_space" != x; then
17111         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17112 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17113       fi
17114       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17115     fi
17116   fi
17117 
17118   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17119   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17120   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17121   # "foo.exe" is OK but "foo" is an error.
17122   #
17123   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17124   # It is also a way to make sure we got the proper file name for the real test later on.
17125   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17126   if test "x$test_shortpath" = x; then
17127     # Short path failed, file does not exist as specified.
17128     # Try adding .exe or .cmd
17129     if test -f "${new_path}.exe"; then
17130       input_to_shortpath="${new_path}.exe"
17131     elif test -f "${new_path}.cmd"; then
17132       input_to_shortpath="${new_path}.cmd"
17133     else
17134       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17135 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17136       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17137 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17138       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17139     fi
17140   else
17141     input_to_shortpath="$new_path"
17142   fi
17143 
17144   # Call helper function which possibly converts this using DOS-style short mode.
17145   # If so, the updated path is stored in $new_path.
17146   new_path="$input_to_shortpath"
17147 
17148   input_path="$input_to_shortpath"
17149   # Check if we need to convert this using DOS-style short mode. If the path
17150   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17151   # take no chances and rewrite it.
17152   # Note: m4 eats our [], so we need to use [ and ] instead.
17153   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17154   if test "x$has_forbidden_chars" != x; then
17155     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17156     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17157     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17158     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17159       # Going to short mode and back again did indeed matter. Since short mode is
17160       # case insensitive, let's make it lowercase to improve readability.
17161       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17162       # Now convert it back to Unix-style (cygpath)
17163       input_path=`$CYGPATH -u "$shortmode_path"`
17164       new_path="$input_path"
17165     fi
17166   fi
17167 
17168   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17169   if test "x$test_cygdrive_prefix" = x; then
17170     # As a simple fix, exclude /usr/bin since it's not a real path.
17171     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17172       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17173       # a path prefixed by /cygdrive for fixpath to work.
17174       new_path="$CYGWIN_ROOT_PATH$input_path"
17175     fi
17176   fi
17177 
17178   # remove trailing .exe if any
17179   new_path="${new_path/%.exe/}"
17180 
17181     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17182 
17183   # First separate the path from the arguments. This will split at the first
17184   # space.
17185   complete="$FOUND_MAKE"
17186   path="${complete%% *}"
17187   tmp="$complete EOL"
17188   arguments="${tmp#* }"
17189 
17190   # Input might be given as Windows format, start by converting to
17191   # unix format.
17192   new_path="$path"
17193 
17194   windows_path="$new_path"
17195   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17196     unix_path=`$CYGPATH -u "$windows_path"`
17197     new_path="$unix_path"
17198   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17199     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17200     new_path="$unix_path"
17201   fi
17202 
17203 
17204   # Now try to locate executable using which
17205   new_path=`$WHICH "$new_path" 2> /dev/null`
17206 
17207   if test "x$new_path" = x; then
17208     # Oops. Which didn't find the executable.
17209     # The splitting of arguments from the executable at a space might have been incorrect,
17210     # since paths with space are more likely in Windows. Give it another try with the whole
17211     # argument.
17212     path="$complete"
17213     arguments="EOL"
17214     new_path="$path"
17215 
17216   windows_path="$new_path"
17217   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17218     unix_path=`$CYGPATH -u "$windows_path"`
17219     new_path="$unix_path"
17220   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17221     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17222     new_path="$unix_path"
17223   fi
17224 
17225 
17226     new_path=`$WHICH "$new_path" 2> /dev/null`
17227     # bat and cmd files are not always considered executable in MSYS causing which
17228     # to not find them
17229     if test "x$new_path" = x \
17230         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17231         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17232       new_path="$path"
17233 
17234   windows_path="$new_path"
17235   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17236     unix_path=`$CYGPATH -u "$windows_path"`
17237     new_path="$unix_path"
17238   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17239     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17240     new_path="$unix_path"
17241   fi
17242 
17243     fi
17244 
17245     if test "x$new_path" = x; then
17246       # It's still not found. Now this is an unrecoverable error.
17247       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17248 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17249       has_space=`$ECHO "$complete" | $GREP " "`
17250       if test "x$has_space" != x; then
17251         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17253       fi
17254       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17255     fi
17256   fi
17257 
17258   # Now new_path has a complete unix path to the binary
17259   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17260     # Keep paths in /bin as-is, but remove trailing .exe if any
17261     new_path="${new_path/%.exe/}"
17262     # Do not save /bin paths to all_fixpath_prefixes!
17263   else
17264     # Not in mixed or Windows style, start by that.
17265     new_path=`cmd //c echo $new_path`
17266 
17267   input_path="$new_path"
17268   # Check if we need to convert this using DOS-style short mode. If the path
17269   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17270   # take no chances and rewrite it.
17271   # Note: m4 eats our [], so we need to use [ and ] instead.
17272   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17273   if test "x$has_forbidden_chars" != x; then
17274     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17275     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17276   fi
17277 
17278     # Output is in $new_path
17279 
17280   windows_path="$new_path"
17281   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17282     unix_path=`$CYGPATH -u "$windows_path"`
17283     new_path="$unix_path"
17284   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17285     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17286     new_path="$unix_path"
17287   fi
17288 
17289     # remove trailing .exe if any
17290     new_path="${new_path/%.exe/}"
17291 
17292     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17293     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17294   fi
17295 
17296     else
17297       # We're on a unix platform. Hooray! :)
17298       # First separate the path from the arguments. This will split at the first
17299       # space.
17300       complete="$FOUND_MAKE"
17301       path="${complete%% *}"
17302       tmp="$complete EOL"
17303       arguments="${tmp#* }"
17304 
17305       # Cannot rely on the command "which" here since it doesn't always work.
17306       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17307       if test -z "$is_absolute_path"; then
17308         # Path to executable is not absolute. Find it.
17309         IFS_save="$IFS"
17310         IFS=:
17311         for p in $PATH; do
17312           if test -f "$p/$path" && test -x "$p/$path"; then
17313             new_path="$p/$path"
17314             break
17315           fi
17316         done
17317         IFS="$IFS_save"
17318       else
17319         # This is an absolute path, we can use it without further modifications.
17320         new_path="$path"
17321       fi
17322 
17323       if test "x$new_path" = x; then
17324         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17325 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17326         has_space=`$ECHO "$complete" | $GREP " "`
17327         if test "x$has_space" != x; then
17328           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17329 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17330         fi
17331         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17332       fi
17333     fi
17334 
17335     # Now join together the path and the arguments once again
17336     if test "x$arguments" != xEOL; then
17337       new_complete="$new_path ${arguments% *}"
17338     else
17339       new_complete="$new_path"
17340     fi
17341 
17342     if test "x$complete" != "x$new_complete"; then
17343       FOUND_MAKE="$new_complete"
17344       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17345 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17346     fi
17347   fi
17348 
17349         fi
17350       fi
17351     fi
17352   fi
17353 
17354     fi
17355 
17356     if test "x$FOUND_MAKE" = x; then
17357       if test "x$TOOLCHAIN_PATH" != x; then
17358         # We have a toolchain path, check that as well before giving up.
17359         OLD_PATH=$PATH
17360         PATH=$TOOLCHAIN_PATH:$PATH
17361         for ac_prog in gmake
17362 do
17363   # Extract the first word of "$ac_prog", so it can be a program name with args.
17364 set dummy $ac_prog; ac_word=$2
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17366 $as_echo_n "checking for $ac_word... " >&6; }
17367 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17368   $as_echo_n "(cached) " >&6
17369 else
17370   case $CHECK_TOOLSDIR_GMAKE in
17371   [\\/]* | ?:[\\/]*)
17372   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17373   ;;
17374   *)
17375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17376 for as_dir in $PATH
17377 do
17378   IFS=$as_save_IFS
17379   test -z "$as_dir" && as_dir=.
17380     for ac_exec_ext in '' $ac_executable_extensions; do
17381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17382     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17384     break 2
17385   fi
17386 done
17387   done
17388 IFS=$as_save_IFS
17389 
17390   ;;
17391 esac
17392 fi
17393 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17394 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17396 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17397 else
17398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17399 $as_echo "no" >&6; }
17400 fi
17401 
17402 
17403   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17404 done
17405 
17406 
17407   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17408   DESCRIPTION="gmake in tools-dir"
17409 
17410   # On Cygwin, we require a newer version of make than on other platforms
17411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17412     MAKE_VERSION_EXPR="-e 4\."
17413     MAKE_REQUIRED_VERSION="4.0"
17414    else
17415     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17416     MAKE_REQUIRED_VERSION="3.81"
17417   fi
17418 
17419   if test "x$MAKE_CANDIDATE" != x; then
17420     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17421 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17422     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17423     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17424     if test "x$IS_GNU_MAKE" = x; then
17425       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17426 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17427     else
17428       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17429       if test "x$IS_MODERN_MAKE" = x; then
17430         { $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
17431 $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;}
17432       else
17433         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17434           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17435             MAKE_EXPECTED_ENV='cygwin'
17436           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17437             MAKE_EXPECTED_ENV='msys'
17438           else
17439             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17440           fi
17441           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17442           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17443         else
17444           # Not relevant for non-Windows
17445           IS_MAKE_CORRECT_ENV=true
17446         fi
17447         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17448           { $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
17449 $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;}
17450         else
17451           FOUND_MAKE=$MAKE_CANDIDATE
17452 
17453   # Only process if variable expands to non-empty
17454 
17455   if test "x$FOUND_MAKE" != x; then
17456     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17457 
17458   # First separate the path from the arguments. This will split at the first
17459   # space.
17460   complete="$FOUND_MAKE"
17461   path="${complete%% *}"
17462   tmp="$complete EOL"
17463   arguments="${tmp#* }"
17464 
17465   # Input might be given as Windows format, start by converting to
17466   # unix format.
17467   new_path=`$CYGPATH -u "$path"`
17468 
17469   # Now try to locate executable using which
17470   new_path=`$WHICH "$new_path" 2> /dev/null`
17471   # bat and cmd files are not always considered executable in cygwin causing which
17472   # to not find them
17473   if test "x$new_path" = x \
17474       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17475       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17476     new_path=`$CYGPATH -u "$path"`
17477   fi
17478   if test "x$new_path" = x; then
17479     # Oops. Which didn't find the executable.
17480     # The splitting of arguments from the executable at a space might have been incorrect,
17481     # since paths with space are more likely in Windows. Give it another try with the whole
17482     # argument.
17483     path="$complete"
17484     arguments="EOL"
17485     new_path=`$CYGPATH -u "$path"`
17486     new_path=`$WHICH "$new_path" 2> /dev/null`
17487     # bat and cmd files are not always considered executable in cygwin causing which
17488     # to not find them
17489     if test "x$new_path" = x \
17490         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17491         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17492       new_path=`$CYGPATH -u "$path"`
17493     fi
17494     if test "x$new_path" = x; then
17495       # It's still not found. Now this is an unrecoverable error.
17496       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17497 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17498       has_space=`$ECHO "$complete" | $GREP " "`
17499       if test "x$has_space" != x; then
17500         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17501 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17502       fi
17503       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17504     fi
17505   fi
17506 
17507   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17508   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17509   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17510   # "foo.exe" is OK but "foo" is an error.
17511   #
17512   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17513   # It is also a way to make sure we got the proper file name for the real test later on.
17514   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17515   if test "x$test_shortpath" = x; then
17516     # Short path failed, file does not exist as specified.
17517     # Try adding .exe or .cmd
17518     if test -f "${new_path}.exe"; then
17519       input_to_shortpath="${new_path}.exe"
17520     elif test -f "${new_path}.cmd"; then
17521       input_to_shortpath="${new_path}.cmd"
17522     else
17523       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17524 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17525       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17526 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17527       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17528     fi
17529   else
17530     input_to_shortpath="$new_path"
17531   fi
17532 
17533   # Call helper function which possibly converts this using DOS-style short mode.
17534   # If so, the updated path is stored in $new_path.
17535   new_path="$input_to_shortpath"
17536 
17537   input_path="$input_to_shortpath"
17538   # Check if we need to convert this using DOS-style short mode. If the path
17539   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17540   # take no chances and rewrite it.
17541   # Note: m4 eats our [], so we need to use [ and ] instead.
17542   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17543   if test "x$has_forbidden_chars" != x; then
17544     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17545     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17546     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17547     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17548       # Going to short mode and back again did indeed matter. Since short mode is
17549       # case insensitive, let's make it lowercase to improve readability.
17550       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17551       # Now convert it back to Unix-style (cygpath)
17552       input_path=`$CYGPATH -u "$shortmode_path"`
17553       new_path="$input_path"
17554     fi
17555   fi
17556 
17557   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17558   if test "x$test_cygdrive_prefix" = x; then
17559     # As a simple fix, exclude /usr/bin since it's not a real path.
17560     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17561       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17562       # a path prefixed by /cygdrive for fixpath to work.
17563       new_path="$CYGWIN_ROOT_PATH$input_path"
17564     fi
17565   fi
17566 
17567   # remove trailing .exe if any
17568   new_path="${new_path/%.exe/}"
17569 
17570     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17571 
17572   # First separate the path from the arguments. This will split at the first
17573   # space.
17574   complete="$FOUND_MAKE"
17575   path="${complete%% *}"
17576   tmp="$complete EOL"
17577   arguments="${tmp#* }"
17578 
17579   # Input might be given as Windows format, start by converting to
17580   # unix format.
17581   new_path="$path"
17582 
17583   windows_path="$new_path"
17584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17585     unix_path=`$CYGPATH -u "$windows_path"`
17586     new_path="$unix_path"
17587   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17588     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17589     new_path="$unix_path"
17590   fi
17591 
17592 
17593   # Now try to locate executable using which
17594   new_path=`$WHICH "$new_path" 2> /dev/null`
17595 
17596   if test "x$new_path" = x; then
17597     # Oops. Which didn't find the executable.
17598     # The splitting of arguments from the executable at a space might have been incorrect,
17599     # since paths with space are more likely in Windows. Give it another try with the whole
17600     # argument.
17601     path="$complete"
17602     arguments="EOL"
17603     new_path="$path"
17604 
17605   windows_path="$new_path"
17606   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17607     unix_path=`$CYGPATH -u "$windows_path"`
17608     new_path="$unix_path"
17609   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17610     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17611     new_path="$unix_path"
17612   fi
17613 
17614 
17615     new_path=`$WHICH "$new_path" 2> /dev/null`
17616     # bat and cmd files are not always considered executable in MSYS causing which
17617     # to not find them
17618     if test "x$new_path" = x \
17619         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17620         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17621       new_path="$path"
17622 
17623   windows_path="$new_path"
17624   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17625     unix_path=`$CYGPATH -u "$windows_path"`
17626     new_path="$unix_path"
17627   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17628     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17629     new_path="$unix_path"
17630   fi
17631 
17632     fi
17633 
17634     if test "x$new_path" = x; then
17635       # It's still not found. Now this is an unrecoverable error.
17636       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17638       has_space=`$ECHO "$complete" | $GREP " "`
17639       if test "x$has_space" != x; then
17640         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17641 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17642       fi
17643       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17644     fi
17645   fi
17646 
17647   # Now new_path has a complete unix path to the binary
17648   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17649     # Keep paths in /bin as-is, but remove trailing .exe if any
17650     new_path="${new_path/%.exe/}"
17651     # Do not save /bin paths to all_fixpath_prefixes!
17652   else
17653     # Not in mixed or Windows style, start by that.
17654     new_path=`cmd //c echo $new_path`
17655 
17656   input_path="$new_path"
17657   # Check if we need to convert this using DOS-style short mode. If the path
17658   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17659   # take no chances and rewrite it.
17660   # Note: m4 eats our [], so we need to use [ and ] instead.
17661   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17662   if test "x$has_forbidden_chars" != x; then
17663     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17664     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17665   fi
17666 
17667     # Output is in $new_path
17668 
17669   windows_path="$new_path"
17670   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17671     unix_path=`$CYGPATH -u "$windows_path"`
17672     new_path="$unix_path"
17673   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17674     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17675     new_path="$unix_path"
17676   fi
17677 
17678     # remove trailing .exe if any
17679     new_path="${new_path/%.exe/}"
17680 
17681     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17682     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17683   fi
17684 
17685     else
17686       # We're on a unix platform. Hooray! :)
17687       # First separate the path from the arguments. This will split at the first
17688       # space.
17689       complete="$FOUND_MAKE"
17690       path="${complete%% *}"
17691       tmp="$complete EOL"
17692       arguments="${tmp#* }"
17693 
17694       # Cannot rely on the command "which" here since it doesn't always work.
17695       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17696       if test -z "$is_absolute_path"; then
17697         # Path to executable is not absolute. Find it.
17698         IFS_save="$IFS"
17699         IFS=:
17700         for p in $PATH; do
17701           if test -f "$p/$path" && test -x "$p/$path"; then
17702             new_path="$p/$path"
17703             break
17704           fi
17705         done
17706         IFS="$IFS_save"
17707       else
17708         # This is an absolute path, we can use it without further modifications.
17709         new_path="$path"
17710       fi
17711 
17712       if test "x$new_path" = x; then
17713         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17714 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17715         has_space=`$ECHO "$complete" | $GREP " "`
17716         if test "x$has_space" != x; then
17717           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17718 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17719         fi
17720         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17721       fi
17722     fi
17723 
17724     # Now join together the path and the arguments once again
17725     if test "x$arguments" != xEOL; then
17726       new_complete="$new_path ${arguments% *}"
17727     else
17728       new_complete="$new_path"
17729     fi
17730 
17731     if test "x$complete" != "x$new_complete"; then
17732       FOUND_MAKE="$new_complete"
17733       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17734 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17735     fi
17736   fi
17737 
17738         fi
17739       fi
17740     fi
17741   fi
17742 
17743         if test "x$FOUND_MAKE" = x; then
17744           for ac_prog in make
17745 do
17746   # Extract the first word of "$ac_prog", so it can be a program name with args.
17747 set dummy $ac_prog; ac_word=$2
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17749 $as_echo_n "checking for $ac_word... " >&6; }
17750 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753   case $CHECK_TOOLSDIR_MAKE in
17754   [\\/]* | ?:[\\/]*)
17755   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17756   ;;
17757   *)
17758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17759 for as_dir in $PATH
17760 do
17761   IFS=$as_save_IFS
17762   test -z "$as_dir" && as_dir=.
17763     for ac_exec_ext in '' $ac_executable_extensions; do
17764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17765     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17767     break 2
17768   fi
17769 done
17770   done
17771 IFS=$as_save_IFS
17772 
17773   ;;
17774 esac
17775 fi
17776 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17777 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17779 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17780 else
17781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17782 $as_echo "no" >&6; }
17783 fi
17784 
17785 
17786   test -n "$CHECK_TOOLSDIR_MAKE" && break
17787 done
17788 
17789 
17790   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17791   DESCRIPTION="make in tools-dir"
17792 
17793   # On Cygwin, we require a newer version of make than on other platforms
17794   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17795     MAKE_VERSION_EXPR="-e 4\."
17796     MAKE_REQUIRED_VERSION="4.0"
17797    else
17798     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17799     MAKE_REQUIRED_VERSION="3.81"
17800   fi
17801 
17802   if test "x$MAKE_CANDIDATE" != x; then
17803     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17804 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17805     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17806     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17807     if test "x$IS_GNU_MAKE" = x; then
17808       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17809 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17810     else
17811       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17812       if test "x$IS_MODERN_MAKE" = x; then
17813         { $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
17814 $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;}
17815       else
17816         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17817           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17818             MAKE_EXPECTED_ENV='cygwin'
17819           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17820             MAKE_EXPECTED_ENV='msys'
17821           else
17822             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17823           fi
17824           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17825           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17826         else
17827           # Not relevant for non-Windows
17828           IS_MAKE_CORRECT_ENV=true
17829         fi
17830         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17831           { $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
17832 $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;}
17833         else
17834           FOUND_MAKE=$MAKE_CANDIDATE
17835 
17836   # Only process if variable expands to non-empty
17837 
17838   if test "x$FOUND_MAKE" != x; then
17839     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17840 
17841   # First separate the path from the arguments. This will split at the first
17842   # space.
17843   complete="$FOUND_MAKE"
17844   path="${complete%% *}"
17845   tmp="$complete EOL"
17846   arguments="${tmp#* }"
17847 
17848   # Input might be given as Windows format, start by converting to
17849   # unix format.
17850   new_path=`$CYGPATH -u "$path"`
17851 
17852   # Now try to locate executable using which
17853   new_path=`$WHICH "$new_path" 2> /dev/null`
17854   # bat and cmd files are not always considered executable in cygwin causing which
17855   # to not find them
17856   if test "x$new_path" = x \
17857       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17858       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17859     new_path=`$CYGPATH -u "$path"`
17860   fi
17861   if test "x$new_path" = x; then
17862     # Oops. Which didn't find the executable.
17863     # The splitting of arguments from the executable at a space might have been incorrect,
17864     # since paths with space are more likely in Windows. Give it another try with the whole
17865     # argument.
17866     path="$complete"
17867     arguments="EOL"
17868     new_path=`$CYGPATH -u "$path"`
17869     new_path=`$WHICH "$new_path" 2> /dev/null`
17870     # bat and cmd files are not always considered executable in cygwin causing which
17871     # to not find them
17872     if test "x$new_path" = x \
17873         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17874         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17875       new_path=`$CYGPATH -u "$path"`
17876     fi
17877     if test "x$new_path" = x; then
17878       # It's still not found. Now this is an unrecoverable error.
17879       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17881       has_space=`$ECHO "$complete" | $GREP " "`
17882       if test "x$has_space" != x; then
17883         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17884 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17885       fi
17886       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17887     fi
17888   fi
17889 
17890   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17891   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17892   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17893   # "foo.exe" is OK but "foo" is an error.
17894   #
17895   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17896   # It is also a way to make sure we got the proper file name for the real test later on.
17897   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17898   if test "x$test_shortpath" = x; then
17899     # Short path failed, file does not exist as specified.
17900     # Try adding .exe or .cmd
17901     if test -f "${new_path}.exe"; then
17902       input_to_shortpath="${new_path}.exe"
17903     elif test -f "${new_path}.cmd"; then
17904       input_to_shortpath="${new_path}.cmd"
17905     else
17906       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17908       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17909 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17910       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17911     fi
17912   else
17913     input_to_shortpath="$new_path"
17914   fi
17915 
17916   # Call helper function which possibly converts this using DOS-style short mode.
17917   # If so, the updated path is stored in $new_path.
17918   new_path="$input_to_shortpath"
17919 
17920   input_path="$input_to_shortpath"
17921   # Check if we need to convert this using DOS-style short mode. If the path
17922   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17923   # take no chances and rewrite it.
17924   # Note: m4 eats our [], so we need to use [ and ] instead.
17925   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17926   if test "x$has_forbidden_chars" != x; then
17927     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17928     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17929     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17930     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17931       # Going to short mode and back again did indeed matter. Since short mode is
17932       # case insensitive, let's make it lowercase to improve readability.
17933       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17934       # Now convert it back to Unix-style (cygpath)
17935       input_path=`$CYGPATH -u "$shortmode_path"`
17936       new_path="$input_path"
17937     fi
17938   fi
17939 
17940   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17941   if test "x$test_cygdrive_prefix" = x; then
17942     # As a simple fix, exclude /usr/bin since it's not a real path.
17943     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17944       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17945       # a path prefixed by /cygdrive for fixpath to work.
17946       new_path="$CYGWIN_ROOT_PATH$input_path"
17947     fi
17948   fi
17949 
17950   # remove trailing .exe if any
17951   new_path="${new_path/%.exe/}"
17952 
17953     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17954 
17955   # First separate the path from the arguments. This will split at the first
17956   # space.
17957   complete="$FOUND_MAKE"
17958   path="${complete%% *}"
17959   tmp="$complete EOL"
17960   arguments="${tmp#* }"
17961 
17962   # Input might be given as Windows format, start by converting to
17963   # unix format.
17964   new_path="$path"
17965 
17966   windows_path="$new_path"
17967   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17968     unix_path=`$CYGPATH -u "$windows_path"`
17969     new_path="$unix_path"
17970   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17971     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17972     new_path="$unix_path"
17973   fi
17974 
17975 
17976   # Now try to locate executable using which
17977   new_path=`$WHICH "$new_path" 2> /dev/null`
17978 
17979   if test "x$new_path" = x; then
17980     # Oops. Which didn't find the executable.
17981     # The splitting of arguments from the executable at a space might have been incorrect,
17982     # since paths with space are more likely in Windows. Give it another try with the whole
17983     # argument.
17984     path="$complete"
17985     arguments="EOL"
17986     new_path="$path"
17987 
17988   windows_path="$new_path"
17989   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17990     unix_path=`$CYGPATH -u "$windows_path"`
17991     new_path="$unix_path"
17992   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17993     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17994     new_path="$unix_path"
17995   fi
17996 
17997 
17998     new_path=`$WHICH "$new_path" 2> /dev/null`
17999     # bat and cmd files are not always considered executable in MSYS causing which
18000     # to not find them
18001     if test "x$new_path" = x \
18002         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18003         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18004       new_path="$path"
18005 
18006   windows_path="$new_path"
18007   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18008     unix_path=`$CYGPATH -u "$windows_path"`
18009     new_path="$unix_path"
18010   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18011     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18012     new_path="$unix_path"
18013   fi
18014 
18015     fi
18016 
18017     if test "x$new_path" = x; then
18018       # It's still not found. Now this is an unrecoverable error.
18019       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18020 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18021       has_space=`$ECHO "$complete" | $GREP " "`
18022       if test "x$has_space" != x; then
18023         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18024 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18025       fi
18026       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18027     fi
18028   fi
18029 
18030   # Now new_path has a complete unix path to the binary
18031   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18032     # Keep paths in /bin as-is, but remove trailing .exe if any
18033     new_path="${new_path/%.exe/}"
18034     # Do not save /bin paths to all_fixpath_prefixes!
18035   else
18036     # Not in mixed or Windows style, start by that.
18037     new_path=`cmd //c echo $new_path`
18038 
18039   input_path="$new_path"
18040   # Check if we need to convert this using DOS-style short mode. If the path
18041   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18042   # take no chances and rewrite it.
18043   # Note: m4 eats our [], so we need to use [ and ] instead.
18044   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18045   if test "x$has_forbidden_chars" != x; then
18046     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18047     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18048   fi
18049 
18050     # Output is in $new_path
18051 
18052   windows_path="$new_path"
18053   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18054     unix_path=`$CYGPATH -u "$windows_path"`
18055     new_path="$unix_path"
18056   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18057     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18058     new_path="$unix_path"
18059   fi
18060 
18061     # remove trailing .exe if any
18062     new_path="${new_path/%.exe/}"
18063 
18064     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18065     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18066   fi
18067 
18068     else
18069       # We're on a unix platform. Hooray! :)
18070       # First separate the path from the arguments. This will split at the first
18071       # space.
18072       complete="$FOUND_MAKE"
18073       path="${complete%% *}"
18074       tmp="$complete EOL"
18075       arguments="${tmp#* }"
18076 
18077       # Cannot rely on the command "which" here since it doesn't always work.
18078       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18079       if test -z "$is_absolute_path"; then
18080         # Path to executable is not absolute. Find it.
18081         IFS_save="$IFS"
18082         IFS=:
18083         for p in $PATH; do
18084           if test -f "$p/$path" && test -x "$p/$path"; then
18085             new_path="$p/$path"
18086             break
18087           fi
18088         done
18089         IFS="$IFS_save"
18090       else
18091         # This is an absolute path, we can use it without further modifications.
18092         new_path="$path"
18093       fi
18094 
18095       if test "x$new_path" = x; then
18096         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18097 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18098         has_space=`$ECHO "$complete" | $GREP " "`
18099         if test "x$has_space" != x; then
18100           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18101 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18102         fi
18103         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18104       fi
18105     fi
18106 
18107     # Now join together the path and the arguments once again
18108     if test "x$arguments" != xEOL; then
18109       new_complete="$new_path ${arguments% *}"
18110     else
18111       new_complete="$new_path"
18112     fi
18113 
18114     if test "x$complete" != "x$new_complete"; then
18115       FOUND_MAKE="$new_complete"
18116       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18117 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18118     fi
18119   fi
18120 
18121         fi
18122       fi
18123     fi
18124   fi
18125 
18126         fi
18127         PATH=$OLD_PATH
18128       fi
18129     fi
18130 
18131     if test "x$FOUND_MAKE" = x; then
18132       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
18133     fi
18134 
18135   else
18136     # The variable is set, but is it from the command line or the environment?
18137 
18138     # Try to remove the string !MAKE! from our list.
18139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18141       # If it failed, the variable was not from the command line. Ignore it,
18142       # but warn the user (except for BASH, which is always set by the calling BASH).
18143       if test "xMAKE" != xBASH; then
18144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18145 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18146       fi
18147       # Try to locate tool using the code snippet
18148 
18149     # Try our hardest to locate a correct version of GNU make
18150     for ac_prog in gmake
18151 do
18152   # Extract the first word of "$ac_prog", so it can be a program name with args.
18153 set dummy $ac_prog; ac_word=$2
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18155 $as_echo_n "checking for $ac_word... " >&6; }
18156 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18157   $as_echo_n "(cached) " >&6
18158 else
18159   case $CHECK_GMAKE in
18160   [\\/]* | ?:[\\/]*)
18161   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18162   ;;
18163   *)
18164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18166 do
18167   IFS=$as_save_IFS
18168   test -z "$as_dir" && as_dir=.
18169     for ac_exec_ext in '' $ac_executable_extensions; do
18170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18171     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18173     break 2
18174   fi
18175 done
18176   done
18177 IFS=$as_save_IFS
18178 
18179   ;;
18180 esac
18181 fi
18182 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18183 if test -n "$CHECK_GMAKE"; then
18184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18185 $as_echo "$CHECK_GMAKE" >&6; }
18186 else
18187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189 fi
18190 
18191 
18192   test -n "$CHECK_GMAKE" && break
18193 done
18194 
18195 
18196   MAKE_CANDIDATE=""$CHECK_GMAKE""
18197   DESCRIPTION="gmake in PATH"
18198 
18199   # On Cygwin, we require a newer version of make than on other platforms
18200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18201     MAKE_VERSION_EXPR="-e 4\."
18202     MAKE_REQUIRED_VERSION="4.0"
18203    else
18204     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18205     MAKE_REQUIRED_VERSION="3.81"
18206   fi
18207 
18208   if test "x$MAKE_CANDIDATE" != x; then
18209     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18210 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18211     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18212     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18213     if test "x$IS_GNU_MAKE" = x; then
18214       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18215 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18216     else
18217       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18218       if test "x$IS_MODERN_MAKE" = x; then
18219         { $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
18220 $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;}
18221       else
18222         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18223           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18224             MAKE_EXPECTED_ENV='cygwin'
18225           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18226             MAKE_EXPECTED_ENV='msys'
18227           else
18228             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18229           fi
18230           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18231           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18232         else
18233           # Not relevant for non-Windows
18234           IS_MAKE_CORRECT_ENV=true
18235         fi
18236         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18237           { $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
18238 $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;}
18239         else
18240           FOUND_MAKE=$MAKE_CANDIDATE
18241 
18242   # Only process if variable expands to non-empty
18243 
18244   if test "x$FOUND_MAKE" != x; then
18245     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18246 
18247   # First separate the path from the arguments. This will split at the first
18248   # space.
18249   complete="$FOUND_MAKE"
18250   path="${complete%% *}"
18251   tmp="$complete EOL"
18252   arguments="${tmp#* }"
18253 
18254   # Input might be given as Windows format, start by converting to
18255   # unix format.
18256   new_path=`$CYGPATH -u "$path"`
18257 
18258   # Now try to locate executable using which
18259   new_path=`$WHICH "$new_path" 2> /dev/null`
18260   # bat and cmd files are not always considered executable in cygwin causing which
18261   # to not find them
18262   if test "x$new_path" = x \
18263       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18264       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18265     new_path=`$CYGPATH -u "$path"`
18266   fi
18267   if test "x$new_path" = x; then
18268     # Oops. Which didn't find the executable.
18269     # The splitting of arguments from the executable at a space might have been incorrect,
18270     # since paths with space are more likely in Windows. Give it another try with the whole
18271     # argument.
18272     path="$complete"
18273     arguments="EOL"
18274     new_path=`$CYGPATH -u "$path"`
18275     new_path=`$WHICH "$new_path" 2> /dev/null`
18276     # bat and cmd files are not always considered executable in cygwin causing which
18277     # to not find them
18278     if test "x$new_path" = x \
18279         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18280         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18281       new_path=`$CYGPATH -u "$path"`
18282     fi
18283     if test "x$new_path" = x; then
18284       # It's still not found. Now this is an unrecoverable error.
18285       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18286 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18287       has_space=`$ECHO "$complete" | $GREP " "`
18288       if test "x$has_space" != x; then
18289         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18290 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18291       fi
18292       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18293     fi
18294   fi
18295 
18296   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18297   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18298   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18299   # "foo.exe" is OK but "foo" is an error.
18300   #
18301   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18302   # It is also a way to make sure we got the proper file name for the real test later on.
18303   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18304   if test "x$test_shortpath" = x; then
18305     # Short path failed, file does not exist as specified.
18306     # Try adding .exe or .cmd
18307     if test -f "${new_path}.exe"; then
18308       input_to_shortpath="${new_path}.exe"
18309     elif test -f "${new_path}.cmd"; then
18310       input_to_shortpath="${new_path}.cmd"
18311     else
18312       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18313 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18314       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18315 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18316       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18317     fi
18318   else
18319     input_to_shortpath="$new_path"
18320   fi
18321 
18322   # Call helper function which possibly converts this using DOS-style short mode.
18323   # If so, the updated path is stored in $new_path.
18324   new_path="$input_to_shortpath"
18325 
18326   input_path="$input_to_shortpath"
18327   # Check if we need to convert this using DOS-style short mode. If the path
18328   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18329   # take no chances and rewrite it.
18330   # Note: m4 eats our [], so we need to use [ and ] instead.
18331   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18332   if test "x$has_forbidden_chars" != x; then
18333     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18334     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18335     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18336     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18337       # Going to short mode and back again did indeed matter. Since short mode is
18338       # case insensitive, let's make it lowercase to improve readability.
18339       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18340       # Now convert it back to Unix-style (cygpath)
18341       input_path=`$CYGPATH -u "$shortmode_path"`
18342       new_path="$input_path"
18343     fi
18344   fi
18345 
18346   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18347   if test "x$test_cygdrive_prefix" = x; then
18348     # As a simple fix, exclude /usr/bin since it's not a real path.
18349     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18350       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18351       # a path prefixed by /cygdrive for fixpath to work.
18352       new_path="$CYGWIN_ROOT_PATH$input_path"
18353     fi
18354   fi
18355 
18356   # remove trailing .exe if any
18357   new_path="${new_path/%.exe/}"
18358 
18359     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18360 
18361   # First separate the path from the arguments. This will split at the first
18362   # space.
18363   complete="$FOUND_MAKE"
18364   path="${complete%% *}"
18365   tmp="$complete EOL"
18366   arguments="${tmp#* }"
18367 
18368   # Input might be given as Windows format, start by converting to
18369   # unix format.
18370   new_path="$path"
18371 
18372   windows_path="$new_path"
18373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18374     unix_path=`$CYGPATH -u "$windows_path"`
18375     new_path="$unix_path"
18376   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18377     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18378     new_path="$unix_path"
18379   fi
18380 
18381 
18382   # Now try to locate executable using which
18383   new_path=`$WHICH "$new_path" 2> /dev/null`
18384 
18385   if test "x$new_path" = x; then
18386     # Oops. Which didn't find the executable.
18387     # The splitting of arguments from the executable at a space might have been incorrect,
18388     # since paths with space are more likely in Windows. Give it another try with the whole
18389     # argument.
18390     path="$complete"
18391     arguments="EOL"
18392     new_path="$path"
18393 
18394   windows_path="$new_path"
18395   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18396     unix_path=`$CYGPATH -u "$windows_path"`
18397     new_path="$unix_path"
18398   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18399     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18400     new_path="$unix_path"
18401   fi
18402 
18403 
18404     new_path=`$WHICH "$new_path" 2> /dev/null`
18405     # bat and cmd files are not always considered executable in MSYS causing which
18406     # to not find them
18407     if test "x$new_path" = x \
18408         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18409         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18410       new_path="$path"
18411 
18412   windows_path="$new_path"
18413   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18414     unix_path=`$CYGPATH -u "$windows_path"`
18415     new_path="$unix_path"
18416   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18417     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18418     new_path="$unix_path"
18419   fi
18420 
18421     fi
18422 
18423     if test "x$new_path" = x; then
18424       # It's still not found. Now this is an unrecoverable error.
18425       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18426 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18427       has_space=`$ECHO "$complete" | $GREP " "`
18428       if test "x$has_space" != x; then
18429         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18430 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18431       fi
18432       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18433     fi
18434   fi
18435 
18436   # Now new_path has a complete unix path to the binary
18437   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18438     # Keep paths in /bin as-is, but remove trailing .exe if any
18439     new_path="${new_path/%.exe/}"
18440     # Do not save /bin paths to all_fixpath_prefixes!
18441   else
18442     # Not in mixed or Windows style, start by that.
18443     new_path=`cmd //c echo $new_path`
18444 
18445   input_path="$new_path"
18446   # Check if we need to convert this using DOS-style short mode. If the path
18447   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18448   # take no chances and rewrite it.
18449   # Note: m4 eats our [], so we need to use [ and ] instead.
18450   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18451   if test "x$has_forbidden_chars" != x; then
18452     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18453     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18454   fi
18455 
18456     # Output is in $new_path
18457 
18458   windows_path="$new_path"
18459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18460     unix_path=`$CYGPATH -u "$windows_path"`
18461     new_path="$unix_path"
18462   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18463     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18464     new_path="$unix_path"
18465   fi
18466 
18467     # remove trailing .exe if any
18468     new_path="${new_path/%.exe/}"
18469 
18470     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18471     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18472   fi
18473 
18474     else
18475       # We're on a unix platform. Hooray! :)
18476       # First separate the path from the arguments. This will split at the first
18477       # space.
18478       complete="$FOUND_MAKE"
18479       path="${complete%% *}"
18480       tmp="$complete EOL"
18481       arguments="${tmp#* }"
18482 
18483       # Cannot rely on the command "which" here since it doesn't always work.
18484       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18485       if test -z "$is_absolute_path"; then
18486         # Path to executable is not absolute. Find it.
18487         IFS_save="$IFS"
18488         IFS=:
18489         for p in $PATH; do
18490           if test -f "$p/$path" && test -x "$p/$path"; then
18491             new_path="$p/$path"
18492             break
18493           fi
18494         done
18495         IFS="$IFS_save"
18496       else
18497         # This is an absolute path, we can use it without further modifications.
18498         new_path="$path"
18499       fi
18500 
18501       if test "x$new_path" = x; then
18502         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18503 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18504         has_space=`$ECHO "$complete" | $GREP " "`
18505         if test "x$has_space" != x; then
18506           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18507 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18508         fi
18509         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18510       fi
18511     fi
18512 
18513     # Now join together the path and the arguments once again
18514     if test "x$arguments" != xEOL; then
18515       new_complete="$new_path ${arguments% *}"
18516     else
18517       new_complete="$new_path"
18518     fi
18519 
18520     if test "x$complete" != "x$new_complete"; then
18521       FOUND_MAKE="$new_complete"
18522       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18523 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18524     fi
18525   fi
18526 
18527         fi
18528       fi
18529     fi
18530   fi
18531 
18532 
18533     if test "x$FOUND_MAKE" = x; then
18534       for ac_prog in make
18535 do
18536   # Extract the first word of "$ac_prog", so it can be a program name with args.
18537 set dummy $ac_prog; ac_word=$2
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18539 $as_echo_n "checking for $ac_word... " >&6; }
18540 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18541   $as_echo_n "(cached) " >&6
18542 else
18543   case $CHECK_MAKE in
18544   [\\/]* | ?:[\\/]*)
18545   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18546   ;;
18547   *)
18548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18549 for as_dir in $PATH
18550 do
18551   IFS=$as_save_IFS
18552   test -z "$as_dir" && as_dir=.
18553     for ac_exec_ext in '' $ac_executable_extensions; do
18554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18555     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18557     break 2
18558   fi
18559 done
18560   done
18561 IFS=$as_save_IFS
18562 
18563   ;;
18564 esac
18565 fi
18566 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18567 if test -n "$CHECK_MAKE"; then
18568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18569 $as_echo "$CHECK_MAKE" >&6; }
18570 else
18571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18572 $as_echo "no" >&6; }
18573 fi
18574 
18575 
18576   test -n "$CHECK_MAKE" && break
18577 done
18578 
18579 
18580   MAKE_CANDIDATE=""$CHECK_MAKE""
18581   DESCRIPTION="make in PATH"
18582 
18583   # On Cygwin, we require a newer version of make than on other platforms
18584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18585     MAKE_VERSION_EXPR="-e 4\."
18586     MAKE_REQUIRED_VERSION="4.0"
18587    else
18588     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18589     MAKE_REQUIRED_VERSION="3.81"
18590   fi
18591 
18592   if test "x$MAKE_CANDIDATE" != x; then
18593     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18594 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18595     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18596     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18597     if test "x$IS_GNU_MAKE" = x; then
18598       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18599 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18600     else
18601       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18602       if test "x$IS_MODERN_MAKE" = x; then
18603         { $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
18604 $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;}
18605       else
18606         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18607           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18608             MAKE_EXPECTED_ENV='cygwin'
18609           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18610             MAKE_EXPECTED_ENV='msys'
18611           else
18612             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18613           fi
18614           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18615           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18616         else
18617           # Not relevant for non-Windows
18618           IS_MAKE_CORRECT_ENV=true
18619         fi
18620         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18621           { $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
18622 $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;}
18623         else
18624           FOUND_MAKE=$MAKE_CANDIDATE
18625 
18626   # Only process if variable expands to non-empty
18627 
18628   if test "x$FOUND_MAKE" != x; then
18629     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18630 
18631   # First separate the path from the arguments. This will split at the first
18632   # space.
18633   complete="$FOUND_MAKE"
18634   path="${complete%% *}"
18635   tmp="$complete EOL"
18636   arguments="${tmp#* }"
18637 
18638   # Input might be given as Windows format, start by converting to
18639   # unix format.
18640   new_path=`$CYGPATH -u "$path"`
18641 
18642   # Now try to locate executable using which
18643   new_path=`$WHICH "$new_path" 2> /dev/null`
18644   # bat and cmd files are not always considered executable in cygwin causing which
18645   # to not find them
18646   if test "x$new_path" = x \
18647       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18648       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18649     new_path=`$CYGPATH -u "$path"`
18650   fi
18651   if test "x$new_path" = x; then
18652     # Oops. Which didn't find the executable.
18653     # The splitting of arguments from the executable at a space might have been incorrect,
18654     # since paths with space are more likely in Windows. Give it another try with the whole
18655     # argument.
18656     path="$complete"
18657     arguments="EOL"
18658     new_path=`$CYGPATH -u "$path"`
18659     new_path=`$WHICH "$new_path" 2> /dev/null`
18660     # bat and cmd files are not always considered executable in cygwin causing which
18661     # to not find them
18662     if test "x$new_path" = x \
18663         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18664         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18665       new_path=`$CYGPATH -u "$path"`
18666     fi
18667     if test "x$new_path" = x; then
18668       # It's still not found. Now this is an unrecoverable error.
18669       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18670 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18671       has_space=`$ECHO "$complete" | $GREP " "`
18672       if test "x$has_space" != x; then
18673         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18674 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18675       fi
18676       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18677     fi
18678   fi
18679 
18680   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18681   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18682   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18683   # "foo.exe" is OK but "foo" is an error.
18684   #
18685   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18686   # It is also a way to make sure we got the proper file name for the real test later on.
18687   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18688   if test "x$test_shortpath" = x; then
18689     # Short path failed, file does not exist as specified.
18690     # Try adding .exe or .cmd
18691     if test -f "${new_path}.exe"; then
18692       input_to_shortpath="${new_path}.exe"
18693     elif test -f "${new_path}.cmd"; then
18694       input_to_shortpath="${new_path}.cmd"
18695     else
18696       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18698       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18699 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18700       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18701     fi
18702   else
18703     input_to_shortpath="$new_path"
18704   fi
18705 
18706   # Call helper function which possibly converts this using DOS-style short mode.
18707   # If so, the updated path is stored in $new_path.
18708   new_path="$input_to_shortpath"
18709 
18710   input_path="$input_to_shortpath"
18711   # Check if we need to convert this using DOS-style short mode. If the path
18712   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18713   # take no chances and rewrite it.
18714   # Note: m4 eats our [], so we need to use [ and ] instead.
18715   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18716   if test "x$has_forbidden_chars" != x; then
18717     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18718     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18719     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18720     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18721       # Going to short mode and back again did indeed matter. Since short mode is
18722       # case insensitive, let's make it lowercase to improve readability.
18723       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18724       # Now convert it back to Unix-style (cygpath)
18725       input_path=`$CYGPATH -u "$shortmode_path"`
18726       new_path="$input_path"
18727     fi
18728   fi
18729 
18730   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18731   if test "x$test_cygdrive_prefix" = x; then
18732     # As a simple fix, exclude /usr/bin since it's not a real path.
18733     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18734       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18735       # a path prefixed by /cygdrive for fixpath to work.
18736       new_path="$CYGWIN_ROOT_PATH$input_path"
18737     fi
18738   fi
18739 
18740   # remove trailing .exe if any
18741   new_path="${new_path/%.exe/}"
18742 
18743     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18744 
18745   # First separate the path from the arguments. This will split at the first
18746   # space.
18747   complete="$FOUND_MAKE"
18748   path="${complete%% *}"
18749   tmp="$complete EOL"
18750   arguments="${tmp#* }"
18751 
18752   # Input might be given as Windows format, start by converting to
18753   # unix format.
18754   new_path="$path"
18755 
18756   windows_path="$new_path"
18757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18758     unix_path=`$CYGPATH -u "$windows_path"`
18759     new_path="$unix_path"
18760   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18761     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18762     new_path="$unix_path"
18763   fi
18764 
18765 
18766   # Now try to locate executable using which
18767   new_path=`$WHICH "$new_path" 2> /dev/null`
18768 
18769   if test "x$new_path" = x; then
18770     # Oops. Which didn't find the executable.
18771     # The splitting of arguments from the executable at a space might have been incorrect,
18772     # since paths with space are more likely in Windows. Give it another try with the whole
18773     # argument.
18774     path="$complete"
18775     arguments="EOL"
18776     new_path="$path"
18777 
18778   windows_path="$new_path"
18779   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18780     unix_path=`$CYGPATH -u "$windows_path"`
18781     new_path="$unix_path"
18782   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18783     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18784     new_path="$unix_path"
18785   fi
18786 
18787 
18788     new_path=`$WHICH "$new_path" 2> /dev/null`
18789     # bat and cmd files are not always considered executable in MSYS causing which
18790     # to not find them
18791     if test "x$new_path" = x \
18792         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18793         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18794       new_path="$path"
18795 
18796   windows_path="$new_path"
18797   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18798     unix_path=`$CYGPATH -u "$windows_path"`
18799     new_path="$unix_path"
18800   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18801     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18802     new_path="$unix_path"
18803   fi
18804 
18805     fi
18806 
18807     if test "x$new_path" = x; then
18808       # It's still not found. Now this is an unrecoverable error.
18809       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18810 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18811       has_space=`$ECHO "$complete" | $GREP " "`
18812       if test "x$has_space" != x; then
18813         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18814 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18815       fi
18816       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18817     fi
18818   fi
18819 
18820   # Now new_path has a complete unix path to the binary
18821   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18822     # Keep paths in /bin as-is, but remove trailing .exe if any
18823     new_path="${new_path/%.exe/}"
18824     # Do not save /bin paths to all_fixpath_prefixes!
18825   else
18826     # Not in mixed or Windows style, start by that.
18827     new_path=`cmd //c echo $new_path`
18828 
18829   input_path="$new_path"
18830   # Check if we need to convert this using DOS-style short mode. If the path
18831   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18832   # take no chances and rewrite it.
18833   # Note: m4 eats our [], so we need to use [ and ] instead.
18834   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18835   if test "x$has_forbidden_chars" != x; then
18836     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18837     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18838   fi
18839 
18840     # Output is in $new_path
18841 
18842   windows_path="$new_path"
18843   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18844     unix_path=`$CYGPATH -u "$windows_path"`
18845     new_path="$unix_path"
18846   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18847     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18848     new_path="$unix_path"
18849   fi
18850 
18851     # remove trailing .exe if any
18852     new_path="${new_path/%.exe/}"
18853 
18854     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18855     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18856   fi
18857 
18858     else
18859       # We're on a unix platform. Hooray! :)
18860       # First separate the path from the arguments. This will split at the first
18861       # space.
18862       complete="$FOUND_MAKE"
18863       path="${complete%% *}"
18864       tmp="$complete EOL"
18865       arguments="${tmp#* }"
18866 
18867       # Cannot rely on the command "which" here since it doesn't always work.
18868       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18869       if test -z "$is_absolute_path"; then
18870         # Path to executable is not absolute. Find it.
18871         IFS_save="$IFS"
18872         IFS=:
18873         for p in $PATH; do
18874           if test -f "$p/$path" && test -x "$p/$path"; then
18875             new_path="$p/$path"
18876             break
18877           fi
18878         done
18879         IFS="$IFS_save"
18880       else
18881         # This is an absolute path, we can use it without further modifications.
18882         new_path="$path"
18883       fi
18884 
18885       if test "x$new_path" = x; then
18886         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18887 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18888         has_space=`$ECHO "$complete" | $GREP " "`
18889         if test "x$has_space" != x; then
18890           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18891 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18892         fi
18893         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18894       fi
18895     fi
18896 
18897     # Now join together the path and the arguments once again
18898     if test "x$arguments" != xEOL; then
18899       new_complete="$new_path ${arguments% *}"
18900     else
18901       new_complete="$new_path"
18902     fi
18903 
18904     if test "x$complete" != "x$new_complete"; then
18905       FOUND_MAKE="$new_complete"
18906       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18907 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18908     fi
18909   fi
18910 
18911         fi
18912       fi
18913     fi
18914   fi
18915 
18916     fi
18917 
18918     if test "x$FOUND_MAKE" = x; then
18919       if test "x$TOOLCHAIN_PATH" != x; then
18920         # We have a toolchain path, check that as well before giving up.
18921         OLD_PATH=$PATH
18922         PATH=$TOOLCHAIN_PATH:$PATH
18923         for ac_prog in gmake
18924 do
18925   # Extract the first word of "$ac_prog", so it can be a program name with args.
18926 set dummy $ac_prog; ac_word=$2
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18928 $as_echo_n "checking for $ac_word... " >&6; }
18929 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18930   $as_echo_n "(cached) " >&6
18931 else
18932   case $CHECK_TOOLSDIR_GMAKE in
18933   [\\/]* | ?:[\\/]*)
18934   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18935   ;;
18936   *)
18937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18938 for as_dir in $PATH
18939 do
18940   IFS=$as_save_IFS
18941   test -z "$as_dir" && as_dir=.
18942     for ac_exec_ext in '' $ac_executable_extensions; do
18943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18944     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18946     break 2
18947   fi
18948 done
18949   done
18950 IFS=$as_save_IFS
18951 
18952   ;;
18953 esac
18954 fi
18955 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18956 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18958 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18959 else
18960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18962 fi
18963 
18964 
18965   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18966 done
18967 
18968 
18969   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18970   DESCRIPTION="gmake in tools-dir"
18971 
18972   # On Cygwin, we require a newer version of make than on other platforms
18973   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18974     MAKE_VERSION_EXPR="-e 4\."
18975     MAKE_REQUIRED_VERSION="4.0"
18976    else
18977     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18978     MAKE_REQUIRED_VERSION="3.81"
18979   fi
18980 
18981   if test "x$MAKE_CANDIDATE" != x; then
18982     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18983 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18984     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18985     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18986     if test "x$IS_GNU_MAKE" = x; then
18987       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18988 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18989     else
18990       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18991       if test "x$IS_MODERN_MAKE" = x; then
18992         { $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
18993 $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;}
18994       else
18995         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18996           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18997             MAKE_EXPECTED_ENV='cygwin'
18998           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18999             MAKE_EXPECTED_ENV='msys'
19000           else
19001             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19002           fi
19003           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19004           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19005         else
19006           # Not relevant for non-Windows
19007           IS_MAKE_CORRECT_ENV=true
19008         fi
19009         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19010           { $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
19011 $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;}
19012         else
19013           FOUND_MAKE=$MAKE_CANDIDATE
19014 
19015   # Only process if variable expands to non-empty
19016 
19017   if test "x$FOUND_MAKE" != x; then
19018     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19019 
19020   # First separate the path from the arguments. This will split at the first
19021   # space.
19022   complete="$FOUND_MAKE"
19023   path="${complete%% *}"
19024   tmp="$complete EOL"
19025   arguments="${tmp#* }"
19026 
19027   # Input might be given as Windows format, start by converting to
19028   # unix format.
19029   new_path=`$CYGPATH -u "$path"`
19030 
19031   # Now try to locate executable using which
19032   new_path=`$WHICH "$new_path" 2> /dev/null`
19033   # bat and cmd files are not always considered executable in cygwin causing which
19034   # to not find them
19035   if test "x$new_path" = x \
19036       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19037       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19038     new_path=`$CYGPATH -u "$path"`
19039   fi
19040   if test "x$new_path" = x; then
19041     # Oops. Which didn't find the executable.
19042     # The splitting of arguments from the executable at a space might have been incorrect,
19043     # since paths with space are more likely in Windows. Give it another try with the whole
19044     # argument.
19045     path="$complete"
19046     arguments="EOL"
19047     new_path=`$CYGPATH -u "$path"`
19048     new_path=`$WHICH "$new_path" 2> /dev/null`
19049     # bat and cmd files are not always considered executable in cygwin causing which
19050     # to not find them
19051     if test "x$new_path" = x \
19052         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19053         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19054       new_path=`$CYGPATH -u "$path"`
19055     fi
19056     if test "x$new_path" = x; then
19057       # It's still not found. Now this is an unrecoverable error.
19058       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19059 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19060       has_space=`$ECHO "$complete" | $GREP " "`
19061       if test "x$has_space" != x; then
19062         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19063 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19064       fi
19065       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19066     fi
19067   fi
19068 
19069   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19070   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19071   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19072   # "foo.exe" is OK but "foo" is an error.
19073   #
19074   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19075   # It is also a way to make sure we got the proper file name for the real test later on.
19076   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19077   if test "x$test_shortpath" = x; then
19078     # Short path failed, file does not exist as specified.
19079     # Try adding .exe or .cmd
19080     if test -f "${new_path}.exe"; then
19081       input_to_shortpath="${new_path}.exe"
19082     elif test -f "${new_path}.cmd"; then
19083       input_to_shortpath="${new_path}.cmd"
19084     else
19085       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19086 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19087       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19088 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19089       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19090     fi
19091   else
19092     input_to_shortpath="$new_path"
19093   fi
19094 
19095   # Call helper function which possibly converts this using DOS-style short mode.
19096   # If so, the updated path is stored in $new_path.
19097   new_path="$input_to_shortpath"
19098 
19099   input_path="$input_to_shortpath"
19100   # Check if we need to convert this using DOS-style short mode. If the path
19101   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19102   # take no chances and rewrite it.
19103   # Note: m4 eats our [], so we need to use [ and ] instead.
19104   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19105   if test "x$has_forbidden_chars" != x; then
19106     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19107     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19108     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19109     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19110       # Going to short mode and back again did indeed matter. Since short mode is
19111       # case insensitive, let's make it lowercase to improve readability.
19112       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19113       # Now convert it back to Unix-style (cygpath)
19114       input_path=`$CYGPATH -u "$shortmode_path"`
19115       new_path="$input_path"
19116     fi
19117   fi
19118 
19119   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19120   if test "x$test_cygdrive_prefix" = x; then
19121     # As a simple fix, exclude /usr/bin since it's not a real path.
19122     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19123       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19124       # a path prefixed by /cygdrive for fixpath to work.
19125       new_path="$CYGWIN_ROOT_PATH$input_path"
19126     fi
19127   fi
19128 
19129   # remove trailing .exe if any
19130   new_path="${new_path/%.exe/}"
19131 
19132     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19133 
19134   # First separate the path from the arguments. This will split at the first
19135   # space.
19136   complete="$FOUND_MAKE"
19137   path="${complete%% *}"
19138   tmp="$complete EOL"
19139   arguments="${tmp#* }"
19140 
19141   # Input might be given as Windows format, start by converting to
19142   # unix format.
19143   new_path="$path"
19144 
19145   windows_path="$new_path"
19146   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19147     unix_path=`$CYGPATH -u "$windows_path"`
19148     new_path="$unix_path"
19149   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19150     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19151     new_path="$unix_path"
19152   fi
19153 
19154 
19155   # Now try to locate executable using which
19156   new_path=`$WHICH "$new_path" 2> /dev/null`
19157 
19158   if test "x$new_path" = x; then
19159     # Oops. Which didn't find the executable.
19160     # The splitting of arguments from the executable at a space might have been incorrect,
19161     # since paths with space are more likely in Windows. Give it another try with the whole
19162     # argument.
19163     path="$complete"
19164     arguments="EOL"
19165     new_path="$path"
19166 
19167   windows_path="$new_path"
19168   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19169     unix_path=`$CYGPATH -u "$windows_path"`
19170     new_path="$unix_path"
19171   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19172     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19173     new_path="$unix_path"
19174   fi
19175 
19176 
19177     new_path=`$WHICH "$new_path" 2> /dev/null`
19178     # bat and cmd files are not always considered executable in MSYS causing which
19179     # to not find them
19180     if test "x$new_path" = x \
19181         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19182         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19183       new_path="$path"
19184 
19185   windows_path="$new_path"
19186   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19187     unix_path=`$CYGPATH -u "$windows_path"`
19188     new_path="$unix_path"
19189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19190     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19191     new_path="$unix_path"
19192   fi
19193 
19194     fi
19195 
19196     if test "x$new_path" = x; then
19197       # It's still not found. Now this is an unrecoverable error.
19198       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19200       has_space=`$ECHO "$complete" | $GREP " "`
19201       if test "x$has_space" != x; then
19202         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19203 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19204       fi
19205       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19206     fi
19207   fi
19208 
19209   # Now new_path has a complete unix path to the binary
19210   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19211     # Keep paths in /bin as-is, but remove trailing .exe if any
19212     new_path="${new_path/%.exe/}"
19213     # Do not save /bin paths to all_fixpath_prefixes!
19214   else
19215     # Not in mixed or Windows style, start by that.
19216     new_path=`cmd //c echo $new_path`
19217 
19218   input_path="$new_path"
19219   # Check if we need to convert this using DOS-style short mode. If the path
19220   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19221   # take no chances and rewrite it.
19222   # Note: m4 eats our [], so we need to use [ and ] instead.
19223   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19224   if test "x$has_forbidden_chars" != x; then
19225     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19226     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19227   fi
19228 
19229     # Output is in $new_path
19230 
19231   windows_path="$new_path"
19232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19233     unix_path=`$CYGPATH -u "$windows_path"`
19234     new_path="$unix_path"
19235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19237     new_path="$unix_path"
19238   fi
19239 
19240     # remove trailing .exe if any
19241     new_path="${new_path/%.exe/}"
19242 
19243     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19244     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19245   fi
19246 
19247     else
19248       # We're on a unix platform. Hooray! :)
19249       # First separate the path from the arguments. This will split at the first
19250       # space.
19251       complete="$FOUND_MAKE"
19252       path="${complete%% *}"
19253       tmp="$complete EOL"
19254       arguments="${tmp#* }"
19255 
19256       # Cannot rely on the command "which" here since it doesn't always work.
19257       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19258       if test -z "$is_absolute_path"; then
19259         # Path to executable is not absolute. Find it.
19260         IFS_save="$IFS"
19261         IFS=:
19262         for p in $PATH; do
19263           if test -f "$p/$path" && test -x "$p/$path"; then
19264             new_path="$p/$path"
19265             break
19266           fi
19267         done
19268         IFS="$IFS_save"
19269       else
19270         # This is an absolute path, we can use it without further modifications.
19271         new_path="$path"
19272       fi
19273 
19274       if test "x$new_path" = x; then
19275         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19276 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19277         has_space=`$ECHO "$complete" | $GREP " "`
19278         if test "x$has_space" != x; then
19279           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19280 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19281         fi
19282         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19283       fi
19284     fi
19285 
19286     # Now join together the path and the arguments once again
19287     if test "x$arguments" != xEOL; then
19288       new_complete="$new_path ${arguments% *}"
19289     else
19290       new_complete="$new_path"
19291     fi
19292 
19293     if test "x$complete" != "x$new_complete"; then
19294       FOUND_MAKE="$new_complete"
19295       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19296 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19297     fi
19298   fi
19299 
19300         fi
19301       fi
19302     fi
19303   fi
19304 
19305         if test "x$FOUND_MAKE" = x; then
19306           for ac_prog in make
19307 do
19308   # Extract the first word of "$ac_prog", so it can be a program name with args.
19309 set dummy $ac_prog; ac_word=$2
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19311 $as_echo_n "checking for $ac_word... " >&6; }
19312 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19313   $as_echo_n "(cached) " >&6
19314 else
19315   case $CHECK_TOOLSDIR_MAKE in
19316   [\\/]* | ?:[\\/]*)
19317   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19318   ;;
19319   *)
19320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19321 for as_dir in $PATH
19322 do
19323   IFS=$as_save_IFS
19324   test -z "$as_dir" && as_dir=.
19325     for ac_exec_ext in '' $ac_executable_extensions; do
19326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19327     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19329     break 2
19330   fi
19331 done
19332   done
19333 IFS=$as_save_IFS
19334 
19335   ;;
19336 esac
19337 fi
19338 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19339 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19341 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19342 else
19343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19344 $as_echo "no" >&6; }
19345 fi
19346 
19347 
19348   test -n "$CHECK_TOOLSDIR_MAKE" && break
19349 done
19350 
19351 
19352   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19353   DESCRIPTION="make in tools-dir"
19354 
19355   # On Cygwin, we require a newer version of make than on other platforms
19356   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19357     MAKE_VERSION_EXPR="-e 4\."
19358     MAKE_REQUIRED_VERSION="4.0"
19359    else
19360     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19361     MAKE_REQUIRED_VERSION="3.81"
19362   fi
19363 
19364   if test "x$MAKE_CANDIDATE" != x; then
19365     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19366 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19367     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19368     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19369     if test "x$IS_GNU_MAKE" = x; then
19370       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19371 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19372     else
19373       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19374       if test "x$IS_MODERN_MAKE" = x; then
19375         { $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
19376 $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;}
19377       else
19378         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19379           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19380             MAKE_EXPECTED_ENV='cygwin'
19381           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19382             MAKE_EXPECTED_ENV='msys'
19383           else
19384             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19385           fi
19386           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19387           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19388         else
19389           # Not relevant for non-Windows
19390           IS_MAKE_CORRECT_ENV=true
19391         fi
19392         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19393           { $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
19394 $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;}
19395         else
19396           FOUND_MAKE=$MAKE_CANDIDATE
19397 
19398   # Only process if variable expands to non-empty
19399 
19400   if test "x$FOUND_MAKE" != x; then
19401     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19402 
19403   # First separate the path from the arguments. This will split at the first
19404   # space.
19405   complete="$FOUND_MAKE"
19406   path="${complete%% *}"
19407   tmp="$complete EOL"
19408   arguments="${tmp#* }"
19409 
19410   # Input might be given as Windows format, start by converting to
19411   # unix format.
19412   new_path=`$CYGPATH -u "$path"`
19413 
19414   # Now try to locate executable using which
19415   new_path=`$WHICH "$new_path" 2> /dev/null`
19416   # bat and cmd files are not always considered executable in cygwin causing which
19417   # to not find them
19418   if test "x$new_path" = x \
19419       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19420       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19421     new_path=`$CYGPATH -u "$path"`
19422   fi
19423   if test "x$new_path" = x; then
19424     # Oops. Which didn't find the executable.
19425     # The splitting of arguments from the executable at a space might have been incorrect,
19426     # since paths with space are more likely in Windows. Give it another try with the whole
19427     # argument.
19428     path="$complete"
19429     arguments="EOL"
19430     new_path=`$CYGPATH -u "$path"`
19431     new_path=`$WHICH "$new_path" 2> /dev/null`
19432     # bat and cmd files are not always considered executable in cygwin causing which
19433     # to not find them
19434     if test "x$new_path" = x \
19435         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19436         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19437       new_path=`$CYGPATH -u "$path"`
19438     fi
19439     if test "x$new_path" = x; then
19440       # It's still not found. Now this is an unrecoverable error.
19441       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19442 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19443       has_space=`$ECHO "$complete" | $GREP " "`
19444       if test "x$has_space" != x; then
19445         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19446 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19447       fi
19448       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19449     fi
19450   fi
19451 
19452   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19453   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19454   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19455   # "foo.exe" is OK but "foo" is an error.
19456   #
19457   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19458   # It is also a way to make sure we got the proper file name for the real test later on.
19459   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19460   if test "x$test_shortpath" = x; then
19461     # Short path failed, file does not exist as specified.
19462     # Try adding .exe or .cmd
19463     if test -f "${new_path}.exe"; then
19464       input_to_shortpath="${new_path}.exe"
19465     elif test -f "${new_path}.cmd"; then
19466       input_to_shortpath="${new_path}.cmd"
19467     else
19468       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19469 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19470       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19471 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19472       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19473     fi
19474   else
19475     input_to_shortpath="$new_path"
19476   fi
19477 
19478   # Call helper function which possibly converts this using DOS-style short mode.
19479   # If so, the updated path is stored in $new_path.
19480   new_path="$input_to_shortpath"
19481 
19482   input_path="$input_to_shortpath"
19483   # Check if we need to convert this using DOS-style short mode. If the path
19484   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19485   # take no chances and rewrite it.
19486   # Note: m4 eats our [], so we need to use [ and ] instead.
19487   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19488   if test "x$has_forbidden_chars" != x; then
19489     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19490     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19491     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19492     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19493       # Going to short mode and back again did indeed matter. Since short mode is
19494       # case insensitive, let's make it lowercase to improve readability.
19495       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19496       # Now convert it back to Unix-style (cygpath)
19497       input_path=`$CYGPATH -u "$shortmode_path"`
19498       new_path="$input_path"
19499     fi
19500   fi
19501 
19502   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19503   if test "x$test_cygdrive_prefix" = x; then
19504     # As a simple fix, exclude /usr/bin since it's not a real path.
19505     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19506       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19507       # a path prefixed by /cygdrive for fixpath to work.
19508       new_path="$CYGWIN_ROOT_PATH$input_path"
19509     fi
19510   fi
19511 
19512   # remove trailing .exe if any
19513   new_path="${new_path/%.exe/}"
19514 
19515     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19516 
19517   # First separate the path from the arguments. This will split at the first
19518   # space.
19519   complete="$FOUND_MAKE"
19520   path="${complete%% *}"
19521   tmp="$complete EOL"
19522   arguments="${tmp#* }"
19523 
19524   # Input might be given as Windows format, start by converting to
19525   # unix format.
19526   new_path="$path"
19527 
19528   windows_path="$new_path"
19529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19530     unix_path=`$CYGPATH -u "$windows_path"`
19531     new_path="$unix_path"
19532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19534     new_path="$unix_path"
19535   fi
19536 
19537 
19538   # Now try to locate executable using which
19539   new_path=`$WHICH "$new_path" 2> /dev/null`
19540 
19541   if test "x$new_path" = x; then
19542     # Oops. Which didn't find the executable.
19543     # The splitting of arguments from the executable at a space might have been incorrect,
19544     # since paths with space are more likely in Windows. Give it another try with the whole
19545     # argument.
19546     path="$complete"
19547     arguments="EOL"
19548     new_path="$path"
19549 
19550   windows_path="$new_path"
19551   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19552     unix_path=`$CYGPATH -u "$windows_path"`
19553     new_path="$unix_path"
19554   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19555     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19556     new_path="$unix_path"
19557   fi
19558 
19559 
19560     new_path=`$WHICH "$new_path" 2> /dev/null`
19561     # bat and cmd files are not always considered executable in MSYS causing which
19562     # to not find them
19563     if test "x$new_path" = x \
19564         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19565         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19566       new_path="$path"
19567 
19568   windows_path="$new_path"
19569   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19570     unix_path=`$CYGPATH -u "$windows_path"`
19571     new_path="$unix_path"
19572   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19573     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19574     new_path="$unix_path"
19575   fi
19576 
19577     fi
19578 
19579     if test "x$new_path" = x; then
19580       # It's still not found. Now this is an unrecoverable error.
19581       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19582 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19583       has_space=`$ECHO "$complete" | $GREP " "`
19584       if test "x$has_space" != x; then
19585         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19586 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19587       fi
19588       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19589     fi
19590   fi
19591 
19592   # Now new_path has a complete unix path to the binary
19593   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19594     # Keep paths in /bin as-is, but remove trailing .exe if any
19595     new_path="${new_path/%.exe/}"
19596     # Do not save /bin paths to all_fixpath_prefixes!
19597   else
19598     # Not in mixed or Windows style, start by that.
19599     new_path=`cmd //c echo $new_path`
19600 
19601   input_path="$new_path"
19602   # Check if we need to convert this using DOS-style short mode. If the path
19603   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19604   # take no chances and rewrite it.
19605   # Note: m4 eats our [], so we need to use [ and ] instead.
19606   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19607   if test "x$has_forbidden_chars" != x; then
19608     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19609     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19610   fi
19611 
19612     # Output is in $new_path
19613 
19614   windows_path="$new_path"
19615   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19616     unix_path=`$CYGPATH -u "$windows_path"`
19617     new_path="$unix_path"
19618   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19619     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19620     new_path="$unix_path"
19621   fi
19622 
19623     # remove trailing .exe if any
19624     new_path="${new_path/%.exe/}"
19625 
19626     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19627     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19628   fi
19629 
19630     else
19631       # We're on a unix platform. Hooray! :)
19632       # First separate the path from the arguments. This will split at the first
19633       # space.
19634       complete="$FOUND_MAKE"
19635       path="${complete%% *}"
19636       tmp="$complete EOL"
19637       arguments="${tmp#* }"
19638 
19639       # Cannot rely on the command "which" here since it doesn't always work.
19640       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19641       if test -z "$is_absolute_path"; then
19642         # Path to executable is not absolute. Find it.
19643         IFS_save="$IFS"
19644         IFS=:
19645         for p in $PATH; do
19646           if test -f "$p/$path" && test -x "$p/$path"; then
19647             new_path="$p/$path"
19648             break
19649           fi
19650         done
19651         IFS="$IFS_save"
19652       else
19653         # This is an absolute path, we can use it without further modifications.
19654         new_path="$path"
19655       fi
19656 
19657       if test "x$new_path" = x; then
19658         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19659 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19660         has_space=`$ECHO "$complete" | $GREP " "`
19661         if test "x$has_space" != x; then
19662           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19663 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19664         fi
19665         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19666       fi
19667     fi
19668 
19669     # Now join together the path and the arguments once again
19670     if test "x$arguments" != xEOL; then
19671       new_complete="$new_path ${arguments% *}"
19672     else
19673       new_complete="$new_path"
19674     fi
19675 
19676     if test "x$complete" != "x$new_complete"; then
19677       FOUND_MAKE="$new_complete"
19678       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19679 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19680     fi
19681   fi
19682 
19683         fi
19684       fi
19685     fi
19686   fi
19687 
19688         fi
19689         PATH=$OLD_PATH
19690       fi
19691     fi
19692 
19693     if test "x$FOUND_MAKE" = x; then
19694       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
19695     fi
19696 
19697     else
19698       # If it succeeded, then it was overridden by the user. We will use it
19699       # for the tool.
19700 
19701       # First remove it from the list of overridden variables, so we can test
19702       # for unknown variables in the end.
19703       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19704 
19705       # Check if we try to supply an empty value
19706       if test "x$MAKE" = x; then
19707         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19708 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19710 $as_echo_n "checking for MAKE... " >&6; }
19711         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19712 $as_echo "disabled" >&6; }
19713       else
19714         # Check if the provided tool contains a complete path.
19715         tool_specified="$MAKE"
19716         tool_basename="${tool_specified##*/}"
19717         if test "x$tool_basename" = "x$tool_specified"; then
19718           # A command without a complete path is provided, search $PATH.
19719           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19720 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19721           # Extract the first word of "$tool_basename", so it can be a program name with args.
19722 set dummy $tool_basename; ac_word=$2
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19724 $as_echo_n "checking for $ac_word... " >&6; }
19725 if ${ac_cv_path_MAKE+:} false; then :
19726   $as_echo_n "(cached) " >&6
19727 else
19728   case $MAKE in
19729   [\\/]* | ?:[\\/]*)
19730   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19731   ;;
19732   *)
19733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19734 for as_dir in $PATH
19735 do
19736   IFS=$as_save_IFS
19737   test -z "$as_dir" && as_dir=.
19738     for ac_exec_ext in '' $ac_executable_extensions; do
19739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19740     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19742     break 2
19743   fi
19744 done
19745   done
19746 IFS=$as_save_IFS
19747 
19748   ;;
19749 esac
19750 fi
19751 MAKE=$ac_cv_path_MAKE
19752 if test -n "$MAKE"; then
19753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19754 $as_echo "$MAKE" >&6; }
19755 else
19756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757 $as_echo "no" >&6; }
19758 fi
19759 
19760 
19761           if test "x$MAKE" = x; then
19762             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19763           fi
19764         else
19765           # Otherwise we believe it is a complete path. Use it as it is.
19766           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19767 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19768           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19769 $as_echo_n "checking for MAKE... " >&6; }
19770           if test ! -x "$tool_specified"; then
19771             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19772 $as_echo "not found" >&6; }
19773             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19774           fi
19775           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19776 $as_echo "$tool_specified" >&6; }
19777         fi
19778       fi
19779     fi
19780 
19781     # If MAKE was set by user, verify the version
19782 
19783   MAKE_CANDIDATE=""$MAKE""
19784   DESCRIPTION="user supplied MAKE=$MAKE"
19785 
19786   # On Cygwin, we require a newer version of make than on other platforms
19787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19788     MAKE_VERSION_EXPR="-e 4\."
19789     MAKE_REQUIRED_VERSION="4.0"
19790    else
19791     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19792     MAKE_REQUIRED_VERSION="3.81"
19793   fi
19794 
19795   if test "x$MAKE_CANDIDATE" != x; then
19796     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19797 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19798     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19799     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19800     if test "x$IS_GNU_MAKE" = x; then
19801       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19802 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19803     else
19804       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19805       if test "x$IS_MODERN_MAKE" = x; then
19806         { $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
19807 $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;}
19808       else
19809         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19810           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19811             MAKE_EXPECTED_ENV='cygwin'
19812           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19813             MAKE_EXPECTED_ENV='msys'
19814           else
19815             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19816           fi
19817           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19818           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19819         else
19820           # Not relevant for non-Windows
19821           IS_MAKE_CORRECT_ENV=true
19822         fi
19823         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19824           { $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
19825 $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;}
19826         else
19827           FOUND_MAKE=$MAKE_CANDIDATE
19828 
19829   # Only process if variable expands to non-empty
19830 
19831   if test "x$FOUND_MAKE" != x; then
19832     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19833 
19834   # First separate the path from the arguments. This will split at the first
19835   # space.
19836   complete="$FOUND_MAKE"
19837   path="${complete%% *}"
19838   tmp="$complete EOL"
19839   arguments="${tmp#* }"
19840 
19841   # Input might be given as Windows format, start by converting to
19842   # unix format.
19843   new_path=`$CYGPATH -u "$path"`
19844 
19845   # Now try to locate executable using which
19846   new_path=`$WHICH "$new_path" 2> /dev/null`
19847   # bat and cmd files are not always considered executable in cygwin causing which
19848   # to not find them
19849   if test "x$new_path" = x \
19850       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19851       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19852     new_path=`$CYGPATH -u "$path"`
19853   fi
19854   if test "x$new_path" = x; then
19855     # Oops. Which didn't find the executable.
19856     # The splitting of arguments from the executable at a space might have been incorrect,
19857     # since paths with space are more likely in Windows. Give it another try with the whole
19858     # argument.
19859     path="$complete"
19860     arguments="EOL"
19861     new_path=`$CYGPATH -u "$path"`
19862     new_path=`$WHICH "$new_path" 2> /dev/null`
19863     # bat and cmd files are not always considered executable in cygwin causing which
19864     # to not find them
19865     if test "x$new_path" = x \
19866         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19867         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19868       new_path=`$CYGPATH -u "$path"`
19869     fi
19870     if test "x$new_path" = x; then
19871       # It's still not found. Now this is an unrecoverable error.
19872       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19873 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19874       has_space=`$ECHO "$complete" | $GREP " "`
19875       if test "x$has_space" != x; then
19876         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19877 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19878       fi
19879       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19880     fi
19881   fi
19882 
19883   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19884   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19885   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19886   # "foo.exe" is OK but "foo" is an error.
19887   #
19888   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19889   # It is also a way to make sure we got the proper file name for the real test later on.
19890   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19891   if test "x$test_shortpath" = x; then
19892     # Short path failed, file does not exist as specified.
19893     # Try adding .exe or .cmd
19894     if test -f "${new_path}.exe"; then
19895       input_to_shortpath="${new_path}.exe"
19896     elif test -f "${new_path}.cmd"; then
19897       input_to_shortpath="${new_path}.cmd"
19898     else
19899       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19900 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19901       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19902 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19903       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19904     fi
19905   else
19906     input_to_shortpath="$new_path"
19907   fi
19908 
19909   # Call helper function which possibly converts this using DOS-style short mode.
19910   # If so, the updated path is stored in $new_path.
19911   new_path="$input_to_shortpath"
19912 
19913   input_path="$input_to_shortpath"
19914   # Check if we need to convert this using DOS-style short mode. If the path
19915   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19916   # take no chances and rewrite it.
19917   # Note: m4 eats our [], so we need to use [ and ] instead.
19918   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19919   if test "x$has_forbidden_chars" != x; then
19920     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19921     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19922     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19923     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19924       # Going to short mode and back again did indeed matter. Since short mode is
19925       # case insensitive, let's make it lowercase to improve readability.
19926       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19927       # Now convert it back to Unix-style (cygpath)
19928       input_path=`$CYGPATH -u "$shortmode_path"`
19929       new_path="$input_path"
19930     fi
19931   fi
19932 
19933   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19934   if test "x$test_cygdrive_prefix" = x; then
19935     # As a simple fix, exclude /usr/bin since it's not a real path.
19936     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19937       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19938       # a path prefixed by /cygdrive for fixpath to work.
19939       new_path="$CYGWIN_ROOT_PATH$input_path"
19940     fi
19941   fi
19942 
19943   # remove trailing .exe if any
19944   new_path="${new_path/%.exe/}"
19945 
19946     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19947 
19948   # First separate the path from the arguments. This will split at the first
19949   # space.
19950   complete="$FOUND_MAKE"
19951   path="${complete%% *}"
19952   tmp="$complete EOL"
19953   arguments="${tmp#* }"
19954 
19955   # Input might be given as Windows format, start by converting to
19956   # unix format.
19957   new_path="$path"
19958 
19959   windows_path="$new_path"
19960   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19961     unix_path=`$CYGPATH -u "$windows_path"`
19962     new_path="$unix_path"
19963   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19964     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19965     new_path="$unix_path"
19966   fi
19967 
19968 
19969   # Now try to locate executable using which
19970   new_path=`$WHICH "$new_path" 2> /dev/null`
19971 
19972   if test "x$new_path" = x; then
19973     # Oops. Which didn't find the executable.
19974     # The splitting of arguments from the executable at a space might have been incorrect,
19975     # since paths with space are more likely in Windows. Give it another try with the whole
19976     # argument.
19977     path="$complete"
19978     arguments="EOL"
19979     new_path="$path"
19980 
19981   windows_path="$new_path"
19982   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19983     unix_path=`$CYGPATH -u "$windows_path"`
19984     new_path="$unix_path"
19985   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19986     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19987     new_path="$unix_path"
19988   fi
19989 
19990 
19991     new_path=`$WHICH "$new_path" 2> /dev/null`
19992     # bat and cmd files are not always considered executable in MSYS causing which
19993     # to not find them
19994     if test "x$new_path" = x \
19995         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19996         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19997       new_path="$path"
19998 
19999   windows_path="$new_path"
20000   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20001     unix_path=`$CYGPATH -u "$windows_path"`
20002     new_path="$unix_path"
20003   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20004     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20005     new_path="$unix_path"
20006   fi
20007 
20008     fi
20009 
20010     if test "x$new_path" = x; then
20011       # It's still not found. Now this is an unrecoverable error.
20012       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20013 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20014       has_space=`$ECHO "$complete" | $GREP " "`
20015       if test "x$has_space" != x; then
20016         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20017 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20018       fi
20019       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20020     fi
20021   fi
20022 
20023   # Now new_path has a complete unix path to the binary
20024   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20025     # Keep paths in /bin as-is, but remove trailing .exe if any
20026     new_path="${new_path/%.exe/}"
20027     # Do not save /bin paths to all_fixpath_prefixes!
20028   else
20029     # Not in mixed or Windows style, start by that.
20030     new_path=`cmd //c echo $new_path`
20031 
20032   input_path="$new_path"
20033   # Check if we need to convert this using DOS-style short mode. If the path
20034   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20035   # take no chances and rewrite it.
20036   # Note: m4 eats our [], so we need to use [ and ] instead.
20037   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20038   if test "x$has_forbidden_chars" != x; then
20039     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20040     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20041   fi
20042 
20043     # Output is in $new_path
20044 
20045   windows_path="$new_path"
20046   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20047     unix_path=`$CYGPATH -u "$windows_path"`
20048     new_path="$unix_path"
20049   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20050     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20051     new_path="$unix_path"
20052   fi
20053 
20054     # remove trailing .exe if any
20055     new_path="${new_path/%.exe/}"
20056 
20057     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20058     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20059   fi
20060 
20061     else
20062       # We're on a unix platform. Hooray! :)
20063       # First separate the path from the arguments. This will split at the first
20064       # space.
20065       complete="$FOUND_MAKE"
20066       path="${complete%% *}"
20067       tmp="$complete EOL"
20068       arguments="${tmp#* }"
20069 
20070       # Cannot rely on the command "which" here since it doesn't always work.
20071       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20072       if test -z "$is_absolute_path"; then
20073         # Path to executable is not absolute. Find it.
20074         IFS_save="$IFS"
20075         IFS=:
20076         for p in $PATH; do
20077           if test -f "$p/$path" && test -x "$p/$path"; then
20078             new_path="$p/$path"
20079             break
20080           fi
20081         done
20082         IFS="$IFS_save"
20083       else
20084         # This is an absolute path, we can use it without further modifications.
20085         new_path="$path"
20086       fi
20087 
20088       if test "x$new_path" = x; then
20089         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20090 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20091         has_space=`$ECHO "$complete" | $GREP " "`
20092         if test "x$has_space" != x; then
20093           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20094 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20095         fi
20096         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20097       fi
20098     fi
20099 
20100     # Now join together the path and the arguments once again
20101     if test "x$arguments" != xEOL; then
20102       new_complete="$new_path ${arguments% *}"
20103     else
20104       new_complete="$new_path"
20105     fi
20106 
20107     if test "x$complete" != "x$new_complete"; then
20108       FOUND_MAKE="$new_complete"
20109       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20110 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20111     fi
20112   fi
20113 
20114         fi
20115       fi
20116     fi
20117   fi
20118 
20119     if test "x$FOUND_MAKE" = x; then
20120       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20121     fi
20122 
20123   fi
20124 
20125 
20126   MAKE=$FOUND_MAKE
20127 
20128   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20129 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20130 
20131 
20132   # Check if make supports the output sync option and if so, setup using it.
20133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20134 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20135   if $MAKE --version -O > /dev/null 2>&1; then
20136     OUTPUT_SYNC_SUPPORTED=true
20137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20138 $as_echo "yes" >&6; }
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20140 $as_echo_n "checking for output-sync value... " >&6; }
20141 
20142 # Check whether --with-output-sync was given.
20143 if test "${with_output_sync+set}" = set; then :
20144   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20145 fi
20146 
20147     if test "x$OUTPUT_SYNC" = "x"; then
20148       OUTPUT_SYNC=none
20149     fi
20150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20151 $as_echo "$OUTPUT_SYNC" >&6; }
20152     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20153       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20154     fi
20155   else
20156     OUTPUT_SYNC_SUPPORTED=false
20157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20158 $as_echo "no" >&6; }
20159   fi
20160 
20161 
20162 
20163 
20164 
20165 
20166   # Test if find supports -delete
20167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20168 $as_echo_n "checking if find supports -delete... " >&6; }
20169   FIND_DELETE="-delete"
20170 
20171   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20172 
20173   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20174 
20175   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20176   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20177     # No, it does not.
20178     rm $DELETEDIR/TestIfFindSupportsDelete
20179     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20180       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20181       FIND_DELETE="-print | xargs rm"
20182     else
20183       FIND_DELETE="-exec rm \{\} \+"
20184     fi
20185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20187   else
20188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189 $as_echo "yes" >&6; }
20190   fi
20191   rmdir $DELETEDIR
20192 
20193 
20194 
20195   # These tools might not be installed by default,
20196   # need hint on how to install them.
20197 
20198 
20199 
20200   # Publish this variable in the help.
20201 
20202 
20203   if [ -z "${UNZIP+x}" ]; then
20204     # The variable is not set by user, try to locate tool using the code snippet
20205     for ac_prog in unzip
20206 do
20207   # Extract the first word of "$ac_prog", so it can be a program name with args.
20208 set dummy $ac_prog; ac_word=$2
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20210 $as_echo_n "checking for $ac_word... " >&6; }
20211 if ${ac_cv_path_UNZIP+:} false; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214   case $UNZIP in
20215   [\\/]* | ?:[\\/]*)
20216   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20217   ;;
20218   *)
20219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20220 for as_dir in $PATH
20221 do
20222   IFS=$as_save_IFS
20223   test -z "$as_dir" && as_dir=.
20224     for ac_exec_ext in '' $ac_executable_extensions; do
20225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20226     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20228     break 2
20229   fi
20230 done
20231   done
20232 IFS=$as_save_IFS
20233 
20234   ;;
20235 esac
20236 fi
20237 UNZIP=$ac_cv_path_UNZIP
20238 if test -n "$UNZIP"; then
20239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20240 $as_echo "$UNZIP" >&6; }
20241 else
20242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20243 $as_echo "no" >&6; }
20244 fi
20245 
20246 
20247   test -n "$UNZIP" && break
20248 done
20249 
20250   else
20251     # The variable is set, but is it from the command line or the environment?
20252 
20253     # Try to remove the string !UNZIP! from our list.
20254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20256       # If it failed, the variable was not from the command line. Ignore it,
20257       # but warn the user (except for BASH, which is always set by the calling BASH).
20258       if test "xUNZIP" != xBASH; then
20259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20260 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20261       fi
20262       # Try to locate tool using the code snippet
20263       for ac_prog in unzip
20264 do
20265   # Extract the first word of "$ac_prog", so it can be a program name with args.
20266 set dummy $ac_prog; ac_word=$2
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20268 $as_echo_n "checking for $ac_word... " >&6; }
20269 if ${ac_cv_path_UNZIP+:} false; then :
20270   $as_echo_n "(cached) " >&6
20271 else
20272   case $UNZIP in
20273   [\\/]* | ?:[\\/]*)
20274   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20275   ;;
20276   *)
20277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278 for as_dir in $PATH
20279 do
20280   IFS=$as_save_IFS
20281   test -z "$as_dir" && as_dir=.
20282     for ac_exec_ext in '' $ac_executable_extensions; do
20283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20284     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20286     break 2
20287   fi
20288 done
20289   done
20290 IFS=$as_save_IFS
20291 
20292   ;;
20293 esac
20294 fi
20295 UNZIP=$ac_cv_path_UNZIP
20296 if test -n "$UNZIP"; then
20297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20298 $as_echo "$UNZIP" >&6; }
20299 else
20300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20301 $as_echo "no" >&6; }
20302 fi
20303 
20304 
20305   test -n "$UNZIP" && break
20306 done
20307 
20308     else
20309       # If it succeeded, then it was overridden by the user. We will use it
20310       # for the tool.
20311 
20312       # First remove it from the list of overridden variables, so we can test
20313       # for unknown variables in the end.
20314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20315 
20316       # Check if we try to supply an empty value
20317       if test "x$UNZIP" = x; then
20318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20319 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20321 $as_echo_n "checking for UNZIP... " >&6; }
20322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20323 $as_echo "disabled" >&6; }
20324       else
20325         # Check if the provided tool contains a complete path.
20326         tool_specified="$UNZIP"
20327         tool_basename="${tool_specified##*/}"
20328         if test "x$tool_basename" = "x$tool_specified"; then
20329           # A command without a complete path is provided, search $PATH.
20330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20331 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20332           # Extract the first word of "$tool_basename", so it can be a program name with args.
20333 set dummy $tool_basename; ac_word=$2
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20335 $as_echo_n "checking for $ac_word... " >&6; }
20336 if ${ac_cv_path_UNZIP+:} false; then :
20337   $as_echo_n "(cached) " >&6
20338 else
20339   case $UNZIP in
20340   [\\/]* | ?:[\\/]*)
20341   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20342   ;;
20343   *)
20344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20345 for as_dir in $PATH
20346 do
20347   IFS=$as_save_IFS
20348   test -z "$as_dir" && as_dir=.
20349     for ac_exec_ext in '' $ac_executable_extensions; do
20350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20351     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20353     break 2
20354   fi
20355 done
20356   done
20357 IFS=$as_save_IFS
20358 
20359   ;;
20360 esac
20361 fi
20362 UNZIP=$ac_cv_path_UNZIP
20363 if test -n "$UNZIP"; then
20364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20365 $as_echo "$UNZIP" >&6; }
20366 else
20367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20368 $as_echo "no" >&6; }
20369 fi
20370 
20371 
20372           if test "x$UNZIP" = x; then
20373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20374           fi
20375         else
20376           # Otherwise we believe it is a complete path. Use it as it is.
20377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20378 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20380 $as_echo_n "checking for UNZIP... " >&6; }
20381           if test ! -x "$tool_specified"; then
20382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20383 $as_echo "not found" >&6; }
20384             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20385           fi
20386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20387 $as_echo "$tool_specified" >&6; }
20388         fi
20389       fi
20390     fi
20391 
20392   fi
20393 
20394 
20395 
20396   if test "x$UNZIP" = x; then
20397     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20398   fi
20399 
20400 
20401 
20402 
20403 
20404   # Publish this variable in the help.
20405 
20406 
20407   if [ -z "${ZIP+x}" ]; then
20408     # The variable is not set by user, try to locate tool using the code snippet
20409     for ac_prog in zip
20410 do
20411   # Extract the first word of "$ac_prog", so it can be a program name with args.
20412 set dummy $ac_prog; ac_word=$2
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20414 $as_echo_n "checking for $ac_word... " >&6; }
20415 if ${ac_cv_path_ZIP+:} false; then :
20416   $as_echo_n "(cached) " >&6
20417 else
20418   case $ZIP in
20419   [\\/]* | ?:[\\/]*)
20420   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20421   ;;
20422   *)
20423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20424 for as_dir in $PATH
20425 do
20426   IFS=$as_save_IFS
20427   test -z "$as_dir" && as_dir=.
20428     for ac_exec_ext in '' $ac_executable_extensions; do
20429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20430     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20432     break 2
20433   fi
20434 done
20435   done
20436 IFS=$as_save_IFS
20437 
20438   ;;
20439 esac
20440 fi
20441 ZIP=$ac_cv_path_ZIP
20442 if test -n "$ZIP"; then
20443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20444 $as_echo "$ZIP" >&6; }
20445 else
20446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20447 $as_echo "no" >&6; }
20448 fi
20449 
20450 
20451   test -n "$ZIP" && break
20452 done
20453 
20454   else
20455     # The variable is set, but is it from the command line or the environment?
20456 
20457     # Try to remove the string !ZIP! from our list.
20458     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20459     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20460       # If it failed, the variable was not from the command line. Ignore it,
20461       # but warn the user (except for BASH, which is always set by the calling BASH).
20462       if test "xZIP" != xBASH; then
20463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20464 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20465       fi
20466       # Try to locate tool using the code snippet
20467       for ac_prog in zip
20468 do
20469   # Extract the first word of "$ac_prog", so it can be a program name with args.
20470 set dummy $ac_prog; ac_word=$2
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20472 $as_echo_n "checking for $ac_word... " >&6; }
20473 if ${ac_cv_path_ZIP+:} false; then :
20474   $as_echo_n "(cached) " >&6
20475 else
20476   case $ZIP in
20477   [\\/]* | ?:[\\/]*)
20478   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20479   ;;
20480   *)
20481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20482 for as_dir in $PATH
20483 do
20484   IFS=$as_save_IFS
20485   test -z "$as_dir" && as_dir=.
20486     for ac_exec_ext in '' $ac_executable_extensions; do
20487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20488     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20490     break 2
20491   fi
20492 done
20493   done
20494 IFS=$as_save_IFS
20495 
20496   ;;
20497 esac
20498 fi
20499 ZIP=$ac_cv_path_ZIP
20500 if test -n "$ZIP"; then
20501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20502 $as_echo "$ZIP" >&6; }
20503 else
20504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20505 $as_echo "no" >&6; }
20506 fi
20507 
20508 
20509   test -n "$ZIP" && break
20510 done
20511 
20512     else
20513       # If it succeeded, then it was overridden by the user. We will use it
20514       # for the tool.
20515 
20516       # First remove it from the list of overridden variables, so we can test
20517       # for unknown variables in the end.
20518       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20519 
20520       # Check if we try to supply an empty value
20521       if test "x$ZIP" = x; then
20522         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20523 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20525 $as_echo_n "checking for ZIP... " >&6; }
20526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20527 $as_echo "disabled" >&6; }
20528       else
20529         # Check if the provided tool contains a complete path.
20530         tool_specified="$ZIP"
20531         tool_basename="${tool_specified##*/}"
20532         if test "x$tool_basename" = "x$tool_specified"; then
20533           # A command without a complete path is provided, search $PATH.
20534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20535 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20536           # Extract the first word of "$tool_basename", so it can be a program name with args.
20537 set dummy $tool_basename; ac_word=$2
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20539 $as_echo_n "checking for $ac_word... " >&6; }
20540 if ${ac_cv_path_ZIP+:} false; then :
20541   $as_echo_n "(cached) " >&6
20542 else
20543   case $ZIP in
20544   [\\/]* | ?:[\\/]*)
20545   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20546   ;;
20547   *)
20548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20549 for as_dir in $PATH
20550 do
20551   IFS=$as_save_IFS
20552   test -z "$as_dir" && as_dir=.
20553     for ac_exec_ext in '' $ac_executable_extensions; do
20554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20555     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20557     break 2
20558   fi
20559 done
20560   done
20561 IFS=$as_save_IFS
20562 
20563   ;;
20564 esac
20565 fi
20566 ZIP=$ac_cv_path_ZIP
20567 if test -n "$ZIP"; then
20568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20569 $as_echo "$ZIP" >&6; }
20570 else
20571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20572 $as_echo "no" >&6; }
20573 fi
20574 
20575 
20576           if test "x$ZIP" = x; then
20577             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20578           fi
20579         else
20580           # Otherwise we believe it is a complete path. Use it as it is.
20581           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20582 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20583           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20584 $as_echo_n "checking for ZIP... " >&6; }
20585           if test ! -x "$tool_specified"; then
20586             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20587 $as_echo "not found" >&6; }
20588             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20589           fi
20590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20591 $as_echo "$tool_specified" >&6; }
20592         fi
20593       fi
20594     fi
20595 
20596   fi
20597 
20598 
20599 
20600   if test "x$ZIP" = x; then
20601     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20602   fi
20603 
20604 
20605 
20606   # Non-required basic tools
20607 
20608 
20609 
20610   # Publish this variable in the help.
20611 
20612 
20613   if [ -z "${LDD+x}" ]; then
20614     # The variable is not set by user, try to locate tool using the code snippet
20615     for ac_prog in ldd
20616 do
20617   # Extract the first word of "$ac_prog", so it can be a program name with args.
20618 set dummy $ac_prog; ac_word=$2
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20620 $as_echo_n "checking for $ac_word... " >&6; }
20621 if ${ac_cv_path_LDD+:} false; then :
20622   $as_echo_n "(cached) " >&6
20623 else
20624   case $LDD in
20625   [\\/]* | ?:[\\/]*)
20626   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20627   ;;
20628   *)
20629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20630 for as_dir in $PATH
20631 do
20632   IFS=$as_save_IFS
20633   test -z "$as_dir" && as_dir=.
20634     for ac_exec_ext in '' $ac_executable_extensions; do
20635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20636     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20638     break 2
20639   fi
20640 done
20641   done
20642 IFS=$as_save_IFS
20643 
20644   ;;
20645 esac
20646 fi
20647 LDD=$ac_cv_path_LDD
20648 if test -n "$LDD"; then
20649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20650 $as_echo "$LDD" >&6; }
20651 else
20652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20654 fi
20655 
20656 
20657   test -n "$LDD" && break
20658 done
20659 
20660   else
20661     # The variable is set, but is it from the command line or the environment?
20662 
20663     # Try to remove the string !LDD! from our list.
20664     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20665     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20666       # If it failed, the variable was not from the command line. Ignore it,
20667       # but warn the user (except for BASH, which is always set by the calling BASH).
20668       if test "xLDD" != xBASH; then
20669         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20670 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20671       fi
20672       # Try to locate tool using the code snippet
20673       for ac_prog in ldd
20674 do
20675   # Extract the first word of "$ac_prog", so it can be a program name with args.
20676 set dummy $ac_prog; ac_word=$2
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20678 $as_echo_n "checking for $ac_word... " >&6; }
20679 if ${ac_cv_path_LDD+:} false; then :
20680   $as_echo_n "(cached) " >&6
20681 else
20682   case $LDD in
20683   [\\/]* | ?:[\\/]*)
20684   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20685   ;;
20686   *)
20687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20688 for as_dir in $PATH
20689 do
20690   IFS=$as_save_IFS
20691   test -z "$as_dir" && as_dir=.
20692     for ac_exec_ext in '' $ac_executable_extensions; do
20693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20694     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20696     break 2
20697   fi
20698 done
20699   done
20700 IFS=$as_save_IFS
20701 
20702   ;;
20703 esac
20704 fi
20705 LDD=$ac_cv_path_LDD
20706 if test -n "$LDD"; then
20707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20708 $as_echo "$LDD" >&6; }
20709 else
20710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20711 $as_echo "no" >&6; }
20712 fi
20713 
20714 
20715   test -n "$LDD" && break
20716 done
20717 
20718     else
20719       # If it succeeded, then it was overridden by the user. We will use it
20720       # for the tool.
20721 
20722       # First remove it from the list of overridden variables, so we can test
20723       # for unknown variables in the end.
20724       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20725 
20726       # Check if we try to supply an empty value
20727       if test "x$LDD" = x; then
20728         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20729 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20730         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20731 $as_echo_n "checking for LDD... " >&6; }
20732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20733 $as_echo "disabled" >&6; }
20734       else
20735         # Check if the provided tool contains a complete path.
20736         tool_specified="$LDD"
20737         tool_basename="${tool_specified##*/}"
20738         if test "x$tool_basename" = "x$tool_specified"; then
20739           # A command without a complete path is provided, search $PATH.
20740           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20741 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20742           # Extract the first word of "$tool_basename", so it can be a program name with args.
20743 set dummy $tool_basename; ac_word=$2
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20745 $as_echo_n "checking for $ac_word... " >&6; }
20746 if ${ac_cv_path_LDD+:} false; then :
20747   $as_echo_n "(cached) " >&6
20748 else
20749   case $LDD in
20750   [\\/]* | ?:[\\/]*)
20751   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20752   ;;
20753   *)
20754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20755 for as_dir in $PATH
20756 do
20757   IFS=$as_save_IFS
20758   test -z "$as_dir" && as_dir=.
20759     for ac_exec_ext in '' $ac_executable_extensions; do
20760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20761     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20763     break 2
20764   fi
20765 done
20766   done
20767 IFS=$as_save_IFS
20768 
20769   ;;
20770 esac
20771 fi
20772 LDD=$ac_cv_path_LDD
20773 if test -n "$LDD"; then
20774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20775 $as_echo "$LDD" >&6; }
20776 else
20777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20778 $as_echo "no" >&6; }
20779 fi
20780 
20781 
20782           if test "x$LDD" = x; then
20783             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20784           fi
20785         else
20786           # Otherwise we believe it is a complete path. Use it as it is.
20787           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20788 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20789           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20790 $as_echo_n "checking for LDD... " >&6; }
20791           if test ! -x "$tool_specified"; then
20792             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20793 $as_echo "not found" >&6; }
20794             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20795           fi
20796           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20797 $as_echo "$tool_specified" >&6; }
20798         fi
20799       fi
20800     fi
20801 
20802   fi
20803 
20804 
20805   if test "x$LDD" = "x"; then
20806     # List shared lib dependencies is used for
20807     # debug output and checking for forbidden dependencies.
20808     # We can build without it.
20809     LDD="true"
20810   fi
20811 
20812 
20813   # Publish this variable in the help.
20814 
20815 
20816   if [ -z "${OTOOL+x}" ]; then
20817     # The variable is not set by user, try to locate tool using the code snippet
20818     for ac_prog in otool
20819 do
20820   # Extract the first word of "$ac_prog", so it can be a program name with args.
20821 set dummy $ac_prog; ac_word=$2
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20823 $as_echo_n "checking for $ac_word... " >&6; }
20824 if ${ac_cv_path_OTOOL+:} false; then :
20825   $as_echo_n "(cached) " >&6
20826 else
20827   case $OTOOL in
20828   [\\/]* | ?:[\\/]*)
20829   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20830   ;;
20831   *)
20832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20833 for as_dir in $PATH
20834 do
20835   IFS=$as_save_IFS
20836   test -z "$as_dir" && as_dir=.
20837     for ac_exec_ext in '' $ac_executable_extensions; do
20838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20839     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20841     break 2
20842   fi
20843 done
20844   done
20845 IFS=$as_save_IFS
20846 
20847   ;;
20848 esac
20849 fi
20850 OTOOL=$ac_cv_path_OTOOL
20851 if test -n "$OTOOL"; then
20852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20853 $as_echo "$OTOOL" >&6; }
20854 else
20855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20856 $as_echo "no" >&6; }
20857 fi
20858 
20859 
20860   test -n "$OTOOL" && break
20861 done
20862 
20863   else
20864     # The variable is set, but is it from the command line or the environment?
20865 
20866     # Try to remove the string !OTOOL! from our list.
20867     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20868     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20869       # If it failed, the variable was not from the command line. Ignore it,
20870       # but warn the user (except for BASH, which is always set by the calling BASH).
20871       if test "xOTOOL" != xBASH; then
20872         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20873 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20874       fi
20875       # Try to locate tool using the code snippet
20876       for ac_prog in otool
20877 do
20878   # Extract the first word of "$ac_prog", so it can be a program name with args.
20879 set dummy $ac_prog; ac_word=$2
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20881 $as_echo_n "checking for $ac_word... " >&6; }
20882 if ${ac_cv_path_OTOOL+:} false; then :
20883   $as_echo_n "(cached) " >&6
20884 else
20885   case $OTOOL in
20886   [\\/]* | ?:[\\/]*)
20887   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20888   ;;
20889   *)
20890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20891 for as_dir in $PATH
20892 do
20893   IFS=$as_save_IFS
20894   test -z "$as_dir" && as_dir=.
20895     for ac_exec_ext in '' $ac_executable_extensions; do
20896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20897     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20899     break 2
20900   fi
20901 done
20902   done
20903 IFS=$as_save_IFS
20904 
20905   ;;
20906 esac
20907 fi
20908 OTOOL=$ac_cv_path_OTOOL
20909 if test -n "$OTOOL"; then
20910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20911 $as_echo "$OTOOL" >&6; }
20912 else
20913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20914 $as_echo "no" >&6; }
20915 fi
20916 
20917 
20918   test -n "$OTOOL" && break
20919 done
20920 
20921     else
20922       # If it succeeded, then it was overridden by the user. We will use it
20923       # for the tool.
20924 
20925       # First remove it from the list of overridden variables, so we can test
20926       # for unknown variables in the end.
20927       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20928 
20929       # Check if we try to supply an empty value
20930       if test "x$OTOOL" = x; then
20931         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
20932 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
20933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20934 $as_echo_n "checking for OTOOL... " >&6; }
20935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20936 $as_echo "disabled" >&6; }
20937       else
20938         # Check if the provided tool contains a complete path.
20939         tool_specified="$OTOOL"
20940         tool_basename="${tool_specified##*/}"
20941         if test "x$tool_basename" = "x$tool_specified"; then
20942           # A command without a complete path is provided, search $PATH.
20943           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
20944 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
20945           # Extract the first word of "$tool_basename", so it can be a program name with args.
20946 set dummy $tool_basename; ac_word=$2
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20948 $as_echo_n "checking for $ac_word... " >&6; }
20949 if ${ac_cv_path_OTOOL+:} false; then :
20950   $as_echo_n "(cached) " >&6
20951 else
20952   case $OTOOL in
20953   [\\/]* | ?:[\\/]*)
20954   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20955   ;;
20956   *)
20957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20958 for as_dir in $PATH
20959 do
20960   IFS=$as_save_IFS
20961   test -z "$as_dir" && as_dir=.
20962     for ac_exec_ext in '' $ac_executable_extensions; do
20963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20964     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20966     break 2
20967   fi
20968 done
20969   done
20970 IFS=$as_save_IFS
20971 
20972   ;;
20973 esac
20974 fi
20975 OTOOL=$ac_cv_path_OTOOL
20976 if test -n "$OTOOL"; then
20977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20978 $as_echo "$OTOOL" >&6; }
20979 else
20980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981 $as_echo "no" >&6; }
20982 fi
20983 
20984 
20985           if test "x$OTOOL" = x; then
20986             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20987           fi
20988         else
20989           # Otherwise we believe it is a complete path. Use it as it is.
20990           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
20991 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
20992           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20993 $as_echo_n "checking for OTOOL... " >&6; }
20994           if test ! -x "$tool_specified"; then
20995             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20996 $as_echo "not found" >&6; }
20997             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
20998           fi
20999           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21000 $as_echo "$tool_specified" >&6; }
21001         fi
21002       fi
21003     fi
21004 
21005   fi
21006 
21007 
21008   if test "x$OTOOL" = "x"; then
21009     OTOOL="true"
21010   fi
21011 
21012 
21013   # Publish this variable in the help.
21014 
21015 
21016   if [ -z "${READELF+x}" ]; then
21017     # The variable is not set by user, try to locate tool using the code snippet
21018     for ac_prog in greadelf readelf
21019 do
21020   # Extract the first word of "$ac_prog", so it can be a program name with args.
21021 set dummy $ac_prog; ac_word=$2
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21023 $as_echo_n "checking for $ac_word... " >&6; }
21024 if ${ac_cv_path_READELF+:} false; then :
21025   $as_echo_n "(cached) " >&6
21026 else
21027   case $READELF in
21028   [\\/]* | ?:[\\/]*)
21029   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21030   ;;
21031   *)
21032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033 for as_dir in $PATH
21034 do
21035   IFS=$as_save_IFS
21036   test -z "$as_dir" && as_dir=.
21037     for ac_exec_ext in '' $ac_executable_extensions; do
21038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21039     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21041     break 2
21042   fi
21043 done
21044   done
21045 IFS=$as_save_IFS
21046 
21047   ;;
21048 esac
21049 fi
21050 READELF=$ac_cv_path_READELF
21051 if test -n "$READELF"; then
21052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21053 $as_echo "$READELF" >&6; }
21054 else
21055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056 $as_echo "no" >&6; }
21057 fi
21058 
21059 
21060   test -n "$READELF" && break
21061 done
21062 
21063   else
21064     # The variable is set, but is it from the command line or the environment?
21065 
21066     # Try to remove the string !READELF! from our list.
21067     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21068     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21069       # If it failed, the variable was not from the command line. Ignore it,
21070       # but warn the user (except for BASH, which is always set by the calling BASH).
21071       if test "xREADELF" != xBASH; then
21072         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21073 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21074       fi
21075       # Try to locate tool using the code snippet
21076       for ac_prog in greadelf readelf
21077 do
21078   # Extract the first word of "$ac_prog", so it can be a program name with args.
21079 set dummy $ac_prog; ac_word=$2
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21081 $as_echo_n "checking for $ac_word... " >&6; }
21082 if ${ac_cv_path_READELF+:} false; then :
21083   $as_echo_n "(cached) " >&6
21084 else
21085   case $READELF in
21086   [\\/]* | ?:[\\/]*)
21087   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21088   ;;
21089   *)
21090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21091 for as_dir in $PATH
21092 do
21093   IFS=$as_save_IFS
21094   test -z "$as_dir" && as_dir=.
21095     for ac_exec_ext in '' $ac_executable_extensions; do
21096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21097     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21099     break 2
21100   fi
21101 done
21102   done
21103 IFS=$as_save_IFS
21104 
21105   ;;
21106 esac
21107 fi
21108 READELF=$ac_cv_path_READELF
21109 if test -n "$READELF"; then
21110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21111 $as_echo "$READELF" >&6; }
21112 else
21113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21114 $as_echo "no" >&6; }
21115 fi
21116 
21117 
21118   test -n "$READELF" && break
21119 done
21120 
21121     else
21122       # If it succeeded, then it was overridden by the user. We will use it
21123       # for the tool.
21124 
21125       # First remove it from the list of overridden variables, so we can test
21126       # for unknown variables in the end.
21127       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21128 
21129       # Check if we try to supply an empty value
21130       if test "x$READELF" = x; then
21131         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21132 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21134 $as_echo_n "checking for READELF... " >&6; }
21135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21136 $as_echo "disabled" >&6; }
21137       else
21138         # Check if the provided tool contains a complete path.
21139         tool_specified="$READELF"
21140         tool_basename="${tool_specified##*/}"
21141         if test "x$tool_basename" = "x$tool_specified"; then
21142           # A command without a complete path is provided, search $PATH.
21143           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21144 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21145           # Extract the first word of "$tool_basename", so it can be a program name with args.
21146 set dummy $tool_basename; ac_word=$2
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21148 $as_echo_n "checking for $ac_word... " >&6; }
21149 if ${ac_cv_path_READELF+:} false; then :
21150   $as_echo_n "(cached) " >&6
21151 else
21152   case $READELF in
21153   [\\/]* | ?:[\\/]*)
21154   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21155   ;;
21156   *)
21157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21158 for as_dir in $PATH
21159 do
21160   IFS=$as_save_IFS
21161   test -z "$as_dir" && as_dir=.
21162     for ac_exec_ext in '' $ac_executable_extensions; do
21163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21164     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21166     break 2
21167   fi
21168 done
21169   done
21170 IFS=$as_save_IFS
21171 
21172   ;;
21173 esac
21174 fi
21175 READELF=$ac_cv_path_READELF
21176 if test -n "$READELF"; then
21177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21178 $as_echo "$READELF" >&6; }
21179 else
21180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21181 $as_echo "no" >&6; }
21182 fi
21183 
21184 
21185           if test "x$READELF" = x; then
21186             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21187           fi
21188         else
21189           # Otherwise we believe it is a complete path. Use it as it is.
21190           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21191 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21192           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21193 $as_echo_n "checking for READELF... " >&6; }
21194           if test ! -x "$tool_specified"; then
21195             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21196 $as_echo "not found" >&6; }
21197             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21198           fi
21199           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21200 $as_echo "$tool_specified" >&6; }
21201         fi
21202       fi
21203     fi
21204 
21205   fi
21206 
21207 
21208 
21209 
21210   # Publish this variable in the help.
21211 
21212 
21213   if [ -z "${HG+x}" ]; then
21214     # The variable is not set by user, try to locate tool using the code snippet
21215     for ac_prog in hg
21216 do
21217   # Extract the first word of "$ac_prog", so it can be a program name with args.
21218 set dummy $ac_prog; ac_word=$2
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21220 $as_echo_n "checking for $ac_word... " >&6; }
21221 if ${ac_cv_path_HG+:} false; then :
21222   $as_echo_n "(cached) " >&6
21223 else
21224   case $HG in
21225   [\\/]* | ?:[\\/]*)
21226   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21227   ;;
21228   *)
21229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21230 for as_dir in $PATH
21231 do
21232   IFS=$as_save_IFS
21233   test -z "$as_dir" && as_dir=.
21234     for ac_exec_ext in '' $ac_executable_extensions; do
21235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21236     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21238     break 2
21239   fi
21240 done
21241   done
21242 IFS=$as_save_IFS
21243 
21244   ;;
21245 esac
21246 fi
21247 HG=$ac_cv_path_HG
21248 if test -n "$HG"; then
21249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21250 $as_echo "$HG" >&6; }
21251 else
21252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253 $as_echo "no" >&6; }
21254 fi
21255 
21256 
21257   test -n "$HG" && break
21258 done
21259 
21260   else
21261     # The variable is set, but is it from the command line or the environment?
21262 
21263     # Try to remove the string !HG! from our list.
21264     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21265     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21266       # If it failed, the variable was not from the command line. Ignore it,
21267       # but warn the user (except for BASH, which is always set by the calling BASH).
21268       if test "xHG" != xBASH; then
21269         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21270 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21271       fi
21272       # Try to locate tool using the code snippet
21273       for ac_prog in hg
21274 do
21275   # Extract the first word of "$ac_prog", so it can be a program name with args.
21276 set dummy $ac_prog; ac_word=$2
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21278 $as_echo_n "checking for $ac_word... " >&6; }
21279 if ${ac_cv_path_HG+:} false; then :
21280   $as_echo_n "(cached) " >&6
21281 else
21282   case $HG in
21283   [\\/]* | ?:[\\/]*)
21284   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21285   ;;
21286   *)
21287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21288 for as_dir in $PATH
21289 do
21290   IFS=$as_save_IFS
21291   test -z "$as_dir" && as_dir=.
21292     for ac_exec_ext in '' $ac_executable_extensions; do
21293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21294     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21296     break 2
21297   fi
21298 done
21299   done
21300 IFS=$as_save_IFS
21301 
21302   ;;
21303 esac
21304 fi
21305 HG=$ac_cv_path_HG
21306 if test -n "$HG"; then
21307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21308 $as_echo "$HG" >&6; }
21309 else
21310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21311 $as_echo "no" >&6; }
21312 fi
21313 
21314 
21315   test -n "$HG" && break
21316 done
21317 
21318     else
21319       # If it succeeded, then it was overridden by the user. We will use it
21320       # for the tool.
21321 
21322       # First remove it from the list of overridden variables, so we can test
21323       # for unknown variables in the end.
21324       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21325 
21326       # Check if we try to supply an empty value
21327       if test "x$HG" = x; then
21328         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21329 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21330         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21331 $as_echo_n "checking for HG... " >&6; }
21332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21333 $as_echo "disabled" >&6; }
21334       else
21335         # Check if the provided tool contains a complete path.
21336         tool_specified="$HG"
21337         tool_basename="${tool_specified##*/}"
21338         if test "x$tool_basename" = "x$tool_specified"; then
21339           # A command without a complete path is provided, search $PATH.
21340           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21341 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21342           # Extract the first word of "$tool_basename", so it can be a program name with args.
21343 set dummy $tool_basename; ac_word=$2
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21345 $as_echo_n "checking for $ac_word... " >&6; }
21346 if ${ac_cv_path_HG+:} false; then :
21347   $as_echo_n "(cached) " >&6
21348 else
21349   case $HG in
21350   [\\/]* | ?:[\\/]*)
21351   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21352   ;;
21353   *)
21354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21355 for as_dir in $PATH
21356 do
21357   IFS=$as_save_IFS
21358   test -z "$as_dir" && as_dir=.
21359     for ac_exec_ext in '' $ac_executable_extensions; do
21360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21361     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21363     break 2
21364   fi
21365 done
21366   done
21367 IFS=$as_save_IFS
21368 
21369   ;;
21370 esac
21371 fi
21372 HG=$ac_cv_path_HG
21373 if test -n "$HG"; then
21374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21375 $as_echo "$HG" >&6; }
21376 else
21377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21378 $as_echo "no" >&6; }
21379 fi
21380 
21381 
21382           if test "x$HG" = x; then
21383             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21384           fi
21385         else
21386           # Otherwise we believe it is a complete path. Use it as it is.
21387           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21388 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21389           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21390 $as_echo_n "checking for HG... " >&6; }
21391           if test ! -x "$tool_specified"; then
21392             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21393 $as_echo "not found" >&6; }
21394             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21395           fi
21396           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21397 $as_echo "$tool_specified" >&6; }
21398         fi
21399       fi
21400     fi
21401 
21402   fi
21403 
21404 
21405 
21406 
21407   # Publish this variable in the help.
21408 
21409 
21410   if [ -z "${STAT+x}" ]; then
21411     # The variable is not set by user, try to locate tool using the code snippet
21412     for ac_prog in stat
21413 do
21414   # Extract the first word of "$ac_prog", so it can be a program name with args.
21415 set dummy $ac_prog; ac_word=$2
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21417 $as_echo_n "checking for $ac_word... " >&6; }
21418 if ${ac_cv_path_STAT+:} false; then :
21419   $as_echo_n "(cached) " >&6
21420 else
21421   case $STAT in
21422   [\\/]* | ?:[\\/]*)
21423   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21424   ;;
21425   *)
21426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21427 for as_dir in $PATH
21428 do
21429   IFS=$as_save_IFS
21430   test -z "$as_dir" && as_dir=.
21431     for ac_exec_ext in '' $ac_executable_extensions; do
21432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21433     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21435     break 2
21436   fi
21437 done
21438   done
21439 IFS=$as_save_IFS
21440 
21441   ;;
21442 esac
21443 fi
21444 STAT=$ac_cv_path_STAT
21445 if test -n "$STAT"; then
21446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21447 $as_echo "$STAT" >&6; }
21448 else
21449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21450 $as_echo "no" >&6; }
21451 fi
21452 
21453 
21454   test -n "$STAT" && break
21455 done
21456 
21457   else
21458     # The variable is set, but is it from the command line or the environment?
21459 
21460     # Try to remove the string !STAT! from our list.
21461     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21462     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21463       # If it failed, the variable was not from the command line. Ignore it,
21464       # but warn the user (except for BASH, which is always set by the calling BASH).
21465       if test "xSTAT" != xBASH; then
21466         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21467 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21468       fi
21469       # Try to locate tool using the code snippet
21470       for ac_prog in stat
21471 do
21472   # Extract the first word of "$ac_prog", so it can be a program name with args.
21473 set dummy $ac_prog; ac_word=$2
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21475 $as_echo_n "checking for $ac_word... " >&6; }
21476 if ${ac_cv_path_STAT+:} false; then :
21477   $as_echo_n "(cached) " >&6
21478 else
21479   case $STAT in
21480   [\\/]* | ?:[\\/]*)
21481   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21482   ;;
21483   *)
21484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21485 for as_dir in $PATH
21486 do
21487   IFS=$as_save_IFS
21488   test -z "$as_dir" && as_dir=.
21489     for ac_exec_ext in '' $ac_executable_extensions; do
21490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21491     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21493     break 2
21494   fi
21495 done
21496   done
21497 IFS=$as_save_IFS
21498 
21499   ;;
21500 esac
21501 fi
21502 STAT=$ac_cv_path_STAT
21503 if test -n "$STAT"; then
21504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21505 $as_echo "$STAT" >&6; }
21506 else
21507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508 $as_echo "no" >&6; }
21509 fi
21510 
21511 
21512   test -n "$STAT" && break
21513 done
21514 
21515     else
21516       # If it succeeded, then it was overridden by the user. We will use it
21517       # for the tool.
21518 
21519       # First remove it from the list of overridden variables, so we can test
21520       # for unknown variables in the end.
21521       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21522 
21523       # Check if we try to supply an empty value
21524       if test "x$STAT" = x; then
21525         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21526 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21528 $as_echo_n "checking for STAT... " >&6; }
21529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21530 $as_echo "disabled" >&6; }
21531       else
21532         # Check if the provided tool contains a complete path.
21533         tool_specified="$STAT"
21534         tool_basename="${tool_specified##*/}"
21535         if test "x$tool_basename" = "x$tool_specified"; then
21536           # A command without a complete path is provided, search $PATH.
21537           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21538 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21539           # Extract the first word of "$tool_basename", so it can be a program name with args.
21540 set dummy $tool_basename; ac_word=$2
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21542 $as_echo_n "checking for $ac_word... " >&6; }
21543 if ${ac_cv_path_STAT+:} false; then :
21544   $as_echo_n "(cached) " >&6
21545 else
21546   case $STAT in
21547   [\\/]* | ?:[\\/]*)
21548   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21549   ;;
21550   *)
21551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21552 for as_dir in $PATH
21553 do
21554   IFS=$as_save_IFS
21555   test -z "$as_dir" && as_dir=.
21556     for ac_exec_ext in '' $ac_executable_extensions; do
21557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21558     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21560     break 2
21561   fi
21562 done
21563   done
21564 IFS=$as_save_IFS
21565 
21566   ;;
21567 esac
21568 fi
21569 STAT=$ac_cv_path_STAT
21570 if test -n "$STAT"; then
21571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21572 $as_echo "$STAT" >&6; }
21573 else
21574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21575 $as_echo "no" >&6; }
21576 fi
21577 
21578 
21579           if test "x$STAT" = x; then
21580             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21581           fi
21582         else
21583           # Otherwise we believe it is a complete path. Use it as it is.
21584           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21585 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21586           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21587 $as_echo_n "checking for STAT... " >&6; }
21588           if test ! -x "$tool_specified"; then
21589             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21590 $as_echo "not found" >&6; }
21591             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21592           fi
21593           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21594 $as_echo "$tool_specified" >&6; }
21595         fi
21596       fi
21597     fi
21598 
21599   fi
21600 
21601 
21602 
21603 
21604   # Publish this variable in the help.
21605 
21606 
21607   if [ -z "${TIME+x}" ]; then
21608     # The variable is not set by user, try to locate tool using the code snippet
21609     for ac_prog in time
21610 do
21611   # Extract the first word of "$ac_prog", so it can be a program name with args.
21612 set dummy $ac_prog; ac_word=$2
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21614 $as_echo_n "checking for $ac_word... " >&6; }
21615 if ${ac_cv_path_TIME+:} false; then :
21616   $as_echo_n "(cached) " >&6
21617 else
21618   case $TIME in
21619   [\\/]* | ?:[\\/]*)
21620   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21621   ;;
21622   *)
21623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21624 for as_dir in $PATH
21625 do
21626   IFS=$as_save_IFS
21627   test -z "$as_dir" && as_dir=.
21628     for ac_exec_ext in '' $ac_executable_extensions; do
21629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21630     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21632     break 2
21633   fi
21634 done
21635   done
21636 IFS=$as_save_IFS
21637 
21638   ;;
21639 esac
21640 fi
21641 TIME=$ac_cv_path_TIME
21642 if test -n "$TIME"; then
21643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21644 $as_echo "$TIME" >&6; }
21645 else
21646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21647 $as_echo "no" >&6; }
21648 fi
21649 
21650 
21651   test -n "$TIME" && break
21652 done
21653 
21654   else
21655     # The variable is set, but is it from the command line or the environment?
21656 
21657     # Try to remove the string !TIME! from our list.
21658     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21659     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21660       # If it failed, the variable was not from the command line. Ignore it,
21661       # but warn the user (except for BASH, which is always set by the calling BASH).
21662       if test "xTIME" != xBASH; then
21663         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21664 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21665       fi
21666       # Try to locate tool using the code snippet
21667       for ac_prog in time
21668 do
21669   # Extract the first word of "$ac_prog", so it can be a program name with args.
21670 set dummy $ac_prog; ac_word=$2
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21672 $as_echo_n "checking for $ac_word... " >&6; }
21673 if ${ac_cv_path_TIME+:} false; then :
21674   $as_echo_n "(cached) " >&6
21675 else
21676   case $TIME in
21677   [\\/]* | ?:[\\/]*)
21678   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21679   ;;
21680   *)
21681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21682 for as_dir in $PATH
21683 do
21684   IFS=$as_save_IFS
21685   test -z "$as_dir" && as_dir=.
21686     for ac_exec_ext in '' $ac_executable_extensions; do
21687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21688     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21690     break 2
21691   fi
21692 done
21693   done
21694 IFS=$as_save_IFS
21695 
21696   ;;
21697 esac
21698 fi
21699 TIME=$ac_cv_path_TIME
21700 if test -n "$TIME"; then
21701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21702 $as_echo "$TIME" >&6; }
21703 else
21704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21705 $as_echo "no" >&6; }
21706 fi
21707 
21708 
21709   test -n "$TIME" && break
21710 done
21711 
21712     else
21713       # If it succeeded, then it was overridden by the user. We will use it
21714       # for the tool.
21715 
21716       # First remove it from the list of overridden variables, so we can test
21717       # for unknown variables in the end.
21718       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21719 
21720       # Check if we try to supply an empty value
21721       if test "x$TIME" = x; then
21722         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21723 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21725 $as_echo_n "checking for TIME... " >&6; }
21726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21727 $as_echo "disabled" >&6; }
21728       else
21729         # Check if the provided tool contains a complete path.
21730         tool_specified="$TIME"
21731         tool_basename="${tool_specified##*/}"
21732         if test "x$tool_basename" = "x$tool_specified"; then
21733           # A command without a complete path is provided, search $PATH.
21734           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21735 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21736           # Extract the first word of "$tool_basename", so it can be a program name with args.
21737 set dummy $tool_basename; ac_word=$2
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21739 $as_echo_n "checking for $ac_word... " >&6; }
21740 if ${ac_cv_path_TIME+:} false; then :
21741   $as_echo_n "(cached) " >&6
21742 else
21743   case $TIME in
21744   [\\/]* | ?:[\\/]*)
21745   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21746   ;;
21747   *)
21748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21749 for as_dir in $PATH
21750 do
21751   IFS=$as_save_IFS
21752   test -z "$as_dir" && as_dir=.
21753     for ac_exec_ext in '' $ac_executable_extensions; do
21754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21755     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21757     break 2
21758   fi
21759 done
21760   done
21761 IFS=$as_save_IFS
21762 
21763   ;;
21764 esac
21765 fi
21766 TIME=$ac_cv_path_TIME
21767 if test -n "$TIME"; then
21768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21769 $as_echo "$TIME" >&6; }
21770 else
21771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21772 $as_echo "no" >&6; }
21773 fi
21774 
21775 
21776           if test "x$TIME" = x; then
21777             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21778           fi
21779         else
21780           # Otherwise we believe it is a complete path. Use it as it is.
21781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21782 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21783           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21784 $as_echo_n "checking for TIME... " >&6; }
21785           if test ! -x "$tool_specified"; then
21786             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21787 $as_echo "not found" >&6; }
21788             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21789           fi
21790           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21791 $as_echo "$tool_specified" >&6; }
21792         fi
21793       fi
21794     fi
21795 
21796   fi
21797 
21798 
21799 
21800 
21801   # Publish this variable in the help.
21802 
21803 
21804   if [ -z "${PATCH+x}" ]; then
21805     # The variable is not set by user, try to locate tool using the code snippet
21806     for ac_prog in gpatch patch
21807 do
21808   # Extract the first word of "$ac_prog", so it can be a program name with args.
21809 set dummy $ac_prog; ac_word=$2
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21811 $as_echo_n "checking for $ac_word... " >&6; }
21812 if ${ac_cv_path_PATCH+:} false; then :
21813   $as_echo_n "(cached) " >&6
21814 else
21815   case $PATCH in
21816   [\\/]* | ?:[\\/]*)
21817   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21818   ;;
21819   *)
21820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21821 for as_dir in $PATH
21822 do
21823   IFS=$as_save_IFS
21824   test -z "$as_dir" && as_dir=.
21825     for ac_exec_ext in '' $ac_executable_extensions; do
21826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21827     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21829     break 2
21830   fi
21831 done
21832   done
21833 IFS=$as_save_IFS
21834 
21835   ;;
21836 esac
21837 fi
21838 PATCH=$ac_cv_path_PATCH
21839 if test -n "$PATCH"; then
21840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21841 $as_echo "$PATCH" >&6; }
21842 else
21843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21844 $as_echo "no" >&6; }
21845 fi
21846 
21847 
21848   test -n "$PATCH" && break
21849 done
21850 
21851   else
21852     # The variable is set, but is it from the command line or the environment?
21853 
21854     # Try to remove the string !PATCH! from our list.
21855     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21856     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21857       # If it failed, the variable was not from the command line. Ignore it,
21858       # but warn the user (except for BASH, which is always set by the calling BASH).
21859       if test "xPATCH" != xBASH; then
21860         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21861 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21862       fi
21863       # Try to locate tool using the code snippet
21864       for ac_prog in gpatch patch
21865 do
21866   # Extract the first word of "$ac_prog", so it can be a program name with args.
21867 set dummy $ac_prog; ac_word=$2
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21869 $as_echo_n "checking for $ac_word... " >&6; }
21870 if ${ac_cv_path_PATCH+:} false; then :
21871   $as_echo_n "(cached) " >&6
21872 else
21873   case $PATCH in
21874   [\\/]* | ?:[\\/]*)
21875   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21876   ;;
21877   *)
21878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21879 for as_dir in $PATH
21880 do
21881   IFS=$as_save_IFS
21882   test -z "$as_dir" && as_dir=.
21883     for ac_exec_ext in '' $ac_executable_extensions; do
21884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21885     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21887     break 2
21888   fi
21889 done
21890   done
21891 IFS=$as_save_IFS
21892 
21893   ;;
21894 esac
21895 fi
21896 PATCH=$ac_cv_path_PATCH
21897 if test -n "$PATCH"; then
21898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21899 $as_echo "$PATCH" >&6; }
21900 else
21901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21903 fi
21904 
21905 
21906   test -n "$PATCH" && break
21907 done
21908 
21909     else
21910       # If it succeeded, then it was overridden by the user. We will use it
21911       # for the tool.
21912 
21913       # First remove it from the list of overridden variables, so we can test
21914       # for unknown variables in the end.
21915       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21916 
21917       # Check if we try to supply an empty value
21918       if test "x$PATCH" = x; then
21919         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21920 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21921         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21922 $as_echo_n "checking for PATCH... " >&6; }
21923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21924 $as_echo "disabled" >&6; }
21925       else
21926         # Check if the provided tool contains a complete path.
21927         tool_specified="$PATCH"
21928         tool_basename="${tool_specified##*/}"
21929         if test "x$tool_basename" = "x$tool_specified"; then
21930           # A command without a complete path is provided, search $PATH.
21931           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
21932 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
21933           # Extract the first word of "$tool_basename", so it can be a program name with args.
21934 set dummy $tool_basename; ac_word=$2
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21936 $as_echo_n "checking for $ac_word... " >&6; }
21937 if ${ac_cv_path_PATCH+:} false; then :
21938   $as_echo_n "(cached) " >&6
21939 else
21940   case $PATCH in
21941   [\\/]* | ?:[\\/]*)
21942   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21943   ;;
21944   *)
21945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21946 for as_dir in $PATH
21947 do
21948   IFS=$as_save_IFS
21949   test -z "$as_dir" && as_dir=.
21950     for ac_exec_ext in '' $ac_executable_extensions; do
21951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21952     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21954     break 2
21955   fi
21956 done
21957   done
21958 IFS=$as_save_IFS
21959 
21960   ;;
21961 esac
21962 fi
21963 PATCH=$ac_cv_path_PATCH
21964 if test -n "$PATCH"; then
21965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21966 $as_echo "$PATCH" >&6; }
21967 else
21968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21969 $as_echo "no" >&6; }
21970 fi
21971 
21972 
21973           if test "x$PATCH" = x; then
21974             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21975           fi
21976         else
21977           # Otherwise we believe it is a complete path. Use it as it is.
21978           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
21979 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
21980           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21981 $as_echo_n "checking for PATCH... " >&6; }
21982           if test ! -x "$tool_specified"; then
21983             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21984 $as_echo "not found" >&6; }
21985             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
21986           fi
21987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21988 $as_echo "$tool_specified" >&6; }
21989         fi
21990       fi
21991     fi
21992 
21993   fi
21994 
21995 
21996   # Check if it's GNU time
21997   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
21998   if test "x$IS_GNU_TIME" != x; then
21999     IS_GNU_TIME=yes
22000   else
22001     IS_GNU_TIME=no
22002   fi
22003 
22004 
22005   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22006 
22007 
22008 
22009   # Publish this variable in the help.
22010 
22011 
22012   if [ -z "${DSYMUTIL+x}" ]; then
22013     # The variable is not set by user, try to locate tool using the code snippet
22014     for ac_prog in dsymutil
22015 do
22016   # Extract the first word of "$ac_prog", so it can be a program name with args.
22017 set dummy $ac_prog; ac_word=$2
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22019 $as_echo_n "checking for $ac_word... " >&6; }
22020 if ${ac_cv_path_DSYMUTIL+:} false; then :
22021   $as_echo_n "(cached) " >&6
22022 else
22023   case $DSYMUTIL in
22024   [\\/]* | ?:[\\/]*)
22025   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22026   ;;
22027   *)
22028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in $PATH
22030 do
22031   IFS=$as_save_IFS
22032   test -z "$as_dir" && as_dir=.
22033     for ac_exec_ext in '' $ac_executable_extensions; do
22034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22035     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22037     break 2
22038   fi
22039 done
22040   done
22041 IFS=$as_save_IFS
22042 
22043   ;;
22044 esac
22045 fi
22046 DSYMUTIL=$ac_cv_path_DSYMUTIL
22047 if test -n "$DSYMUTIL"; then
22048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22049 $as_echo "$DSYMUTIL" >&6; }
22050 else
22051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22053 fi
22054 
22055 
22056   test -n "$DSYMUTIL" && break
22057 done
22058 
22059   else
22060     # The variable is set, but is it from the command line or the environment?
22061 
22062     # Try to remove the string !DSYMUTIL! from our list.
22063     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22064     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22065       # If it failed, the variable was not from the command line. Ignore it,
22066       # but warn the user (except for BASH, which is always set by the calling BASH).
22067       if test "xDSYMUTIL" != xBASH; then
22068         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22069 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22070       fi
22071       # Try to locate tool using the code snippet
22072       for ac_prog in dsymutil
22073 do
22074   # Extract the first word of "$ac_prog", so it can be a program name with args.
22075 set dummy $ac_prog; ac_word=$2
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22077 $as_echo_n "checking for $ac_word... " >&6; }
22078 if ${ac_cv_path_DSYMUTIL+:} false; then :
22079   $as_echo_n "(cached) " >&6
22080 else
22081   case $DSYMUTIL in
22082   [\\/]* | ?:[\\/]*)
22083   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22084   ;;
22085   *)
22086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22087 for as_dir in $PATH
22088 do
22089   IFS=$as_save_IFS
22090   test -z "$as_dir" && as_dir=.
22091     for ac_exec_ext in '' $ac_executable_extensions; do
22092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22093     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22095     break 2
22096   fi
22097 done
22098   done
22099 IFS=$as_save_IFS
22100 
22101   ;;
22102 esac
22103 fi
22104 DSYMUTIL=$ac_cv_path_DSYMUTIL
22105 if test -n "$DSYMUTIL"; then
22106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22107 $as_echo "$DSYMUTIL" >&6; }
22108 else
22109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 $as_echo "no" >&6; }
22111 fi
22112 
22113 
22114   test -n "$DSYMUTIL" && break
22115 done
22116 
22117     else
22118       # If it succeeded, then it was overridden by the user. We will use it
22119       # for the tool.
22120 
22121       # First remove it from the list of overridden variables, so we can test
22122       # for unknown variables in the end.
22123       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22124 
22125       # Check if we try to supply an empty value
22126       if test "x$DSYMUTIL" = x; then
22127         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22128 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22130 $as_echo_n "checking for DSYMUTIL... " >&6; }
22131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22132 $as_echo "disabled" >&6; }
22133       else
22134         # Check if the provided tool contains a complete path.
22135         tool_specified="$DSYMUTIL"
22136         tool_basename="${tool_specified##*/}"
22137         if test "x$tool_basename" = "x$tool_specified"; then
22138           # A command without a complete path is provided, search $PATH.
22139           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22140 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22141           # Extract the first word of "$tool_basename", so it can be a program name with args.
22142 set dummy $tool_basename; ac_word=$2
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22144 $as_echo_n "checking for $ac_word... " >&6; }
22145 if ${ac_cv_path_DSYMUTIL+:} false; then :
22146   $as_echo_n "(cached) " >&6
22147 else
22148   case $DSYMUTIL in
22149   [\\/]* | ?:[\\/]*)
22150   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22151   ;;
22152   *)
22153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22154 for as_dir in $PATH
22155 do
22156   IFS=$as_save_IFS
22157   test -z "$as_dir" && as_dir=.
22158     for ac_exec_ext in '' $ac_executable_extensions; do
22159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22160     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22162     break 2
22163   fi
22164 done
22165   done
22166 IFS=$as_save_IFS
22167 
22168   ;;
22169 esac
22170 fi
22171 DSYMUTIL=$ac_cv_path_DSYMUTIL
22172 if test -n "$DSYMUTIL"; then
22173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22174 $as_echo "$DSYMUTIL" >&6; }
22175 else
22176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22177 $as_echo "no" >&6; }
22178 fi
22179 
22180 
22181           if test "x$DSYMUTIL" = x; then
22182             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22183           fi
22184         else
22185           # Otherwise we believe it is a complete path. Use it as it is.
22186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22187 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22188           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22189 $as_echo_n "checking for DSYMUTIL... " >&6; }
22190           if test ! -x "$tool_specified"; then
22191             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22192 $as_echo "not found" >&6; }
22193             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22194           fi
22195           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22196 $as_echo "$tool_specified" >&6; }
22197         fi
22198       fi
22199     fi
22200 
22201   fi
22202 
22203 
22204 
22205   if test "x$DSYMUTIL" = x; then
22206     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22207   fi
22208 
22209 
22210 
22211 
22212 
22213   # Publish this variable in the help.
22214 
22215 
22216   if [ -z "${XATTR+x}" ]; then
22217     # The variable is not set by user, try to locate tool using the code snippet
22218     for ac_prog in xattr
22219 do
22220   # Extract the first word of "$ac_prog", so it can be a program name with args.
22221 set dummy $ac_prog; ac_word=$2
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22223 $as_echo_n "checking for $ac_word... " >&6; }
22224 if ${ac_cv_path_XATTR+:} false; then :
22225   $as_echo_n "(cached) " >&6
22226 else
22227   case $XATTR in
22228   [\\/]* | ?:[\\/]*)
22229   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22230   ;;
22231   *)
22232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22233 for as_dir in $PATH
22234 do
22235   IFS=$as_save_IFS
22236   test -z "$as_dir" && as_dir=.
22237     for ac_exec_ext in '' $ac_executable_extensions; do
22238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22239     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22241     break 2
22242   fi
22243 done
22244   done
22245 IFS=$as_save_IFS
22246 
22247   ;;
22248 esac
22249 fi
22250 XATTR=$ac_cv_path_XATTR
22251 if test -n "$XATTR"; then
22252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22253 $as_echo "$XATTR" >&6; }
22254 else
22255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22256 $as_echo "no" >&6; }
22257 fi
22258 
22259 
22260   test -n "$XATTR" && break
22261 done
22262 
22263   else
22264     # The variable is set, but is it from the command line or the environment?
22265 
22266     # Try to remove the string !XATTR! from our list.
22267     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22268     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22269       # If it failed, the variable was not from the command line. Ignore it,
22270       # but warn the user (except for BASH, which is always set by the calling BASH).
22271       if test "xXATTR" != xBASH; then
22272         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22273 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22274       fi
22275       # Try to locate tool using the code snippet
22276       for ac_prog in xattr
22277 do
22278   # Extract the first word of "$ac_prog", so it can be a program name with args.
22279 set dummy $ac_prog; ac_word=$2
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22281 $as_echo_n "checking for $ac_word... " >&6; }
22282 if ${ac_cv_path_XATTR+:} false; then :
22283   $as_echo_n "(cached) " >&6
22284 else
22285   case $XATTR in
22286   [\\/]* | ?:[\\/]*)
22287   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22288   ;;
22289   *)
22290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22291 for as_dir in $PATH
22292 do
22293   IFS=$as_save_IFS
22294   test -z "$as_dir" && as_dir=.
22295     for ac_exec_ext in '' $ac_executable_extensions; do
22296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22297     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22299     break 2
22300   fi
22301 done
22302   done
22303 IFS=$as_save_IFS
22304 
22305   ;;
22306 esac
22307 fi
22308 XATTR=$ac_cv_path_XATTR
22309 if test -n "$XATTR"; then
22310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22311 $as_echo "$XATTR" >&6; }
22312 else
22313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22314 $as_echo "no" >&6; }
22315 fi
22316 
22317 
22318   test -n "$XATTR" && break
22319 done
22320 
22321     else
22322       # If it succeeded, then it was overridden by the user. We will use it
22323       # for the tool.
22324 
22325       # First remove it from the list of overridden variables, so we can test
22326       # for unknown variables in the end.
22327       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22328 
22329       # Check if we try to supply an empty value
22330       if test "x$XATTR" = x; then
22331         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22332 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22334 $as_echo_n "checking for XATTR... " >&6; }
22335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22336 $as_echo "disabled" >&6; }
22337       else
22338         # Check if the provided tool contains a complete path.
22339         tool_specified="$XATTR"
22340         tool_basename="${tool_specified##*/}"
22341         if test "x$tool_basename" = "x$tool_specified"; then
22342           # A command without a complete path is provided, search $PATH.
22343           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22344 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22345           # Extract the first word of "$tool_basename", so it can be a program name with args.
22346 set dummy $tool_basename; ac_word=$2
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22348 $as_echo_n "checking for $ac_word... " >&6; }
22349 if ${ac_cv_path_XATTR+:} false; then :
22350   $as_echo_n "(cached) " >&6
22351 else
22352   case $XATTR in
22353   [\\/]* | ?:[\\/]*)
22354   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22355   ;;
22356   *)
22357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22358 for as_dir in $PATH
22359 do
22360   IFS=$as_save_IFS
22361   test -z "$as_dir" && as_dir=.
22362     for ac_exec_ext in '' $ac_executable_extensions; do
22363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22364     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22366     break 2
22367   fi
22368 done
22369   done
22370 IFS=$as_save_IFS
22371 
22372   ;;
22373 esac
22374 fi
22375 XATTR=$ac_cv_path_XATTR
22376 if test -n "$XATTR"; then
22377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22378 $as_echo "$XATTR" >&6; }
22379 else
22380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22381 $as_echo "no" >&6; }
22382 fi
22383 
22384 
22385           if test "x$XATTR" = x; then
22386             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22387           fi
22388         else
22389           # Otherwise we believe it is a complete path. Use it as it is.
22390           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22391 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22392           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22393 $as_echo_n "checking for XATTR... " >&6; }
22394           if test ! -x "$tool_specified"; then
22395             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22396 $as_echo "not found" >&6; }
22397             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22398           fi
22399           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22400 $as_echo "$tool_specified" >&6; }
22401         fi
22402       fi
22403     fi
22404 
22405   fi
22406 
22407 
22408 
22409   if test "x$XATTR" = x; then
22410     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22411   fi
22412 
22413 
22414 
22415 
22416   # Publish this variable in the help.
22417 
22418 
22419   if [ -z "${CODESIGN+x}" ]; then
22420     # The variable is not set by user, try to locate tool using the code snippet
22421     for ac_prog in codesign
22422 do
22423   # Extract the first word of "$ac_prog", so it can be a program name with args.
22424 set dummy $ac_prog; ac_word=$2
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22426 $as_echo_n "checking for $ac_word... " >&6; }
22427 if ${ac_cv_path_CODESIGN+:} false; then :
22428   $as_echo_n "(cached) " >&6
22429 else
22430   case $CODESIGN in
22431   [\\/]* | ?:[\\/]*)
22432   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22433   ;;
22434   *)
22435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22436 for as_dir in $PATH
22437 do
22438   IFS=$as_save_IFS
22439   test -z "$as_dir" && as_dir=.
22440     for ac_exec_ext in '' $ac_executable_extensions; do
22441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22442     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22444     break 2
22445   fi
22446 done
22447   done
22448 IFS=$as_save_IFS
22449 
22450   ;;
22451 esac
22452 fi
22453 CODESIGN=$ac_cv_path_CODESIGN
22454 if test -n "$CODESIGN"; then
22455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22456 $as_echo "$CODESIGN" >&6; }
22457 else
22458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22459 $as_echo "no" >&6; }
22460 fi
22461 
22462 
22463   test -n "$CODESIGN" && break
22464 done
22465 
22466   else
22467     # The variable is set, but is it from the command line or the environment?
22468 
22469     # Try to remove the string !CODESIGN! from our list.
22470     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22471     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22472       # If it failed, the variable was not from the command line. Ignore it,
22473       # but warn the user (except for BASH, which is always set by the calling BASH).
22474       if test "xCODESIGN" != xBASH; then
22475         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22476 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22477       fi
22478       # Try to locate tool using the code snippet
22479       for ac_prog in codesign
22480 do
22481   # Extract the first word of "$ac_prog", so it can be a program name with args.
22482 set dummy $ac_prog; ac_word=$2
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22484 $as_echo_n "checking for $ac_word... " >&6; }
22485 if ${ac_cv_path_CODESIGN+:} false; then :
22486   $as_echo_n "(cached) " >&6
22487 else
22488   case $CODESIGN in
22489   [\\/]* | ?:[\\/]*)
22490   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22491   ;;
22492   *)
22493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22494 for as_dir in $PATH
22495 do
22496   IFS=$as_save_IFS
22497   test -z "$as_dir" && as_dir=.
22498     for ac_exec_ext in '' $ac_executable_extensions; do
22499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22500     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22502     break 2
22503   fi
22504 done
22505   done
22506 IFS=$as_save_IFS
22507 
22508   ;;
22509 esac
22510 fi
22511 CODESIGN=$ac_cv_path_CODESIGN
22512 if test -n "$CODESIGN"; then
22513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22514 $as_echo "$CODESIGN" >&6; }
22515 else
22516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22517 $as_echo "no" >&6; }
22518 fi
22519 
22520 
22521   test -n "$CODESIGN" && break
22522 done
22523 
22524     else
22525       # If it succeeded, then it was overridden by the user. We will use it
22526       # for the tool.
22527 
22528       # First remove it from the list of overridden variables, so we can test
22529       # for unknown variables in the end.
22530       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22531 
22532       # Check if we try to supply an empty value
22533       if test "x$CODESIGN" = x; then
22534         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22535 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22536         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22537 $as_echo_n "checking for CODESIGN... " >&6; }
22538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22539 $as_echo "disabled" >&6; }
22540       else
22541         # Check if the provided tool contains a complete path.
22542         tool_specified="$CODESIGN"
22543         tool_basename="${tool_specified##*/}"
22544         if test "x$tool_basename" = "x$tool_specified"; then
22545           # A command without a complete path is provided, search $PATH.
22546           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22547 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22548           # Extract the first word of "$tool_basename", so it can be a program name with args.
22549 set dummy $tool_basename; ac_word=$2
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22551 $as_echo_n "checking for $ac_word... " >&6; }
22552 if ${ac_cv_path_CODESIGN+:} false; then :
22553   $as_echo_n "(cached) " >&6
22554 else
22555   case $CODESIGN in
22556   [\\/]* | ?:[\\/]*)
22557   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22558   ;;
22559   *)
22560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22561 for as_dir in $PATH
22562 do
22563   IFS=$as_save_IFS
22564   test -z "$as_dir" && as_dir=.
22565     for ac_exec_ext in '' $ac_executable_extensions; do
22566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22567     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22569     break 2
22570   fi
22571 done
22572   done
22573 IFS=$as_save_IFS
22574 
22575   ;;
22576 esac
22577 fi
22578 CODESIGN=$ac_cv_path_CODESIGN
22579 if test -n "$CODESIGN"; then
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22581 $as_echo "$CODESIGN" >&6; }
22582 else
22583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22584 $as_echo "no" >&6; }
22585 fi
22586 
22587 
22588           if test "x$CODESIGN" = x; then
22589             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22590           fi
22591         else
22592           # Otherwise we believe it is a complete path. Use it as it is.
22593           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22594 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22595           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22596 $as_echo_n "checking for CODESIGN... " >&6; }
22597           if test ! -x "$tool_specified"; then
22598             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22599 $as_echo "not found" >&6; }
22600             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22601           fi
22602           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22603 $as_echo "$tool_specified" >&6; }
22604         fi
22605       fi
22606     fi
22607 
22608   fi
22609 
22610 
22611     if test "x$CODESIGN" != "x"; then
22612       # Verify that the openjdk_codesign certificate is present
22613       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22614 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22615       rm -f codesign-testfile
22616       touch codesign-testfile
22617       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22618       rm -f codesign-testfile
22619       if test "x$CODESIGN" = x; then
22620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22621 $as_echo "no" >&6; }
22622       else
22623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22624 $as_echo "yes" >&6; }
22625       fi
22626     fi
22627 
22628 
22629 
22630   # Publish this variable in the help.
22631 
22632 
22633   if [ -z "${SETFILE+x}" ]; then
22634     # The variable is not set by user, try to locate tool using the code snippet
22635     for ac_prog in SetFile
22636 do
22637   # Extract the first word of "$ac_prog", so it can be a program name with args.
22638 set dummy $ac_prog; ac_word=$2
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22640 $as_echo_n "checking for $ac_word... " >&6; }
22641 if ${ac_cv_path_SETFILE+:} false; then :
22642   $as_echo_n "(cached) " >&6
22643 else
22644   case $SETFILE in
22645   [\\/]* | ?:[\\/]*)
22646   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22647   ;;
22648   *)
22649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22650 for as_dir in $PATH
22651 do
22652   IFS=$as_save_IFS
22653   test -z "$as_dir" && as_dir=.
22654     for ac_exec_ext in '' $ac_executable_extensions; do
22655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22656     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22658     break 2
22659   fi
22660 done
22661   done
22662 IFS=$as_save_IFS
22663 
22664   ;;
22665 esac
22666 fi
22667 SETFILE=$ac_cv_path_SETFILE
22668 if test -n "$SETFILE"; then
22669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22670 $as_echo "$SETFILE" >&6; }
22671 else
22672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22673 $as_echo "no" >&6; }
22674 fi
22675 
22676 
22677   test -n "$SETFILE" && break
22678 done
22679 
22680   else
22681     # The variable is set, but is it from the command line or the environment?
22682 
22683     # Try to remove the string !SETFILE! from our list.
22684     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22685     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22686       # If it failed, the variable was not from the command line. Ignore it,
22687       # but warn the user (except for BASH, which is always set by the calling BASH).
22688       if test "xSETFILE" != xBASH; then
22689         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22690 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22691       fi
22692       # Try to locate tool using the code snippet
22693       for ac_prog in SetFile
22694 do
22695   # Extract the first word of "$ac_prog", so it can be a program name with args.
22696 set dummy $ac_prog; ac_word=$2
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22698 $as_echo_n "checking for $ac_word... " >&6; }
22699 if ${ac_cv_path_SETFILE+:} false; then :
22700   $as_echo_n "(cached) " >&6
22701 else
22702   case $SETFILE in
22703   [\\/]* | ?:[\\/]*)
22704   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22705   ;;
22706   *)
22707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22708 for as_dir in $PATH
22709 do
22710   IFS=$as_save_IFS
22711   test -z "$as_dir" && as_dir=.
22712     for ac_exec_ext in '' $ac_executable_extensions; do
22713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22714     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22716     break 2
22717   fi
22718 done
22719   done
22720 IFS=$as_save_IFS
22721 
22722   ;;
22723 esac
22724 fi
22725 SETFILE=$ac_cv_path_SETFILE
22726 if test -n "$SETFILE"; then
22727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22728 $as_echo "$SETFILE" >&6; }
22729 else
22730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22731 $as_echo "no" >&6; }
22732 fi
22733 
22734 
22735   test -n "$SETFILE" && break
22736 done
22737 
22738     else
22739       # If it succeeded, then it was overridden by the user. We will use it
22740       # for the tool.
22741 
22742       # First remove it from the list of overridden variables, so we can test
22743       # for unknown variables in the end.
22744       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22745 
22746       # Check if we try to supply an empty value
22747       if test "x$SETFILE" = x; then
22748         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22749 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22750         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22751 $as_echo_n "checking for SETFILE... " >&6; }
22752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22753 $as_echo "disabled" >&6; }
22754       else
22755         # Check if the provided tool contains a complete path.
22756         tool_specified="$SETFILE"
22757         tool_basename="${tool_specified##*/}"
22758         if test "x$tool_basename" = "x$tool_specified"; then
22759           # A command without a complete path is provided, search $PATH.
22760           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22761 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22762           # Extract the first word of "$tool_basename", so it can be a program name with args.
22763 set dummy $tool_basename; ac_word=$2
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22765 $as_echo_n "checking for $ac_word... " >&6; }
22766 if ${ac_cv_path_SETFILE+:} false; then :
22767   $as_echo_n "(cached) " >&6
22768 else
22769   case $SETFILE in
22770   [\\/]* | ?:[\\/]*)
22771   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22772   ;;
22773   *)
22774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 for as_dir in $PATH
22776 do
22777   IFS=$as_save_IFS
22778   test -z "$as_dir" && as_dir=.
22779     for ac_exec_ext in '' $ac_executable_extensions; do
22780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22781     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22783     break 2
22784   fi
22785 done
22786   done
22787 IFS=$as_save_IFS
22788 
22789   ;;
22790 esac
22791 fi
22792 SETFILE=$ac_cv_path_SETFILE
22793 if test -n "$SETFILE"; then
22794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22795 $as_echo "$SETFILE" >&6; }
22796 else
22797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22798 $as_echo "no" >&6; }
22799 fi
22800 
22801 
22802           if test "x$SETFILE" = x; then
22803             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22804           fi
22805         else
22806           # Otherwise we believe it is a complete path. Use it as it is.
22807           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22808 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22809           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22810 $as_echo_n "checking for SETFILE... " >&6; }
22811           if test ! -x "$tool_specified"; then
22812             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22813 $as_echo "not found" >&6; }
22814             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22815           fi
22816           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22817 $as_echo "$tool_specified" >&6; }
22818         fi
22819       fi
22820     fi
22821 
22822   fi
22823 
22824 
22825 
22826   if test "x$SETFILE" = x; then
22827     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22828   fi
22829 
22830 
22831   fi
22832 
22833 
22834   # Test if bash supports pipefail.
22835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22836 $as_echo_n "checking if bash supports pipefail... " >&6; }
22837   if ${BASH} -c 'set -o pipefail'; then
22838     BASH_ARGS="$BASH_ARGS -o pipefail"
22839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22840 $as_echo "yes" >&6; }
22841   else
22842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22843 $as_echo "no" >&6; }
22844   fi
22845 
22846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22847 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22848   if ${BASH} -e -c 'true'; then
22849     BASH_ARGS="$BASH_ARGS -e"
22850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22851 $as_echo "yes" >&6; }
22852   else
22853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22854 $as_echo "no" >&6; }
22855   fi
22856 
22857 
22858 
22859 
22860 # Check if pkg-config is available.
22861 
22862 
22863 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22864         if test -n "$ac_tool_prefix"; then
22865   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22866 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22868 $as_echo_n "checking for $ac_word... " >&6; }
22869 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22870   $as_echo_n "(cached) " >&6
22871 else
22872   case $PKG_CONFIG in
22873   [\\/]* | ?:[\\/]*)
22874   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22875   ;;
22876   *)
22877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22878 for as_dir in $PATH
22879 do
22880   IFS=$as_save_IFS
22881   test -z "$as_dir" && as_dir=.
22882     for ac_exec_ext in '' $ac_executable_extensions; do
22883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22884     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22886     break 2
22887   fi
22888 done
22889   done
22890 IFS=$as_save_IFS
22891 
22892   ;;
22893 esac
22894 fi
22895 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22896 if test -n "$PKG_CONFIG"; then
22897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22898 $as_echo "$PKG_CONFIG" >&6; }
22899 else
22900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22901 $as_echo "no" >&6; }
22902 fi
22903 
22904 
22905 fi
22906 if test -z "$ac_cv_path_PKG_CONFIG"; then
22907   ac_pt_PKG_CONFIG=$PKG_CONFIG
22908   # Extract the first word of "pkg-config", so it can be a program name with args.
22909 set dummy pkg-config; ac_word=$2
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22911 $as_echo_n "checking for $ac_word... " >&6; }
22912 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22913   $as_echo_n "(cached) " >&6
22914 else
22915   case $ac_pt_PKG_CONFIG in
22916   [\\/]* | ?:[\\/]*)
22917   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22918   ;;
22919   *)
22920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22921 for as_dir in $PATH
22922 do
22923   IFS=$as_save_IFS
22924   test -z "$as_dir" && as_dir=.
22925     for ac_exec_ext in '' $ac_executable_extensions; do
22926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22927     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22929     break 2
22930   fi
22931 done
22932   done
22933 IFS=$as_save_IFS
22934 
22935   ;;
22936 esac
22937 fi
22938 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22939 if test -n "$ac_pt_PKG_CONFIG"; then
22940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22941 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22942 else
22943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22944 $as_echo "no" >&6; }
22945 fi
22946 
22947   if test "x$ac_pt_PKG_CONFIG" = x; then
22948     PKG_CONFIG=""
22949   else
22950     case $cross_compiling:$ac_tool_warned in
22951 yes:)
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22954 ac_tool_warned=yes ;;
22955 esac
22956     PKG_CONFIG=$ac_pt_PKG_CONFIG
22957   fi
22958 else
22959   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22960 fi
22961 
22962 fi
22963 if test -n "$PKG_CONFIG"; then
22964         _pkg_min_version=0.9.0
22965         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22966 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22967         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22968                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22969 $as_echo "yes" >&6; }
22970         else
22971                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22972 $as_echo "no" >&6; }
22973                 PKG_CONFIG=""
22974         fi
22975 
22976 fi
22977 
22978 # After basic tools have been setup, we can check build os specific details.
22979 
22980   ###############################################################################
22981 
22982   # Note that this is the build platform OS version!
22983 
22984   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
22985   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
22986   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
22987   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
22988 
22989 
22990 
22991 
22992 
22993 ###############################################################################
22994 #
22995 # Determine OpenJDK variants, options and version numbers.
22996 #
22997 ###############################################################################
22998 
22999 # We need build & target for this.
23000 
23001 
23002   ###############################################################################
23003   #
23004   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23005   # We always build headless support.
23006   #
23007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23008 $as_echo_n "checking headful support... " >&6; }
23009   # Check whether --enable-headful was given.
23010 if test "${enable_headful+set}" = set; then :
23011   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23012 else
23013   SUPPORT_HEADFUL=yes
23014 fi
23015 
23016 
23017   SUPPORT_HEADLESS=yes
23018   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23019 
23020   if test "x$SUPPORT_HEADFUL" = xyes; then
23021     # We are building both headful and headless.
23022     headful_msg="include support for both headful and headless"
23023   fi
23024 
23025   if test "x$SUPPORT_HEADFUL" = xno; then
23026     # Thus we are building headless only.
23027     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23028     headful_msg="headless only"
23029   fi
23030 
23031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23032 $as_echo "$headful_msg" >&6; }
23033 
23034 
23035 
23036 
23037 
23038   # Control wether Hotspot runs Queens test after build.
23039   # Check whether --enable-hotspot-test-in-build was given.
23040 if test "${enable_hotspot_test_in_build+set}" = set; then :
23041   enableval=$enable_hotspot_test_in_build;
23042 else
23043   enable_hotspot_test_in_build=no
23044 fi
23045 
23046   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23047     TEST_IN_BUILD=true
23048   else
23049     TEST_IN_BUILD=false
23050   fi
23051 
23052 
23053   ###############################################################################
23054   #
23055   # Choose cacerts source file
23056   #
23057 
23058 # Check whether --with-cacerts-file was given.
23059 if test "${with_cacerts_file+set}" = set; then :
23060   withval=$with_cacerts_file;
23061 fi
23062 
23063   if test "x$with_cacerts_file" != x; then
23064     CACERTS_FILE=$with_cacerts_file
23065   fi
23066 
23067 
23068   ###############################################################################
23069   #
23070   # Enable or disable unlimited crypto
23071   #
23072   # Check whether --enable-unlimited-crypto was given.
23073 if test "${enable_unlimited_crypto+set}" = set; then :
23074   enableval=$enable_unlimited_crypto;
23075 else
23076   enable_unlimited_crypto=no
23077 fi
23078 
23079   if test "x$enable_unlimited_crypto" = "xyes"; then
23080     UNLIMITED_CRYPTO=true
23081   else
23082     UNLIMITED_CRYPTO=false
23083   fi
23084 
23085 
23086   ###############################################################################
23087   #
23088   # Enable or disable the elliptic curve crypto implementation
23089   #
23090 
23091 
23092   ###############################################################################
23093   #
23094   # Compress jars
23095   #
23096   COMPRESS_JARS=false
23097 
23098 
23099 
23100 
23101   # Source the version numbers
23102   . $AUTOCONF_DIR/version-numbers
23103 
23104   # Get the settings from parameters
23105 
23106 # Check whether --with-milestone was given.
23107 if test "${with_milestone+set}" = set; then :
23108   withval=$with_milestone;
23109 fi
23110 
23111   if test "x$with_milestone" = xyes; then
23112     as_fn_error $? "Milestone must have a value" "$LINENO" 5
23113   elif test "x$with_milestone" != x; then
23114     MILESTONE="$with_milestone"
23115   fi
23116   if test "x$MILESTONE" = x; then
23117     MILESTONE=internal
23118   fi
23119 
23120 
23121 # Check whether --with-update-version was given.
23122 if test "${with_update_version+set}" = set; then :
23123   withval=$with_update_version;
23124 fi
23125 
23126   if test "x$with_update_version" = xyes; then
23127     as_fn_error $? "Update version must have a value" "$LINENO" 5
23128   elif test "x$with_update_version" != x; then
23129     JDK_UPDATE_VERSION="$with_update_version"
23130     # On macosx 10.7, it's not possible to set --with-update-version=0X due
23131     # to a bug in expr (which reduces it to just X). To work around this, we
23132     # always add a 0 to one digit update versions.
23133     if test "${#JDK_UPDATE_VERSION}" = "1"; then
23134       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
23135     fi
23136   fi
23137 
23138 
23139 # Check whether --with-user-release-suffix was given.
23140 if test "${with_user_release_suffix+set}" = set; then :
23141   withval=$with_user_release_suffix;
23142 fi
23143 
23144   if test "x$with_user_release_suffix" = xyes; then
23145     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
23146   elif test "x$with_user_release_suffix" != x; then
23147     USER_RELEASE_SUFFIX="$with_user_release_suffix"
23148   fi
23149 
23150 
23151 # Check whether --with-build-number was given.
23152 if test "${with_build_number+set}" = set; then :
23153   withval=$with_build_number;
23154 fi
23155 
23156   if test "x$with_build_number" = xyes; then
23157     as_fn_error $? "Build number must have a value" "$LINENO" 5
23158   elif test "x$with_build_number" != x; then
23159     JDK_BUILD_NUMBER="$with_build_number"
23160   fi
23161   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
23162   if test "x$JDK_BUILD_NUMBER" = x; then
23163     JDK_BUILD_NUMBER=b00
23164     if test "x$USER_RELEASE_SUFFIX" = x; then
23165       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
23166       # Avoid [:alnum:] since it depends on the locale.
23167       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
23168       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23169     fi
23170   fi
23171 
23172   # Now set the JDK version, milestone, build number etc.
23173 
23174 
23175 
23176 
23177 
23178 
23179 
23180 
23181 
23182 
23183 
23184 
23185 
23186 
23187 
23188 
23189 # Check whether --with-copyright-year was given.
23190 if test "${with_copyright_year+set}" = set; then :
23191   withval=$with_copyright_year;
23192 fi
23193 
23194   if test "x$with_copyright_year" = xyes; then
23195     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23196   elif test "x$with_copyright_year" != x; then
23197     COPYRIGHT_YEAR="$with_copyright_year"
23198   else
23199     COPYRIGHT_YEAR=`date +'%Y'`
23200   fi
23201 
23202 
23203   if test "x$JDK_UPDATE_VERSION" != x; then
23204     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
23205   else
23206     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
23207   fi
23208 
23209 
23210   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
23211 
23212 
23213 
23214 ###############################################################################
23215 #
23216 # Setup BootJDK, used to bootstrap the build.
23217 #
23218 ###############################################################################
23219 
23220 
23221   BOOT_JDK_FOUND=no
23222 
23223 # Check whether --with-boot-jdk was given.
23224 if test "${with_boot_jdk+set}" = set; then :
23225   withval=$with_boot_jdk;
23226 fi
23227 
23228 
23229   # We look for the Boot JDK through various means, going from more certain to
23230   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23231   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23232   # must check if this is indeed valid; otherwise we'll continue looking.
23233 
23234   # Test: Is bootjdk explicitely set by command line arguments?
23235 
23236   if test "x$BOOT_JDK_FOUND" = xno; then
23237     # Now execute the test
23238 
23239   if test "x$with_boot_jdk" != x; then
23240     BOOT_JDK=$with_boot_jdk
23241     BOOT_JDK_FOUND=maybe
23242     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23243 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23244   fi
23245 
23246 
23247     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23248     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23249       # Do we have a bin/java?
23250       if test ! -x "$BOOT_JDK/bin/java"; then
23251         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23253         BOOT_JDK_FOUND=no
23254       else
23255         # Do we have a bin/javac?
23256         if test ! -x "$BOOT_JDK/bin/javac"; then
23257           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23258 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23259           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23260 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23261           BOOT_JDK_FOUND=no
23262         else
23263           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23264           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23265 
23266           # Extra M4 quote needed to protect [] in grep expression.
23267           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23268           if test "x$FOUND_CORRECT_VERSION" = x; then
23269             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23271             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23272 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23273             BOOT_JDK_FOUND=no
23274           else
23275             # We're done! :-)
23276             BOOT_JDK_FOUND=yes
23277 
23278   # Only process if variable expands to non-empty
23279 
23280   if test "x$BOOT_JDK" != x; then
23281     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23282 
23283   # Input might be given as Windows format, start by converting to
23284   # unix format.
23285   path="$BOOT_JDK"
23286   new_path=`$CYGPATH -u "$path"`
23287 
23288   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23289   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23290   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23291   # "foo.exe" is OK but "foo" is an error.
23292   #
23293   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23294   # It is also a way to make sure we got the proper file name for the real test later on.
23295   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23296   if test "x$test_shortpath" = x; then
23297     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23298 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23299     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23300   fi
23301 
23302   # Call helper function which possibly converts this using DOS-style short mode.
23303   # If so, the updated path is stored in $new_path.
23304 
23305   input_path="$new_path"
23306   # Check if we need to convert this using DOS-style short mode. If the path
23307   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23308   # take no chances and rewrite it.
23309   # Note: m4 eats our [], so we need to use [ and ] instead.
23310   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23311   if test "x$has_forbidden_chars" != x; then
23312     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23313     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23314     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23315     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23316       # Going to short mode and back again did indeed matter. Since short mode is
23317       # case insensitive, let's make it lowercase to improve readability.
23318       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23319       # Now convert it back to Unix-style (cygpath)
23320       input_path=`$CYGPATH -u "$shortmode_path"`
23321       new_path="$input_path"
23322     fi
23323   fi
23324 
23325   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23326   if test "x$test_cygdrive_prefix" = x; then
23327     # As a simple fix, exclude /usr/bin since it's not a real path.
23328     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23329       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23330       # a path prefixed by /cygdrive for fixpath to work.
23331       new_path="$CYGWIN_ROOT_PATH$input_path"
23332     fi
23333   fi
23334 
23335 
23336   if test "x$path" != "x$new_path"; then
23337     BOOT_JDK="$new_path"
23338     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23339 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23340   fi
23341 
23342     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23343 
23344   path="$BOOT_JDK"
23345   has_colon=`$ECHO $path | $GREP ^.:`
23346   new_path="$path"
23347   if test "x$has_colon" = x; then
23348     # Not in mixed or Windows style, start by that.
23349     new_path=`cmd //c echo $path`
23350   fi
23351 
23352 
23353   input_path="$new_path"
23354   # Check if we need to convert this using DOS-style short mode. If the path
23355   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23356   # take no chances and rewrite it.
23357   # Note: m4 eats our [], so we need to use [ and ] instead.
23358   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23359   if test "x$has_forbidden_chars" != x; then
23360     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23361     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23362   fi
23363 
23364 
23365   windows_path="$new_path"
23366   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23367     unix_path=`$CYGPATH -u "$windows_path"`
23368     new_path="$unix_path"
23369   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23370     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23371     new_path="$unix_path"
23372   fi
23373 
23374   if test "x$path" != "x$new_path"; then
23375     BOOT_JDK="$new_path"
23376     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23377 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23378   fi
23379 
23380   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23381   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23382 
23383     else
23384       # We're on a unix platform. Hooray! :)
23385       path="$BOOT_JDK"
23386       has_space=`$ECHO "$path" | $GREP " "`
23387       if test "x$has_space" != x; then
23388         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23389 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23390         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23391       fi
23392 
23393       # Use eval to expand a potential ~
23394       eval path="$path"
23395       if test ! -f "$path" && test ! -d "$path"; then
23396         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23397       fi
23398 
23399       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23400     fi
23401   fi
23402 
23403             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23404 $as_echo_n "checking for Boot JDK... " >&6; }
23405             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23406 $as_echo "$BOOT_JDK" >&6; }
23407             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23408 $as_echo_n "checking Boot JDK version... " >&6; }
23409             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23410             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23411 $as_echo "$BOOT_JDK_VERSION" >&6; }
23412           fi # end check jdk version
23413         fi # end check javac
23414       fi # end check java
23415     fi # end check boot jdk found
23416   fi
23417 
23418   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23419     # Having specified an argument which is incorrect will produce an instant failure;
23420     # we should not go on looking
23421     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23422   fi
23423 
23424   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23425 
23426   if test "x$BOOT_JDK_FOUND" = xno; then
23427     # Now execute the test
23428 
23429   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23430     # First check at user selected default
23431 
23432   if test "x$BOOT_JDK_FOUND" = xno; then
23433     # Now execute the test
23434 
23435   if test -x /usr/libexec/java_home; then
23436     BOOT_JDK=`/usr/libexec/java_home `
23437     BOOT_JDK_FOUND=maybe
23438     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23439 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23440   fi
23441 
23442 
23443     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23444     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23445       # Do we have a bin/java?
23446       if test ! -x "$BOOT_JDK/bin/java"; then
23447         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23449         BOOT_JDK_FOUND=no
23450       else
23451         # Do we have a bin/javac?
23452         if test ! -x "$BOOT_JDK/bin/javac"; then
23453           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23455           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23456 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23457           BOOT_JDK_FOUND=no
23458         else
23459           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23460           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23461 
23462           # Extra M4 quote needed to protect [] in grep expression.
23463           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23464           if test "x$FOUND_CORRECT_VERSION" = x; then
23465             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23467             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23468 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23469             BOOT_JDK_FOUND=no
23470           else
23471             # We're done! :-)
23472             BOOT_JDK_FOUND=yes
23473 
23474   # Only process if variable expands to non-empty
23475 
23476   if test "x$BOOT_JDK" != x; then
23477     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23478 
23479   # Input might be given as Windows format, start by converting to
23480   # unix format.
23481   path="$BOOT_JDK"
23482   new_path=`$CYGPATH -u "$path"`
23483 
23484   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23485   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23486   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23487   # "foo.exe" is OK but "foo" is an error.
23488   #
23489   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23490   # It is also a way to make sure we got the proper file name for the real test later on.
23491   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23492   if test "x$test_shortpath" = x; then
23493     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23494 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23495     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23496   fi
23497 
23498   # Call helper function which possibly converts this using DOS-style short mode.
23499   # If so, the updated path is stored in $new_path.
23500 
23501   input_path="$new_path"
23502   # Check if we need to convert this using DOS-style short mode. If the path
23503   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23504   # take no chances and rewrite it.
23505   # Note: m4 eats our [], so we need to use [ and ] instead.
23506   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23507   if test "x$has_forbidden_chars" != x; then
23508     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23509     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23510     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23511     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23512       # Going to short mode and back again did indeed matter. Since short mode is
23513       # case insensitive, let's make it lowercase to improve readability.
23514       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23515       # Now convert it back to Unix-style (cygpath)
23516       input_path=`$CYGPATH -u "$shortmode_path"`
23517       new_path="$input_path"
23518     fi
23519   fi
23520 
23521   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23522   if test "x$test_cygdrive_prefix" = x; then
23523     # As a simple fix, exclude /usr/bin since it's not a real path.
23524     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23525       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23526       # a path prefixed by /cygdrive for fixpath to work.
23527       new_path="$CYGWIN_ROOT_PATH$input_path"
23528     fi
23529   fi
23530 
23531 
23532   if test "x$path" != "x$new_path"; then
23533     BOOT_JDK="$new_path"
23534     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23535 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23536   fi
23537 
23538     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23539 
23540   path="$BOOT_JDK"
23541   has_colon=`$ECHO $path | $GREP ^.:`
23542   new_path="$path"
23543   if test "x$has_colon" = x; then
23544     # Not in mixed or Windows style, start by that.
23545     new_path=`cmd //c echo $path`
23546   fi
23547 
23548 
23549   input_path="$new_path"
23550   # Check if we need to convert this using DOS-style short mode. If the path
23551   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23552   # take no chances and rewrite it.
23553   # Note: m4 eats our [], so we need to use [ and ] instead.
23554   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23555   if test "x$has_forbidden_chars" != x; then
23556     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23557     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23558   fi
23559 
23560 
23561   windows_path="$new_path"
23562   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23563     unix_path=`$CYGPATH -u "$windows_path"`
23564     new_path="$unix_path"
23565   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23566     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23567     new_path="$unix_path"
23568   fi
23569 
23570   if test "x$path" != "x$new_path"; then
23571     BOOT_JDK="$new_path"
23572     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23573 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23574   fi
23575 
23576   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23577   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23578 
23579     else
23580       # We're on a unix platform. Hooray! :)
23581       path="$BOOT_JDK"
23582       has_space=`$ECHO "$path" | $GREP " "`
23583       if test "x$has_space" != x; then
23584         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23585 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23586         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23587       fi
23588 
23589       # Use eval to expand a potential ~
23590       eval path="$path"
23591       if test ! -f "$path" && test ! -d "$path"; then
23592         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23593       fi
23594 
23595       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23596     fi
23597   fi
23598 
23599             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23600 $as_echo_n "checking for Boot JDK... " >&6; }
23601             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23602 $as_echo "$BOOT_JDK" >&6; }
23603             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23604 $as_echo_n "checking Boot JDK version... " >&6; }
23605             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23607 $as_echo "$BOOT_JDK_VERSION" >&6; }
23608           fi # end check jdk version
23609         fi # end check javac
23610       fi # end check java
23611     fi # end check boot jdk found
23612   fi
23613 
23614     # If that did not work out (e.g. too old), try explicit versions instead
23615 
23616   if test "x$BOOT_JDK_FOUND" = xno; then
23617     # Now execute the test
23618 
23619   if test -x /usr/libexec/java_home; then
23620     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
23621     BOOT_JDK_FOUND=maybe
23622     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
23623 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
23624   fi
23625 
23626 
23627     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23628     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23629       # Do we have a bin/java?
23630       if test ! -x "$BOOT_JDK/bin/java"; then
23631         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23633         BOOT_JDK_FOUND=no
23634       else
23635         # Do we have a bin/javac?
23636         if test ! -x "$BOOT_JDK/bin/javac"; then
23637           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23638 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23639           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23640 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23641           BOOT_JDK_FOUND=no
23642         else
23643           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23644           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23645 
23646           # Extra M4 quote needed to protect [] in grep expression.
23647           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23648           if test "x$FOUND_CORRECT_VERSION" = x; then
23649             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23651             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23652 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23653             BOOT_JDK_FOUND=no
23654           else
23655             # We're done! :-)
23656             BOOT_JDK_FOUND=yes
23657 
23658   # Only process if variable expands to non-empty
23659 
23660   if test "x$BOOT_JDK" != x; then
23661     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23662 
23663   # Input might be given as Windows format, start by converting to
23664   # unix format.
23665   path="$BOOT_JDK"
23666   new_path=`$CYGPATH -u "$path"`
23667 
23668   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23669   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23670   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23671   # "foo.exe" is OK but "foo" is an error.
23672   #
23673   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23674   # It is also a way to make sure we got the proper file name for the real test later on.
23675   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23676   if test "x$test_shortpath" = x; then
23677     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23679     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23680   fi
23681 
23682   # Call helper function which possibly converts this using DOS-style short mode.
23683   # If so, the updated path is stored in $new_path.
23684 
23685   input_path="$new_path"
23686   # Check if we need to convert this using DOS-style short mode. If the path
23687   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23688   # take no chances and rewrite it.
23689   # Note: m4 eats our [], so we need to use [ and ] instead.
23690   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23691   if test "x$has_forbidden_chars" != x; then
23692     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23693     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23694     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23695     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23696       # Going to short mode and back again did indeed matter. Since short mode is
23697       # case insensitive, let's make it lowercase to improve readability.
23698       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23699       # Now convert it back to Unix-style (cygpath)
23700       input_path=`$CYGPATH -u "$shortmode_path"`
23701       new_path="$input_path"
23702     fi
23703   fi
23704 
23705   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23706   if test "x$test_cygdrive_prefix" = x; then
23707     # As a simple fix, exclude /usr/bin since it's not a real path.
23708     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23709       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23710       # a path prefixed by /cygdrive for fixpath to work.
23711       new_path="$CYGWIN_ROOT_PATH$input_path"
23712     fi
23713   fi
23714 
23715 
23716   if test "x$path" != "x$new_path"; then
23717     BOOT_JDK="$new_path"
23718     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23720   fi
23721 
23722     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23723 
23724   path="$BOOT_JDK"
23725   has_colon=`$ECHO $path | $GREP ^.:`
23726   new_path="$path"
23727   if test "x$has_colon" = x; then
23728     # Not in mixed or Windows style, start by that.
23729     new_path=`cmd //c echo $path`
23730   fi
23731 
23732 
23733   input_path="$new_path"
23734   # Check if we need to convert this using DOS-style short mode. If the path
23735   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23736   # take no chances and rewrite it.
23737   # Note: m4 eats our [], so we need to use [ and ] instead.
23738   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23739   if test "x$has_forbidden_chars" != x; then
23740     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23741     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23742   fi
23743 
23744 
23745   windows_path="$new_path"
23746   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23747     unix_path=`$CYGPATH -u "$windows_path"`
23748     new_path="$unix_path"
23749   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23750     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23751     new_path="$unix_path"
23752   fi
23753 
23754   if test "x$path" != "x$new_path"; then
23755     BOOT_JDK="$new_path"
23756     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23758   fi
23759 
23760   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23761   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23762 
23763     else
23764       # We're on a unix platform. Hooray! :)
23765       path="$BOOT_JDK"
23766       has_space=`$ECHO "$path" | $GREP " "`
23767       if test "x$has_space" != x; then
23768         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23770         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23771       fi
23772 
23773       # Use eval to expand a potential ~
23774       eval path="$path"
23775       if test ! -f "$path" && test ! -d "$path"; then
23776         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23777       fi
23778 
23779       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23780     fi
23781   fi
23782 
23783             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23784 $as_echo_n "checking for Boot JDK... " >&6; }
23785             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23786 $as_echo "$BOOT_JDK" >&6; }
23787             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23788 $as_echo_n "checking Boot JDK version... " >&6; }
23789             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23791 $as_echo "$BOOT_JDK_VERSION" >&6; }
23792           fi # end check jdk version
23793         fi # end check javac
23794       fi # end check java
23795     fi # end check boot jdk found
23796   fi
23797 
23798 
23799   if test "x$BOOT_JDK_FOUND" = xno; then
23800     # Now execute the test
23801 
23802   if test -x /usr/libexec/java_home; then
23803     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
23804     BOOT_JDK_FOUND=maybe
23805     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
23806 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
23807   fi
23808 
23809 
23810     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23811     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23812       # Do we have a bin/java?
23813       if test ! -x "$BOOT_JDK/bin/java"; then
23814         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23816         BOOT_JDK_FOUND=no
23817       else
23818         # Do we have a bin/javac?
23819         if test ! -x "$BOOT_JDK/bin/javac"; then
23820           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23822           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23823 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23824           BOOT_JDK_FOUND=no
23825         else
23826           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23827           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23828 
23829           # Extra M4 quote needed to protect [] in grep expression.
23830           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23831           if test "x$FOUND_CORRECT_VERSION" = x; then
23832             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23834             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23835 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23836             BOOT_JDK_FOUND=no
23837           else
23838             # We're done! :-)
23839             BOOT_JDK_FOUND=yes
23840 
23841   # Only process if variable expands to non-empty
23842 
23843   if test "x$BOOT_JDK" != x; then
23844     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23845 
23846   # Input might be given as Windows format, start by converting to
23847   # unix format.
23848   path="$BOOT_JDK"
23849   new_path=`$CYGPATH -u "$path"`
23850 
23851   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23852   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23853   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23854   # "foo.exe" is OK but "foo" is an error.
23855   #
23856   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23857   # It is also a way to make sure we got the proper file name for the real test later on.
23858   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23859   if test "x$test_shortpath" = x; then
23860     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23862     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23863   fi
23864 
23865   # Call helper function which possibly converts this using DOS-style short mode.
23866   # If so, the updated path is stored in $new_path.
23867 
23868   input_path="$new_path"
23869   # Check if we need to convert this using DOS-style short mode. If the path
23870   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23871   # take no chances and rewrite it.
23872   # Note: m4 eats our [], so we need to use [ and ] instead.
23873   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23874   if test "x$has_forbidden_chars" != x; then
23875     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23876     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23877     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23878     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23879       # Going to short mode and back again did indeed matter. Since short mode is
23880       # case insensitive, let's make it lowercase to improve readability.
23881       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23882       # Now convert it back to Unix-style (cygpath)
23883       input_path=`$CYGPATH -u "$shortmode_path"`
23884       new_path="$input_path"
23885     fi
23886   fi
23887 
23888   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23889   if test "x$test_cygdrive_prefix" = x; then
23890     # As a simple fix, exclude /usr/bin since it's not a real path.
23891     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23892       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23893       # a path prefixed by /cygdrive for fixpath to work.
23894       new_path="$CYGWIN_ROOT_PATH$input_path"
23895     fi
23896   fi
23897 
23898 
23899   if test "x$path" != "x$new_path"; then
23900     BOOT_JDK="$new_path"
23901     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23902 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23903   fi
23904 
23905     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23906 
23907   path="$BOOT_JDK"
23908   has_colon=`$ECHO $path | $GREP ^.:`
23909   new_path="$path"
23910   if test "x$has_colon" = x; then
23911     # Not in mixed or Windows style, start by that.
23912     new_path=`cmd //c echo $path`
23913   fi
23914 
23915 
23916   input_path="$new_path"
23917   # Check if we need to convert this using DOS-style short mode. If the path
23918   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23919   # take no chances and rewrite it.
23920   # Note: m4 eats our [], so we need to use [ and ] instead.
23921   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23922   if test "x$has_forbidden_chars" != x; then
23923     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23924     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23925   fi
23926 
23927 
23928   windows_path="$new_path"
23929   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23930     unix_path=`$CYGPATH -u "$windows_path"`
23931     new_path="$unix_path"
23932   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23933     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23934     new_path="$unix_path"
23935   fi
23936 
23937   if test "x$path" != "x$new_path"; then
23938     BOOT_JDK="$new_path"
23939     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23940 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23941   fi
23942 
23943   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23944   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23945 
23946     else
23947       # We're on a unix platform. Hooray! :)
23948       path="$BOOT_JDK"
23949       has_space=`$ECHO "$path" | $GREP " "`
23950       if test "x$has_space" != x; then
23951         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23952 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23953         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23954       fi
23955 
23956       # Use eval to expand a potential ~
23957       eval path="$path"
23958       if test ! -f "$path" && test ! -d "$path"; then
23959         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23960       fi
23961 
23962       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23963     fi
23964   fi
23965 
23966             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23967 $as_echo_n "checking for Boot JDK... " >&6; }
23968             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23969 $as_echo "$BOOT_JDK" >&6; }
23970             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23971 $as_echo_n "checking Boot JDK version... " >&6; }
23972             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23973             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23974 $as_echo "$BOOT_JDK_VERSION" >&6; }
23975           fi # end check jdk version
23976         fi # end check javac
23977       fi # end check java
23978     fi # end check boot jdk found
23979   fi
23980 
23981 
23982   if test "x$BOOT_JDK_FOUND" = xno; then
23983     # Now execute the test
23984 
23985   if test -x /usr/libexec/java_home; then
23986     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
23987     BOOT_JDK_FOUND=maybe
23988     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
23989 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
23990   fi
23991 
23992 
23993     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23994     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23995       # Do we have a bin/java?
23996       if test ! -x "$BOOT_JDK/bin/java"; then
23997         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23999         BOOT_JDK_FOUND=no
24000       else
24001         # Do we have a bin/javac?
24002         if test ! -x "$BOOT_JDK/bin/javac"; then
24003           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24005           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24006 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24007           BOOT_JDK_FOUND=no
24008         else
24009           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24010           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24011 
24012           # Extra M4 quote needed to protect [] in grep expression.
24013           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24014           if test "x$FOUND_CORRECT_VERSION" = x; then
24015             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24016 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24017             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24018 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24019             BOOT_JDK_FOUND=no
24020           else
24021             # We're done! :-)
24022             BOOT_JDK_FOUND=yes
24023 
24024   # Only process if variable expands to non-empty
24025 
24026   if test "x$BOOT_JDK" != x; then
24027     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24028 
24029   # Input might be given as Windows format, start by converting to
24030   # unix format.
24031   path="$BOOT_JDK"
24032   new_path=`$CYGPATH -u "$path"`
24033 
24034   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24035   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24036   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24037   # "foo.exe" is OK but "foo" is an error.
24038   #
24039   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24040   # It is also a way to make sure we got the proper file name for the real test later on.
24041   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24042   if test "x$test_shortpath" = x; then
24043     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24044 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24045     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24046   fi
24047 
24048   # Call helper function which possibly converts this using DOS-style short mode.
24049   # If so, the updated path is stored in $new_path.
24050 
24051   input_path="$new_path"
24052   # Check if we need to convert this using DOS-style short mode. If the path
24053   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24054   # take no chances and rewrite it.
24055   # Note: m4 eats our [], so we need to use [ and ] instead.
24056   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24057   if test "x$has_forbidden_chars" != x; then
24058     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24059     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24060     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24061     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24062       # Going to short mode and back again did indeed matter. Since short mode is
24063       # case insensitive, let's make it lowercase to improve readability.
24064       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24065       # Now convert it back to Unix-style (cygpath)
24066       input_path=`$CYGPATH -u "$shortmode_path"`
24067       new_path="$input_path"
24068     fi
24069   fi
24070 
24071   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24072   if test "x$test_cygdrive_prefix" = x; then
24073     # As a simple fix, exclude /usr/bin since it's not a real path.
24074     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24075       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24076       # a path prefixed by /cygdrive for fixpath to work.
24077       new_path="$CYGWIN_ROOT_PATH$input_path"
24078     fi
24079   fi
24080 
24081 
24082   if test "x$path" != "x$new_path"; then
24083     BOOT_JDK="$new_path"
24084     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24085 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24086   fi
24087 
24088     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24089 
24090   path="$BOOT_JDK"
24091   has_colon=`$ECHO $path | $GREP ^.:`
24092   new_path="$path"
24093   if test "x$has_colon" = x; then
24094     # Not in mixed or Windows style, start by that.
24095     new_path=`cmd //c echo $path`
24096   fi
24097 
24098 
24099   input_path="$new_path"
24100   # Check if we need to convert this using DOS-style short mode. If the path
24101   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24102   # take no chances and rewrite it.
24103   # Note: m4 eats our [], so we need to use [ and ] instead.
24104   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24105   if test "x$has_forbidden_chars" != x; then
24106     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24107     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24108   fi
24109 
24110 
24111   windows_path="$new_path"
24112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24113     unix_path=`$CYGPATH -u "$windows_path"`
24114     new_path="$unix_path"
24115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24116     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24117     new_path="$unix_path"
24118   fi
24119 
24120   if test "x$path" != "x$new_path"; then
24121     BOOT_JDK="$new_path"
24122     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24124   fi
24125 
24126   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24127   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24128 
24129     else
24130       # We're on a unix platform. Hooray! :)
24131       path="$BOOT_JDK"
24132       has_space=`$ECHO "$path" | $GREP " "`
24133       if test "x$has_space" != x; then
24134         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24135 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24136         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24137       fi
24138 
24139       # Use eval to expand a potential ~
24140       eval path="$path"
24141       if test ! -f "$path" && test ! -d "$path"; then
24142         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24143       fi
24144 
24145       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24146     fi
24147   fi
24148 
24149             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24150 $as_echo_n "checking for Boot JDK... " >&6; }
24151             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24152 $as_echo "$BOOT_JDK" >&6; }
24153             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24154 $as_echo_n "checking Boot JDK version... " >&6; }
24155             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24156             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24157 $as_echo "$BOOT_JDK_VERSION" >&6; }
24158           fi # end check jdk version
24159         fi # end check javac
24160       fi # end check java
24161     fi # end check boot jdk found
24162   fi
24163 
24164   fi
24165 
24166 
24167     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24168     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24169       # Do we have a bin/java?
24170       if test ! -x "$BOOT_JDK/bin/java"; then
24171         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24172 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24173         BOOT_JDK_FOUND=no
24174       else
24175         # Do we have a bin/javac?
24176         if test ! -x "$BOOT_JDK/bin/javac"; then
24177           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24179           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24180 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24181           BOOT_JDK_FOUND=no
24182         else
24183           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24184           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24185 
24186           # Extra M4 quote needed to protect [] in grep expression.
24187           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24188           if test "x$FOUND_CORRECT_VERSION" = x; then
24189             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24190 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24191             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24192 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24193             BOOT_JDK_FOUND=no
24194           else
24195             # We're done! :-)
24196             BOOT_JDK_FOUND=yes
24197 
24198   # Only process if variable expands to non-empty
24199 
24200   if test "x$BOOT_JDK" != x; then
24201     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24202 
24203   # Input might be given as Windows format, start by converting to
24204   # unix format.
24205   path="$BOOT_JDK"
24206   new_path=`$CYGPATH -u "$path"`
24207 
24208   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24209   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24210   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24211   # "foo.exe" is OK but "foo" is an error.
24212   #
24213   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24214   # It is also a way to make sure we got the proper file name for the real test later on.
24215   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24216   if test "x$test_shortpath" = x; then
24217     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24218 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24219     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24220   fi
24221 
24222   # Call helper function which possibly converts this using DOS-style short mode.
24223   # If so, the updated path is stored in $new_path.
24224 
24225   input_path="$new_path"
24226   # Check if we need to convert this using DOS-style short mode. If the path
24227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24228   # take no chances and rewrite it.
24229   # Note: m4 eats our [], so we need to use [ and ] instead.
24230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24231   if test "x$has_forbidden_chars" != x; then
24232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24233     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24234     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24235     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24236       # Going to short mode and back again did indeed matter. Since short mode is
24237       # case insensitive, let's make it lowercase to improve readability.
24238       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24239       # Now convert it back to Unix-style (cygpath)
24240       input_path=`$CYGPATH -u "$shortmode_path"`
24241       new_path="$input_path"
24242     fi
24243   fi
24244 
24245   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24246   if test "x$test_cygdrive_prefix" = x; then
24247     # As a simple fix, exclude /usr/bin since it's not a real path.
24248     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24249       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24250       # a path prefixed by /cygdrive for fixpath to work.
24251       new_path="$CYGWIN_ROOT_PATH$input_path"
24252     fi
24253   fi
24254 
24255 
24256   if test "x$path" != "x$new_path"; then
24257     BOOT_JDK="$new_path"
24258     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24259 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24260   fi
24261 
24262     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24263 
24264   path="$BOOT_JDK"
24265   has_colon=`$ECHO $path | $GREP ^.:`
24266   new_path="$path"
24267   if test "x$has_colon" = x; then
24268     # Not in mixed or Windows style, start by that.
24269     new_path=`cmd //c echo $path`
24270   fi
24271 
24272 
24273   input_path="$new_path"
24274   # Check if we need to convert this using DOS-style short mode. If the path
24275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24276   # take no chances and rewrite it.
24277   # Note: m4 eats our [], so we need to use [ and ] instead.
24278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24279   if test "x$has_forbidden_chars" != x; then
24280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24281     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24282   fi
24283 
24284 
24285   windows_path="$new_path"
24286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24287     unix_path=`$CYGPATH -u "$windows_path"`
24288     new_path="$unix_path"
24289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24291     new_path="$unix_path"
24292   fi
24293 
24294   if test "x$path" != "x$new_path"; then
24295     BOOT_JDK="$new_path"
24296     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24298   fi
24299 
24300   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24301   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24302 
24303     else
24304       # We're on a unix platform. Hooray! :)
24305       path="$BOOT_JDK"
24306       has_space=`$ECHO "$path" | $GREP " "`
24307       if test "x$has_space" != x; then
24308         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24309 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24310         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24311       fi
24312 
24313       # Use eval to expand a potential ~
24314       eval path="$path"
24315       if test ! -f "$path" && test ! -d "$path"; then
24316         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24317       fi
24318 
24319       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24320     fi
24321   fi
24322 
24323             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24324 $as_echo_n "checking for Boot JDK... " >&6; }
24325             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24326 $as_echo "$BOOT_JDK" >&6; }
24327             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24328 $as_echo_n "checking Boot JDK version... " >&6; }
24329             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24330             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24331 $as_echo "$BOOT_JDK_VERSION" >&6; }
24332           fi # end check jdk version
24333         fi # end check javac
24334       fi # end check java
24335     fi # end check boot jdk found
24336   fi
24337 
24338 
24339   # Test: Is $JAVA_HOME set?
24340 
24341   if test "x$BOOT_JDK_FOUND" = xno; then
24342     # Now execute the test
24343 
24344   if test "x$JAVA_HOME" != x; then
24345     JAVA_HOME_PROCESSED="$JAVA_HOME"
24346 
24347   # Only process if variable expands to non-empty
24348 
24349   if test "x$JAVA_HOME_PROCESSED" != x; then
24350     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24351 
24352   # Input might be given as Windows format, start by converting to
24353   # unix format.
24354   path="$JAVA_HOME_PROCESSED"
24355   new_path=`$CYGPATH -u "$path"`
24356 
24357   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24358   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24359   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24360   # "foo.exe" is OK but "foo" is an error.
24361   #
24362   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24363   # It is also a way to make sure we got the proper file name for the real test later on.
24364   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24365   if test "x$test_shortpath" = x; then
24366     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24367 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24368     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24369   fi
24370 
24371   # Call helper function which possibly converts this using DOS-style short mode.
24372   # If so, the updated path is stored in $new_path.
24373 
24374   input_path="$new_path"
24375   # Check if we need to convert this using DOS-style short mode. If the path
24376   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24377   # take no chances and rewrite it.
24378   # Note: m4 eats our [], so we need to use [ and ] instead.
24379   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24380   if test "x$has_forbidden_chars" != x; then
24381     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24382     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24383     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24384     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24385       # Going to short mode and back again did indeed matter. Since short mode is
24386       # case insensitive, let's make it lowercase to improve readability.
24387       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24388       # Now convert it back to Unix-style (cygpath)
24389       input_path=`$CYGPATH -u "$shortmode_path"`
24390       new_path="$input_path"
24391     fi
24392   fi
24393 
24394   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24395   if test "x$test_cygdrive_prefix" = x; then
24396     # As a simple fix, exclude /usr/bin since it's not a real path.
24397     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24398       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24399       # a path prefixed by /cygdrive for fixpath to work.
24400       new_path="$CYGWIN_ROOT_PATH$input_path"
24401     fi
24402   fi
24403 
24404 
24405   if test "x$path" != "x$new_path"; then
24406     JAVA_HOME_PROCESSED="$new_path"
24407     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24408 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24409   fi
24410 
24411     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24412 
24413   path="$JAVA_HOME_PROCESSED"
24414   has_colon=`$ECHO $path | $GREP ^.:`
24415   new_path="$path"
24416   if test "x$has_colon" = x; then
24417     # Not in mixed or Windows style, start by that.
24418     new_path=`cmd //c echo $path`
24419   fi
24420 
24421 
24422   input_path="$new_path"
24423   # Check if we need to convert this using DOS-style short mode. If the path
24424   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24425   # take no chances and rewrite it.
24426   # Note: m4 eats our [], so we need to use [ and ] instead.
24427   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24428   if test "x$has_forbidden_chars" != x; then
24429     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24430     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24431   fi
24432 
24433 
24434   windows_path="$new_path"
24435   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24436     unix_path=`$CYGPATH -u "$windows_path"`
24437     new_path="$unix_path"
24438   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24439     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24440     new_path="$unix_path"
24441   fi
24442 
24443   if test "x$path" != "x$new_path"; then
24444     JAVA_HOME_PROCESSED="$new_path"
24445     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24446 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24447   fi
24448 
24449   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24450   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24451 
24452     else
24453       # We're on a unix platform. Hooray! :)
24454       path="$JAVA_HOME_PROCESSED"
24455       has_space=`$ECHO "$path" | $GREP " "`
24456       if test "x$has_space" != x; then
24457         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24458 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24459         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24460       fi
24461 
24462       # Use eval to expand a potential ~
24463       eval path="$path"
24464       if test ! -f "$path" && test ! -d "$path"; then
24465         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24466       fi
24467 
24468       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24469     fi
24470   fi
24471 
24472     if test ! -d "$JAVA_HOME_PROCESSED"; then
24473       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24474 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24475     else
24476       # Aha, the user has set a JAVA_HOME
24477       # let us use that as the Boot JDK.
24478       BOOT_JDK="$JAVA_HOME_PROCESSED"
24479       BOOT_JDK_FOUND=maybe
24480       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24481 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24482     fi
24483   fi
24484 
24485 
24486     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24487     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24488       # Do we have a bin/java?
24489       if test ! -x "$BOOT_JDK/bin/java"; then
24490         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24492         BOOT_JDK_FOUND=no
24493       else
24494         # Do we have a bin/javac?
24495         if test ! -x "$BOOT_JDK/bin/javac"; then
24496           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24498           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24499 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24500           BOOT_JDK_FOUND=no
24501         else
24502           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24503           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24504 
24505           # Extra M4 quote needed to protect [] in grep expression.
24506           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24507           if test "x$FOUND_CORRECT_VERSION" = x; then
24508             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24510             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24511 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24512             BOOT_JDK_FOUND=no
24513           else
24514             # We're done! :-)
24515             BOOT_JDK_FOUND=yes
24516 
24517   # Only process if variable expands to non-empty
24518 
24519   if test "x$BOOT_JDK" != x; then
24520     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24521 
24522   # Input might be given as Windows format, start by converting to
24523   # unix format.
24524   path="$BOOT_JDK"
24525   new_path=`$CYGPATH -u "$path"`
24526 
24527   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24528   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24529   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24530   # "foo.exe" is OK but "foo" is an error.
24531   #
24532   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24533   # It is also a way to make sure we got the proper file name for the real test later on.
24534   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24535   if test "x$test_shortpath" = x; then
24536     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24537 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24538     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24539   fi
24540 
24541   # Call helper function which possibly converts this using DOS-style short mode.
24542   # If so, the updated path is stored in $new_path.
24543 
24544   input_path="$new_path"
24545   # Check if we need to convert this using DOS-style short mode. If the path
24546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24547   # take no chances and rewrite it.
24548   # Note: m4 eats our [], so we need to use [ and ] instead.
24549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24550   if test "x$has_forbidden_chars" != x; then
24551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24552     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24553     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24554     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24555       # Going to short mode and back again did indeed matter. Since short mode is
24556       # case insensitive, let's make it lowercase to improve readability.
24557       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24558       # Now convert it back to Unix-style (cygpath)
24559       input_path=`$CYGPATH -u "$shortmode_path"`
24560       new_path="$input_path"
24561     fi
24562   fi
24563 
24564   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24565   if test "x$test_cygdrive_prefix" = x; then
24566     # As a simple fix, exclude /usr/bin since it's not a real path.
24567     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24568       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24569       # a path prefixed by /cygdrive for fixpath to work.
24570       new_path="$CYGWIN_ROOT_PATH$input_path"
24571     fi
24572   fi
24573 
24574 
24575   if test "x$path" != "x$new_path"; then
24576     BOOT_JDK="$new_path"
24577     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24578 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24579   fi
24580 
24581     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24582 
24583   path="$BOOT_JDK"
24584   has_colon=`$ECHO $path | $GREP ^.:`
24585   new_path="$path"
24586   if test "x$has_colon" = x; then
24587     # Not in mixed or Windows style, start by that.
24588     new_path=`cmd //c echo $path`
24589   fi
24590 
24591 
24592   input_path="$new_path"
24593   # Check if we need to convert this using DOS-style short mode. If the path
24594   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24595   # take no chances and rewrite it.
24596   # Note: m4 eats our [], so we need to use [ and ] instead.
24597   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24598   if test "x$has_forbidden_chars" != x; then
24599     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24600     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24601   fi
24602 
24603 
24604   windows_path="$new_path"
24605   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24606     unix_path=`$CYGPATH -u "$windows_path"`
24607     new_path="$unix_path"
24608   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24609     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24610     new_path="$unix_path"
24611   fi
24612 
24613   if test "x$path" != "x$new_path"; then
24614     BOOT_JDK="$new_path"
24615     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24616 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24617   fi
24618 
24619   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24620   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24621 
24622     else
24623       # We're on a unix platform. Hooray! :)
24624       path="$BOOT_JDK"
24625       has_space=`$ECHO "$path" | $GREP " "`
24626       if test "x$has_space" != x; then
24627         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24628 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24629         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24630       fi
24631 
24632       # Use eval to expand a potential ~
24633       eval path="$path"
24634       if test ! -f "$path" && test ! -d "$path"; then
24635         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24636       fi
24637 
24638       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24639     fi
24640   fi
24641 
24642             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24643 $as_echo_n "checking for Boot JDK... " >&6; }
24644             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24645 $as_echo "$BOOT_JDK" >&6; }
24646             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24647 $as_echo_n "checking Boot JDK version... " >&6; }
24648             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24649             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24650 $as_echo "$BOOT_JDK_VERSION" >&6; }
24651           fi # end check jdk version
24652         fi # end check javac
24653       fi # end check java
24654     fi # end check boot jdk found
24655   fi
24656 
24657 
24658   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
24659 
24660   if test "x$BOOT_JDK_FOUND" = xno; then
24661     # Now execute the test
24662 
24663   # Extract the first word of "javac", so it can be a program name with args.
24664 set dummy javac; ac_word=$2
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24666 $as_echo_n "checking for $ac_word... " >&6; }
24667 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
24668   $as_echo_n "(cached) " >&6
24669 else
24670   case $JAVAC_CHECK in
24671   [\\/]* | ?:[\\/]*)
24672   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
24673   ;;
24674   *)
24675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24676 for as_dir in $PATH
24677 do
24678   IFS=$as_save_IFS
24679   test -z "$as_dir" && as_dir=.
24680     for ac_exec_ext in '' $ac_executable_extensions; do
24681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24682     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24684     break 2
24685   fi
24686 done
24687   done
24688 IFS=$as_save_IFS
24689 
24690   ;;
24691 esac
24692 fi
24693 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
24694 if test -n "$JAVAC_CHECK"; then
24695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
24696 $as_echo "$JAVAC_CHECK" >&6; }
24697 else
24698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24699 $as_echo "no" >&6; }
24700 fi
24701 
24702 
24703   # Extract the first word of "java", so it can be a program name with args.
24704 set dummy java; ac_word=$2
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24706 $as_echo_n "checking for $ac_word... " >&6; }
24707 if ${ac_cv_path_JAVA_CHECK+:} false; then :
24708   $as_echo_n "(cached) " >&6
24709 else
24710   case $JAVA_CHECK in
24711   [\\/]* | ?:[\\/]*)
24712   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
24713   ;;
24714   *)
24715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24716 for as_dir in $PATH
24717 do
24718   IFS=$as_save_IFS
24719   test -z "$as_dir" && as_dir=.
24720     for ac_exec_ext in '' $ac_executable_extensions; do
24721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24722     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
24723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24724     break 2
24725   fi
24726 done
24727   done
24728 IFS=$as_save_IFS
24729 
24730   ;;
24731 esac
24732 fi
24733 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
24734 if test -n "$JAVA_CHECK"; then
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
24736 $as_echo "$JAVA_CHECK" >&6; }
24737 else
24738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24739 $as_echo "no" >&6; }
24740 fi
24741 
24742 
24743   BINARY="$JAVAC_CHECK"
24744   if test "x$JAVAC_CHECK" = x; then
24745     BINARY="$JAVA_CHECK"
24746   fi
24747   if test "x$BINARY" != x; then
24748     # So there is a java(c) binary, it might be part of a JDK.
24749     # Lets find the JDK/JRE directory by following symbolic links.
24750     # Linux/GNU systems often have links from /usr/bin/java to
24751     # /etc/alternatives/java to the real JDK binary.
24752 
24753   if test "x$OPENJDK_BUILD_OS" != xwindows; then
24754     # Follow a chain of symbolic links. Use readlink
24755     # where it exists, else fall back to horribly
24756     # complicated shell code.
24757     if test "x$READLINK_TESTED" != yes; then
24758       # On MacOSX there is a readlink tool with a different
24759       # purpose than the GNU readlink tool. Check the found readlink.
24760       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
24761       if test "x$ISGNU" = x; then
24762         # A readlink that we do not know how to use.
24763         # Are there other non-GNU readlinks out there?
24764         READLINK_TESTED=yes
24765         READLINK=
24766       fi
24767     fi
24768 
24769     if test "x$READLINK" != x; then
24770       BINARY=`$READLINK -f $BINARY`
24771     else
24772       # Save the current directory for restoring afterwards
24773       STARTDIR=$PWD
24774       COUNTER=0
24775       sym_link_dir=`$DIRNAME $BINARY`
24776       sym_link_file=`$BASENAME $BINARY`
24777       cd $sym_link_dir
24778       # Use -P flag to resolve symlinks in directories.
24779       cd `$THEPWDCMD -P`
24780       sym_link_dir=`$THEPWDCMD -P`
24781       # Resolve file symlinks
24782       while test $COUNTER -lt 20; do
24783         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
24784         if test "x$ISLINK" == x; then
24785           # This is not a symbolic link! We are done!
24786           break
24787         fi
24788         # Again resolve directory symlinks since the target of the just found
24789         # link could be in a different directory
24790         cd `$DIRNAME $ISLINK`
24791         sym_link_dir=`$THEPWDCMD -P`
24792         sym_link_file=`$BASENAME $ISLINK`
24793         let COUNTER=COUNTER+1
24794       done
24795       cd $STARTDIR
24796       BINARY=$sym_link_dir/$sym_link_file
24797     fi
24798   fi
24799 
24800     BOOT_JDK=`dirname "$BINARY"`
24801     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
24802     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
24803       # Looks like we found ourselves an JDK
24804       BOOT_JDK_FOUND=maybe
24805       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
24806 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
24807     fi
24808   fi
24809 
24810 
24811     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24812     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24813       # Do we have a bin/java?
24814       if test ! -x "$BOOT_JDK/bin/java"; then
24815         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24816 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24817         BOOT_JDK_FOUND=no
24818       else
24819         # Do we have a bin/javac?
24820         if test ! -x "$BOOT_JDK/bin/javac"; then
24821           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24822 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24823           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24824 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24825           BOOT_JDK_FOUND=no
24826         else
24827           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24828           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24829 
24830           # Extra M4 quote needed to protect [] in grep expression.
24831           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24832           if test "x$FOUND_CORRECT_VERSION" = x; then
24833             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24834 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24835             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24836 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24837             BOOT_JDK_FOUND=no
24838           else
24839             # We're done! :-)
24840             BOOT_JDK_FOUND=yes
24841 
24842   # Only process if variable expands to non-empty
24843 
24844   if test "x$BOOT_JDK" != x; then
24845     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24846 
24847   # Input might be given as Windows format, start by converting to
24848   # unix format.
24849   path="$BOOT_JDK"
24850   new_path=`$CYGPATH -u "$path"`
24851 
24852   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24853   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24854   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24855   # "foo.exe" is OK but "foo" is an error.
24856   #
24857   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24858   # It is also a way to make sure we got the proper file name for the real test later on.
24859   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24860   if test "x$test_shortpath" = x; then
24861     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24862 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24863     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24864   fi
24865 
24866   # Call helper function which possibly converts this using DOS-style short mode.
24867   # If so, the updated path is stored in $new_path.
24868 
24869   input_path="$new_path"
24870   # Check if we need to convert this using DOS-style short mode. If the path
24871   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24872   # take no chances and rewrite it.
24873   # Note: m4 eats our [], so we need to use [ and ] instead.
24874   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24875   if test "x$has_forbidden_chars" != x; then
24876     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24877     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24878     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24879     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24880       # Going to short mode and back again did indeed matter. Since short mode is
24881       # case insensitive, let's make it lowercase to improve readability.
24882       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24883       # Now convert it back to Unix-style (cygpath)
24884       input_path=`$CYGPATH -u "$shortmode_path"`
24885       new_path="$input_path"
24886     fi
24887   fi
24888 
24889   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24890   if test "x$test_cygdrive_prefix" = x; then
24891     # As a simple fix, exclude /usr/bin since it's not a real path.
24892     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24893       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24894       # a path prefixed by /cygdrive for fixpath to work.
24895       new_path="$CYGWIN_ROOT_PATH$input_path"
24896     fi
24897   fi
24898 
24899 
24900   if test "x$path" != "x$new_path"; then
24901     BOOT_JDK="$new_path"
24902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24903 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24904   fi
24905 
24906     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24907 
24908   path="$BOOT_JDK"
24909   has_colon=`$ECHO $path | $GREP ^.:`
24910   new_path="$path"
24911   if test "x$has_colon" = x; then
24912     # Not in mixed or Windows style, start by that.
24913     new_path=`cmd //c echo $path`
24914   fi
24915 
24916 
24917   input_path="$new_path"
24918   # Check if we need to convert this using DOS-style short mode. If the path
24919   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24920   # take no chances and rewrite it.
24921   # Note: m4 eats our [], so we need to use [ and ] instead.
24922   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24923   if test "x$has_forbidden_chars" != x; then
24924     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24925     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24926   fi
24927 
24928 
24929   windows_path="$new_path"
24930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24931     unix_path=`$CYGPATH -u "$windows_path"`
24932     new_path="$unix_path"
24933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24935     new_path="$unix_path"
24936   fi
24937 
24938   if test "x$path" != "x$new_path"; then
24939     BOOT_JDK="$new_path"
24940     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24941 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24942   fi
24943 
24944   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24945   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24946 
24947     else
24948       # We're on a unix platform. Hooray! :)
24949       path="$BOOT_JDK"
24950       has_space=`$ECHO "$path" | $GREP " "`
24951       if test "x$has_space" != x; then
24952         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24953 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24954         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24955       fi
24956 
24957       # Use eval to expand a potential ~
24958       eval path="$path"
24959       if test ! -f "$path" && test ! -d "$path"; then
24960         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24961       fi
24962 
24963       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24964     fi
24965   fi
24966 
24967             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24968 $as_echo_n "checking for Boot JDK... " >&6; }
24969             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24970 $as_echo "$BOOT_JDK" >&6; }
24971             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24972 $as_echo_n "checking Boot JDK version... " >&6; }
24973             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24974             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24975 $as_echo "$BOOT_JDK_VERSION" >&6; }
24976           fi # end check jdk version
24977         fi # end check javac
24978       fi # end check java
24979     fi # end check boot jdk found
24980   fi
24981 
24982 
24983   # Test: Is there a JDK installed in default, well-known locations?
24984 
24985   if test "x$BOOT_JDK_FOUND" = xno; then
24986     # Now execute the test
24987 
24988   if test "x$OPENJDK_TARGET_OS" = xwindows; then
24989 
24990   if test "x$BOOT_JDK_FOUND" = xno; then
24991     # Now execute the test
24992 
24993   if test "x$ProgramW6432" != x; then
24994     VIRTUAL_DIR="$ProgramW6432/Java"
24995 
24996   windows_path="$VIRTUAL_DIR"
24997   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24998     unix_path=`$CYGPATH -u "$windows_path"`
24999     VIRTUAL_DIR="$unix_path"
25000   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25001     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25002     VIRTUAL_DIR="$unix_path"
25003   fi
25004 
25005 
25006   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
25007   BOOT_JDK_SUFFIX=""
25008   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
25009   if test "x$ALL_JDKS_FOUND" != x; then
25010     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
25011 
25012   if test "x$BOOT_JDK_FOUND" = xno; then
25013     # Now execute the test
25014 
25015         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
25016         if test -d "$BOOT_JDK"; then
25017           BOOT_JDK_FOUND=maybe
25018           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
25019 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
25020         fi
25021 
25022 
25023     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25024     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25025       # Do we have a bin/java?
25026       if test ! -x "$BOOT_JDK/bin/java"; then
25027         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25029         BOOT_JDK_FOUND=no
25030       else
25031         # Do we have a bin/javac?
25032         if test ! -x "$BOOT_JDK/bin/javac"; then
25033           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25034 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25035           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25036 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25037           BOOT_JDK_FOUND=no
25038         else
25039           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25040           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25041 
25042           # Extra M4 quote needed to protect [] in grep expression.
25043           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
25044           if test "x$FOUND_CORRECT_VERSION" = x; then
25045             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25047             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25048 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25049             BOOT_JDK_FOUND=no
25050           else
25051             # We're done! :-)
25052             BOOT_JDK_FOUND=yes
25053 
25054   # Only process if variable expands to non-empty
25055 
25056   if test "x$BOOT_JDK" != x; then
25057     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25058 
25059   # Input might be given as Windows format, start by converting to
25060   # unix format.
25061   path="$BOOT_JDK"
25062   new_path=`$CYGPATH -u "$path"`
25063 
25064   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25065   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25066   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25067   # "foo.exe" is OK but "foo" is an error.
25068   #
25069   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25070   # It is also a way to make sure we got the proper file name for the real test later on.
25071   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25072   if test "x$test_shortpath" = x; then
25073     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25074 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25075     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25076   fi
25077 
25078   # Call helper function which possibly converts this using DOS-style short mode.
25079   # If so, the updated path is stored in $new_path.
25080 
25081   input_path="$new_path"
25082   # Check if we need to convert this using DOS-style short mode. If the path
25083   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25084   # take no chances and rewrite it.
25085   # Note: m4 eats our [], so we need to use [ and ] instead.
25086   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25087   if test "x$has_forbidden_chars" != x; then
25088     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25089     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25090     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25091     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25092       # Going to short mode and back again did indeed matter. Since short mode is
25093       # case insensitive, let's make it lowercase to improve readability.
25094       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25095       # Now convert it back to Unix-style (cygpath)