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 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zeroshark
 660 JVM_FEATURES_zero
 661 JVM_FEATURES_minimal
 662 JVM_FEATURES_core
 663 JVM_FEATURES_client
 664 JVM_FEATURES_server
 665 INCLUDE_GRAAL
 666 ELF_LIBS
 667 ELF_CFLAGS
 668 STLPORT_LIB
 669 LIBZIP_CAN_USE_MMAP
 670 LIBDL
 671 LIBM
 672 USE_EXTERNAL_LCMS
 673 LCMS_LIBS
 674 LCMS_CFLAGS
 675 USE_EXTERNAL_LIBZ
 676 USE_EXTERNAL_LIBPNG
 677 PNG_LIBS
 678 PNG_CFLAGS
 679 USE_EXTERNAL_LIBGIF
 680 USE_EXTERNAL_LIBJPEG
 681 LLVM_LIBS
 682 LLVM_LDFLAGS
 683 LLVM_CFLAGS
 684 LLVM_CONFIG
 685 LIBFFI_LIB_FILE
 686 ENABLE_LIBFFI_BUNDLING
 687 LIBFFI_LIBS
 688 LIBFFI_CFLAGS
 689 ALSA_LIBS
 690 ALSA_CFLAGS
 691 FREETYPE_BUNDLE_LIB_PATH
 692 FREETYPE_LIBS
 693 FREETYPE_CFLAGS
 694 CUPS_CFLAGS
 695 X_EXTRA_LIBS
 696 X_LIBS
 697 X_PRE_LIBS
 698 X_CFLAGS
 699 XMKMF
 700 MSVCP_DLL
 701 MSVCR_DLL
 702 LIBCXX
 703 FIXPATH_DETACH_FLAG
 704 FIXPATH
 705 BUILD_GTEST
 706 ENABLE_AOT
 707 GCOV_ENABLED
 708 ZIP_EXTERNAL_DEBUG_SYMBOLS
 709 COPY_DEBUG_SYMBOLS
 710 COMPILE_WITH_DEBUG_SYMBOLS
 711 CFLAGS_WARNINGS_ARE_ERRORS
 712 BUILD_CC_DISABLE_WARNING_PREFIX
 713 DISABLE_WARNING_PREFIX
 714 WARNINGS_AS_ERRORS
 715 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 716 LDFLAGS_TESTEXE
 717 LDFLAGS_TESTLIB
 718 CXXFLAGS_TESTEXE
 719 CXXFLAGS_TESTLIB
 720 CFLAGS_TESTEXE
 721 CFLAGS_TESTLIB
 722 OPENJDK_BUILD_JVM_LIBS
 723 OPENJDK_BUILD_JVM_ASFLAGS
 724 OPENJDK_BUILD_JVM_LDFLAGS
 725 OPENJDK_BUILD_JVM_CFLAGS
 726 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 727 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 728 OPENJDK_BUILD_JDKEXE_LIBS
 729 OPENJDK_BUILD_JDKLIB_LIBS
 730 OPENJDK_BUILD_LDFLAGS_JDKEXE
 731 OPENJDK_BUILD_LDFLAGS_JDKLIB
 732 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 733 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 734 OPENJDK_BUILD_CFLAGS_JDKEXE
 735 OPENJDK_BUILD_CFLAGS_JDKLIB
 736 OPENJDK_BUILD_CXXSTD_CXXFLAG
 737 JVM_LIBS
 738 JVM_ASFLAGS
 739 JVM_LDFLAGS
 740 JVM_CFLAGS
 741 LDFLAGS_HASH_STYLE
 742 LDFLAGS_CXX_JDK
 743 JDKEXE_LIBS
 744 JDKLIB_LIBS
 745 LDFLAGS_JDKEXE
 746 LDFLAGS_JDKLIB
 747 CXXFLAGS_JDKEXE
 748 CXXFLAGS_JDKLIB
 749 CFLAGS_JDKEXE
 750 CFLAGS_JDKLIB
 751 MACOSX_VERSION_MIN
 752 CXXSTD_CXXFLAG
 753 JDK_ARCH_ABI_PROP_NAME
 754 CXX_O_FLAG_SIZE
 755 CXX_O_FLAG_NONE
 756 CXX_O_FLAG_DEBUG
 757 CXX_O_FLAG_NORM
 758 CXX_O_FLAG_HI
 759 CXX_O_FLAG_HIGHEST
 760 CXX_O_FLAG_HIGHEST_JVM
 761 C_O_FLAG_SIZE
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 C_O_FLAG_HIGHEST_JVM
 768 JVM_CFLAGS_SYMBOLS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SHARED_LIBRARY_FLAGS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 JVM_RCFLAGS
 781 RC_FLAGS
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 STRIPFLAGS
 787 ARFLAGS
 788 COMPILER_BINDCMD_FILE_FLAG
 789 COMPILER_COMMAND_FILE_FLAG
 790 COMPILER_TARGET_BITS_FLAG
 791 JT_HOME
 792 JTREGEXE
 793 HOTSPOT_TOOLCHAIN_TYPE
 794 USING_BROKEN_SUSE_LD
 795 PACKAGE_PATH
 796 BUILD_AS
 797 BUILD_LDCXX
 798 BUILD_LD
 799 BUILD_STRIP
 800 BUILD_OBJCOPY
 801 BUILD_AR
 802 BUILD_NM
 803 BUILD_CXX
 804 BUILD_CC
 805 BUILD_SYSROOT_LDFLAGS
 806 BUILD_SYSROOT_CFLAGS
 807 ac_ct_OBJDUMP
 808 OBJDUMP
 809 ac_ct_OBJCOPY
 810 OBJCOPY
 811 ac_ct_NM
 812 ac_ct_STRIP
 813 GNM
 814 NM
 815 STRIP
 816 MSBUILD
 817 DUMPBIN
 818 RC
 819 MT
 820 LIPO
 821 ac_ct_AR
 822 AR
 823 AS
 824 LDCXX
 825 LD
 826 CXXCPP
 827 CPP
 828 CXX_VERSION_NUMBER
 829 CC_VERSION_NUMBER
 830 ac_ct_CXX
 831 CXXFLAGS
 832 CXX
 833 TOOLCHAIN_PATH_CXX
 834 POTENTIAL_CXX
 835 OBJEXT
 836 EXEEXT
 837 ac_ct_CC
 838 CPPFLAGS
 839 LDFLAGS
 840 CFLAGS
 841 CC
 842 TOOLCHAIN_PATH_CC
 843 POTENTIAL_CC
 844 TOOLCHAIN_VERSION
 845 VS_LIB
 846 VS_INCLUDE
 847 VS_PATH
 848 CYGWIN_LINK
 849 SYSROOT_LDFLAGS
 850 SYSROOT_CFLAGS
 851 EXTRA_LDFLAGS
 852 EXTRA_CXXFLAGS
 853 EXTRA_CFLAGS
 854 EXE_SUFFIX
 855 OBJ_SUFFIX
 856 STATIC_LIBRARY
 857 SHARED_LIBRARY
 858 STATIC_LIBRARY_SUFFIX
 859 SHARED_LIBRARY_SUFFIX
 860 LIBRARY_PREFIX
 861 TOOLCHAIN_TYPE
 862 STATIC_BUILD
 863 IMPORT_MODULES_MAKE
 864 IMPORT_MODULES_SRC
 865 IMPORT_MODULES_MAN
 866 IMPORT_MODULES_LEGAL
 867 IMPORT_MODULES_CONF
 868 IMPORT_MODULES_LIBS
 869 IMPORT_MODULES_CMDS
 870 IMPORT_MODULES_CLASSES
 871 BUILD_OUTPUT
 872 JDK_TOPDIR
 873 NASHORN_TOPDIR
 874 HOTSPOT_TOPDIR
 875 JAXWS_TOPDIR
 876 JAXP_TOPDIR
 877 CORBA_TOPDIR
 878 LANGTOOLS_TOPDIR
 879 EXTERNAL_BUILDJDK
 880 BUILD_JDK
 881 CREATE_BUILDJDK
 882 JLINK
 883 JMOD
 884 JAVAC_FLAGS
 885 BOOT_JDK_MODULAR
 886 BOOT_JDK_SOURCETARGET
 887 JARSIGNER
 888 JAR
 889 JAVAH
 890 JAVAC
 891 JAVA
 892 BOOT_JDK
 893 JAVA_CHECK
 894 JAVAC_CHECK
 895 VERSION_IS_GA
 896 VERSION_SHORT
 897 VERSION_STRING
 898 VERSION_NUMBER_FOUR_POSITIONS
 899 VERSION_NUMBER
 900 VERSION_OPT
 901 VERSION_BUILD
 902 VERSION_PRE
 903 VERSION_PATCH
 904 VERSION_SECURITY
 905 VERSION_MINOR
 906 VERSION_MAJOR
 907 MACOSX_BUNDLE_ID_BASE
 908 MACOSX_BUNDLE_NAME_BASE
 909 HOTSPOT_VM_DISTRO
 910 COMPANY_NAME
 911 JDK_RC_PLATFORM_NAME
 912 PRODUCT_SUFFIX
 913 PRODUCT_NAME
 914 LAUNCHER_NAME
 915 JLINK_KEEP_PACKAGED_MODULES
 916 COPYRIGHT_YEAR
 917 COMPRESS_JARS
 918 INCLUDE_SA
 919 UNLIMITED_CRYPTO
 920 CACERTS_FILE
 921 ENABLE_HEADLESS_ONLY
 922 DEFAULT_MAKE_TARGET
 923 OS_VERSION_MICRO
 924 OS_VERSION_MINOR
 925 OS_VERSION_MAJOR
 926 PKG_CONFIG
 927 BASH_ARGS
 928 SETFILE
 929 CODESIGN
 930 XATTR
 931 DSYMUTIL
 932 IS_GNU_TIME
 933 PATCH
 934 DTRACE
 935 TIME
 936 STAT
 937 HG
 938 READELF
 939 OTOOL
 940 LDD
 941 ZIPEXE
 942 UNZIP
 943 TAR_SUPPORTS_TRANSFORM
 944 TAR_INCLUDE_PARAM
 945 TAR_CREATE_EXTRA_PARAM
 946 TAR_TYPE
 947 FIND_DELETE
 948 OUTPUT_SYNC
 949 OUTPUT_SYNC_SUPPORTED
 950 CHECK_TOOLSDIR_MAKE
 951 CHECK_TOOLSDIR_GMAKE
 952 CHECK_MAKE
 953 CHECK_GMAKE
 954 MAKE
 955 PKGHANDLER
 956 CONFIGURESUPPORT_OUTPUTDIR
 957 OUTPUT_ROOT
 958 CONF_NAME
 959 SPEC
 960 SDKROOT
 961 XCODEBUILD
 962 JVM_VARIANT_MAIN
 963 VALID_JVM_VARIANTS
 964 JVM_VARIANTS
 965 DEBUG_LEVEL
 966 HOTSPOT_DEBUG_LEVEL
 967 JDK_VARIANT
 968 USERNAME
 969 CANONICAL_TOPDIR
 970 ORIGINAL_TOPDIR
 971 TOPDIR
 972 PATH_SEP
 973 HOTSPOT_BUILD_CPU_DEFINE
 974 HOTSPOT_BUILD_CPU_ARCH
 975 HOTSPOT_BUILD_CPU
 976 HOTSPOT_BUILD_OS_TYPE
 977 HOTSPOT_BUILD_OS
 978 OPENJDK_BUILD_BUNDLE_PLATFORM
 979 OPENJDK_BUILD_OS_EXPORT_DIR
 980 OPENJDK_BUILD_CPU_OSARCH
 981 OPENJDK_BUILD_CPU_ISADIR
 982 OPENJDK_BUILD_CPU_LEGACY_LIB
 983 OPENJDK_BUILD_CPU_LEGACY
 984 HOTSPOT_TARGET_CPU_DEFINE
 985 HOTSPOT_TARGET_CPU_ARCH
 986 HOTSPOT_TARGET_CPU
 987 HOTSPOT_TARGET_OS_TYPE
 988 HOTSPOT_TARGET_OS
 989 DEFINE_CROSS_COMPILE_ARCH
 990 OPENJDK_TARGET_BUNDLE_PLATFORM
 991 OPENJDK_TARGET_OS_EXPORT_DIR
 992 OPENJDK_TARGET_CPU_OSARCH
 993 OPENJDK_TARGET_CPU_ISADIR
 994 OPENJDK_TARGET_CPU_LEGACY_LIB
 995 OPENJDK_TARGET_CPU_LEGACY
 996 REQUIRED_OS_VERSION
 997 REQUIRED_OS_NAME
 998 COMPILE_TYPE
 999 OPENJDK_TARGET_CPU_ENDIAN
1000 OPENJDK_TARGET_CPU_BITS
1001 OPENJDK_TARGET_CPU_ARCH
1002 OPENJDK_TARGET_CPU
1003 OPENJDK_TARGET_OS_ENV
1004 OPENJDK_TARGET_OS_TYPE
1005 OPENJDK_TARGET_OS
1006 OPENJDK_BUILD_CPU_ENDIAN
1007 OPENJDK_BUILD_CPU_BITS
1008 OPENJDK_BUILD_CPU_ARCH
1009 OPENJDK_BUILD_CPU
1010 OPENJDK_BUILD_OS_ENV
1011 OPENJDK_BUILD_OS_TYPE
1012 OPENJDK_BUILD_OS
1013 OPENJDK_BUILD_AUTOCONF_NAME
1014 OPENJDK_TARGET_AUTOCONF_NAME
1015 target_os
1016 target_vendor
1017 target_cpu
1018 target
1019 host_os
1020 host_vendor
1021 host_cpu
1022 host
1023 build_os
1024 build_vendor
1025 build_cpu
1026 build
1027 NICE
1028 CPIO
1029 DF
1030 READLINK
1031 CYGPATH
1032 SED
1033 FGREP
1034 EGREP
1035 GREP
1036 AWK
1037 XARGS
1038 WHICH
1039 WC
1040 UNIQ
1041 UNAME
1042 TR
1043 TOUCH
1044 TEE
1045 TAR
1046 TAIL
1047 SORT
1048 SH
1049 RMDIR
1050 RM
1051 PRINTF
1052 NAWK
1053 MV
1054 MKTEMP
1055 MKDIR
1056 LS
1057 LN
1058 GZIP
1059 GUNZIP
1060 HEAD
1061 FIND
1062 FILE
1063 EXPR
1064 ECHO
1065 DIRNAME
1066 DIFF
1067 DATE
1068 CUT
1069 CP
1070 COMM
1071 CMP
1072 CHMOD
1073 CAT
1074 BASH
1075 BASENAME
1076 DATE_WHEN_CONFIGURED
1077 ORIGINAL_PATH
1078 CONFIGURE_COMMAND_LINE
1079 target_alias
1080 host_alias
1081 build_alias
1082 LIBS
1083 ECHO_T
1084 ECHO_N
1085 ECHO_C
1086 DEFS
1087 mandir
1088 localedir
1089 libdir
1090 psdir
1091 pdfdir
1092 dvidir
1093 htmldir
1094 infodir
1095 docdir
1096 oldincludedir
1097 includedir
1098 localstatedir
1099 sharedstatedir
1100 sysconfdir
1101 datadir
1102 datarootdir
1103 libexecdir
1104 sbindir
1105 bindir
1106 program_transform_name
1107 prefix
1108 exec_prefix
1109 PACKAGE_URL
1110 PACKAGE_BUGREPORT
1111 PACKAGE_STRING
1112 PACKAGE_VERSION
1113 PACKAGE_TARNAME
1114 PACKAGE_NAME
1115 PATH_SEPARATOR
1116 SHELL'
1117 ac_subst_files=''
1118 ac_user_opts='
1119 enable_option_checking
1120 with_target_bits
1121 enable_openjdk_only
1122 with_custom_make_dir
1123 with_jdk_variant
1124 enable_debug
1125 with_debug_level
1126 with_jvm_variants
1127 with_cpu_port
1128 with_devkit
1129 with_sys_root
1130 with_sysroot
1131 with_tools_dir
1132 with_toolchain_path
1133 with_extra_path
1134 with_sdk_name
1135 with_conf_name
1136 with_output_sync
1137 with_default_make_target
1138 enable_headless_only
1139 with_cacerts_file
1140 enable_unlimited_crypto
1141 with_copyright_year
1142 enable_keep_packaged_modules
1143 with_milestone
1144 with_update_version
1145 with_user_release_suffix
1146 with_build_number
1147 with_version_string
1148 with_version_pre
1149 with_version_opt
1150 with_version_build
1151 with_version_major
1152 with_version_minor
1153 with_version_security
1154 with_version_patch
1155 with_boot_jdk
1156 with_build_jdk
1157 with_add_source_root
1158 with_override_source_root
1159 with_adds_and_overrides
1160 with_override_langtools
1161 with_override_corba
1162 with_override_jaxp
1163 with_override_jaxws
1164 with_override_hotspot
1165 with_override_nashorn
1166 with_override_jdk
1167 with_import_hotspot
1168 with_import_modules
1169 enable_static_build
1170 with_toolchain_type
1171 with_extra_cflags
1172 with_extra_cxxflags
1173 with_extra_ldflags
1174 with_toolchain_version
1175 with_build_devkit
1176 with_jtreg
1177 with_abi_profile
1178 enable_warnings_as_errors
1179 with_native_debug_symbols
1180 enable_debug_symbols
1181 enable_zip_debug_info
1182 enable_native_coverage
1183 enable_dtrace
1184 enable_aot
1185 enable_hotspot_gtest
1186 with_stdc__lib
1187 with_msvcr_dll
1188 with_msvcp_dll
1189 with_x
1190 with_cups
1191 with_cups_include
1192 with_freetype
1193 with_freetype_include
1194 with_freetype_lib
1195 with_freetype_src
1196 enable_freetype_bundling
1197 with_alsa
1198 with_alsa_include
1199 with_alsa_lib
1200 with_libffi
1201 with_libffi_include
1202 with_libffi_lib
1203 enable_libffi_bundling
1204 with_libjpeg
1205 with_giflib
1206 with_libpng
1207 with_zlib
1208 with_lcms
1209 with_dxsdk
1210 with_dxsdk_lib
1211 with_dxsdk_include
1212 with_libelf
1213 with_libelf_include
1214 with_libelf_lib
1215 with_jvm_features
1216 with_jvm_interpreter
1217 enable_jtreg_failure_handler
1218 enable_generate_classlist
1219 with_num_cores
1220 with_memory_size
1221 with_jobs
1222 with_test_jobs
1223 with_boot_jdk_jvmargs
1224 with_sjavac_server_java
1225 enable_sjavac
1226 enable_javac_server
1227 enable_icecc
1228 enable_precompiled_headers
1229 enable_ccache
1230 with_ccache_dir
1231 '
1232       ac_precious_vars='build_alias
1233 host_alias
1234 target_alias
1235 BASENAME
1236 BASH
1237 CAT
1238 CHMOD
1239 CMP
1240 COMM
1241 CP
1242 CUT
1243 DATE
1244 DIFF
1245 DIRNAME
1246 ECHO
1247 EXPR
1248 FILE
1249 FIND
1250 HEAD
1251 GUNZIP
1252 GZIP
1253 LN
1254 LS
1255 MKDIR
1256 MKTEMP
1257 MV
1258 NAWK
1259 PRINTF
1260 RM
1261 RMDIR
1262 SH
1263 SORT
1264 TAIL
1265 TAR
1266 TEE
1267 TOUCH
1268 TR
1269 UNAME
1270 UNIQ
1271 WC
1272 WHICH
1273 XARGS
1274 AWK
1275 GREP
1276 EGREP
1277 FGREP
1278 SED
1279 CYGPATH
1280 READLINK
1281 DF
1282 CPIO
1283 NICE
1284 MAKE
1285 UNZIP
1286 ZIPEXE
1287 LDD
1288 OTOOL
1289 READELF
1290 HG
1291 STAT
1292 TIME
1293 DTRACE
1294 PATCH
1295 DSYMUTIL
1296 XATTR
1297 CODESIGN
1298 SETFILE
1299 PKG_CONFIG
1300 JAVA
1301 JAVAC
1302 JAVAH
1303 JAR
1304 JARSIGNER
1305 CC
1306 CFLAGS
1307 LDFLAGS
1308 LIBS
1309 CPPFLAGS
1310 CXX
1311 CXXFLAGS
1312 CCC
1313 CPP
1314 CXXCPP
1315 AS
1316 AR
1317 LIPO
1318 STRIP
1319 NM
1320 GNM
1321 OBJCOPY
1322 OBJDUMP
1323 BUILD_CC
1324 BUILD_CXX
1325 BUILD_NM
1326 BUILD_AR
1327 BUILD_OBJCOPY
1328 BUILD_STRIP
1329 JTREGEXE
1330 XMKMF
1331 FREETYPE_CFLAGS
1332 FREETYPE_LIBS
1333 ALSA_CFLAGS
1334 ALSA_LIBS
1335 LIBFFI_CFLAGS
1336 LIBFFI_LIBS
1337 PNG_CFLAGS
1338 PNG_LIBS
1339 LCMS_CFLAGS
1340 LCMS_LIBS
1341 ELF_CFLAGS
1342 ELF_LIBS
1343 ICECC_CMD
1344 ICECC_CREATE_ENV
1345 ICECC_WRAPPER
1346 CCACHE'
1347 
1348 
1349 # Initialize some variables set by options.
1350 ac_init_help=
1351 ac_init_version=false
1352 ac_unrecognized_opts=
1353 ac_unrecognized_sep=
1354 # The variables have the same names as the options, with
1355 # dashes changed to underlines.
1356 cache_file=/dev/null
1357 exec_prefix=NONE
1358 no_create=
1359 no_recursion=
1360 prefix=NONE
1361 program_prefix=NONE
1362 program_suffix=NONE
1363 program_transform_name=s,x,x,
1364 silent=
1365 site=
1366 srcdir=
1367 verbose=
1368 x_includes=NONE
1369 x_libraries=NONE
1370 
1371 # Installation directory options.
1372 # These are left unexpanded so users can "make install exec_prefix=/foo"
1373 # and all the variables that are supposed to be based on exec_prefix
1374 # by default will actually change.
1375 # Use braces instead of parens because sh, perl, etc. also accept them.
1376 # (The list follows the same order as the GNU Coding Standards.)
1377 bindir='${exec_prefix}/bin'
1378 sbindir='${exec_prefix}/sbin'
1379 libexecdir='${exec_prefix}/libexec'
1380 datarootdir='${prefix}/share'
1381 datadir='${datarootdir}'
1382 sysconfdir='${prefix}/etc'
1383 sharedstatedir='${prefix}/com'
1384 localstatedir='${prefix}/var'
1385 includedir='${prefix}/include'
1386 oldincludedir='/usr/include'
1387 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1388 infodir='${datarootdir}/info'
1389 htmldir='${docdir}'
1390 dvidir='${docdir}'
1391 pdfdir='${docdir}'
1392 psdir='${docdir}'
1393 libdir='${exec_prefix}/lib'
1394 localedir='${datarootdir}/locale'
1395 mandir='${datarootdir}/man'
1396 
1397 ac_prev=
1398 ac_dashdash=
1399 for ac_option
1400 do
1401   # If the previous option needs an argument, assign it.
1402   if test -n "$ac_prev"; then
1403     eval $ac_prev=\$ac_option
1404     ac_prev=
1405     continue
1406   fi
1407 
1408   case $ac_option in
1409   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1410   *=)   ac_optarg= ;;
1411   *)    ac_optarg=yes ;;
1412   esac
1413 
1414   # Accept the important Cygnus configure options, so we can diagnose typos.
1415 
1416   case $ac_dashdash$ac_option in
1417   --)
1418     ac_dashdash=yes ;;
1419 
1420   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1421     ac_prev=bindir ;;
1422   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1423     bindir=$ac_optarg ;;
1424 
1425   -build | --build | --buil | --bui | --bu)
1426     ac_prev=build_alias ;;
1427   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1428     build_alias=$ac_optarg ;;
1429 
1430   -cache-file | --cache-file | --cache-fil | --cache-fi \
1431   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1432     ac_prev=cache_file ;;
1433   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1434   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1435     cache_file=$ac_optarg ;;
1436 
1437   --config-cache | -C)
1438     cache_file=config.cache ;;
1439 
1440   -datadir | --datadir | --datadi | --datad)
1441     ac_prev=datadir ;;
1442   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1443     datadir=$ac_optarg ;;
1444 
1445   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1446   | --dataroo | --dataro | --datar)
1447     ac_prev=datarootdir ;;
1448   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1449   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1450     datarootdir=$ac_optarg ;;
1451 
1452   -disable-* | --disable-*)
1453     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1454     # Reject names that are not valid shell variable names.
1455     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456       as_fn_error $? "invalid feature name: $ac_useropt"
1457     ac_useropt_orig=$ac_useropt
1458     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459     case $ac_user_opts in
1460       *"
1461 "enable_$ac_useropt"
1462 "*) ;;
1463       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1464          ac_unrecognized_sep=', ';;
1465     esac
1466     eval enable_$ac_useropt=no ;;
1467 
1468   -docdir | --docdir | --docdi | --doc | --do)
1469     ac_prev=docdir ;;
1470   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1471     docdir=$ac_optarg ;;
1472 
1473   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1474     ac_prev=dvidir ;;
1475   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1476     dvidir=$ac_optarg ;;
1477 
1478   -enable-* | --enable-*)
1479     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1480     # Reject names that are not valid shell variable names.
1481     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1482       as_fn_error $? "invalid feature name: $ac_useropt"
1483     ac_useropt_orig=$ac_useropt
1484     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1485     case $ac_user_opts in
1486       *"
1487 "enable_$ac_useropt"
1488 "*) ;;
1489       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1490          ac_unrecognized_sep=', ';;
1491     esac
1492     eval enable_$ac_useropt=\$ac_optarg ;;
1493 
1494   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1495   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1496   | --exec | --exe | --ex)
1497     ac_prev=exec_prefix ;;
1498   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1499   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1500   | --exec=* | --exe=* | --ex=*)
1501     exec_prefix=$ac_optarg ;;
1502 
1503   -gas | --gas | --ga | --g)
1504     # Obsolete; use --with-gas.
1505     with_gas=yes ;;
1506 
1507   -help | --help | --hel | --he | -h)
1508     ac_init_help=long ;;
1509   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1510     ac_init_help=recursive ;;
1511   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1512     ac_init_help=short ;;
1513 
1514   -host | --host | --hos | --ho)
1515     ac_prev=host_alias ;;
1516   -host=* | --host=* | --hos=* | --ho=*)
1517     host_alias=$ac_optarg ;;
1518 
1519   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1520     ac_prev=htmldir ;;
1521   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1522   | --ht=*)
1523     htmldir=$ac_optarg ;;
1524 
1525   -includedir | --includedir | --includedi | --included | --include \
1526   | --includ | --inclu | --incl | --inc)
1527     ac_prev=includedir ;;
1528   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1529   | --includ=* | --inclu=* | --incl=* | --inc=*)
1530     includedir=$ac_optarg ;;
1531 
1532   -infodir | --infodir | --infodi | --infod | --info | --inf)
1533     ac_prev=infodir ;;
1534   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1535     infodir=$ac_optarg ;;
1536 
1537   -libdir | --libdir | --libdi | --libd)
1538     ac_prev=libdir ;;
1539   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1540     libdir=$ac_optarg ;;
1541 
1542   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1543   | --libexe | --libex | --libe)
1544     ac_prev=libexecdir ;;
1545   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1546   | --libexe=* | --libex=* | --libe=*)
1547     libexecdir=$ac_optarg ;;
1548 
1549   -localedir | --localedir | --localedi | --localed | --locale)
1550     ac_prev=localedir ;;
1551   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1552     localedir=$ac_optarg ;;
1553 
1554   -localstatedir | --localstatedir | --localstatedi | --localstated \
1555   | --localstate | --localstat | --localsta | --localst | --locals)
1556     ac_prev=localstatedir ;;
1557   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1558   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1559     localstatedir=$ac_optarg ;;
1560 
1561   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1562     ac_prev=mandir ;;
1563   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1564     mandir=$ac_optarg ;;
1565 
1566   -nfp | --nfp | --nf)
1567     # Obsolete; use --without-fp.
1568     with_fp=no ;;
1569 
1570   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1571   | --no-cr | --no-c | -n)
1572     no_create=yes ;;
1573 
1574   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1575   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1576     no_recursion=yes ;;
1577 
1578   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1579   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1580   | --oldin | --oldi | --old | --ol | --o)
1581     ac_prev=oldincludedir ;;
1582   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1583   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1584   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1585     oldincludedir=$ac_optarg ;;
1586 
1587   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1588     ac_prev=prefix ;;
1589   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1590     prefix=$ac_optarg ;;
1591 
1592   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1593   | --program-pre | --program-pr | --program-p)
1594     ac_prev=program_prefix ;;
1595   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1596   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1597     program_prefix=$ac_optarg ;;
1598 
1599   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1600   | --program-suf | --program-su | --program-s)
1601     ac_prev=program_suffix ;;
1602   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1603   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1604     program_suffix=$ac_optarg ;;
1605 
1606   -program-transform-name | --program-transform-name \
1607   | --program-transform-nam | --program-transform-na \
1608   | --program-transform-n | --program-transform- \
1609   | --program-transform | --program-transfor \
1610   | --program-transfo | --program-transf \
1611   | --program-trans | --program-tran \
1612   | --progr-tra | --program-tr | --program-t)
1613     ac_prev=program_transform_name ;;
1614   -program-transform-name=* | --program-transform-name=* \
1615   | --program-transform-nam=* | --program-transform-na=* \
1616   | --program-transform-n=* | --program-transform-=* \
1617   | --program-transform=* | --program-transfor=* \
1618   | --program-transfo=* | --program-transf=* \
1619   | --program-trans=* | --program-tran=* \
1620   | --progr-tra=* | --program-tr=* | --program-t=*)
1621     program_transform_name=$ac_optarg ;;
1622 
1623   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1624     ac_prev=pdfdir ;;
1625   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1626     pdfdir=$ac_optarg ;;
1627 
1628   -psdir | --psdir | --psdi | --psd | --ps)
1629     ac_prev=psdir ;;
1630   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1631     psdir=$ac_optarg ;;
1632 
1633   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634   | -silent | --silent | --silen | --sile | --sil)
1635     silent=yes ;;
1636 
1637   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1638     ac_prev=sbindir ;;
1639   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1640   | --sbi=* | --sb=*)
1641     sbindir=$ac_optarg ;;
1642 
1643   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1644   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1645   | --sharedst | --shareds | --shared | --share | --shar \
1646   | --sha | --sh)
1647     ac_prev=sharedstatedir ;;
1648   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1649   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1650   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1651   | --sha=* | --sh=*)
1652     sharedstatedir=$ac_optarg ;;
1653 
1654   -site | --site | --sit)
1655     ac_prev=site ;;
1656   -site=* | --site=* | --sit=*)
1657     site=$ac_optarg ;;
1658 
1659   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1660     ac_prev=srcdir ;;
1661   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1662     srcdir=$ac_optarg ;;
1663 
1664   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1665   | --syscon | --sysco | --sysc | --sys | --sy)
1666     ac_prev=sysconfdir ;;
1667   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1668   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1669     sysconfdir=$ac_optarg ;;
1670 
1671   -target | --target | --targe | --targ | --tar | --ta | --t)
1672     ac_prev=target_alias ;;
1673   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1674     target_alias=$ac_optarg ;;
1675 
1676   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1677     verbose=yes ;;
1678 
1679   -version | --version | --versio | --versi | --vers | -V)
1680     ac_init_version=: ;;
1681 
1682   -with-* | --with-*)
1683     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1684     # Reject names that are not valid shell variable names.
1685     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1686       as_fn_error $? "invalid package name: $ac_useropt"
1687     ac_useropt_orig=$ac_useropt
1688     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1689     case $ac_user_opts in
1690       *"
1691 "with_$ac_useropt"
1692 "*) ;;
1693       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1694          ac_unrecognized_sep=', ';;
1695     esac
1696     eval with_$ac_useropt=\$ac_optarg ;;
1697 
1698   -without-* | --without-*)
1699     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1700     # Reject names that are not valid shell variable names.
1701     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1702       as_fn_error $? "invalid package name: $ac_useropt"
1703     ac_useropt_orig=$ac_useropt
1704     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1705     case $ac_user_opts in
1706       *"
1707 "with_$ac_useropt"
1708 "*) ;;
1709       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1710          ac_unrecognized_sep=', ';;
1711     esac
1712     eval with_$ac_useropt=no ;;
1713 
1714   --x)
1715     # Obsolete; use --with-x.
1716     with_x=yes ;;
1717 
1718   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1719   | --x-incl | --x-inc | --x-in | --x-i)
1720     ac_prev=x_includes ;;
1721   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1722   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1723     x_includes=$ac_optarg ;;
1724 
1725   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1726   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1727     ac_prev=x_libraries ;;
1728   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1729   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1730     x_libraries=$ac_optarg ;;
1731 
1732   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1733 Try \`$0 --help' for more information"
1734     ;;
1735 
1736   *=*)
1737     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1738     # Reject names that are not valid shell variable names.
1739     case $ac_envvar in #(
1740       '' | [0-9]* | *[!_$as_cr_alnum]* )
1741       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1742     esac
1743     eval $ac_envvar=\$ac_optarg
1744     export $ac_envvar ;;
1745 
1746   *)
1747     # FIXME: should be removed in autoconf 3.0.
1748     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1749     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1750       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1751     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1752     ;;
1753 
1754   esac
1755 done
1756 
1757 if test -n "$ac_prev"; then
1758   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1759   as_fn_error $? "missing argument to $ac_option"
1760 fi
1761 
1762 if test -n "$ac_unrecognized_opts"; then
1763   case $enable_option_checking in
1764     no) ;;
1765     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1766     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1767   esac
1768 fi
1769 
1770 # Check all directory arguments for consistency.
1771 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1772                 datadir sysconfdir sharedstatedir localstatedir includedir \
1773                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1774                 libdir localedir mandir
1775 do
1776   eval ac_val=\$$ac_var
1777   # Remove trailing slashes.
1778   case $ac_val in
1779     */ )
1780       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1781       eval $ac_var=\$ac_val;;
1782   esac
1783   # Be sure to have absolute directory names.
1784   case $ac_val in
1785     [\\/$]* | ?:[\\/]* )  continue;;
1786     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1787   esac
1788   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1789 done
1790 
1791 # There might be people who depend on the old broken behavior: `$host'
1792 # used to hold the argument of --host etc.
1793 # FIXME: To remove some day.
1794 build=$build_alias
1795 host=$host_alias
1796 target=$target_alias
1797 
1798 # FIXME: To remove some day.
1799 if test "x$host_alias" != x; then
1800   if test "x$build_alias" = x; then
1801     cross_compiling=maybe
1802   elif test "x$build_alias" != "x$host_alias"; then
1803     cross_compiling=yes
1804   fi
1805 fi
1806 
1807 ac_tool_prefix=
1808 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1809 
1810 test "$silent" = yes && exec 6>/dev/null
1811 
1812 
1813 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1814 ac_ls_di=`ls -di .` &&
1815 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1816   as_fn_error $? "working directory cannot be determined"
1817 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1818   as_fn_error $? "pwd does not report name of working directory"
1819 
1820 
1821 # Find the source files, if location was not specified.
1822 if test -z "$srcdir"; then
1823   ac_srcdir_defaulted=yes
1824   # Try the directory containing this script, then the parent directory.
1825   ac_confdir=`$as_dirname -- "$as_myself" ||
1826 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1827          X"$as_myself" : 'X\(//\)[^/]' \| \
1828          X"$as_myself" : 'X\(//\)$' \| \
1829          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1830 $as_echo X"$as_myself" |
1831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1832             s//\1/
1833             q
1834           }
1835           /^X\(\/\/\)[^/].*/{
1836             s//\1/
1837             q
1838           }
1839           /^X\(\/\/\)$/{
1840             s//\1/
1841             q
1842           }
1843           /^X\(\/\).*/{
1844             s//\1/
1845             q
1846           }
1847           s/.*/./; q'`
1848   srcdir=$ac_confdir
1849   if test ! -r "$srcdir/$ac_unique_file"; then
1850     srcdir=..
1851   fi
1852 else
1853   ac_srcdir_defaulted=no
1854 fi
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1857   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1858 fi
1859 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1860 ac_abs_confdir=`(
1861         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1862         pwd)`
1863 # When building in place, set srcdir=.
1864 if test "$ac_abs_confdir" = "$ac_pwd"; then
1865   srcdir=.
1866 fi
1867 # Remove unnecessary trailing slashes from srcdir.
1868 # Double slashes in file names in object file debugging info
1869 # mess up M-x gdb in Emacs.
1870 case $srcdir in
1871 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1872 esac
1873 for ac_var in $ac_precious_vars; do
1874   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1875   eval ac_env_${ac_var}_value=\$${ac_var}
1876   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1877   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1878 done
1879 
1880 #
1881 # Report the --help message.
1882 #
1883 if test "$ac_init_help" = "long"; then
1884   # Omit some internal or obsolete options to make the list less imposing.
1885   # This message is too long to be a string in the A/UX 3.1 sh.
1886   cat <<_ACEOF
1887 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1888 
1889 Usage: $0 [OPTION]... [VAR=VALUE]...
1890 
1891 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1892 VAR=VALUE.  See below for descriptions of some of the useful variables.
1893 
1894 Defaults for the options are specified in brackets.
1895 
1896 Configuration:
1897   -h, --help              display this help and exit
1898       --help=short        display options specific to this package
1899       --help=recursive    display the short help of all the included packages
1900   -V, --version           display version information and exit
1901   -q, --quiet, --silent   do not print \`checking ...' messages
1902       --cache-file=FILE   cache test results in FILE [disabled]
1903   -C, --config-cache      alias for \`--cache-file=config.cache'
1904   -n, --no-create         do not create output files
1905       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1906 
1907 Installation directories:
1908   --prefix=PREFIX         install architecture-independent files in PREFIX
1909                           [$ac_default_prefix]
1910   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1911                           [PREFIX]
1912 
1913 By default, \`make install' will install all the files in
1914 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1915 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1916 for instance \`--prefix=\$HOME'.
1917 
1918 For better control, use the options below.
1919 
1920 Fine tuning of the installation directories:
1921   --bindir=DIR            user executables [EPREFIX/bin]
1922   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1923   --libexecdir=DIR        program executables [EPREFIX/libexec]
1924   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1925   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1926   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1927   --libdir=DIR            object code libraries [EPREFIX/lib]
1928   --includedir=DIR        C header files [PREFIX/include]
1929   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1930   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1931   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1932   --infodir=DIR           info documentation [DATAROOTDIR/info]
1933   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1934   --mandir=DIR            man documentation [DATAROOTDIR/man]
1935   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1936   --htmldir=DIR           html documentation [DOCDIR]
1937   --dvidir=DIR            dvi documentation [DOCDIR]
1938   --pdfdir=DIR            pdf documentation [DOCDIR]
1939   --psdir=DIR             ps documentation [DOCDIR]
1940 _ACEOF
1941 
1942   cat <<\_ACEOF
1943 
1944 X features:
1945   --x-includes=DIR    X include files are in DIR
1946   --x-libraries=DIR   X library files are in DIR
1947 
1948 System types:
1949   --build=BUILD     configure for building on BUILD [guessed]
1950   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1951   --target=TARGET   configure for building compilers for TARGET [HOST]
1952 _ACEOF
1953 fi
1954 
1955 if test -n "$ac_init_help"; then
1956   case $ac_init_help in
1957      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1958    esac
1959   cat <<\_ACEOF
1960 
1961 Optional Features:
1962   --disable-option-checking  ignore unrecognized --enable/--with options
1963   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1964   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1965   --enable-openjdk-only   suppress building custom source even if present
1966                           [disabled]
1967   --enable-debug          set the debug level to fastdebug (shorthand for
1968                           --with-debug-level=fastdebug) [disabled]
1969   --enable-headless-only  only build headless (no GUI) support [disabled]
1970   --disable-unlimited-crypto
1971                           Disable unlimited crypto policy [enabled]
1972   --disable-keep-packaged-modules
1973                           Do not keep packaged modules in jdk image [enable]
1974   --enable-static-build   enable static library build [disabled]
1975   --disable-warnings-as-errors
1976                           do not consider native warnings to be an error
1977                           [enabled]
1978   --enable-debug-symbols  Deprecated. Option is kept for backwards
1979                           compatibility and is ignored
1980   --enable-zip-debug-info Deprecated. Option is kept for backwards
1981                           compatibility and is ignored
1982   --enable-native-coverage
1983                           enable native compilation with code coverage
1984                           data[disabled]
1985   --enable-dtrace[=yes/no/auto]
1986                           enable dtrace. Default is auto, where dtrace is
1987                           enabled if all dependencies are present.
1988   --enable-aot[=yes/no/auto]
1989                           enable ahead of time compilation feature. Default is
1990                           auto, where aot is enabled if all dependencies are
1991                           present.
1992   --disable-hotspot-gtest Disables building of the Hotspot unit tests
1993   --disable-freetype-bundling
1994                           disable bundling of the freetype library with the
1995                           build result [enabled on Windows or when using
1996                           --with-freetype, disabled otherwise]
1997   --enable-libffi-bundling
1998                           enable bundling of libffi.so to make the built JDK
1999                           runnable on more systems
2000   --enable-jtreg-failure-handler
2001                           forces build of the jtreg failure handler to be
2002                           enabled, missing dependencies become fatal errors.
2003                           Default is auto, where the failure handler is built
2004                           if all dependencies are present and otherwise just
2005                           disabled.
2006   --disable-generate-classlist
2007                           forces enabling or disabling of the generation of a
2008                           CDS classlist at build time. Default is to generate
2009                           it when either the server or client JVMs are built.
2010   --enable-sjavac         use sjavac to do fast incremental compiles
2011                           [disabled]
2012   --disable-javac-server  disable javac server [enabled]
2013   --enable-icecc          enable distribted compilation of native code using
2014                           icecc/icecream [disabled]
2015   --disable-precompiled-headers
2016                           disable using precompiled headers when compiling C++
2017                           [enabled]
2018   --enable-ccache         enable using ccache to speed up recompilations
2019                           [disabled]
2020 
2021 Optional Packages:
2022   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2023   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2024   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2025                           support it), e.g. --with-target-bits=32 [guessed]
2026   --with-custom-make-dir  Deprecated. Option is kept for backwards
2027                           compatibility and is ignored
2028   --with-jdk-variant      JDK variant to build (normal) [normal]
2029   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2030                           optimized) [release]
2031   --with-jvm-variants     JVM variants (separated by commas) to build
2032                           (server,client,minimal,core,zero,zeroshark,custom)
2033                           [server]
2034   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2035                           (arm64,aarch64) [aarch64]
2036   --with-devkit           use this devkit for compilers, tools and resources
2037   --with-sys-root         alias for --with-sysroot for backwards compatability
2038   --with-sysroot          use this directory as sysroot
2039   --with-tools-dir        alias for --with-toolchain-path for backwards
2040                           compatibility
2041   --with-toolchain-path   prepend these directories when searching for
2042                           toolchain binaries (compilers etc)
2043   --with-extra-path       prepend these directories to the default path
2044   --with-sdk-name         use the platform SDK of the given name. [macosx]
2045   --with-conf-name        use this as the name of the configuration [generated
2046                           from important configuration options]
2047   --with-output-sync      set make output sync type if supported by make.
2048                           [recurse]
2049   --with-default-make-target
2050                           set the default make target [exploded-image]
2051   --with-cacerts-file     specify alternative cacerts file
2052   --with-copyright-year   Set copyright year value for build [current year]
2053   --with-milestone        Deprecated. Option is kept for backwards
2054                           compatibility and is ignored
2055   --with-update-version   Deprecated. Option is kept for backwards
2056                           compatibility and is ignored
2057   --with-user-release-suffix
2058                           Deprecated. Option is kept for backwards
2059                           compatibility and is ignored
2060   --with-build-number     Deprecated. Option is kept for backwards
2061                           compatibility and is ignored
2062   --with-version-string   Set version string [calculated]
2063   --with-version-pre      Set the base part of the version 'PRE' field
2064                           (pre-release identifier) ['internal']
2065   --with-version-opt      Set version 'OPT' field (build metadata)
2066                           [<timestamp>.<user>.<dirname>]
2067   --with-version-build    Set version 'BUILD' field (build number) [not
2068                           specified]
2069   --with-version-major    Set version 'MAJOR' field (first number) [current
2070                           source value]
2071   --with-version-minor    Set version 'MINOR' field (second number) [current
2072                           source value]
2073   --with-version-security Set version 'SECURITY' field (third number) [current
2074                           source value]
2075   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2076                           specified]
2077   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2078   --with-build-jdk        path to JDK of same version as is being built[the
2079                           newly built JDK]
2080   --with-add-source-root  Deprecated. Option is kept for backwards
2081                           compatibility and is ignored
2082   --with-override-source-root
2083                           Deprecated. Option is kept for backwards
2084                           compatibility and is ignored
2085   --with-adds-and-overrides
2086                           Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-override-langtools
2089                           Deprecated. Option is kept for backwards
2090                           compatibility and is ignored
2091   --with-override-corba   Deprecated. Option is kept for backwards
2092                           compatibility and is ignored
2093   --with-override-jaxp    Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-override-jaxws   Deprecated. Option is kept for backwards
2096                           compatibility and is ignored
2097   --with-override-hotspot Deprecated. Option is kept for backwards
2098                           compatibility and is ignored
2099   --with-override-nashorn Deprecated. Option is kept for backwards
2100                           compatibility and is ignored
2101   --with-override-jdk     Deprecated. Option is kept for backwards
2102                           compatibility and is ignored
2103   --with-import_hotspot   Deprecated. Option is kept for backwards
2104                           compatibility and is ignored
2105   --with-import-modules   import a set of prebuilt modules either as a zip
2106                           file or an exploded directory
2107   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2108                           to show possible values [platform dependent]
2109   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2110   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2111   --with-extra-ldflags    extra flags to be used when linking jdk
2112   --with-toolchain-version
2113                           the version of the toolchain to look for, use
2114                           '--help' to show possible values [platform
2115                           dependent]
2116   --with-build-devkit     Devkit to use for the build platform toolchain
2117   --with-jtreg            Regression Test Harness [probed]
2118   --with-abi-profile      specify ABI profile for ARM builds
2119                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2120                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2121                           [toolchain dependent]
2122   --with-native-debug-symbols
2123                           set the native debug symbol configuration (none,
2124                           internal, external, zipped) [varying]
2125   --with-stdc++lib=<static>,<dynamic>,<default>
2126                           force linking of the C++ runtime on Linux to either
2127                           static or dynamic, default is static with dynamic as
2128                           fallback
2129   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2130                           (Windows only) [probed]
2131   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2132                           (Windows only) [probed]
2133   --with-x                use the X Window System
2134   --with-cups             specify prefix directory for the cups package
2135                           (expecting the headers under PATH/include)
2136   --with-cups-include     specify directory for the cups include files
2137   --with-freetype         specify prefix directory for the freetype package
2138                           (expecting the libraries under PATH/lib and the
2139                           headers under PATH/include)
2140   --with-freetype-include specify directory for the freetype include files
2141   --with-freetype-lib     specify directory for the freetype library
2142   --with-freetype-src     specify directory with freetype sources to
2143                           automatically build the library (experimental,
2144                           Windows-only)
2145   --with-alsa             specify prefix directory for the alsa package
2146                           (expecting the libraries under PATH/lib and the
2147                           headers under PATH/include)
2148   --with-alsa-include     specify directory for the alsa include files
2149   --with-alsa-lib         specify directory for the alsa library
2150   --with-libffi           specify prefix directory for the libffi package
2151                           (expecting the libraries under PATH/lib and the
2152                           headers under PATH/include)
2153   --with-libffi-include   specify directory for the libffi include files
2154   --with-libffi-lib       specify directory for the libffi library
2155   --with-libjpeg          use libjpeg from build system or OpenJDK source
2156                           (system, bundled) [bundled]
2157   --with-giflib           use giflib from build system or OpenJDK source
2158                           (system, bundled) [bundled]
2159   --with-libpng           use libpng from build system or OpenJDK source
2160                           (system, bundled) [bundled]
2161   --with-zlib             use zlib from build system or OpenJDK source
2162                           (system, bundled) [bundled]
2163   --with-lcms             use lcms2 from build system or OpenJDK source
2164                           (system, bundled) [bundled]
2165   --with-dxsdk            Deprecated. Option is kept for backwards
2166                           compatibility and is ignored
2167   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2168                           compatibility and is ignored
2169   --with-dxsdk-include    Deprecated. Option is kept for backwards
2170                           compatibility and is ignored
2171   --with-libelf           specify prefix directory for the libelf package
2172                           (expecting the libraries under PATH/lib and the
2173                           headers under PATH/include)
2174   --with-libelf-include   specify directory for the libelf include files
2175   --with-libelf-lib       specify directory for the libelf library
2176   --with-jvm-features     additional JVM features to enable (separated by
2177                           comma), use '--help' to show possible values [none]
2178   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2179                           compatibility and is ignored
2180   --with-num-cores        number of cores in the build system, e.g.
2181                           --with-num-cores=8 [probed]
2182   --with-memory-size      memory (in MB) available in the build system, e.g.
2183                           --with-memory-size=1024 [probed]
2184   --with-jobs             number of parallel jobs to let make run [calculated
2185                           based on cores and memory]
2186   --with-test-jobs        number of parallel tests jobs to run [based on build
2187                           jobs]
2188   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2189                           invocations of boot JDK, overriding the default
2190                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2191                           -enableassertions"
2192   --with-sjavac-server-java
2193                           use this java binary for running the sjavac
2194                           background server [Boot JDK java]
2195   --with-ccache-dir       where to store ccache files [~/.ccache]
2196 
2197 Some influential environment variables:
2198   BASENAME    Override default value for BASENAME
2199   BASH        Override default value for BASH
2200   CAT         Override default value for CAT
2201   CHMOD       Override default value for CHMOD
2202   CMP         Override default value for CMP
2203   COMM        Override default value for COMM
2204   CP          Override default value for CP
2205   CUT         Override default value for CUT
2206   DATE        Override default value for DATE
2207   DIFF        Override default value for DIFF
2208   DIRNAME     Override default value for DIRNAME
2209   ECHO        Override default value for ECHO
2210   EXPR        Override default value for EXPR
2211   FILE        Override default value for FILE
2212   FIND        Override default value for FIND
2213   HEAD        Override default value for HEAD
2214   GUNZIP      Override default value for GUNZIP
2215   GZIP        Override default value for GZIP
2216   LN          Override default value for LN
2217   LS          Override default value for LS
2218   MKDIR       Override default value for MKDIR
2219   MKTEMP      Override default value for MKTEMP
2220   MV          Override default value for MV
2221   NAWK        Override default value for NAWK
2222   PRINTF      Override default value for PRINTF
2223   RM          Override default value for RM
2224   RMDIR       Override default value for RMDIR
2225   SH          Override default value for SH
2226   SORT        Override default value for SORT
2227   TAIL        Override default value for TAIL
2228   TAR         Override default value for TAR
2229   TEE         Override default value for TEE
2230   TOUCH       Override default value for TOUCH
2231   TR          Override default value for TR
2232   UNAME       Override default value for UNAME
2233   UNIQ        Override default value for UNIQ
2234   WC          Override default value for WC
2235   WHICH       Override default value for WHICH
2236   XARGS       Override default value for XARGS
2237   AWK         Override default value for AWK
2238   GREP        Override default value for GREP
2239   EGREP       Override default value for EGREP
2240   FGREP       Override default value for FGREP
2241   SED         Override default value for SED
2242   CYGPATH     Override default value for CYGPATH
2243   READLINK    Override default value for READLINK
2244   DF          Override default value for DF
2245   CPIO        Override default value for CPIO
2246   NICE        Override default value for NICE
2247   MAKE        Override default value for MAKE
2248   UNZIP       Override default value for UNZIP
2249   ZIPEXE      Override default value for ZIPEXE
2250   LDD         Override default value for LDD
2251   OTOOL       Override default value for OTOOL
2252   READELF     Override default value for READELF
2253   HG          Override default value for HG
2254   STAT        Override default value for STAT
2255   TIME        Override default value for TIME
2256   DTRACE      Override default value for DTRACE
2257   PATCH       Override default value for PATCH
2258   DSYMUTIL    Override default value for DSYMUTIL
2259   XATTR       Override default value for XATTR
2260   CODESIGN    Override default value for CODESIGN
2261   SETFILE     Override default value for SETFILE
2262   PKG_CONFIG  path to pkg-config utility
2263   JAVA        Override default value for JAVA
2264   JAVAC       Override default value for JAVAC
2265   JAVAH       Override default value for JAVAH
2266   JAR         Override default value for JAR
2267   JARSIGNER   Override default value for JARSIGNER
2268   CC          C compiler command
2269   CFLAGS      C compiler flags
2270   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2271               nonstandard directory <lib dir>
2272   LIBS        libraries to pass to the linker, e.g. -l<library>
2273   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2274               you have headers in a nonstandard directory <include dir>
2275   CXX         C++ compiler command
2276   CXXFLAGS    C++ compiler flags
2277   CPP         C preprocessor
2278   CXXCPP      C++ preprocessor
2279   AS          Override default value for AS
2280   AR          Override default value for AR
2281   LIPO        Override default value for LIPO
2282   STRIP       Override default value for STRIP
2283   NM          Override default value for NM
2284   GNM         Override default value for GNM
2285   OBJCOPY     Override default value for OBJCOPY
2286   OBJDUMP     Override default value for OBJDUMP
2287   BUILD_CC    Override default value for BUILD_CC
2288   BUILD_CXX   Override default value for BUILD_CXX
2289   BUILD_NM    Override default value for BUILD_NM
2290   BUILD_AR    Override default value for BUILD_AR
2291   BUILD_OBJCOPY
2292               Override default value for BUILD_OBJCOPY
2293   BUILD_STRIP Override default value for BUILD_STRIP
2294   JTREGEXE    Override default value for JTREGEXE
2295   XMKMF       Path to xmkmf, Makefile generator for X Window System
2296   FREETYPE_CFLAGS
2297               C compiler flags for FREETYPE, overriding pkg-config
2298   FREETYPE_LIBS
2299               linker flags for FREETYPE, overriding pkg-config
2300   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2301   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2302   LIBFFI_CFLAGS
2303               C compiler flags for LIBFFI, overriding pkg-config
2304   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2305   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2306   PNG_LIBS    linker flags for PNG, overriding pkg-config
2307   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2308   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2309   ELF_CFLAGS  C compiler flags for ELF, overriding pkg-config
2310   ELF_LIBS    linker flags for ELF, overriding pkg-config
2311   ICECC_CMD   Override default value for ICECC_CMD
2312   ICECC_CREATE_ENV
2313               Override default value for ICECC_CREATE_ENV
2314   ICECC_WRAPPER
2315               Override default value for ICECC_WRAPPER
2316   CCACHE      Override default value for CCACHE
2317 
2318 Use these variables to override the choices made by `configure' or to help
2319 it to find libraries and programs with nonstandard names/locations.
2320 
2321 Report bugs to <build-dev@openjdk.java.net>.
2322 OpenJDK home page: <http://openjdk.java.net>.
2323 _ACEOF
2324 ac_status=$?
2325 fi
2326 
2327 if test "$ac_init_help" = "recursive"; then
2328   # If there are subdirs, report their specific --help.
2329   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2330     test -d "$ac_dir" ||
2331       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2332       continue
2333     ac_builddir=.
2334 
2335 case "$ac_dir" in
2336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2337 *)
2338   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2339   # A ".." for each directory in $ac_dir_suffix.
2340   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2341   case $ac_top_builddir_sub in
2342   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2343   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2344   esac ;;
2345 esac
2346 ac_abs_top_builddir=$ac_pwd
2347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2348 # for backward compatibility:
2349 ac_top_builddir=$ac_top_build_prefix
2350 
2351 case $srcdir in
2352   .)  # We are building in place.
2353     ac_srcdir=.
2354     ac_top_srcdir=$ac_top_builddir_sub
2355     ac_abs_top_srcdir=$ac_pwd ;;
2356   [\\/]* | ?:[\\/]* )  # Absolute name.
2357     ac_srcdir=$srcdir$ac_dir_suffix;
2358     ac_top_srcdir=$srcdir
2359     ac_abs_top_srcdir=$srcdir ;;
2360   *) # Relative name.
2361     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2362     ac_top_srcdir=$ac_top_build_prefix$srcdir
2363     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2364 esac
2365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2366 
2367     cd "$ac_dir" || { ac_status=$?; continue; }
2368     # Check for guested configure.
2369     if test -f "$ac_srcdir/configure.gnu"; then
2370       echo &&
2371       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2372     elif test -f "$ac_srcdir/configure"; then
2373       echo &&
2374       $SHELL "$ac_srcdir/configure" --help=recursive
2375     else
2376       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2377     fi || ac_status=$?
2378     cd "$ac_pwd" || { ac_status=$?; break; }
2379   done
2380 fi
2381 
2382 test -n "$ac_init_help" && exit $ac_status
2383 if $ac_init_version; then
2384   cat <<\_ACEOF
2385 OpenJDK configure jdk9
2386 generated by GNU Autoconf 2.69
2387 
2388 Copyright (C) 2012 Free Software Foundation, Inc.
2389 This configure script is free software; the Free Software Foundation
2390 gives unlimited permission to copy, distribute and modify it.
2391 _ACEOF
2392   exit
2393 fi
2394 
2395 ## ------------------------ ##
2396 ## Autoconf initialization. ##
2397 ## ------------------------ ##
2398 
2399 # ac_fn_c_try_compile LINENO
2400 # --------------------------
2401 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2402 ac_fn_c_try_compile ()
2403 {
2404   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405   rm -f conftest.$ac_objext
2406   if { { ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412 $as_echo "$ac_try_echo"; } >&5
2413   (eval "$ac_compile") 2>conftest.err
2414   ac_status=$?
2415   if test -s conftest.err; then
2416     grep -v '^ *+' conftest.err >conftest.er1
2417     cat conftest.er1 >&5
2418     mv -f conftest.er1 conftest.err
2419   fi
2420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421   test $ac_status = 0; } && {
2422          test -z "$ac_c_werror_flag" ||
2423          test ! -s conftest.err
2424        } && test -s conftest.$ac_objext; then :
2425   ac_retval=0
2426 else
2427   $as_echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429 
2430         ac_retval=1
2431 fi
2432   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433   as_fn_set_status $ac_retval
2434 
2435 } # ac_fn_c_try_compile
2436 
2437 # ac_fn_cxx_try_compile LINENO
2438 # ----------------------------
2439 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2440 ac_fn_cxx_try_compile ()
2441 {
2442   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443   rm -f conftest.$ac_objext
2444   if { { ac_try="$ac_compile"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2450 $as_echo "$ac_try_echo"; } >&5
2451   (eval "$ac_compile") 2>conftest.err
2452   ac_status=$?
2453   if test -s conftest.err; then
2454     grep -v '^ *+' conftest.err >conftest.er1
2455     cat conftest.er1 >&5
2456     mv -f conftest.er1 conftest.err
2457   fi
2458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459   test $ac_status = 0; } && {
2460          test -z "$ac_cxx_werror_flag" ||
2461          test ! -s conftest.err
2462        } && test -s conftest.$ac_objext; then :
2463   ac_retval=0
2464 else
2465   $as_echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467 
2468         ac_retval=1
2469 fi
2470   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471   as_fn_set_status $ac_retval
2472 
2473 } # ac_fn_cxx_try_compile
2474 
2475 # ac_fn_c_try_cpp LINENO
2476 # ----------------------
2477 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2478 ac_fn_c_try_cpp ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   if { { ac_try="$ac_cpp conftest.$ac_ext"
2482 case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2489   ac_status=$?
2490   if test -s conftest.err; then
2491     grep -v '^ *+' conftest.err >conftest.er1
2492     cat conftest.er1 >&5
2493     mv -f conftest.er1 conftest.err
2494   fi
2495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496   test $ac_status = 0; } > conftest.i && {
2497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2498          test ! -s conftest.err
2499        }; then :
2500   ac_retval=0
2501 else
2502   $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504 
2505     ac_retval=1
2506 fi
2507   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2508   as_fn_set_status $ac_retval
2509 
2510 } # ac_fn_c_try_cpp
2511 
2512 # ac_fn_cxx_try_cpp LINENO
2513 # ------------------------
2514 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2515 ac_fn_cxx_try_cpp ()
2516 {
2517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518   if { { ac_try="$ac_cpp conftest.$ac_ext"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2524 $as_echo "$ac_try_echo"; } >&5
2525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2526   ac_status=$?
2527   if test -s conftest.err; then
2528     grep -v '^ *+' conftest.err >conftest.er1
2529     cat conftest.er1 >&5
2530     mv -f conftest.er1 conftest.err
2531   fi
2532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533   test $ac_status = 0; } > conftest.i && {
2534          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2535          test ! -s conftest.err
2536        }; then :
2537   ac_retval=0
2538 else
2539   $as_echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541 
2542     ac_retval=1
2543 fi
2544   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545   as_fn_set_status $ac_retval
2546 
2547 } # ac_fn_cxx_try_cpp
2548 
2549 # ac_fn_c_try_link LINENO
2550 # -----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded.
2552 ac_fn_c_try_link ()
2553 {
2554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555   rm -f conftest.$ac_objext conftest$ac_exeext
2556   if { { ac_try="$ac_link"
2557 case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563   (eval "$ac_link") 2>conftest.err
2564   ac_status=$?
2565   if test -s conftest.err; then
2566     grep -v '^ *+' conftest.err >conftest.er1
2567     cat conftest.er1 >&5
2568     mv -f conftest.er1 conftest.err
2569   fi
2570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571   test $ac_status = 0; } && {
2572          test -z "$ac_c_werror_flag" ||
2573          test ! -s conftest.err
2574        } && test -s conftest$ac_exeext && {
2575          test "$cross_compiling" = yes ||
2576          test -x conftest$ac_exeext
2577        }; then :
2578   ac_retval=0
2579 else
2580   $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582 
2583         ac_retval=1
2584 fi
2585   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2586   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2587   # interfere with the next link command; also delete a directory that is
2588   # left behind by Apple's compiler.  We do this before executing the actions.
2589   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2590   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591   as_fn_set_status $ac_retval
2592 
2593 } # ac_fn_c_try_link
2594 
2595 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2596 # ---------------------------------------------------------
2597 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2598 # the include files in INCLUDES and setting the cache variable VAR
2599 # accordingly.
2600 ac_fn_cxx_check_header_mongrel ()
2601 {
2602   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603   if eval \${$3+:} false; then :
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605 $as_echo_n "checking for $2... " >&6; }
2606 if eval \${$3+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 fi
2609 eval ac_res=\$$3
2610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 else
2613   # Is the header compilable?
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2615 $as_echo_n "checking $2 usability... " >&6; }
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 $4
2619 #include <$2>
2620 _ACEOF
2621 if ac_fn_cxx_try_compile "$LINENO"; then :
2622   ac_header_compiler=yes
2623 else
2624   ac_header_compiler=no
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2628 $as_echo "$ac_header_compiler" >&6; }
2629 
2630 # Is the header present?
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2632 $as_echo_n "checking $2 presence... " >&6; }
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 #include <$2>
2636 _ACEOF
2637 if ac_fn_cxx_try_cpp "$LINENO"; then :
2638   ac_header_preproc=yes
2639 else
2640   ac_header_preproc=no
2641 fi
2642 rm -f conftest.err conftest.i conftest.$ac_ext
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2644 $as_echo "$ac_header_preproc" >&6; }
2645 
2646 # So?  What about this header?
2647 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2648   yes:no: )
2649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2650 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2653     ;;
2654   no:yes:* )
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2656 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2658 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2660 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2662 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2665 ( $as_echo "## ----------------------------------------- ##
2666 ## Report this to build-dev@openjdk.java.net ##
2667 ## ----------------------------------------- ##"
2668      ) | sed "s/^/$as_me: WARNING:     /" >&2
2669     ;;
2670 esac
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2672 $as_echo_n "checking for $2... " >&6; }
2673 if eval \${$3+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   eval "$3=\$ac_header_compiler"
2677 fi
2678 eval ac_res=\$$3
2679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680 $as_echo "$ac_res" >&6; }
2681 fi
2682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2683 
2684 } # ac_fn_cxx_check_header_mongrel
2685 
2686 # ac_fn_cxx_try_run LINENO
2687 # ------------------------
2688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2689 # that executables *can* be run.
2690 ac_fn_cxx_try_run ()
2691 {
2692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693   if { { ac_try="$ac_link"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699 $as_echo "$ac_try_echo"; } >&5
2700   (eval "$ac_link") 2>&5
2701   ac_status=$?
2702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2704   { { case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710   (eval "$ac_try") 2>&5
2711   ac_status=$?
2712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713   test $ac_status = 0; }; }; then :
2714   ac_retval=0
2715 else
2716   $as_echo "$as_me: program exited with status $ac_status" >&5
2717        $as_echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719 
2720        ac_retval=$ac_status
2721 fi
2722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724   as_fn_set_status $ac_retval
2725 
2726 } # ac_fn_cxx_try_run
2727 
2728 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2729 # ---------------------------------------------------------
2730 # Tests whether HEADER exists and can be compiled using the include files in
2731 # INCLUDES, setting the cache variable VAR accordingly.
2732 ac_fn_cxx_check_header_compile ()
2733 {
2734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2736 $as_echo_n "checking for $2... " >&6; }
2737 if eval \${$3+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h.  */
2742 $4
2743 #include <$2>
2744 _ACEOF
2745 if ac_fn_cxx_try_compile "$LINENO"; then :
2746   eval "$3=yes"
2747 else
2748   eval "$3=no"
2749 fi
2750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 fi
2752 eval ac_res=\$$3
2753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2756 
2757 } # ac_fn_cxx_check_header_compile
2758 
2759 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2760 # ----------------------------------------------
2761 # Tries to find the compile-time value of EXPR in a program that includes
2762 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2763 # computed
2764 ac_fn_cxx_compute_int ()
2765 {
2766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767   if test "$cross_compiling" = yes; then
2768     # Depending upon the size, compute the lo and hi bounds.
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h.  */
2771 $4
2772 int
2773 main ()
2774 {
2775 static int test_array [1 - 2 * !(($2) >= 0)];
2776 test_array [0] = 0;
2777 return test_array [0];
2778 
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 if ac_fn_cxx_try_compile "$LINENO"; then :
2784   ac_lo=0 ac_mid=0
2785   while :; do
2786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h.  */
2788 $4
2789 int
2790 main ()
2791 {
2792 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2793 test_array [0] = 0;
2794 return test_array [0];
2795 
2796   ;
2797   return 0;
2798 }
2799 _ACEOF
2800 if ac_fn_cxx_try_compile "$LINENO"; then :
2801   ac_hi=$ac_mid; break
2802 else
2803   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2804                         if test $ac_lo -le $ac_mid; then
2805                           ac_lo= ac_hi=
2806                           break
2807                         fi
2808                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2809 fi
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811   done
2812 else
2813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h.  */
2815 $4
2816 int
2817 main ()
2818 {
2819 static int test_array [1 - 2 * !(($2) < 0)];
2820 test_array [0] = 0;
2821 return test_array [0];
2822 
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 if ac_fn_cxx_try_compile "$LINENO"; then :
2828   ac_hi=-1 ac_mid=-1
2829   while :; do
2830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 $4
2833 int
2834 main ()
2835 {
2836 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2837 test_array [0] = 0;
2838 return test_array [0];
2839 
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_cxx_try_compile "$LINENO"; then :
2845   ac_lo=$ac_mid; break
2846 else
2847   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2848                         if test $ac_mid -le $ac_hi; then
2849                           ac_lo= ac_hi=
2850                           break
2851                         fi
2852                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855   done
2856 else
2857   ac_lo= ac_hi=
2858 fi
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 # Binary search between lo and hi bounds.
2863 while test "x$ac_lo" != "x$ac_hi"; do
2864   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h.  */
2867 $4
2868 int
2869 main ()
2870 {
2871 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2872 test_array [0] = 0;
2873 return test_array [0];
2874 
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_cxx_try_compile "$LINENO"; then :
2880   ac_hi=$ac_mid
2881 else
2882   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 done
2886 case $ac_lo in #((
2887 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2888 '') ac_retval=1 ;;
2889 esac
2890   else
2891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h.  */
2893 $4
2894 static long int longval () { return $2; }
2895 static unsigned long int ulongval () { return $2; }
2896 #include <stdio.h>
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901 
2902   FILE *f = fopen ("conftest.val", "w");
2903   if (! f)
2904     return 1;
2905   if (($2) < 0)
2906     {
2907       long int i = longval ();
2908       if (i != ($2))
2909         return 1;
2910       fprintf (f, "%ld", i);
2911     }
2912   else
2913     {
2914       unsigned long int i = ulongval ();
2915       if (i != ($2))
2916         return 1;
2917       fprintf (f, "%lu", i);
2918     }
2919   /* Do not output a trailing newline, as this causes \r\n confusion
2920      on some platforms.  */
2921   return ferror (f) || fclose (f) != 0;
2922 
2923   ;
2924   return 0;
2925 }
2926 _ACEOF
2927 if ac_fn_cxx_try_run "$LINENO"; then :
2928   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2929 else
2930   ac_retval=1
2931 fi
2932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2933   conftest.$ac_objext conftest.beam conftest.$ac_ext
2934 rm -f conftest.val
2935 
2936   fi
2937   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2938   as_fn_set_status $ac_retval
2939 
2940 } # ac_fn_cxx_compute_int
2941 
2942 # ac_fn_cxx_try_link LINENO
2943 # -------------------------
2944 # Try to link conftest.$ac_ext, and return whether this succeeded.
2945 ac_fn_cxx_try_link ()
2946 {
2947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2948   rm -f conftest.$ac_objext conftest$ac_exeext
2949   if { { ac_try="$ac_link"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956   (eval "$ac_link") 2>conftest.err
2957   ac_status=$?
2958   if test -s conftest.err; then
2959     grep -v '^ *+' conftest.err >conftest.er1
2960     cat conftest.er1 >&5
2961     mv -f conftest.er1 conftest.err
2962   fi
2963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964   test $ac_status = 0; } && {
2965          test -z "$ac_cxx_werror_flag" ||
2966          test ! -s conftest.err
2967        } && test -s conftest$ac_exeext && {
2968          test "$cross_compiling" = yes ||
2969          test -x conftest$ac_exeext
2970        }; then :
2971   ac_retval=0
2972 else
2973   $as_echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975 
2976         ac_retval=1
2977 fi
2978   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2979   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2980   # interfere with the next link command; also delete a directory that is
2981   # left behind by Apple's compiler.  We do this before executing the actions.
2982   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2984   as_fn_set_status $ac_retval
2985 
2986 } # ac_fn_cxx_try_link
2987 
2988 # ac_fn_cxx_check_func LINENO FUNC VAR
2989 # ------------------------------------
2990 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2991 ac_fn_cxx_check_func ()
2992 {
2993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2995 $as_echo_n "checking for $2... " >&6; }
2996 if eval \${$3+:} false; then :
2997   $as_echo_n "(cached) " >&6
2998 else
2999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h.  */
3001 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3003 #define $2 innocuous_$2
3004 
3005 /* System header to define __stub macros and hopefully few prototypes,
3006     which can conflict with char $2 (); below.
3007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008     <limits.h> exists even on freestanding compilers.  */
3009 
3010 #ifdef __STDC__
3011 # include <limits.h>
3012 #else
3013 # include <assert.h>
3014 #endif
3015 
3016 #undef $2
3017 
3018 /* Override any GCC internal prototype to avoid an error.
3019    Use char because int might match the return type of a GCC
3020    builtin and then its argument prototype would still apply.  */
3021 #ifdef __cplusplus
3022 extern "C"
3023 #endif
3024 char $2 ();
3025 /* The GNU C library defines this for functions which it implements
3026     to always fail with ENOSYS.  Some functions are actually named
3027     something starting with __ and the normal name is an alias.  */
3028 #if defined __stub_$2 || defined __stub___$2
3029 choke me
3030 #endif
3031 
3032 int
3033 main ()
3034 {
3035 return $2 ();
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 if ac_fn_cxx_try_link "$LINENO"; then :
3041   eval "$3=yes"
3042 else
3043   eval "$3=no"
3044 fi
3045 rm -f core conftest.err conftest.$ac_objext \
3046     conftest$ac_exeext conftest.$ac_ext
3047 fi
3048 eval ac_res=\$$3
3049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3050 $as_echo "$ac_res" >&6; }
3051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3052 
3053 } # ac_fn_cxx_check_func
3054 
3055 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3056 # -------------------------------------------------------
3057 # Tests whether HEADER exists and can be compiled using the include files in
3058 # INCLUDES, setting the cache variable VAR accordingly.
3059 ac_fn_c_check_header_compile ()
3060 {
3061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3063 $as_echo_n "checking for $2... " >&6; }
3064 if eval \${$3+:} false; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h.  */
3069 $4
3070 #include <$2>
3071 _ACEOF
3072 if ac_fn_c_try_compile "$LINENO"; then :
3073   eval "$3=yes"
3074 else
3075   eval "$3=no"
3076 fi
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 fi
3079 eval ac_res=\$$3
3080                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3081 $as_echo "$ac_res" >&6; }
3082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3083 
3084 } # ac_fn_c_check_header_compile
3085 cat >config.log <<_ACEOF
3086 This file contains any messages produced by compilers while
3087 running configure, to aid debugging if configure makes a mistake.
3088 
3089 It was created by OpenJDK $as_me jdk9, which was
3090 generated by GNU Autoconf 2.69.  Invocation command line was
3091 
3092   $ $0 $@
3093 
3094 _ACEOF
3095 exec 5>>config.log
3096 {
3097 cat <<_ASUNAME
3098 ## --------- ##
3099 ## Platform. ##
3100 ## --------- ##
3101 
3102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3107 
3108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3109 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3110 
3111 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3112 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3114 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3115 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3116 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3117 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3118 
3119 _ASUNAME
3120 
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126     $as_echo "PATH: $as_dir"
3127   done
3128 IFS=$as_save_IFS
3129 
3130 } >&5
3131 
3132 cat >&5 <<_ACEOF
3133 
3134 
3135 ## ----------- ##
3136 ## Core tests. ##
3137 ## ----------- ##
3138 
3139 _ACEOF
3140 
3141 
3142 # Keep a trace of the command line.
3143 # Strip out --no-create and --no-recursion so they do not pile up.
3144 # Strip out --silent because we don't want to record it for future runs.
3145 # Also quote any args containing shell meta-characters.
3146 # Make two passes to allow for proper duplicate-argument suppression.
3147 ac_configure_args=
3148 ac_configure_args0=
3149 ac_configure_args1=
3150 ac_must_keep_next=false
3151 for ac_pass in 1 2
3152 do
3153   for ac_arg
3154   do
3155     case $ac_arg in
3156     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3157     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3158     | -silent | --silent | --silen | --sile | --sil)
3159       continue ;;
3160     *\'*)
3161       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3162     esac
3163     case $ac_pass in
3164     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3165     2)
3166       as_fn_append ac_configure_args1 " '$ac_arg'"
3167       if test $ac_must_keep_next = true; then
3168         ac_must_keep_next=false # Got value, back to normal.
3169       else
3170         case $ac_arg in
3171           *=* | --config-cache | -C | -disable-* | --disable-* \
3172           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3173           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3174           | -with-* | --with-* | -without-* | --without-* | --x)
3175             case "$ac_configure_args0 " in
3176               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3177             esac
3178             ;;
3179           -* ) ac_must_keep_next=true ;;
3180         esac
3181       fi
3182       as_fn_append ac_configure_args " '$ac_arg'"
3183       ;;
3184     esac
3185   done
3186 done
3187 { ac_configure_args0=; unset ac_configure_args0;}
3188 { ac_configure_args1=; unset ac_configure_args1;}
3189 
3190 # When interrupted or exit'd, cleanup temporary files, and complete
3191 # config.log.  We remove comments because anyway the quotes in there
3192 # would cause problems or look ugly.
3193 # WARNING: Use '\'' to represent an apostrophe within the trap.
3194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3195 trap 'exit_status=$?
3196   # Save into config.log some information that might help in debugging.
3197   {
3198     echo
3199 
3200     $as_echo "## ---------------- ##
3201 ## Cache variables. ##
3202 ## ---------------- ##"
3203     echo
3204     # The following way of writing the cache mishandles newlines in values,
3205 (
3206   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3207     eval ac_val=\$$ac_var
3208     case $ac_val in #(
3209     *${as_nl}*)
3210       case $ac_var in #(
3211       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3213       esac
3214       case $ac_var in #(
3215       _ | IFS | as_nl) ;; #(
3216       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3217       *) { eval $ac_var=; unset $ac_var;} ;;
3218       esac ;;
3219     esac
3220   done
3221   (set) 2>&1 |
3222     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3223     *${as_nl}ac_space=\ *)
3224       sed -n \
3225         "s/'\''/'\''\\\\'\'''\''/g;
3226           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3227       ;; #(
3228     *)
3229       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3230       ;;
3231     esac |
3232     sort
3233 )
3234     echo
3235 
3236     $as_echo "## ----------------- ##
3237 ## Output variables. ##
3238 ## ----------------- ##"
3239     echo
3240     for ac_var in $ac_subst_vars
3241     do
3242       eval ac_val=\$$ac_var
3243       case $ac_val in
3244       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245       esac
3246       $as_echo "$ac_var='\''$ac_val'\''"
3247     done | sort
3248     echo
3249 
3250     if test -n "$ac_subst_files"; then
3251       $as_echo "## ------------------- ##
3252 ## File substitutions. ##
3253 ## ------------------- ##"
3254       echo
3255       for ac_var in $ac_subst_files
3256       do
3257         eval ac_val=\$$ac_var
3258         case $ac_val in
3259         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3260         esac
3261         $as_echo "$ac_var='\''$ac_val'\''"
3262       done | sort
3263       echo
3264     fi
3265 
3266     if test -s confdefs.h; then
3267       $as_echo "## ----------- ##
3268 ## confdefs.h. ##
3269 ## ----------- ##"
3270       echo
3271       cat confdefs.h
3272       echo
3273     fi
3274     test "$ac_signal" != 0 &&
3275       $as_echo "$as_me: caught signal $ac_signal"
3276     $as_echo "$as_me: exit $exit_status"
3277   } >&5
3278   rm -f core *.core core.conftest.* &&
3279     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3280     exit $exit_status
3281 ' 0
3282 for ac_signal in 1 2 13 15; do
3283   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3284 done
3285 ac_signal=0
3286 
3287 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3288 rm -f -r conftest* confdefs.h
3289 
3290 $as_echo "/* confdefs.h */" > confdefs.h
3291 
3292 # Predefined preprocessor variables.
3293 
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_NAME "$PACKAGE_NAME"
3296 _ACEOF
3297 
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3300 _ACEOF
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3304 _ACEOF
3305 
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_STRING "$PACKAGE_STRING"
3308 _ACEOF
3309 
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3312 _ACEOF
3313 
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_URL "$PACKAGE_URL"
3316 _ACEOF
3317 
3318 
3319 # Let the site file select an alternate cache file if it wants to.
3320 # Prefer an explicitly selected file to automatically selected ones.
3321 ac_site_file1=NONE
3322 ac_site_file2=NONE
3323 if test -n "$CONFIG_SITE"; then
3324   # We do not want a PATH search for config.site.
3325   case $CONFIG_SITE in #((
3326     -*)  ac_site_file1=./$CONFIG_SITE;;
3327     */*) ac_site_file1=$CONFIG_SITE;;
3328     *)   ac_site_file1=./$CONFIG_SITE;;
3329   esac
3330 elif test "x$prefix" != xNONE; then
3331   ac_site_file1=$prefix/share/config.site
3332   ac_site_file2=$prefix/etc/config.site
3333 else
3334   ac_site_file1=$ac_default_prefix/share/config.site
3335   ac_site_file2=$ac_default_prefix/etc/config.site
3336 fi
3337 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3338 do
3339   test "x$ac_site_file" = xNONE && continue
3340   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3341     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3342 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3343     sed 's/^/| /' "$ac_site_file" >&5
3344     . "$ac_site_file" \
3345       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "failed to load site script $ac_site_file
3348 See \`config.log' for more details" "$LINENO" 5; }
3349   fi
3350 done
3351 
3352 if test -r "$cache_file"; then
3353   # Some versions of bash will fail to source /dev/null (special files
3354   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3355   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3356     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3357 $as_echo "$as_me: loading cache $cache_file" >&6;}
3358     case $cache_file in
3359       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3360       *)                      . "./$cache_file";;
3361     esac
3362   fi
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3365 $as_echo "$as_me: creating cache $cache_file" >&6;}
3366   >$cache_file
3367 fi
3368 
3369 # Check that the precious variables saved in the cache have kept the same
3370 # value.
3371 ac_cache_corrupted=false
3372 for ac_var in $ac_precious_vars; do
3373   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3374   eval ac_new_set=\$ac_env_${ac_var}_set
3375   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3376   eval ac_new_val=\$ac_env_${ac_var}_value
3377   case $ac_old_set,$ac_new_set in
3378     set,)
3379       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3381       ac_cache_corrupted=: ;;
3382     ,set)
3383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3385       ac_cache_corrupted=: ;;
3386     ,);;
3387     *)
3388       if test "x$ac_old_val" != "x$ac_new_val"; then
3389         # differences in whitespace do not lead to failure.
3390         ac_old_val_w=`echo x $ac_old_val`
3391         ac_new_val_w=`echo x $ac_new_val`
3392         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3393           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3395           ac_cache_corrupted=:
3396         else
3397           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3399           eval $ac_var=\$ac_old_val
3400         fi
3401         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3402 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3403         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3404 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3405       fi;;
3406   esac
3407   # Pass precious variables to config.status.
3408   if test "$ac_new_set" = set; then
3409     case $ac_new_val in
3410     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3411     *) ac_arg=$ac_var=$ac_new_val ;;
3412     esac
3413     case " $ac_configure_args " in
3414       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3415       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3416     esac
3417   fi
3418 done
3419 if $ac_cache_corrupted; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3424   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3425 fi
3426 ## -------------------- ##
3427 ## Main body of script. ##
3428 ## -------------------- ##
3429 
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 
3436 
3437 
3438 ac_aux_dir=
3439 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3440   if test -f "$ac_dir/install-sh"; then
3441     ac_aux_dir=$ac_dir
3442     ac_install_sh="$ac_aux_dir/install-sh -c"
3443     break
3444   elif test -f "$ac_dir/install.sh"; then
3445     ac_aux_dir=$ac_dir
3446     ac_install_sh="$ac_aux_dir/install.sh -c"
3447     break
3448   elif test -f "$ac_dir/shtool"; then
3449     ac_aux_dir=$ac_dir
3450     ac_install_sh="$ac_aux_dir/shtool install -c"
3451     break
3452   fi
3453 done
3454 if test -z "$ac_aux_dir"; then
3455   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
3456 fi
3457 
3458 # These three variables are undocumented and unsupported,
3459 # and are intended to be withdrawn in a future Autoconf release.
3460 # They can cause serious problems if a builder's source tree is in a directory
3461 # whose full name contains unusual characters.
3462 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3463 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3464 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3465 
3466 
3467 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3468 
3469 #
3470 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3471 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3472 #
3473 # This code is free software; you can redistribute it and/or modify it
3474 # under the terms of the GNU General Public License version 2 only, as
3475 # published by the Free Software Foundation.  Oracle designates this
3476 # particular file as subject to the "Classpath" exception as provided
3477 # by Oracle in the LICENSE file that accompanied this code.
3478 #
3479 # This code is distributed in the hope that it will be useful, but WITHOUT
3480 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3481 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3482 # version 2 for more details (a copy is included in the LICENSE file that
3483 # accompanied this code).
3484 #
3485 # You should have received a copy of the GNU General Public License version
3486 # 2 along with this work; if not, write to the Free Software Foundation,
3487 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3488 #
3489 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3490 # or visit www.oracle.com if you need additional information or have any
3491 # questions.
3492 #
3493 
3494 #
3495 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3496 #
3497 # This program is free software; you can redistribute it and/or modify
3498 # it under the terms of the GNU General Public License as published by
3499 # the Free Software Foundation; either version 2 of the License, or
3500 # (at your option) any later version.
3501 #
3502 # This program is distributed in the hope that it will be useful, but
3503 # WITHOUT ANY WARRANTY; without even the implied warranty of
3504 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3505 # General Public License for more details.
3506 #
3507 # You should have received a copy of the GNU General Public License
3508 # along with this program; if not, write to the Free Software
3509 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3510 #
3511 # As a special exception to the GNU General Public License, if you
3512 # distribute this file as part of a program that contains a
3513 # configuration script generated by Autoconf, you may include it under
3514 # the same distribution terms that you use for the rest of that program.
3515 
3516 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3517 # ----------------------------------
3518 # PKG_PROG_PKG_CONFIG
3519 
3520 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3521 #
3522 # Check to see whether a particular set of modules exists.  Similar
3523 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3524 #
3525 #
3526 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3527 # this or PKG_CHECK_MODULES is called, or make sure to call
3528 # PKG_CHECK_EXISTS manually
3529 # --------------------------------------------------------------
3530 
3531 
3532 
3533 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3534 # ---------------------------------------------
3535 # _PKG_CONFIG
3536 
3537 # _PKG_SHORT_ERRORS_SUPPORTED
3538 # -----------------------------
3539 # _PKG_SHORT_ERRORS_SUPPORTED
3540 
3541 
3542 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3543 # [ACTION-IF-NOT-FOUND])
3544 #
3545 #
3546 # Note that if there is a possibility the first call to
3547 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3548 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3549 #
3550 #
3551 # --------------------------------------------------------------
3552 # PKG_CHECK_MODULES
3553 
3554 
3555 # Include these first...
3556 #
3557 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3558 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3559 #
3560 # This code is free software; you can redistribute it and/or modify it
3561 # under the terms of the GNU General Public License version 2 only, as
3562 # published by the Free Software Foundation.  Oracle designates this
3563 # particular file as subject to the "Classpath" exception as provided
3564 # by Oracle in the LICENSE file that accompanied this code.
3565 #
3566 # This code is distributed in the hope that it will be useful, but WITHOUT
3567 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3568 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3569 # version 2 for more details (a copy is included in the LICENSE file that
3570 # accompanied this code).
3571 #
3572 # You should have received a copy of the GNU General Public License version
3573 # 2 along with this work; if not, write to the Free Software Foundation,
3574 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3575 #
3576 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3577 # or visit www.oracle.com if you need additional information or have any
3578 # questions.
3579 #
3580 
3581 # Create a function/macro that takes a series of named arguments. The call is
3582 # similar to AC_DEFUN, but the setup of the function looks like this:
3583 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3584 # ... do something
3585 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3586 # ])
3587 # A star (*) in front of a named argument means that it is required and it's
3588 # presence will be verified. To pass e.g. the first value as a normal indexed
3589 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3590 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3591 # "ARG_FOO".
3592 #
3593 # The generated function can be called like this:
3594 # MYFUNC(FOO: [foo-val],
3595 #     BAR: [
3596 #         $ECHO hello world
3597 #     ])
3598 # Note that the argument value must start on the same line as the argument name.
3599 #
3600 # Argument 1: Name of the function to define
3601 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3602 # Argument 3: Argument array to treat as named, typically $@
3603 # Argument 4: The main function body
3604 
3605 
3606 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3607 # If so, then append $1 to $2 \
3608 # Also set JVM_ARG_OK to true/false depending on outcome.
3609 
3610 
3611 # Appends a string to a path variable, only adding the : when needed.
3612 
3613 
3614 # Prepends a string to a path variable, only adding the : when needed.
3615 
3616 
3617 # This will make sure the given variable points to a full and proper
3618 # path. This means:
3619 # 1) There will be no spaces in the path. On unix platforms,
3620 #    spaces in the path will result in an error. On Windows,
3621 #    the path will be rewritten using short-style to be space-free.
3622 # 2) The path will be absolute, and it will be in unix-style (on
3623 #     cygwin).
3624 # $1: The name of the variable to fix
3625 
3626 
3627 # This will make sure the given variable points to a executable
3628 # with a full and proper path. This means:
3629 # 1) There will be no spaces in the path. On unix platforms,
3630 #    spaces in the path will result in an error. On Windows,
3631 #    the path will be rewritten using short-style to be space-free.
3632 # 2) The path will be absolute, and it will be in unix-style (on
3633 #     cygwin).
3634 # Any arguments given to the executable is preserved.
3635 # If the input variable does not have a directory specification, then
3636 # it need to be in the PATH.
3637 # $1: The name of the variable to fix
3638 
3639 
3640 
3641 
3642 # Register a --with argument but mark it as deprecated
3643 # $1: The name of the with argument to deprecate, not including --with-
3644 
3645 
3646 # Register a --enable argument but mark it as deprecated
3647 # $1: The name of the with argument to deprecate, not including --enable-
3648 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3649 # $3: Messages to user.
3650 
3651 
3652 
3653 
3654 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3655 # $1: variable to check
3656 
3657 
3658 # Check that there are no unprocessed overridden variables left.
3659 # If so, they are an incorrect argument and we will exit with an error.
3660 
3661 
3662 # Setup a tool for the given variable. If correctly specified by the user,
3663 # use that value, otherwise search for the tool using the supplied code snippet.
3664 # $1: variable to set
3665 # $2: code snippet to call to look for the tool
3666 # $3: code snippet to call if variable was used to find tool
3667 
3668 
3669 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3670 # $1: variable to set
3671 # $2: executable name (or list of names) to look for
3672 # $3: [path]
3673 
3674 
3675 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3676 # $1: variable to set
3677 # $2: executable name (or list of names) to look for
3678 
3679 
3680 # Like BASIC_PATH_PROGS but fails if no tool was found.
3681 # $1: variable to set
3682 # $2: executable name (or list of names) to look for
3683 # $3: [path]
3684 
3685 
3686 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3687 # $1: variable to set
3688 # $2: autoconf macro to call to look for the special tool
3689 
3690 
3691 # Setup the most fundamental tools that relies on not much else to set up,
3692 # but is used by much of the early bootstrap code.
3693 
3694 
3695 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3696 
3697 
3698 # Evaluates platform specific overrides for devkit variables.
3699 # $1: Name of variable
3700 
3701 
3702 
3703 
3704 
3705 
3706 #%%% Simple tools %%%
3707 
3708 # Check if we have found a usable version of make
3709 # $1: the path to a potential make binary (or empty)
3710 # $2: the description on how we found this
3711 
3712 
3713 
3714 
3715 # Goes looking for a usable version of GNU make.
3716 
3717 
3718 
3719 
3720 
3721 
3722 
3723 
3724 
3725 
3726 # Check if build directory is on local disk. If not possible to determine,
3727 # we prefer to claim it's local.
3728 # Argument 1: directory to test
3729 # Argument 2: what to do if it is on local disk
3730 # Argument 3: what to do otherwise (remote disk or failure)
3731 
3732 
3733 # Check that source files have basic read permissions set. This might
3734 # not be the case in cygwin in certain conditions.
3735 
3736 
3737 
3738 
3739 # Check for support for specific options in bash
3740 
3741 
3742 ################################################################################
3743 #
3744 # Default make target
3745 #
3746 
3747 
3748 # Code to run after AC_OUTPUT
3749 
3750 
3751 #
3752 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3753 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3754 #
3755 # This code is free software; you can redistribute it and/or modify it
3756 # under the terms of the GNU General Public License version 2 only, as
3757 # published by the Free Software Foundation.  Oracle designates this
3758 # particular file as subject to the "Classpath" exception as provided
3759 # by Oracle in the LICENSE file that accompanied this code.
3760 #
3761 # This code is distributed in the hope that it will be useful, but WITHOUT
3762 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3763 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3764 # version 2 for more details (a copy is included in the LICENSE file that
3765 # accompanied this code).
3766 #
3767 # You should have received a copy of the GNU General Public License version
3768 # 2 along with this work; if not, write to the Free Software Foundation,
3769 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3770 #
3771 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3772 # or visit www.oracle.com if you need additional information or have any
3773 # questions.
3774 #
3775 
3776 
3777 
3778 
3779 
3780 # Helper function which possibly converts a path using DOS-style short mode.
3781 # If so, the updated path is stored in $new_path.
3782 # $1: The path to check
3783 
3784 
3785 # Helper function which possibly converts a path using DOS-style short mode.
3786 # If so, the updated path is stored in $new_path.
3787 # $1: The path to check
3788 
3789 
3790 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3791 # and could probably be heavily simplified. However, all changes in this
3792 # area tend to need lot of testing in different scenarios, and in lack of
3793 # proper unit testing, cleaning this up has not been deemed worth the effort
3794 # at the moment.
3795 
3796 
3797 
3798 
3799 
3800 
3801 
3802 
3803 
3804 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3805 
3806 
3807 
3808 
3809 # ... then the rest
3810 #
3811 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3812 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3813 #
3814 # This code is free software; you can redistribute it and/or modify it
3815 # under the terms of the GNU General Public License version 2 only, as
3816 # published by the Free Software Foundation.  Oracle designates this
3817 # particular file as subject to the "Classpath" exception as provided
3818 # by Oracle in the LICENSE file that accompanied this code.
3819 #
3820 # This code is distributed in the hope that it will be useful, but WITHOUT
3821 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3822 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3823 # version 2 for more details (a copy is included in the LICENSE file that
3824 # accompanied this code).
3825 #
3826 # You should have received a copy of the GNU General Public License version
3827 # 2 along with this work; if not, write to the Free Software Foundation,
3828 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3829 #
3830 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3831 # or visit www.oracle.com if you need additional information or have any
3832 # questions.
3833 #
3834 
3835 ########################################################################
3836 # This file handles detection of the Boot JDK. The Boot JDK detection
3837 # process has been developed as a response to solve a complex real-world
3838 # problem. Initially, it was simple, but it has grown as platform after
3839 # platform, idiosyncracy after idiosyncracy has been supported.
3840 #
3841 # The basic idea is this:
3842 # 1) You need an acceptable *) JDK to use as a Boot JDK
3843 # 2) There are several ways to locate a JDK, that are mostly platform
3844 #    dependent **)
3845 # 3) You can have multiple JDKs installed
3846 # 4) If possible, configure should try to dig out an acceptable JDK
3847 #    automatically, without having to resort to command-line options
3848 #
3849 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3850 #     javac) and not a JRE, etc.
3851 #
3852 # **) On Windows we typically use a well-known path.
3853 #     On MacOSX we typically use the tool java_home.
3854 #     On Linux we typically find javac in the $PATH, and then follow a
3855 #     chain of symlinks that often ends up in a real JDK.
3856 #
3857 # This leads to the code where we check in different ways to locate a
3858 # JDK, and if one is found, check if it is acceptable. If not, we print
3859 # our reasons for rejecting it (useful when debugging non-working
3860 # configure situations) and continue checking the next one.
3861 ########################################################################
3862 
3863 # Execute the check given as argument, and verify the result
3864 # If the Boot JDK was previously found, do nothing
3865 # $1 A command line (typically autoconf macro) to execute
3866 
3867 
3868 # Test: Is bootjdk explicitly set by command line arguments?
3869 
3870 
3871 # Test: Is $JAVA_HOME set?
3872 
3873 
3874 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3875 
3876 
3877 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3878 # $1: Argument to the java_home binary (optional)
3879 
3880 
3881 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3882 
3883 
3884 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3885 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3886 # $1 = Path to directory containing jdk installations.
3887 # $2 = String to append to the found JDK directory to get the proper JDK home
3888 
3889 
3890 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3891 # environmental variable as base for where to look.
3892 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3893 
3894 
3895 # Test: Is there a JDK installed in default, well-known locations?
3896 
3897 
3898 # Check that a command-line tool in the Boot JDK is correct
3899 # $1 = name of variable to assign
3900 # $2 = name of binary
3901 
3902 
3903 ###############################################################################
3904 #
3905 # We need a Boot JDK to bootstrap the build.
3906 #
3907 
3908 
3909 
3910 
3911 
3912 # BUILD_JDK: the location of the latest JDK that can run
3913 #   on the host system and supports the target class file version
3914 #   generated in this JDK build.  This variable should only be
3915 #   used after the launchers are built.
3916 #
3917 
3918 # Execute the check given as argument, and verify the result.
3919 # If the JDK was previously found, do nothing.
3920 # $1 A command line (typically autoconf macro) to execute
3921 
3922 
3923 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3924 # is different than the host system doing the build (e.g. cross-compilation),
3925 # a special BUILD_JDK is built as part of the build process.  An external
3926 # prebuilt BUILD_JDK can also be supplied.
3927 
3928 
3929 #
3930 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3931 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3932 #
3933 # This code is free software; you can redistribute it and/or modify it
3934 # under the terms of the GNU General Public License version 2 only, as
3935 # published by the Free Software Foundation.  Oracle designates this
3936 # particular file as subject to the "Classpath" exception as provided
3937 # by Oracle in the LICENSE file that accompanied this code.
3938 #
3939 # This code is distributed in the hope that it will be useful, but WITHOUT
3940 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3941 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3942 # version 2 for more details (a copy is included in the LICENSE file that
3943 # accompanied this code).
3944 #
3945 # You should have received a copy of the GNU General Public License version
3946 # 2 along with this work; if not, write to the Free Software Foundation,
3947 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3948 #
3949 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3950 # or visit www.oracle.com if you need additional information or have any
3951 # questions.
3952 #
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 ################################################################################
3971 #
3972 # Runs icecc-create-env once and prints the error if it fails
3973 #
3974 # $1: arguments to icecc-create-env
3975 # $2: log file
3976 #
3977 
3978 
3979 ################################################################################
3980 #
3981 # Optionally enable distributed compilation of native code using icecc/icecream
3982 #
3983 
3984 
3985 
3986 
3987 
3988 
3989 
3990 #
3991 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3992 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3993 #
3994 # This code is free software; you can redistribute it and/or modify it
3995 # under the terms of the GNU General Public License version 2 only, as
3996 # published by the Free Software Foundation.  Oracle designates this
3997 # particular file as subject to the "Classpath" exception as provided
3998 # by Oracle in the LICENSE file that accompanied this code.
3999 #
4000 # This code is distributed in the hope that it will be useful, but WITHOUT
4001 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4002 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4003 # version 2 for more details (a copy is included in the LICENSE file that
4004 # accompanied this code).
4005 #
4006 # You should have received a copy of the GNU General Public License version
4007 # 2 along with this work; if not, write to the Free Software Foundation,
4008 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4009 #
4010 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4011 # or visit www.oracle.com if you need additional information or have any
4012 # questions.
4013 #
4014 
4015 ################################################################################
4016 #
4017 # Setup ABI profile (for arm)
4018 #
4019 
4020 
4021 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4022 # corresponding configure arguments instead
4023 
4024 
4025 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4026 # that configure can use them while detecting compilers.
4027 # TOOLCHAIN_TYPE is available here.
4028 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4029 
4030 
4031 
4032 
4033 
4034 
4035 # Documentation on common flags used for solstudio in HIGHEST.
4036 #
4037 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4038 #          done with care, there are some assumptions below that need to
4039 #          be understood about the use of pointers, and IEEE behavior.
4040 #
4041 # -fns: Use non-standard floating point mode (not IEEE 754)
4042 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4043 # -fsingle: Use single precision floating point with 'float'
4044 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4045 #   (Source with excessing pointer casting and data access with mixed
4046 #    pointer types are not recommended)
4047 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4048 #   (If you expect perfect errno behavior, do not use this)
4049 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4050 # -xrestrict: Pointer parameters to functions do not overlap
4051 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4052 #    If you pass in multiple pointers to the same data, do not use this)
4053 # -xlibmil: Inline some library routines
4054 #   (If you expect perfect errno behavior, do not use this)
4055 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4056 #   (If you expect perfect errno behavior, do not use this)
4057 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4058 
4059     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4060     # Bug?
4061     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4062     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4063     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4064     #fi
4065 
4066 
4067 
4068 
4069 
4070 
4071 ################################################################################
4072 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4073 #      conditionals against.
4074 # $2 - Optional prefix for each variable defined.
4075 
4076 
4077 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4078 #                                  IF_FALSE: [RUN-IF-FALSE])
4079 # ------------------------------------------------------------
4080 # Check that the C compiler supports an argument
4081 
4082 
4083 
4084 
4085 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4086 #                                    IF_FALSE: [RUN-IF-FALSE])
4087 # ------------------------------------------------------------
4088 # Check that the C++ compiler supports an argument
4089 
4090 
4091 
4092 
4093 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4094 #                                IF_FALSE: [RUN-IF-FALSE])
4095 # ------------------------------------------------------------
4096 # Check that the C and C++ compilers support an argument
4097 
4098 
4099 
4100 
4101 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4102 #                                   IF_FALSE: [RUN-IF-FALSE])
4103 # ------------------------------------------------------------
4104 # Check that the linker support an argument
4105 
4106 
4107 
4108 
4109 
4110 
4111 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4112 # Arguments:
4113 # $1 - Optional prefix for each variable defined.
4114 
4115 
4116 #
4117 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4118 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4119 #
4120 # This code is free software; you can redistribute it and/or modify it
4121 # under the terms of the GNU General Public License version 2 only, as
4122 # published by the Free Software Foundation.  Oracle designates this
4123 # particular file as subject to the "Classpath" exception as provided
4124 # by Oracle in the LICENSE file that accompanied this code.
4125 #
4126 # This code is distributed in the hope that it will be useful, but WITHOUT
4127 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4128 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4129 # version 2 for more details (a copy is included in the LICENSE file that
4130 # accompanied this code).
4131 #
4132 # You should have received a copy of the GNU General Public License version
4133 # 2 along with this work; if not, write to the Free Software Foundation,
4134 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4135 #
4136 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4137 # or visit www.oracle.com if you need additional information or have any
4138 # questions.
4139 #
4140 
4141 
4142 
4143 
4144 
4145 cygwin_help() {
4146   case $1 in
4147     unzip)
4148       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4149       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4150       ;;
4151     zip)
4152       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4153       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4154       ;;
4155     make)
4156       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4157       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4158       ;;
4159     freetype)
4160       HELP_MSG="
4161 The freetype library can now be build during the configure process.
4162 Download the freetype sources and unpack them into an arbitrary directory:
4163 
4164 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4165 tar -xzf freetype-2.5.3.tar.gz
4166 
4167 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4168 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4169 builds or into '<freetype_src>/lib32' for 32-bit builds.
4170 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4171 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4172 
4173 Alternatively you can unpack the sources like this to use the default directory:
4174 
4175 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4176       ;;
4177   esac
4178 }
4179 
4180 msys_help() {
4181   PKGHANDLER_COMMAND=""
4182 }
4183 
4184 apt_help() {
4185   case $1 in
4186     reduced)
4187       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4188     devkit)
4189       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4190     openjdk)
4191       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4192     alsa)
4193       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4194     cups)
4195       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4196     freetype)
4197       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4198     ffi)
4199       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4200     x11)
4201       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4202     ccache)
4203       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4204     dtrace)
4205       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4206     elf)
4207       PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;;
4208   esac
4209 }
4210 
4211 yum_help() {
4212   case $1 in
4213     devkit)
4214       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4215     openjdk)
4216       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4217     alsa)
4218       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4219     cups)
4220       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4221     freetype)
4222       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4223     x11)
4224       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4225     ccache)
4226       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4227     elf)
4228       PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;;
4229   esac
4230 }
4231 
4232 brew_help() {
4233   case $1 in
4234     openjdk)
4235       PKGHANDLER_COMMAND="brew cask install java" ;;
4236     freetype)
4237       PKGHANDLER_COMMAND="brew install freetype" ;;
4238     ccache)
4239       PKGHANDLER_COMMAND="brew install ccache" ;;
4240   esac
4241 }
4242 
4243 port_help() {
4244   PKGHANDLER_COMMAND=""
4245 }
4246 
4247 pkgutil_help() {
4248   PKGHANDLER_COMMAND=""
4249 }
4250 
4251 pkgadd_help() {
4252   PKGHANDLER_COMMAND=""
4253 }
4254 
4255 # This function will check if we're called from the "configure" wrapper while
4256 # printing --help. If so, we will print out additional information that can
4257 # only be extracted within the autoconf script, and then exit. This must be
4258 # called at the very beginning in configure.ac.
4259 
4260 
4261 
4262 
4263 
4264 
4265 #
4266 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4268 #
4269 # This code is free software; you can redistribute it and/or modify it
4270 # under the terms of the GNU General Public License version 2 only, as
4271 # published by the Free Software Foundation.  Oracle designates this
4272 # particular file as subject to the "Classpath" exception as provided
4273 # by Oracle in the LICENSE file that accompanied this code.
4274 #
4275 # This code is distributed in the hope that it will be useful, but WITHOUT
4276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4277 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4278 # version 2 for more details (a copy is included in the LICENSE file that
4279 # accompanied this code).
4280 #
4281 # You should have received a copy of the GNU General Public License version
4282 # 2 along with this work; if not, write to the Free Software Foundation,
4283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4284 #
4285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4286 # or visit www.oracle.com if you need additional information or have any
4287 # questions.
4288 #
4289 
4290 # All valid JVM features, regardless of platform
4291 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4292     graal fprof vm-structs jni-check services management all-gcs nmt cds \
4293     static-build link-time-opt aot"
4294 
4295 # All valid JVM variants
4296 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4297 
4298 ###############################################################################
4299 # Check if the specified JVM variant should be built. To be used in shell if
4300 # constructs, like this:
4301 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4302 #
4303 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4304 
4305 # Definition kept in one line to allow inlining in if statements.
4306 # Additional [] needed to keep m4 from mangling shell constructs.
4307 
4308 
4309 ###############################################################################
4310 # Check if the specified JVM features are explicitly enabled. To be used in
4311 # shell if constructs, like this:
4312 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4313 #
4314 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4315 
4316 # Definition kept in one line to allow inlining in if statements.
4317 # Additional [] needed to keep m4 from mangling shell constructs.
4318 
4319 
4320 ###############################################################################
4321 # Check which variants of the JVM that we want to build. Available variants are:
4322 #   server: normal interpreter, and a tiered C1/C2 compiler
4323 #   client: normal interpreter, and C1 (no C2 compiler)
4324 #   minimal: reduced form of client with optional features stripped out
4325 #   core: normal interpreter only, no compiler
4326 #   zero: C++ based interpreter only, no compiler
4327 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4328 #   custom: baseline JVM with no default features
4329 #
4330 
4331 
4332 ###############################################################################
4333 # Check if dtrace should be enabled and has all prerequisites present.
4334 #
4335 
4336 
4337 ################################################################################
4338 # Check if AOT should be enabled
4339 #
4340 
4341 
4342 ###############################################################################
4343 # Set up all JVM features for each JVM variant.
4344 #
4345 
4346 
4347 ###############################################################################
4348 # Validate JVM features once all setup is complete, including custom setup.
4349 #
4350 
4351 
4352 ################################################################################
4353 #
4354 # Specify which sources will be used to build the 64-bit ARM port
4355 #
4356 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4357 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4358 #
4359 
4360 
4361 
4362 ################################################################################
4363 # Check if gtest should be built
4364 #
4365 
4366 
4367 #
4368 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4369 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4370 #
4371 # This code is free software; you can redistribute it and/or modify it
4372 # under the terms of the GNU General Public License version 2 only, as
4373 # published by the Free Software Foundation.  Oracle designates this
4374 # particular file as subject to the "Classpath" exception as provided
4375 # by Oracle in the LICENSE file that accompanied this code.
4376 #
4377 # This code is distributed in the hope that it will be useful, but WITHOUT
4378 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4379 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4380 # version 2 for more details (a copy is included in the LICENSE file that
4381 # accompanied this code).
4382 #
4383 # You should have received a copy of the GNU General Public License version
4384 # 2 along with this work; if not, write to the Free Software Foundation,
4385 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4386 #
4387 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4388 # or visit www.oracle.com if you need additional information or have any
4389 # questions.
4390 #
4391 
4392 ###############################################################################
4393 # Check which variant of the JDK that we want to build.
4394 # Currently we have:
4395 #    normal:   standard edition
4396 # but the custom make system may add other variants
4397 #
4398 # Effectively the JDK variant gives a name to a specific set of
4399 # modules to compile into the JDK.
4400 
4401 
4402 ###############################################################################
4403 # Set the debug level
4404 #    release: no debug information, all optimizations, no asserts.
4405 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4406 #    fastdebug: debug information (-g), all optimizations, all asserts
4407 #    slowdebug: debug information (-g), no optimizations, all asserts
4408 
4409 
4410 ###############################################################################
4411 #
4412 # Should we build only OpenJDK even if closed sources are present?
4413 #
4414 
4415 
4416 
4417 
4418 ###############################################################################
4419 #
4420 # Enable or disable the elliptic curve crypto implementation
4421 #
4422 
4423 
4424 
4425 
4426 ################################################################################
4427 #
4428 # Gcov coverage data for hotspot
4429 #
4430 
4431 
4432 ################################################################################
4433 #
4434 # Static build support.  When enabled will generate static
4435 # libraries instead of shared libraries for all JDK libs.
4436 #
4437 
4438 
4439 ################################################################################
4440 #
4441 # jlink options.
4442 # We always keep packaged modules in JDK image.
4443 #
4444 
4445 
4446 ################################################################################
4447 #
4448 # Check if building of the jtreg failure handler should be enabled.
4449 #
4450 
4451 
4452 ################################################################################
4453 #
4454 # Enable or disable generation of the classlist at build time
4455 #
4456 
4457 
4458 #
4459 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4460 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4461 #
4462 # This code is free software; you can redistribute it and/or modify it
4463 # under the terms of the GNU General Public License version 2 only, as
4464 # published by the Free Software Foundation.  Oracle designates this
4465 # particular file as subject to the "Classpath" exception as provided
4466 # by Oracle in the LICENSE file that accompanied this code.
4467 #
4468 # This code is distributed in the hope that it will be useful, but WITHOUT
4469 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4470 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4471 # version 2 for more details (a copy is included in the LICENSE file that
4472 # accompanied this code).
4473 #
4474 # You should have received a copy of the GNU General Public License version
4475 # 2 along with this work; if not, write to the Free Software Foundation,
4476 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4477 #
4478 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4479 # or visit www.oracle.com if you need additional information or have any
4480 # questions.
4481 #
4482 
4483 ###############################################################################
4484 #
4485 # Setup version numbers
4486 #
4487 
4488 # Verify that a given string represents a valid version number, and assign it
4489 # to a variable.
4490 
4491 # Argument 1: the variable to assign to
4492 # Argument 2: the value given by the user
4493 
4494 
4495 
4496 
4497 #
4498 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4499 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4500 #
4501 # This code is free software; you can redistribute it and/or modify it
4502 # under the terms of the GNU General Public License version 2 only, as
4503 # published by the Free Software Foundation.  Oracle designates this
4504 # particular file as subject to the "Classpath" exception as provided
4505 # by Oracle in the LICENSE file that accompanied this code.
4506 #
4507 # This code is distributed in the hope that it will be useful, but WITHOUT
4508 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4509 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4510 # version 2 for more details (a copy is included in the LICENSE file that
4511 # accompanied this code).
4512 #
4513 # You should have received a copy of the GNU General Public License version
4514 # 2 along with this work; if not, write to the Free Software Foundation,
4515 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4516 #
4517 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4518 # or visit www.oracle.com if you need additional information or have any
4519 # questions.
4520 #
4521 
4522 # Major library component reside in separate files.
4523 #
4524 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4525 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4526 #
4527 # This code is free software; you can redistribute it and/or modify it
4528 # under the terms of the GNU General Public License version 2 only, as
4529 # published by the Free Software Foundation.  Oracle designates this
4530 # particular file as subject to the "Classpath" exception as provided
4531 # by Oracle in the LICENSE file that accompanied this code.
4532 #
4533 # This code is distributed in the hope that it will be useful, but WITHOUT
4534 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4535 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4536 # version 2 for more details (a copy is included in the LICENSE file that
4537 # accompanied this code).
4538 #
4539 # You should have received a copy of the GNU General Public License version
4540 # 2 along with this work; if not, write to the Free Software Foundation,
4541 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4542 #
4543 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4544 # or visit www.oracle.com if you need additional information or have any
4545 # questions.
4546 #
4547 
4548 ################################################################################
4549 # Setup alsa (Advanced Linux Sound Architecture)
4550 ################################################################################
4551 
4552 
4553 #
4554 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4555 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4556 #
4557 # This code is free software; you can redistribute it and/or modify it
4558 # under the terms of the GNU General Public License version 2 only, as
4559 # published by the Free Software Foundation.  Oracle designates this
4560 # particular file as subject to the "Classpath" exception as provided
4561 # by Oracle in the LICENSE file that accompanied this code.
4562 #
4563 # This code is distributed in the hope that it will be useful, but WITHOUT
4564 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4565 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4566 # version 2 for more details (a copy is included in the LICENSE file that
4567 # accompanied this code).
4568 #
4569 # You should have received a copy of the GNU General Public License version
4570 # 2 along with this work; if not, write to the Free Software Foundation,
4571 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4572 #
4573 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4574 # or visit www.oracle.com if you need additional information or have any
4575 # questions.
4576 #
4577 
4578 ################################################################################
4579 # Setup bundled libraries.
4580 #
4581 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4582 # OpenJDK repository. Default is to use these libraries as bundled, but they
4583 # might be replaced by en external version by the user.
4584 ################################################################################
4585 
4586 
4587 ################################################################################
4588 # Setup libjpeg
4589 ################################################################################
4590 
4591 
4592 ################################################################################
4593 # Setup giflib
4594 ################################################################################
4595 
4596 
4597 ################################################################################
4598 # Setup libpng
4599 ################################################################################
4600 
4601 
4602 ################################################################################
4603 # Setup zlib
4604 ################################################################################
4605 
4606 
4607 ################################################################################
4608 # Setup lcms (Little CMS)
4609 ################################################################################
4610 
4611 
4612 #
4613 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4614 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4615 #
4616 # This code is free software; you can redistribute it and/or modify it
4617 # under the terms of the GNU General Public License version 2 only, as
4618 # published by the Free Software Foundation.  Oracle designates this
4619 # particular file as subject to the "Classpath" exception as provided
4620 # by Oracle in the LICENSE file that accompanied this code.
4621 #
4622 # This code is distributed in the hope that it will be useful, but WITHOUT
4623 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4624 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4625 # version 2 for more details (a copy is included in the LICENSE file that
4626 # accompanied this code).
4627 #
4628 # You should have received a copy of the GNU General Public License version
4629 # 2 along with this work; if not, write to the Free Software Foundation,
4630 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4631 #
4632 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4633 # or visit www.oracle.com if you need additional information or have any
4634 # questions.
4635 #
4636 
4637 ################################################################################
4638 # Setup cups (Common Unix Printing System)
4639 ################################################################################
4640 
4641 
4642 #
4643 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4644 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4645 #
4646 # This code is free software; you can redistribute it and/or modify it
4647 # under the terms of the GNU General Public License version 2 only, as
4648 # published by the Free Software Foundation.  Oracle designates this
4649 # particular file as subject to the "Classpath" exception as provided
4650 # by Oracle in the LICENSE file that accompanied this code.
4651 #
4652 # This code is distributed in the hope that it will be useful, but WITHOUT
4653 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4654 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4655 # version 2 for more details (a copy is included in the LICENSE file that
4656 # accompanied this code).
4657 #
4658 # You should have received a copy of the GNU General Public License version
4659 # 2 along with this work; if not, write to the Free Software Foundation,
4660 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4661 #
4662 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4663 # or visit www.oracle.com if you need additional information or have any
4664 # questions.
4665 #
4666 
4667 ################################################################################
4668 # Setup libffi (Foreign Function Interface)
4669 ################################################################################
4670 
4671 
4672 #
4673 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4674 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4675 #
4676 # This code is free software; you can redistribute it and/or modify it
4677 # under the terms of the GNU General Public License version 2 only, as
4678 # published by the Free Software Foundation.  Oracle designates this
4679 # particular file as subject to the "Classpath" exception as provided
4680 # by Oracle in the LICENSE file that accompanied this code.
4681 #
4682 # This code is distributed in the hope that it will be useful, but WITHOUT
4683 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4684 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4685 # version 2 for more details (a copy is included in the LICENSE file that
4686 # accompanied this code).
4687 #
4688 # You should have received a copy of the GNU General Public License version
4689 # 2 along with this work; if not, write to the Free Software Foundation,
4690 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4691 #
4692 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4693 # or visit www.oracle.com if you need additional information or have any
4694 # questions.
4695 #
4696 
4697 ################################################################################
4698 # Build the freetype lib from source
4699 ################################################################################
4700 
4701 
4702 ################################################################################
4703 # Check if a potential freeype library match is correct and usable
4704 ################################################################################
4705 
4706 
4707 ################################################################################
4708 # Setup freetype (The FreeType2 font rendering library)
4709 ################################################################################
4710 
4711 
4712 #
4713 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4714 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4715 #
4716 # This code is free software; you can redistribute it and/or modify it
4717 # under the terms of the GNU General Public License version 2 only, as
4718 # published by the Free Software Foundation.  Oracle designates this
4719 # particular file as subject to the "Classpath" exception as provided
4720 # by Oracle in the LICENSE file that accompanied this code.
4721 #
4722 # This code is distributed in the hope that it will be useful, but WITHOUT
4723 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4724 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4725 # version 2 for more details (a copy is included in the LICENSE file that
4726 # accompanied this code).
4727 #
4728 # You should have received a copy of the GNU General Public License version
4729 # 2 along with this work; if not, write to the Free Software Foundation,
4730 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4731 #
4732 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4733 # or visit www.oracle.com if you need additional information or have any
4734 # questions.
4735 #
4736 
4737 ################################################################################
4738 # Setup the standard C/C++ runtime libraries.
4739 #
4740 # Most importantly, determine if stdc++ should be linked statically or
4741 # dynamically.
4742 ################################################################################
4743 
4744 
4745 #
4746 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4747 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4748 #
4749 # This code is free software; you can redistribute it and/or modify it
4750 # under the terms of the GNU General Public License version 2 only, as
4751 # published by the Free Software Foundation.  Oracle designates this
4752 # particular file as subject to the "Classpath" exception as provided
4753 # by Oracle in the LICENSE file that accompanied this code.
4754 #
4755 # This code is distributed in the hope that it will be useful, but WITHOUT
4756 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4757 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4758 # version 2 for more details (a copy is included in the LICENSE file that
4759 # accompanied this code).
4760 #
4761 # You should have received a copy of the GNU General Public License version
4762 # 2 along with this work; if not, write to the Free Software Foundation,
4763 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4764 #
4765 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4766 # or visit www.oracle.com if you need additional information or have any
4767 # questions.
4768 #
4769 
4770 ################################################################################
4771 # Setup X11 Windows system
4772 ################################################################################
4773 
4774 
4775 #
4776 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4777 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4778 #
4779 # This code is free software; you can redistribute it and/or modify it
4780 # under the terms of the GNU General Public License version 2 only, as
4781 # published by the Free Software Foundation.  Oracle designates this
4782 # particular file as subject to the "Classpath" exception as provided
4783 # by Oracle in the LICENSE file that accompanied this code.
4784 #
4785 # This code is distributed in the hope that it will be useful, but WITHOUT
4786 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4787 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4788 # version 2 for more details (a copy is included in the LICENSE file that
4789 # accompanied this code).
4790 #
4791 # You should have received a copy of the GNU General Public License version
4792 # 2 along with this work; if not, write to the Free Software Foundation,
4793 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4794 #
4795 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4796 # or visit www.oracle.com if you need additional information or have any
4797 # questions.
4798 #
4799 
4800 ################################################################################
4801 # Setup libelf (ELF library)
4802 ################################################################################
4803 
4804 
4805 
4806 ################################################################################
4807 # Determine which libraries are needed for this configuration
4808 ################################################################################
4809 
4810 
4811 ################################################################################
4812 # Parse library options, and setup needed libraries
4813 ################################################################################
4814 
4815 
4816 ################################################################################
4817 # Setup llvm (Low-Level VM)
4818 ################################################################################
4819 
4820 
4821 ################################################################################
4822 # Setup various libraries, typically small system libraries
4823 ################################################################################
4824 
4825 
4826 ################################################################################
4827 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4828 # redistribute it in the test image.
4829 ################################################################################
4830 
4831 
4832 
4833 #
4834 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4835 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4836 #
4837 # This code is free software; you can redistribute it and/or modify it
4838 # under the terms of the GNU General Public License version 2 only, as
4839 # published by the Free Software Foundation.  Oracle designates this
4840 # particular file as subject to the "Classpath" exception as provided
4841 # by Oracle in the LICENSE file that accompanied this code.
4842 #
4843 # This code is distributed in the hope that it will be useful, but WITHOUT
4844 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4845 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4846 # version 2 for more details (a copy is included in the LICENSE file that
4847 # accompanied this code).
4848 #
4849 # You should have received a copy of the GNU General Public License version
4850 # 2 along with this work; if not, write to the Free Software Foundation,
4851 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4852 #
4853 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4854 # or visit www.oracle.com if you need additional information or have any
4855 # questions.
4856 #
4857 
4858 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4859 # Converts autoconf style CPU name to OpenJDK style, into
4860 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4861 
4862 
4863 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4864 # Converts autoconf style OS name to OpenJDK style, into
4865 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4866 
4867 
4868 # Expects $host_os $host_cpu $build_os and $build_cpu
4869 # and $with_target_bits to have been setup!
4870 #
4871 # Translate the standard triplet(quadruplet) definition
4872 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4873 # OPENJDK_BUILD_OS, etc.
4874 
4875 
4876 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4877 # accordingly. Must be done after setting up build and target system, but before
4878 # doing anything else with these values.
4879 
4880 
4881 # Setup the legacy variables, for controlling the old makefiles.
4882 #
4883 
4884 
4885 # $1 - Either TARGET or BUILD to setup the variables for.
4886 
4887 
4888 
4889 
4890 #%%% Build and target systems %%%
4891 
4892 
4893 
4894 
4895 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4896 # Add -mX to various FLAGS variables.
4897 
4898 
4899 
4900 
4901 
4902 
4903 #
4904 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4905 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4906 #
4907 # This code is free software; you can redistribute it and/or modify it
4908 # under the terms of the GNU General Public License version 2 only, as
4909 # published by the Free Software Foundation.  Oracle designates this
4910 # particular file as subject to the "Classpath" exception as provided
4911 # by Oracle in the LICENSE file that accompanied this code.
4912 #
4913 # This code is distributed in the hope that it will be useful, but WITHOUT
4914 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4915 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4916 # version 2 for more details (a copy is included in the LICENSE file that
4917 # accompanied this code).
4918 #
4919 # You should have received a copy of the GNU General Public License version
4920 # 2 along with this work; if not, write to the Free Software Foundation,
4921 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4922 #
4923 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4924 # or visit www.oracle.com if you need additional information or have any
4925 # questions.
4926 #
4927 
4928 
4929 
4930 
4931 
4932 
4933 
4934 ################################################################################
4935 # Define a mechanism for importing extra prebuilt modules
4936 #
4937 
4938 
4939 
4940 #
4941 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4942 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4943 #
4944 # This code is free software; you can redistribute it and/or modify it
4945 # under the terms of the GNU General Public License version 2 only, as
4946 # published by the Free Software Foundation.  Oracle designates this
4947 # particular file as subject to the "Classpath" exception as provided
4948 # by Oracle in the LICENSE file that accompanied this code.
4949 #
4950 # This code is distributed in the hope that it will be useful, but WITHOUT
4951 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4952 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4953 # version 2 for more details (a copy is included in the LICENSE file that
4954 # accompanied this code).
4955 #
4956 # You should have received a copy of the GNU General Public License version
4957 # 2 along with this work; if not, write to the Free Software Foundation,
4958 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4959 #
4960 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4961 # or visit www.oracle.com if you need additional information or have any
4962 # questions.
4963 #
4964 
4965 ########################################################################
4966 # This file is responsible for detecting, verifying and setting up the
4967 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4968 # proper paths to the binaries, but it will not setup any flags.
4969 #
4970 # The binaries used is determined by the toolchain type, which is the family of
4971 # compilers and related tools that are used.
4972 ########################################################################
4973 
4974 
4975 # All valid toolchains, regardless of platform (used by help.m4)
4976 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4977 
4978 # These toolchains are valid on different platforms
4979 VALID_TOOLCHAINS_linux="gcc clang"
4980 VALID_TOOLCHAINS_solaris="solstudio"
4981 VALID_TOOLCHAINS_macosx="gcc clang"
4982 VALID_TOOLCHAINS_aix="xlc"
4983 VALID_TOOLCHAINS_windows="microsoft"
4984 
4985 # Toolchain descriptions
4986 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4987 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4988 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4989 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4990 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4991 
4992 # Minimum supported versions, empty means unspecified
4993 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4994 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4995 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
4996 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
4997 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4998 
4999 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5000 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5001 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5002 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5003 
5004 
5005 # Check if the configured compiler (C and C++) is of a specific version or
5006 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5007 #
5008 # Arguments:
5009 #   VERSION:   The version string to check against the found version
5010 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5011 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5012 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5013 
5014 
5015 
5016 
5017 # Setup a number of variables describing how native output files are
5018 # named on this platform/toolchain.
5019 
5020 
5021 # Determine which toolchain type to use, and make sure it is valid for this
5022 # platform. Setup various information about the selected toolchain.
5023 
5024 
5025 # Before we start detecting the toolchain executables, we might need some
5026 # special setup, e.g. additional paths etc.
5027 
5028 
5029 # Restore path, etc
5030 
5031 
5032 # Check if a compiler is of the toolchain type we expect, and save the version
5033 # information from it. If the compiler does not match the expected type,
5034 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5035 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5036 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5037 #
5038 # $1 = compiler to test (CC or CXX)
5039 # $2 = human readable name of compiler (C or C++)
5040 
5041 
5042 # Try to locate the given C or C++ compiler in the path, or otherwise.
5043 #
5044 # $1 = compiler to test (CC or CXX)
5045 # $2 = human readable name of compiler (C or C++)
5046 # $3 = list of compiler names to search for
5047 
5048 
5049 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5050 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5051 # archiver (AR). Verify that the compilers are correct according to the
5052 # toolchain type.
5053 
5054 
5055 # Setup additional tools that is considered a part of the toolchain, but not the
5056 # core part. Many of these are highly platform-specific and do not exist,
5057 # and/or are not needed on all platforms.
5058 
5059 
5060 # Setup the build tools (i.e, the compiler and linker used to build programs
5061 # that should be run on the build platform, not the target platform, as a build
5062 # helper). Since the non-cross-compile case uses the normal, target compilers
5063 # for this, we can only do this after these have been setup.
5064 
5065 
5066 # Do some additional checks on the detected tools.
5067 
5068 
5069 # Setup the JTReg Regression Test Harness.
5070 
5071 
5072 #
5073 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5074 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5075 #
5076 # This code is free software; you can redistribute it and/or modify it
5077 # under the terms of the GNU General Public License version 2 only, as
5078 # published by the Free Software Foundation.  Oracle designates this
5079 # particular file as subject to the "Classpath" exception as provided
5080 # by Oracle in the LICENSE file that accompanied this code.
5081 #
5082 # This code is distributed in the hope that it will be useful, but WITHOUT
5083 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5084 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5085 # version 2 for more details (a copy is included in the LICENSE file that
5086 # accompanied this code).
5087 #
5088 # You should have received a copy of the GNU General Public License version
5089 # 2 along with this work; if not, write to the Free Software Foundation,
5090 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5091 #
5092 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5093 # or visit www.oracle.com if you need additional information or have any
5094 # questions.
5095 #
5096 
5097 ################################################################################
5098 # The order of these defines the priority by which we try to find them.
5099 VALID_VS_VERSIONS="2013 2012 2010"
5100 
5101 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5102 VS_VERSION_INTERNAL_2010=100
5103 VS_MSVCR_2010=msvcr100.dll
5104 # We don't use msvcp on Visual Studio 2010
5105 #VS_MSVCP_2010=msvcp100.dll
5106 VS_ENVVAR_2010="VS100COMNTOOLS"
5107 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5108 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5109 VS_VS_PLATFORM_NAME_2010="v100"
5110 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5111 
5112 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5113 VS_VERSION_INTERNAL_2012=110
5114 VS_MSVCR_2012=msvcr110.dll
5115 VS_MSVCP_2012=msvcp110.dll
5116 VS_ENVVAR_2012="VS110COMNTOOLS"
5117 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5118 VS_SDK_INSTALLDIR_2012=
5119 VS_VS_PLATFORM_NAME_2012="v110"
5120 VS_SDK_PLATFORM_NAME_2012=
5121 
5122 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5123 VS_VERSION_INTERNAL_2013=120
5124 VS_MSVCR_2013=msvcr120.dll
5125 VS_MSVCP_2013=msvcp120.dll
5126 VS_ENVVAR_2013="VS120COMNTOOLS"
5127 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5128 VS_SDK_INSTALLDIR_2013=
5129 VS_VS_PLATFORM_NAME_2013="v120"
5130 VS_SDK_PLATFORM_NAME_2013=
5131 
5132 ################################################################################
5133 
5134 
5135 
5136 ################################################################################
5137 
5138 
5139 
5140 ################################################################################
5141 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5142 # build environment and assigns it to VS_ENV_CMD
5143 
5144 
5145 ################################################################################
5146 
5147 
5148 
5149 ################################################################################
5150 # Check if the VS env variables were setup prior to running configure.
5151 # If not, then find vcvarsall.bat and run it automatically, and integrate
5152 # the set env variables into the spec file.
5153 
5154 
5155 
5156 
5157 
5158 
5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 # This line needs to be here, verbatim, after all includes and the dummy hook
5168 # definitions. It is replaced with custom functionality when building
5169 # custom sources.
5170 #CUSTOM_AUTOCONF_INCLUDE
5171 
5172 # Do not change or remove the following line, it is needed for consistency checks:
5173 DATE_WHEN_GENERATED=1487037430
5174 
5175 ###############################################################################
5176 #
5177 # Initialization / Boot-strapping
5178 #
5179 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5180 # thus it jumps back and forth, each time gaining something needed later on.
5181 #
5182 ###############################################################################
5183 
5184 # If we are requested to print additional help, do that and then exit.
5185 # This must be the very first call.
5186 
5187   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5188 
5189     # Print available toolchains
5190     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5191     $PRINTF "Which are valid to use depends on the build platform.\n"
5192     for toolchain in $VALID_TOOLCHAINS_all; do
5193       # Use indirect variable referencing
5194       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5195       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5196       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5197     done
5198     $PRINTF "\n"
5199 
5200     # Print available jvm features
5201     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5202     $PRINTF "Which are valid to use depends on the target platform.\n  "
5203     $PRINTF "%s " $VALID_JVM_FEATURES
5204     $PRINTF "\n"
5205 
5206     # And now exit directly
5207     exit 0
5208   fi
5209 
5210 
5211 # Basic initialization that must happen first of all in the normal process.
5212 
5213   # Save the original command line. This is passed to us by the wrapper configure script.
5214 
5215   # Save the path variable before it gets changed
5216   ORIGINAL_PATH="$PATH"
5217 
5218   DATE_WHEN_CONFIGURED=`LANG=C date`
5219 
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5221 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5223 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5224 
5225 
5226   # Start with tools that do not need have cross compilation support
5227   # and can be expected to be found in the default PATH. These tools are
5228   # used by configure.
5229 
5230   # First are all the simple required tools.
5231 
5232 
5233 
5234   # Publish this variable in the help.
5235 
5236 
5237   if [ -z "${BASENAME+x}" ]; then
5238     # The variable is not set by user, try to locate tool using the code snippet
5239     for ac_prog in basename
5240 do
5241   # Extract the first word of "$ac_prog", so it can be a program name with args.
5242 set dummy $ac_prog; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_path_BASENAME+:} false; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   case $BASENAME in
5249   [\\/]* | ?:[\\/]*)
5250   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5251   ;;
5252   *)
5253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256   IFS=$as_save_IFS
5257   test -z "$as_dir" && as_dir=.
5258     for ac_exec_ext in '' $ac_executable_extensions; do
5259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262     break 2
5263   fi
5264 done
5265   done
5266 IFS=$as_save_IFS
5267 
5268   ;;
5269 esac
5270 fi
5271 BASENAME=$ac_cv_path_BASENAME
5272 if test -n "$BASENAME"; then
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5274 $as_echo "$BASENAME" >&6; }
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279 
5280 
5281   test -n "$BASENAME" && break
5282 done
5283 
5284   else
5285     # The variable is set, but is it from the command line or the environment?
5286 
5287     # Try to remove the string !BASENAME! from our list.
5288     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5289     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5290       # If it failed, the variable was not from the command line. Ignore it,
5291       # but warn the user (except for BASH, which is always set by the calling BASH).
5292       if test "xBASENAME" != xBASH; then
5293         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5294 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5295       fi
5296       # Try to locate tool using the code snippet
5297       for ac_prog in basename
5298 do
5299   # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_path_BASENAME+:} false; then :
5304   $as_echo_n "(cached) " >&6
5305 else
5306   case $BASENAME in
5307   [\\/]* | ?:[\\/]*)
5308   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5309   ;;
5310   *)
5311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316     for ac_exec_ext in '' $ac_executable_extensions; do
5317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323   done
5324 IFS=$as_save_IFS
5325 
5326   ;;
5327 esac
5328 fi
5329 BASENAME=$ac_cv_path_BASENAME
5330 if test -n "$BASENAME"; then
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5332 $as_echo "$BASENAME" >&6; }
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337 
5338 
5339   test -n "$BASENAME" && break
5340 done
5341 
5342     else
5343       # If it succeeded, then it was overridden by the user. We will use it
5344       # for the tool.
5345 
5346       # First remove it from the list of overridden variables, so we can test
5347       # for unknown variables in the end.
5348       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5349 
5350       # Check if we try to supply an empty value
5351       if test "x$BASENAME" = x; then
5352         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5353 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5355 $as_echo_n "checking for BASENAME... " >&6; }
5356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5357 $as_echo "disabled" >&6; }
5358       else
5359         # Check if the provided tool contains a complete path.
5360         tool_specified="$BASENAME"
5361         tool_basename="${tool_specified##*/}"
5362         if test "x$tool_basename" = "x$tool_specified"; then
5363           # A command without a complete path is provided, search $PATH.
5364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5365 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5366           # Extract the first word of "$tool_basename", so it can be a program name with args.
5367 set dummy $tool_basename; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_path_BASENAME+:} false; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   case $BASENAME in
5374   [\\/]* | ?:[\\/]*)
5375   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5376   ;;
5377   *)
5378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383     for ac_exec_ext in '' $ac_executable_extensions; do
5384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390   done
5391 IFS=$as_save_IFS
5392 
5393   ;;
5394 esac
5395 fi
5396 BASENAME=$ac_cv_path_BASENAME
5397 if test -n "$BASENAME"; then
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5399 $as_echo "$BASENAME" >&6; }
5400 else
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404 
5405 
5406           if test "x$BASENAME" = x; then
5407             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5408           fi
5409         else
5410           # Otherwise we believe it is a complete path. Use it as it is.
5411           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5412 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5413           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5414 $as_echo_n "checking for BASENAME... " >&6; }
5415           if test ! -x "$tool_specified"; then
5416             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5417 $as_echo "not found" >&6; }
5418             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5419           fi
5420           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5421 $as_echo "$tool_specified" >&6; }
5422         fi
5423       fi
5424     fi
5425 
5426   fi
5427 
5428 
5429 
5430   if test "x$BASENAME" = x; then
5431     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5432   fi
5433 
5434 
5435 
5436 
5437 
5438   # Publish this variable in the help.
5439 
5440 
5441   if [ -z "${BASH+x}" ]; then
5442     # The variable is not set by user, try to locate tool using the code snippet
5443     for ac_prog in bash
5444 do
5445   # Extract the first word of "$ac_prog", so it can be a program name with args.
5446 set dummy $ac_prog; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_path_BASH+:} false; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   case $BASH in
5453   [\\/]* | ?:[\\/]*)
5454   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5455   ;;
5456   *)
5457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469   done
5470 IFS=$as_save_IFS
5471 
5472   ;;
5473 esac
5474 fi
5475 BASH=$ac_cv_path_BASH
5476 if test -n "$BASH"; then
5477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5478 $as_echo "$BASH" >&6; }
5479 else
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483 
5484 
5485   test -n "$BASH" && break
5486 done
5487 
5488   else
5489     # The variable is set, but is it from the command line or the environment?
5490 
5491     # Try to remove the string !BASH! from our list.
5492     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5493     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5494       # If it failed, the variable was not from the command line. Ignore it,
5495       # but warn the user (except for BASH, which is always set by the calling BASH).
5496       if test "xBASH" != xBASH; then
5497         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5498 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5499       fi
5500       # Try to locate tool using the code snippet
5501       for ac_prog in bash
5502 do
5503   # Extract the first word of "$ac_prog", so it can be a program name with args.
5504 set dummy $ac_prog; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_path_BASH+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   case $BASH in
5511   [\\/]* | ?:[\\/]*)
5512   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5513   ;;
5514   *)
5515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520     for ac_exec_ext in '' $ac_executable_extensions; do
5521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527   done
5528 IFS=$as_save_IFS
5529 
5530   ;;
5531 esac
5532 fi
5533 BASH=$ac_cv_path_BASH
5534 if test -n "$BASH"; then
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5536 $as_echo "$BASH" >&6; }
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541 
5542 
5543   test -n "$BASH" && break
5544 done
5545 
5546     else
5547       # If it succeeded, then it was overridden by the user. We will use it
5548       # for the tool.
5549 
5550       # First remove it from the list of overridden variables, so we can test
5551       # for unknown variables in the end.
5552       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5553 
5554       # Check if we try to supply an empty value
5555       if test "x$BASH" = x; then
5556         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5557 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5559 $as_echo_n "checking for BASH... " >&6; }
5560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5561 $as_echo "disabled" >&6; }
5562       else
5563         # Check if the provided tool contains a complete path.
5564         tool_specified="$BASH"
5565         tool_basename="${tool_specified##*/}"
5566         if test "x$tool_basename" = "x$tool_specified"; then
5567           # A command without a complete path is provided, search $PATH.
5568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5569 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5570           # Extract the first word of "$tool_basename", so it can be a program name with args.
5571 set dummy $tool_basename; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_path_BASH+:} false; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   case $BASH in
5578   [\\/]* | ?:[\\/]*)
5579   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5580   ;;
5581   *)
5582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585   IFS=$as_save_IFS
5586   test -z "$as_dir" && as_dir=.
5587     for ac_exec_ext in '' $ac_executable_extensions; do
5588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591     break 2
5592   fi
5593 done
5594   done
5595 IFS=$as_save_IFS
5596 
5597   ;;
5598 esac
5599 fi
5600 BASH=$ac_cv_path_BASH
5601 if test -n "$BASH"; then
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5603 $as_echo "$BASH" >&6; }
5604 else
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5607 fi
5608 
5609 
5610           if test "x$BASH" = x; then
5611             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5612           fi
5613         else
5614           # Otherwise we believe it is a complete path. Use it as it is.
5615           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5616 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5617           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5618 $as_echo_n "checking for BASH... " >&6; }
5619           if test ! -x "$tool_specified"; then
5620             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5621 $as_echo "not found" >&6; }
5622             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5623           fi
5624           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5625 $as_echo "$tool_specified" >&6; }
5626         fi
5627       fi
5628     fi
5629 
5630   fi
5631 
5632 
5633 
5634   if test "x$BASH" = x; then
5635     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5636   fi
5637 
5638 
5639 
5640 
5641 
5642   # Publish this variable in the help.
5643 
5644 
5645   if [ -z "${CAT+x}" ]; then
5646     # The variable is not set by user, try to locate tool using the code snippet
5647     for ac_prog in cat
5648 do
5649   # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set dummy $ac_prog; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if ${ac_cv_path_CAT+:} false; then :
5654   $as_echo_n "(cached) " >&6
5655 else
5656   case $CAT in
5657   [\\/]* | ?:[\\/]*)
5658   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5659   ;;
5660   *)
5661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664   IFS=$as_save_IFS
5665   test -z "$as_dir" && as_dir=.
5666     for ac_exec_ext in '' $ac_executable_extensions; do
5667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670     break 2
5671   fi
5672 done
5673   done
5674 IFS=$as_save_IFS
5675 
5676   ;;
5677 esac
5678 fi
5679 CAT=$ac_cv_path_CAT
5680 if test -n "$CAT"; then
5681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5682 $as_echo "$CAT" >&6; }
5683 else
5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687 
5688 
5689   test -n "$CAT" && break
5690 done
5691 
5692   else
5693     # The variable is set, but is it from the command line or the environment?
5694 
5695     # Try to remove the string !CAT! from our list.
5696     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5697     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5698       # If it failed, the variable was not from the command line. Ignore it,
5699       # but warn the user (except for BASH, which is always set by the calling BASH).
5700       if test "xCAT" != xBASH; then
5701         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5702 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5703       fi
5704       # Try to locate tool using the code snippet
5705       for ac_prog in cat
5706 do
5707   # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_path_CAT+:} false; then :
5712   $as_echo_n "(cached) " >&6
5713 else
5714   case $CAT in
5715   [\\/]* | ?:[\\/]*)
5716   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5717   ;;
5718   *)
5719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724     for ac_exec_ext in '' $ac_executable_extensions; do
5725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731   done
5732 IFS=$as_save_IFS
5733 
5734   ;;
5735 esac
5736 fi
5737 CAT=$ac_cv_path_CAT
5738 if test -n "$CAT"; then
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5740 $as_echo "$CAT" >&6; }
5741 else
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5744 fi
5745 
5746 
5747   test -n "$CAT" && break
5748 done
5749 
5750     else
5751       # If it succeeded, then it was overridden by the user. We will use it
5752       # for the tool.
5753 
5754       # First remove it from the list of overridden variables, so we can test
5755       # for unknown variables in the end.
5756       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5757 
5758       # Check if we try to supply an empty value
5759       if test "x$CAT" = x; then
5760         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5761 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5762         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5763 $as_echo_n "checking for CAT... " >&6; }
5764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5765 $as_echo "disabled" >&6; }
5766       else
5767         # Check if the provided tool contains a complete path.
5768         tool_specified="$CAT"
5769         tool_basename="${tool_specified##*/}"
5770         if test "x$tool_basename" = "x$tool_specified"; then
5771           # A command without a complete path is provided, search $PATH.
5772           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5773 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5774           # Extract the first word of "$tool_basename", so it can be a program name with args.
5775 set dummy $tool_basename; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_path_CAT+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781   case $CAT in
5782   [\\/]* | ?:[\\/]*)
5783   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5784   ;;
5785   *)
5786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798   done
5799 IFS=$as_save_IFS
5800 
5801   ;;
5802 esac
5803 fi
5804 CAT=$ac_cv_path_CAT
5805 if test -n "$CAT"; then
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5807 $as_echo "$CAT" >&6; }
5808 else
5809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810 $as_echo "no" >&6; }
5811 fi
5812 
5813 
5814           if test "x$CAT" = x; then
5815             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5816           fi
5817         else
5818           # Otherwise we believe it is a complete path. Use it as it is.
5819           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5820 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5821           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5822 $as_echo_n "checking for CAT... " >&6; }
5823           if test ! -x "$tool_specified"; then
5824             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5825 $as_echo "not found" >&6; }
5826             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5827           fi
5828           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5829 $as_echo "$tool_specified" >&6; }
5830         fi
5831       fi
5832     fi
5833 
5834   fi
5835 
5836 
5837 
5838   if test "x$CAT" = x; then
5839     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5840   fi
5841 
5842 
5843 
5844 
5845 
5846   # Publish this variable in the help.
5847 
5848 
5849   if [ -z "${CHMOD+x}" ]; then
5850     # The variable is not set by user, try to locate tool using the code snippet
5851     for ac_prog in chmod
5852 do
5853   # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy $ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_path_CHMOD+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   case $CHMOD in
5861   [\\/]* | ?:[\\/]*)
5862   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5863   ;;
5864   *)
5865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868   IFS=$as_save_IFS
5869   test -z "$as_dir" && as_dir=.
5870     for ac_exec_ext in '' $ac_executable_extensions; do
5871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874     break 2
5875   fi
5876 done
5877   done
5878 IFS=$as_save_IFS
5879 
5880   ;;
5881 esac
5882 fi
5883 CHMOD=$ac_cv_path_CHMOD
5884 if test -n "$CHMOD"; then
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5886 $as_echo "$CHMOD" >&6; }
5887 else
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891 
5892 
5893   test -n "$CHMOD" && break
5894 done
5895 
5896   else
5897     # The variable is set, but is it from the command line or the environment?
5898 
5899     # Try to remove the string !CHMOD! from our list.
5900     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5901     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5902       # If it failed, the variable was not from the command line. Ignore it,
5903       # but warn the user (except for BASH, which is always set by the calling BASH).
5904       if test "xCHMOD" != xBASH; then
5905         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5906 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5907       fi
5908       # Try to locate tool using the code snippet
5909       for ac_prog in chmod
5910 do
5911   # Extract the first word of "$ac_prog", so it can be a program name with args.
5912 set dummy $ac_prog; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_path_CHMOD+:} false; then :
5916   $as_echo_n "(cached) " >&6
5917 else
5918   case $CHMOD in
5919   [\\/]* | ?:[\\/]*)
5920   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5921   ;;
5922   *)
5923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_exec_ext in '' $ac_executable_extensions; do
5929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935   done
5936 IFS=$as_save_IFS
5937 
5938   ;;
5939 esac
5940 fi
5941 CHMOD=$ac_cv_path_CHMOD
5942 if test -n "$CHMOD"; then
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5944 $as_echo "$CHMOD" >&6; }
5945 else
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949 
5950 
5951   test -n "$CHMOD" && break
5952 done
5953 
5954     else
5955       # If it succeeded, then it was overridden by the user. We will use it
5956       # for the tool.
5957 
5958       # First remove it from the list of overridden variables, so we can test
5959       # for unknown variables in the end.
5960       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5961 
5962       # Check if we try to supply an empty value
5963       if test "x$CHMOD" = x; then
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5965 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5967 $as_echo_n "checking for CHMOD... " >&6; }
5968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5969 $as_echo "disabled" >&6; }
5970       else
5971         # Check if the provided tool contains a complete path.
5972         tool_specified="$CHMOD"
5973         tool_basename="${tool_specified##*/}"
5974         if test "x$tool_basename" = "x$tool_specified"; then
5975           # A command without a complete path is provided, search $PATH.
5976           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5977 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5978           # Extract the first word of "$tool_basename", so it can be a program name with args.
5979 set dummy $tool_basename; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if ${ac_cv_path_CHMOD+:} false; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   case $CHMOD in
5986   [\\/]* | ?:[\\/]*)
5987   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5988   ;;
5989   *)
5990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995     for ac_exec_ext in '' $ac_executable_extensions; do
5996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002   done
6003 IFS=$as_save_IFS
6004 
6005   ;;
6006 esac
6007 fi
6008 CHMOD=$ac_cv_path_CHMOD
6009 if test -n "$CHMOD"; then
6010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6011 $as_echo "$CHMOD" >&6; }
6012 else
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 fi
6016 
6017 
6018           if test "x$CHMOD" = x; then
6019             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6020           fi
6021         else
6022           # Otherwise we believe it is a complete path. Use it as it is.
6023           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6024 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6025           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6026 $as_echo_n "checking for CHMOD... " >&6; }
6027           if test ! -x "$tool_specified"; then
6028             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6029 $as_echo "not found" >&6; }
6030             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6031           fi
6032           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6033 $as_echo "$tool_specified" >&6; }
6034         fi
6035       fi
6036     fi
6037 
6038   fi
6039 
6040 
6041 
6042   if test "x$CHMOD" = x; then
6043     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6044   fi
6045 
6046 
6047 
6048 
6049 
6050   # Publish this variable in the help.
6051 
6052 
6053   if [ -z "${CMP+x}" ]; then
6054     # The variable is not set by user, try to locate tool using the code snippet
6055     for ac_prog in cmp
6056 do
6057   # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_path_CMP+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   case $CMP in
6065   [\\/]* | ?:[\\/]*)
6066   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6067   ;;
6068   *)
6069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_exec_ext in '' $ac_executable_extensions; do
6075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078     break 2
6079   fi
6080 done
6081   done
6082 IFS=$as_save_IFS
6083 
6084   ;;
6085 esac
6086 fi
6087 CMP=$ac_cv_path_CMP
6088 if test -n "$CMP"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6090 $as_echo "$CMP" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095 
6096 
6097   test -n "$CMP" && break
6098 done
6099 
6100   else
6101     # The variable is set, but is it from the command line or the environment?
6102 
6103     # Try to remove the string !CMP! from our list.
6104     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6105     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6106       # If it failed, the variable was not from the command line. Ignore it,
6107       # but warn the user (except for BASH, which is always set by the calling BASH).
6108       if test "xCMP" != xBASH; then
6109         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6110 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6111       fi
6112       # Try to locate tool using the code snippet
6113       for ac_prog in cmp
6114 do
6115   # Extract the first word of "$ac_prog", so it can be a program name with args.
6116 set dummy $ac_prog; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_CMP+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   case $CMP in
6123   [\\/]* | ?:[\\/]*)
6124   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6125   ;;
6126   *)
6127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141 
6142   ;;
6143 esac
6144 fi
6145 CMP=$ac_cv_path_CMP
6146 if test -n "$CMP"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6148 $as_echo "$CMP" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153 
6154 
6155   test -n "$CMP" && break
6156 done
6157 
6158     else
6159       # If it succeeded, then it was overridden by the user. We will use it
6160       # for the tool.
6161 
6162       # First remove it from the list of overridden variables, so we can test
6163       # for unknown variables in the end.
6164       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6165 
6166       # Check if we try to supply an empty value
6167       if test "x$CMP" = x; then
6168         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6169 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6170         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6171 $as_echo_n "checking for CMP... " >&6; }
6172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6173 $as_echo "disabled" >&6; }
6174       else
6175         # Check if the provided tool contains a complete path.
6176         tool_specified="$CMP"
6177         tool_basename="${tool_specified##*/}"
6178         if test "x$tool_basename" = "x$tool_specified"; then
6179           # A command without a complete path is provided, search $PATH.
6180           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6181 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6182           # Extract the first word of "$tool_basename", so it can be a program name with args.
6183 set dummy $tool_basename; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_path_CMP+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   case $CMP in
6190   [\\/]* | ?:[\\/]*)
6191   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6192   ;;
6193   *)
6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_exec_ext in '' $ac_executable_extensions; do
6200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206   done
6207 IFS=$as_save_IFS
6208 
6209   ;;
6210 esac
6211 fi
6212 CMP=$ac_cv_path_CMP
6213 if test -n "$CMP"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6215 $as_echo "$CMP" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220 
6221 
6222           if test "x$CMP" = x; then
6223             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6224           fi
6225         else
6226           # Otherwise we believe it is a complete path. Use it as it is.
6227           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6228 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6229           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6230 $as_echo_n "checking for CMP... " >&6; }
6231           if test ! -x "$tool_specified"; then
6232             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6233 $as_echo "not found" >&6; }
6234             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6235           fi
6236           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6237 $as_echo "$tool_specified" >&6; }
6238         fi
6239       fi
6240     fi
6241 
6242   fi
6243 
6244 
6245 
6246   if test "x$CMP" = x; then
6247     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6248   fi
6249 
6250 
6251 
6252 
6253 
6254   # Publish this variable in the help.
6255 
6256 
6257   if [ -z "${COMM+x}" ]; then
6258     # The variable is not set by user, try to locate tool using the code snippet
6259     for ac_prog in comm
6260 do
6261   # Extract the first word of "$ac_prog", so it can be a program name with args.
6262 set dummy $ac_prog; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_path_COMM+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   case $COMM in
6269   [\\/]* | ?:[\\/]*)
6270   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6271   ;;
6272   *)
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287 
6288   ;;
6289 esac
6290 fi
6291 COMM=$ac_cv_path_COMM
6292 if test -n "$COMM"; then
6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6294 $as_echo "$COMM" >&6; }
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299 
6300 
6301   test -n "$COMM" && break
6302 done
6303 
6304   else
6305     # The variable is set, but is it from the command line or the environment?
6306 
6307     # Try to remove the string !COMM! from our list.
6308     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6309     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6310       # If it failed, the variable was not from the command line. Ignore it,
6311       # but warn the user (except for BASH, which is always set by the calling BASH).
6312       if test "xCOMM" != xBASH; then
6313         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6314 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6315       fi
6316       # Try to locate tool using the code snippet
6317       for ac_prog in comm
6318 do
6319   # Extract the first word of "$ac_prog", so it can be a program name with args.
6320 set dummy $ac_prog; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_path_COMM+:} false; then :
6324   $as_echo_n "(cached) " >&6
6325 else
6326   case $COMM in
6327   [\\/]* | ?:[\\/]*)
6328   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6329   ;;
6330   *)
6331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336     for ac_exec_ext in '' $ac_executable_extensions; do
6337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343   done
6344 IFS=$as_save_IFS
6345 
6346   ;;
6347 esac
6348 fi
6349 COMM=$ac_cv_path_COMM
6350 if test -n "$COMM"; then
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6352 $as_echo "$COMM" >&6; }
6353 else
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357 
6358 
6359   test -n "$COMM" && break
6360 done
6361 
6362     else
6363       # If it succeeded, then it was overridden by the user. We will use it
6364       # for the tool.
6365 
6366       # First remove it from the list of overridden variables, so we can test
6367       # for unknown variables in the end.
6368       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6369 
6370       # Check if we try to supply an empty value
6371       if test "x$COMM" = x; then
6372         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6373 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6375 $as_echo_n "checking for COMM... " >&6; }
6376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6377 $as_echo "disabled" >&6; }
6378       else
6379         # Check if the provided tool contains a complete path.
6380         tool_specified="$COMM"
6381         tool_basename="${tool_specified##*/}"
6382         if test "x$tool_basename" = "x$tool_specified"; then
6383           # A command without a complete path is provided, search $PATH.
6384           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6385 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6386           # Extract the first word of "$tool_basename", so it can be a program name with args.
6387 set dummy $tool_basename; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_path_COMM+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   case $COMM in
6394   [\\/]* | ?:[\\/]*)
6395   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6396   ;;
6397   *)
6398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412 
6413   ;;
6414 esac
6415 fi
6416 COMM=$ac_cv_path_COMM
6417 if test -n "$COMM"; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6419 $as_echo "$COMM" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424 
6425 
6426           if test "x$COMM" = x; then
6427             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6428           fi
6429         else
6430           # Otherwise we believe it is a complete path. Use it as it is.
6431           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6432 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6433           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6434 $as_echo_n "checking for COMM... " >&6; }
6435           if test ! -x "$tool_specified"; then
6436             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6437 $as_echo "not found" >&6; }
6438             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6439           fi
6440           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6441 $as_echo "$tool_specified" >&6; }
6442         fi
6443       fi
6444     fi
6445 
6446   fi
6447 
6448 
6449 
6450   if test "x$COMM" = x; then
6451     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6452   fi
6453 
6454 
6455 
6456 
6457 
6458   # Publish this variable in the help.
6459 
6460 
6461   if [ -z "${CP+x}" ]; then
6462     # The variable is not set by user, try to locate tool using the code snippet
6463     for ac_prog in cp
6464 do
6465   # Extract the first word of "$ac_prog", so it can be a program name with args.
6466 set dummy $ac_prog; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_path_CP+:} false; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   case $CP in
6473   [\\/]* | ?:[\\/]*)
6474   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6475   ;;
6476   *)
6477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480   IFS=$as_save_IFS
6481   test -z "$as_dir" && as_dir=.
6482     for ac_exec_ext in '' $ac_executable_extensions; do
6483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486     break 2
6487   fi
6488 done
6489   done
6490 IFS=$as_save_IFS
6491 
6492   ;;
6493 esac
6494 fi
6495 CP=$ac_cv_path_CP
6496 if test -n "$CP"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6498 $as_echo "$CP" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503 
6504 
6505   test -n "$CP" && break
6506 done
6507 
6508   else
6509     # The variable is set, but is it from the command line or the environment?
6510 
6511     # Try to remove the string !CP! from our list.
6512     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6513     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6514       # If it failed, the variable was not from the command line. Ignore it,
6515       # but warn the user (except for BASH, which is always set by the calling BASH).
6516       if test "xCP" != xBASH; then
6517         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6518 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6519       fi
6520       # Try to locate tool using the code snippet
6521       for ac_prog in cp
6522 do
6523   # Extract the first word of "$ac_prog", so it can be a program name with args.
6524 set dummy $ac_prog; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_path_CP+:} false; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   case $CP in
6531   [\\/]* | ?:[\\/]*)
6532   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6533   ;;
6534   *)
6535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540     for ac_exec_ext in '' $ac_executable_extensions; do
6541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547   done
6548 IFS=$as_save_IFS
6549 
6550   ;;
6551 esac
6552 fi
6553 CP=$ac_cv_path_CP
6554 if test -n "$CP"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6556 $as_echo "$CP" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561 
6562 
6563   test -n "$CP" && break
6564 done
6565 
6566     else
6567       # If it succeeded, then it was overridden by the user. We will use it
6568       # for the tool.
6569 
6570       # First remove it from the list of overridden variables, so we can test
6571       # for unknown variables in the end.
6572       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6573 
6574       # Check if we try to supply an empty value
6575       if test "x$CP" = x; then
6576         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6577 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6579 $as_echo_n "checking for CP... " >&6; }
6580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6581 $as_echo "disabled" >&6; }
6582       else
6583         # Check if the provided tool contains a complete path.
6584         tool_specified="$CP"
6585         tool_basename="${tool_specified##*/}"
6586         if test "x$tool_basename" = "x$tool_specified"; then
6587           # A command without a complete path is provided, search $PATH.
6588           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6589 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6590           # Extract the first word of "$tool_basename", so it can be a program name with args.
6591 set dummy $tool_basename; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_path_CP+:} false; then :
6595   $as_echo_n "(cached) " >&6
6596 else
6597   case $CP in
6598   [\\/]* | ?:[\\/]*)
6599   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6600   ;;
6601   *)
6602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605   IFS=$as_save_IFS
6606   test -z "$as_dir" && as_dir=.
6607     for ac_exec_ext in '' $ac_executable_extensions; do
6608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611     break 2
6612   fi
6613 done
6614   done
6615 IFS=$as_save_IFS
6616 
6617   ;;
6618 esac
6619 fi
6620 CP=$ac_cv_path_CP
6621 if test -n "$CP"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6623 $as_echo "$CP" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628 
6629 
6630           if test "x$CP" = x; then
6631             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6632           fi
6633         else
6634           # Otherwise we believe it is a complete path. Use it as it is.
6635           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6636 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6637           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6638 $as_echo_n "checking for CP... " >&6; }
6639           if test ! -x "$tool_specified"; then
6640             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6641 $as_echo "not found" >&6; }
6642             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6643           fi
6644           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6645 $as_echo "$tool_specified" >&6; }
6646         fi
6647       fi
6648     fi
6649 
6650   fi
6651 
6652 
6653 
6654   if test "x$CP" = x; then
6655     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6656   fi
6657 
6658 
6659 
6660 
6661 
6662   # Publish this variable in the help.
6663 
6664 
6665   if [ -z "${CUT+x}" ]; then
6666     # The variable is not set by user, try to locate tool using the code snippet
6667     for ac_prog in cut
6668 do
6669   # Extract the first word of "$ac_prog", so it can be a program name with args.
6670 set dummy $ac_prog; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_path_CUT+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   case $CUT in
6677   [\\/]* | ?:[\\/]*)
6678   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6679   ;;
6680   *)
6681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686     for ac_exec_ext in '' $ac_executable_extensions; do
6687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693   done
6694 IFS=$as_save_IFS
6695 
6696   ;;
6697 esac
6698 fi
6699 CUT=$ac_cv_path_CUT
6700 if test -n "$CUT"; then
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6702 $as_echo "$CUT" >&6; }
6703 else
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6706 fi
6707 
6708 
6709   test -n "$CUT" && break
6710 done
6711 
6712   else
6713     # The variable is set, but is it from the command line or the environment?
6714 
6715     # Try to remove the string !CUT! from our list.
6716     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6717     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6718       # If it failed, the variable was not from the command line. Ignore it,
6719       # but warn the user (except for BASH, which is always set by the calling BASH).
6720       if test "xCUT" != xBASH; then
6721         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6722 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6723       fi
6724       # Try to locate tool using the code snippet
6725       for ac_prog in cut
6726 do
6727   # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_path_CUT+:} false; then :
6732   $as_echo_n "(cached) " >&6
6733 else
6734   case $CUT in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744     for ac_exec_ext in '' $ac_executable_extensions; do
6745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751   done
6752 IFS=$as_save_IFS
6753 
6754   ;;
6755 esac
6756 fi
6757 CUT=$ac_cv_path_CUT
6758 if test -n "$CUT"; then
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6760 $as_echo "$CUT" >&6; }
6761 else
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765 
6766 
6767   test -n "$CUT" && break
6768 done
6769 
6770     else
6771       # If it succeeded, then it was overridden by the user. We will use it
6772       # for the tool.
6773 
6774       # First remove it from the list of overridden variables, so we can test
6775       # for unknown variables in the end.
6776       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6777 
6778       # Check if we try to supply an empty value
6779       if test "x$CUT" = x; then
6780         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6781 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6783 $as_echo_n "checking for CUT... " >&6; }
6784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6785 $as_echo "disabled" >&6; }
6786       else
6787         # Check if the provided tool contains a complete path.
6788         tool_specified="$CUT"
6789         tool_basename="${tool_specified##*/}"
6790         if test "x$tool_basename" = "x$tool_specified"; then
6791           # A command without a complete path is provided, search $PATH.
6792           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6793 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6794           # Extract the first word of "$tool_basename", so it can be a program name with args.
6795 set dummy $tool_basename; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_path_CUT+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   case $CUT in
6802   [\\/]* | ?:[\\/]*)
6803   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6804   ;;
6805   *)
6806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811     for ac_exec_ext in '' $ac_executable_extensions; do
6812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818   done
6819 IFS=$as_save_IFS
6820 
6821   ;;
6822 esac
6823 fi
6824 CUT=$ac_cv_path_CUT
6825 if test -n "$CUT"; then
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6827 $as_echo "$CUT" >&6; }
6828 else
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832 
6833 
6834           if test "x$CUT" = x; then
6835             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6836           fi
6837         else
6838           # Otherwise we believe it is a complete path. Use it as it is.
6839           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6840 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6841           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6842 $as_echo_n "checking for CUT... " >&6; }
6843           if test ! -x "$tool_specified"; then
6844             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6845 $as_echo "not found" >&6; }
6846             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6847           fi
6848           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6849 $as_echo "$tool_specified" >&6; }
6850         fi
6851       fi
6852     fi
6853 
6854   fi
6855 
6856 
6857 
6858   if test "x$CUT" = x; then
6859     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6860   fi
6861 
6862 
6863 
6864 
6865 
6866   # Publish this variable in the help.
6867 
6868 
6869   if [ -z "${DATE+x}" ]; then
6870     # The variable is not set by user, try to locate tool using the code snippet
6871     for ac_prog in date
6872 do
6873   # Extract the first word of "$ac_prog", so it can be a program name with args.
6874 set dummy $ac_prog; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_path_DATE+:} false; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   case $DATE in
6881   [\\/]* | ?:[\\/]*)
6882   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6883   ;;
6884   *)
6885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888   IFS=$as_save_IFS
6889   test -z "$as_dir" && as_dir=.
6890     for ac_exec_ext in '' $ac_executable_extensions; do
6891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894     break 2
6895   fi
6896 done
6897   done
6898 IFS=$as_save_IFS
6899 
6900   ;;
6901 esac
6902 fi
6903 DATE=$ac_cv_path_DATE
6904 if test -n "$DATE"; then
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6906 $as_echo "$DATE" >&6; }
6907 else
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911 
6912 
6913   test -n "$DATE" && break
6914 done
6915 
6916   else
6917     # The variable is set, but is it from the command line or the environment?
6918 
6919     # Try to remove the string !DATE! from our list.
6920     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6921     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6922       # If it failed, the variable was not from the command line. Ignore it,
6923       # but warn the user (except for BASH, which is always set by the calling BASH).
6924       if test "xDATE" != xBASH; then
6925         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6926 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6927       fi
6928       # Try to locate tool using the code snippet
6929       for ac_prog in date
6930 do
6931   # Extract the first word of "$ac_prog", so it can be a program name with args.
6932 set dummy $ac_prog; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_path_DATE+:} false; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   case $DATE in
6939   [\\/]* | ?:[\\/]*)
6940   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6941   ;;
6942   *)
6943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955   done
6956 IFS=$as_save_IFS
6957 
6958   ;;
6959 esac
6960 fi
6961 DATE=$ac_cv_path_DATE
6962 if test -n "$DATE"; then
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6964 $as_echo "$DATE" >&6; }
6965 else
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6968 fi
6969 
6970 
6971   test -n "$DATE" && break
6972 done
6973 
6974     else
6975       # If it succeeded, then it was overridden by the user. We will use it
6976       # for the tool.
6977 
6978       # First remove it from the list of overridden variables, so we can test
6979       # for unknown variables in the end.
6980       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6981 
6982       # Check if we try to supply an empty value
6983       if test "x$DATE" = x; then
6984         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6985 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6987 $as_echo_n "checking for DATE... " >&6; }
6988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6989 $as_echo "disabled" >&6; }
6990       else
6991         # Check if the provided tool contains a complete path.
6992         tool_specified="$DATE"
6993         tool_basename="${tool_specified##*/}"
6994         if test "x$tool_basename" = "x$tool_specified"; then
6995           # A command without a complete path is provided, search $PATH.
6996           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6997 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6998           # Extract the first word of "$tool_basename", so it can be a program name with args.
6999 set dummy $tool_basename; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_path_DATE+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   case $DATE in
7006   [\\/]* | ?:[\\/]*)
7007   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7008   ;;
7009   *)
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015     for ac_exec_ext in '' $ac_executable_extensions; do
7016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022   done
7023 IFS=$as_save_IFS
7024 
7025   ;;
7026 esac
7027 fi
7028 DATE=$ac_cv_path_DATE
7029 if test -n "$DATE"; then
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7031 $as_echo "$DATE" >&6; }
7032 else
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036 
7037 
7038           if test "x$DATE" = x; then
7039             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7040           fi
7041         else
7042           # Otherwise we believe it is a complete path. Use it as it is.
7043           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7044 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7045           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7046 $as_echo_n "checking for DATE... " >&6; }
7047           if test ! -x "$tool_specified"; then
7048             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7049 $as_echo "not found" >&6; }
7050             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7051           fi
7052           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7053 $as_echo "$tool_specified" >&6; }
7054         fi
7055       fi
7056     fi
7057 
7058   fi
7059 
7060 
7061 
7062   if test "x$DATE" = x; then
7063     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7064   fi
7065 
7066 
7067 
7068 
7069 
7070   # Publish this variable in the help.
7071 
7072 
7073   if [ -z "${DIFF+x}" ]; then
7074     # The variable is not set by user, try to locate tool using the code snippet
7075     for ac_prog in gdiff diff
7076 do
7077   # Extract the first word of "$ac_prog", so it can be a program name with args.
7078 set dummy $ac_prog; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_path_DIFF+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   case $DIFF in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103 
7104   ;;
7105 esac
7106 fi
7107 DIFF=$ac_cv_path_DIFF
7108 if test -n "$DIFF"; then
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7110 $as_echo "$DIFF" >&6; }
7111 else
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115 
7116 
7117   test -n "$DIFF" && break
7118 done
7119 
7120   else
7121     # The variable is set, but is it from the command line or the environment?
7122 
7123     # Try to remove the string !DIFF! from our list.
7124     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7125     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7126       # If it failed, the variable was not from the command line. Ignore it,
7127       # but warn the user (except for BASH, which is always set by the calling BASH).
7128       if test "xDIFF" != xBASH; then
7129         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7130 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7131       fi
7132       # Try to locate tool using the code snippet
7133       for ac_prog in gdiff diff
7134 do
7135   # Extract the first word of "$ac_prog", so it can be a program name with args.
7136 set dummy $ac_prog; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_path_DIFF+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   case $DIFF in
7143   [\\/]* | ?:[\\/]*)
7144   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7145   ;;
7146   *)
7147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152     for ac_exec_ext in '' $ac_executable_extensions; do
7153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159   done
7160 IFS=$as_save_IFS
7161 
7162   ;;
7163 esac
7164 fi
7165 DIFF=$ac_cv_path_DIFF
7166 if test -n "$DIFF"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7168 $as_echo "$DIFF" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173 
7174 
7175   test -n "$DIFF" && break
7176 done
7177 
7178     else
7179       # If it succeeded, then it was overridden by the user. We will use it
7180       # for the tool.
7181 
7182       # First remove it from the list of overridden variables, so we can test
7183       # for unknown variables in the end.
7184       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7185 
7186       # Check if we try to supply an empty value
7187       if test "x$DIFF" = x; then
7188         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7189 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7190         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7191 $as_echo_n "checking for DIFF... " >&6; }
7192         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7193 $as_echo "disabled" >&6; }
7194       else
7195         # Check if the provided tool contains a complete path.
7196         tool_specified="$DIFF"
7197         tool_basename="${tool_specified##*/}"
7198         if test "x$tool_basename" = "x$tool_specified"; then
7199           # A command without a complete path is provided, search $PATH.
7200           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7201 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7202           # Extract the first word of "$tool_basename", so it can be a program name with args.
7203 set dummy $tool_basename; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_path_DIFF+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   case $DIFF in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228 
7229   ;;
7230 esac
7231 fi
7232 DIFF=$ac_cv_path_DIFF
7233 if test -n "$DIFF"; then
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7235 $as_echo "$DIFF" >&6; }
7236 else
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240 
7241 
7242           if test "x$DIFF" = x; then
7243             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7244           fi
7245         else
7246           # Otherwise we believe it is a complete path. Use it as it is.
7247           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7248 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7249           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7250 $as_echo_n "checking for DIFF... " >&6; }
7251           if test ! -x "$tool_specified"; then
7252             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7253 $as_echo "not found" >&6; }
7254             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7255           fi
7256           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7257 $as_echo "$tool_specified" >&6; }
7258         fi
7259       fi
7260     fi
7261 
7262   fi
7263 
7264 
7265 
7266   if test "x$DIFF" = x; then
7267     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7268   fi
7269 
7270 
7271 
7272 
7273 
7274   # Publish this variable in the help.
7275 
7276 
7277   if [ -z "${DIRNAME+x}" ]; then
7278     # The variable is not set by user, try to locate tool using the code snippet
7279     for ac_prog in dirname
7280 do
7281   # Extract the first word of "$ac_prog", so it can be a program name with args.
7282 set dummy $ac_prog; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_path_DIRNAME+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   case $DIRNAME in
7289   [\\/]* | ?:[\\/]*)
7290   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7291   ;;
7292   *)
7293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298     for ac_exec_ext in '' $ac_executable_extensions; do
7299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305   done
7306 IFS=$as_save_IFS
7307 
7308   ;;
7309 esac
7310 fi
7311 DIRNAME=$ac_cv_path_DIRNAME
7312 if test -n "$DIRNAME"; then
7313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7314 $as_echo "$DIRNAME" >&6; }
7315 else
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319 
7320 
7321   test -n "$DIRNAME" && break
7322 done
7323 
7324   else
7325     # The variable is set, but is it from the command line or the environment?
7326 
7327     # Try to remove the string !DIRNAME! from our list.
7328     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7329     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7330       # If it failed, the variable was not from the command line. Ignore it,
7331       # but warn the user (except for BASH, which is always set by the calling BASH).
7332       if test "xDIRNAME" != xBASH; then
7333         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7334 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7335       fi
7336       # Try to locate tool using the code snippet
7337       for ac_prog in dirname
7338 do
7339   # Extract the first word of "$ac_prog", so it can be a program name with args.
7340 set dummy $ac_prog; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if ${ac_cv_path_DIRNAME+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   case $DIRNAME in
7347   [\\/]* | ?:[\\/]*)
7348   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7349   ;;
7350   *)
7351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356     for ac_exec_ext in '' $ac_executable_extensions; do
7357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363   done
7364 IFS=$as_save_IFS
7365 
7366   ;;
7367 esac
7368 fi
7369 DIRNAME=$ac_cv_path_DIRNAME
7370 if test -n "$DIRNAME"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7372 $as_echo "$DIRNAME" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377 
7378 
7379   test -n "$DIRNAME" && break
7380 done
7381 
7382     else
7383       # If it succeeded, then it was overridden by the user. We will use it
7384       # for the tool.
7385 
7386       # First remove it from the list of overridden variables, so we can test
7387       # for unknown variables in the end.
7388       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7389 
7390       # Check if we try to supply an empty value
7391       if test "x$DIRNAME" = x; then
7392         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7393 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7395 $as_echo_n "checking for DIRNAME... " >&6; }
7396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7397 $as_echo "disabled" >&6; }
7398       else
7399         # Check if the provided tool contains a complete path.
7400         tool_specified="$DIRNAME"
7401         tool_basename="${tool_specified##*/}"
7402         if test "x$tool_basename" = "x$tool_specified"; then
7403           # A command without a complete path is provided, search $PATH.
7404           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7405 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7406           # Extract the first word of "$tool_basename", so it can be a program name with args.
7407 set dummy $tool_basename; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_path_DIRNAME+:} false; then :
7411   $as_echo_n "(cached) " >&6
7412 else
7413   case $DIRNAME in
7414   [\\/]* | ?:[\\/]*)
7415   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7416   ;;
7417   *)
7418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423     for ac_exec_ext in '' $ac_executable_extensions; do
7424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430   done
7431 IFS=$as_save_IFS
7432 
7433   ;;
7434 esac
7435 fi
7436 DIRNAME=$ac_cv_path_DIRNAME
7437 if test -n "$DIRNAME"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7439 $as_echo "$DIRNAME" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444 
7445 
7446           if test "x$DIRNAME" = x; then
7447             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7448           fi
7449         else
7450           # Otherwise we believe it is a complete path. Use it as it is.
7451           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7452 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7453           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7454 $as_echo_n "checking for DIRNAME... " >&6; }
7455           if test ! -x "$tool_specified"; then
7456             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7457 $as_echo "not found" >&6; }
7458             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7459           fi
7460           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7461 $as_echo "$tool_specified" >&6; }
7462         fi
7463       fi
7464     fi
7465 
7466   fi
7467 
7468 
7469 
7470   if test "x$DIRNAME" = x; then
7471     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7472   fi
7473 
7474 
7475 
7476 
7477 
7478   # Publish this variable in the help.
7479 
7480 
7481   if [ -z "${ECHO+x}" ]; then
7482     # The variable is not set by user, try to locate tool using the code snippet
7483     for ac_prog in echo
7484 do
7485   # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_ECHO+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   case $ECHO in
7493   [\\/]* | ?:[\\/]*)
7494   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7495   ;;
7496   *)
7497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511 
7512   ;;
7513 esac
7514 fi
7515 ECHO=$ac_cv_path_ECHO
7516 if test -n "$ECHO"; then
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7518 $as_echo "$ECHO" >&6; }
7519 else
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7522 fi
7523 
7524 
7525   test -n "$ECHO" && break
7526 done
7527 
7528   else
7529     # The variable is set, but is it from the command line or the environment?
7530 
7531     # Try to remove the string !ECHO! from our list.
7532     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7533     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7534       # If it failed, the variable was not from the command line. Ignore it,
7535       # but warn the user (except for BASH, which is always set by the calling BASH).
7536       if test "xECHO" != xBASH; then
7537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7538 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7539       fi
7540       # Try to locate tool using the code snippet
7541       for ac_prog in echo
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_path_ECHO+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   case $ECHO in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569 
7570   ;;
7571 esac
7572 fi
7573 ECHO=$ac_cv_path_ECHO
7574 if test -n "$ECHO"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7576 $as_echo "$ECHO" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581 
7582 
7583   test -n "$ECHO" && break
7584 done
7585 
7586     else
7587       # If it succeeded, then it was overridden by the user. We will use it
7588       # for the tool.
7589 
7590       # First remove it from the list of overridden variables, so we can test
7591       # for unknown variables in the end.
7592       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7593 
7594       # Check if we try to supply an empty value
7595       if test "x$ECHO" = x; then
7596         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7597 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7598         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7599 $as_echo_n "checking for ECHO... " >&6; }
7600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7601 $as_echo "disabled" >&6; }
7602       else
7603         # Check if the provided tool contains a complete path.
7604         tool_specified="$ECHO"
7605         tool_basename="${tool_specified##*/}"
7606         if test "x$tool_basename" = "x$tool_specified"; then
7607           # A command without a complete path is provided, search $PATH.
7608           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7609 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7610           # Extract the first word of "$tool_basename", so it can be a program name with args.
7611 set dummy $tool_basename; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_path_ECHO+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   case $ECHO in
7618   [\\/]* | ?:[\\/]*)
7619   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7620   ;;
7621   *)
7622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627     for ac_exec_ext in '' $ac_executable_extensions; do
7628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634   done
7635 IFS=$as_save_IFS
7636 
7637   ;;
7638 esac
7639 fi
7640 ECHO=$ac_cv_path_ECHO
7641 if test -n "$ECHO"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7643 $as_echo "$ECHO" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648 
7649 
7650           if test "x$ECHO" = x; then
7651             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7652           fi
7653         else
7654           # Otherwise we believe it is a complete path. Use it as it is.
7655           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7656 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7657           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7658 $as_echo_n "checking for ECHO... " >&6; }
7659           if test ! -x "$tool_specified"; then
7660             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7661 $as_echo "not found" >&6; }
7662             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7663           fi
7664           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7665 $as_echo "$tool_specified" >&6; }
7666         fi
7667       fi
7668     fi
7669 
7670   fi
7671 
7672 
7673 
7674   if test "x$ECHO" = x; then
7675     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7676   fi
7677 
7678 
7679 
7680 
7681 
7682   # Publish this variable in the help.
7683 
7684 
7685   if [ -z "${EXPR+x}" ]; then
7686     # The variable is not set by user, try to locate tool using the code snippet
7687     for ac_prog in expr
7688 do
7689   # Extract the first word of "$ac_prog", so it can be a program name with args.
7690 set dummy $ac_prog; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_path_EXPR+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   case $EXPR in
7697   [\\/]* | ?:[\\/]*)
7698   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7699   ;;
7700   *)
7701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704   IFS=$as_save_IFS
7705   test -z "$as_dir" && as_dir=.
7706     for ac_exec_ext in '' $ac_executable_extensions; do
7707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710     break 2
7711   fi
7712 done
7713   done
7714 IFS=$as_save_IFS
7715 
7716   ;;
7717 esac
7718 fi
7719 EXPR=$ac_cv_path_EXPR
7720 if test -n "$EXPR"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7722 $as_echo "$EXPR" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727 
7728 
7729   test -n "$EXPR" && break
7730 done
7731 
7732   else
7733     # The variable is set, but is it from the command line or the environment?
7734 
7735     # Try to remove the string !EXPR! from our list.
7736     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7737     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7738       # If it failed, the variable was not from the command line. Ignore it,
7739       # but warn the user (except for BASH, which is always set by the calling BASH).
7740       if test "xEXPR" != xBASH; then
7741         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7742 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7743       fi
7744       # Try to locate tool using the code snippet
7745       for ac_prog in expr
7746 do
7747   # Extract the first word of "$ac_prog", so it can be a program name with args.
7748 set dummy $ac_prog; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_path_EXPR+:} false; then :
7752   $as_echo_n "(cached) " >&6
7753 else
7754   case $EXPR in
7755   [\\/]* | ?:[\\/]*)
7756   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7757   ;;
7758   *)
7759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762   IFS=$as_save_IFS
7763   test -z "$as_dir" && as_dir=.
7764     for ac_exec_ext in '' $ac_executable_extensions; do
7765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768     break 2
7769   fi
7770 done
7771   done
7772 IFS=$as_save_IFS
7773 
7774   ;;
7775 esac
7776 fi
7777 EXPR=$ac_cv_path_EXPR
7778 if test -n "$EXPR"; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7780 $as_echo "$EXPR" >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785 
7786 
7787   test -n "$EXPR" && break
7788 done
7789 
7790     else
7791       # If it succeeded, then it was overridden by the user. We will use it
7792       # for the tool.
7793 
7794       # First remove it from the list of overridden variables, so we can test
7795       # for unknown variables in the end.
7796       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7797 
7798       # Check if we try to supply an empty value
7799       if test "x$EXPR" = x; then
7800         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7801 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7802         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7803 $as_echo_n "checking for EXPR... " >&6; }
7804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7805 $as_echo "disabled" >&6; }
7806       else
7807         # Check if the provided tool contains a complete path.
7808         tool_specified="$EXPR"
7809         tool_basename="${tool_specified##*/}"
7810         if test "x$tool_basename" = "x$tool_specified"; then
7811           # A command without a complete path is provided, search $PATH.
7812           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7813 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7814           # Extract the first word of "$tool_basename", so it can be a program name with args.
7815 set dummy $tool_basename; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_path_EXPR+:} false; then :
7819   $as_echo_n "(cached) " >&6
7820 else
7821   case $EXPR in
7822   [\\/]* | ?:[\\/]*)
7823   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7824   ;;
7825   *)
7826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 for as_dir in $PATH
7828 do
7829   IFS=$as_save_IFS
7830   test -z "$as_dir" && as_dir=.
7831     for ac_exec_ext in '' $ac_executable_extensions; do
7832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7833     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835     break 2
7836   fi
7837 done
7838   done
7839 IFS=$as_save_IFS
7840 
7841   ;;
7842 esac
7843 fi
7844 EXPR=$ac_cv_path_EXPR
7845 if test -n "$EXPR"; then
7846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7847 $as_echo "$EXPR" >&6; }
7848 else
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852 
7853 
7854           if test "x$EXPR" = x; then
7855             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7856           fi
7857         else
7858           # Otherwise we believe it is a complete path. Use it as it is.
7859           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7860 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7861           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7862 $as_echo_n "checking for EXPR... " >&6; }
7863           if test ! -x "$tool_specified"; then
7864             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7865 $as_echo "not found" >&6; }
7866             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7867           fi
7868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7869 $as_echo "$tool_specified" >&6; }
7870         fi
7871       fi
7872     fi
7873 
7874   fi
7875 
7876 
7877 
7878   if test "x$EXPR" = x; then
7879     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7880   fi
7881 
7882 
7883 
7884 
7885 
7886   # Publish this variable in the help.
7887 
7888 
7889   if [ -z "${FILE+x}" ]; then
7890     # The variable is not set by user, try to locate tool using the code snippet
7891     for ac_prog in file
7892 do
7893   # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_path_FILE+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   case $FILE in
7901   [\\/]* | ?:[\\/]*)
7902   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7903   ;;
7904   *)
7905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908   IFS=$as_save_IFS
7909   test -z "$as_dir" && as_dir=.
7910     for ac_exec_ext in '' $ac_executable_extensions; do
7911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914     break 2
7915   fi
7916 done
7917   done
7918 IFS=$as_save_IFS
7919 
7920   ;;
7921 esac
7922 fi
7923 FILE=$ac_cv_path_FILE
7924 if test -n "$FILE"; then
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7926 $as_echo "$FILE" >&6; }
7927 else
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931 
7932 
7933   test -n "$FILE" && break
7934 done
7935 
7936   else
7937     # The variable is set, but is it from the command line or the environment?
7938 
7939     # Try to remove the string !FILE! from our list.
7940     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7941     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7942       # If it failed, the variable was not from the command line. Ignore it,
7943       # but warn the user (except for BASH, which is always set by the calling BASH).
7944       if test "xFILE" != xBASH; then
7945         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7946 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7947       fi
7948       # Try to locate tool using the code snippet
7949       for ac_prog in file
7950 do
7951   # Extract the first word of "$ac_prog", so it can be a program name with args.
7952 set dummy $ac_prog; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if ${ac_cv_path_FILE+:} false; then :
7956   $as_echo_n "(cached) " >&6
7957 else
7958   case $FILE in
7959   [\\/]* | ?:[\\/]*)
7960   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7961   ;;
7962   *)
7963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966   IFS=$as_save_IFS
7967   test -z "$as_dir" && as_dir=.
7968     for ac_exec_ext in '' $ac_executable_extensions; do
7969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972     break 2
7973   fi
7974 done
7975   done
7976 IFS=$as_save_IFS
7977 
7978   ;;
7979 esac
7980 fi
7981 FILE=$ac_cv_path_FILE
7982 if test -n "$FILE"; then
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7984 $as_echo "$FILE" >&6; }
7985 else
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989 
7990 
7991   test -n "$FILE" && break
7992 done
7993 
7994     else
7995       # If it succeeded, then it was overridden by the user. We will use it
7996       # for the tool.
7997 
7998       # First remove it from the list of overridden variables, so we can test
7999       # for unknown variables in the end.
8000       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8001 
8002       # Check if we try to supply an empty value
8003       if test "x$FILE" = x; then
8004         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8005 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8007 $as_echo_n "checking for FILE... " >&6; }
8008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8009 $as_echo "disabled" >&6; }
8010       else
8011         # Check if the provided tool contains a complete path.
8012         tool_specified="$FILE"
8013         tool_basename="${tool_specified##*/}"
8014         if test "x$tool_basename" = "x$tool_specified"; then
8015           # A command without a complete path is provided, search $PATH.
8016           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8017 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8018           # Extract the first word of "$tool_basename", so it can be a program name with args.
8019 set dummy $tool_basename; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_path_FILE+:} false; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   case $FILE in
8026   [\\/]* | ?:[\\/]*)
8027   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8028   ;;
8029   *)
8030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044 
8045   ;;
8046 esac
8047 fi
8048 FILE=$ac_cv_path_FILE
8049 if test -n "$FILE"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8051 $as_echo "$FILE" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056 
8057 
8058           if test "x$FILE" = x; then
8059             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8060           fi
8061         else
8062           # Otherwise we believe it is a complete path. Use it as it is.
8063           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8064 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8065           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8066 $as_echo_n "checking for FILE... " >&6; }
8067           if test ! -x "$tool_specified"; then
8068             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8069 $as_echo "not found" >&6; }
8070             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8071           fi
8072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8073 $as_echo "$tool_specified" >&6; }
8074         fi
8075       fi
8076     fi
8077 
8078   fi
8079 
8080 
8081 
8082   if test "x$FILE" = x; then
8083     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8084   fi
8085 
8086 
8087 
8088 
8089 
8090   # Publish this variable in the help.
8091 
8092 
8093   if [ -z "${FIND+x}" ]; then
8094     # The variable is not set by user, try to locate tool using the code snippet
8095     for ac_prog in find
8096 do
8097   # Extract the first word of "$ac_prog", so it can be a program name with args.
8098 set dummy $ac_prog; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_path_FIND+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   case $FIND in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123 
8124   ;;
8125 esac
8126 fi
8127 FIND=$ac_cv_path_FIND
8128 if test -n "$FIND"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8130 $as_echo "$FIND" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135 
8136 
8137   test -n "$FIND" && break
8138 done
8139 
8140   else
8141     # The variable is set, but is it from the command line or the environment?
8142 
8143     # Try to remove the string !FIND! from our list.
8144     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8145     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8146       # If it failed, the variable was not from the command line. Ignore it,
8147       # but warn the user (except for BASH, which is always set by the calling BASH).
8148       if test "xFIND" != xBASH; then
8149         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8150 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8151       fi
8152       # Try to locate tool using the code snippet
8153       for ac_prog in find
8154 do
8155   # Extract the first word of "$ac_prog", so it can be a program name with args.
8156 set dummy $ac_prog; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_path_FIND+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   case $FIND in
8163   [\\/]* | ?:[\\/]*)
8164   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8165   ;;
8166   *)
8167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170   IFS=$as_save_IFS
8171   test -z "$as_dir" && as_dir=.
8172     for ac_exec_ext in '' $ac_executable_extensions; do
8173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176     break 2
8177   fi
8178 done
8179   done
8180 IFS=$as_save_IFS
8181 
8182   ;;
8183 esac
8184 fi
8185 FIND=$ac_cv_path_FIND
8186 if test -n "$FIND"; then
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8188 $as_echo "$FIND" >&6; }
8189 else
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193 
8194 
8195   test -n "$FIND" && break
8196 done
8197 
8198     else
8199       # If it succeeded, then it was overridden by the user. We will use it
8200       # for the tool.
8201 
8202       # First remove it from the list of overridden variables, so we can test
8203       # for unknown variables in the end.
8204       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8205 
8206       # Check if we try to supply an empty value
8207       if test "x$FIND" = x; then
8208         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8209 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8211 $as_echo_n "checking for FIND... " >&6; }
8212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8213 $as_echo "disabled" >&6; }
8214       else
8215         # Check if the provided tool contains a complete path.
8216         tool_specified="$FIND"
8217         tool_basename="${tool_specified##*/}"
8218         if test "x$tool_basename" = "x$tool_specified"; then
8219           # A command without a complete path is provided, search $PATH.
8220           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8221 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8222           # Extract the first word of "$tool_basename", so it can be a program name with args.
8223 set dummy $tool_basename; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if ${ac_cv_path_FIND+:} false; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   case $FIND in
8230   [\\/]* | ?:[\\/]*)
8231   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8232   ;;
8233   *)
8234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237   IFS=$as_save_IFS
8238   test -z "$as_dir" && as_dir=.
8239     for ac_exec_ext in '' $ac_executable_extensions; do
8240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243     break 2
8244   fi
8245 done
8246   done
8247 IFS=$as_save_IFS
8248 
8249   ;;
8250 esac
8251 fi
8252 FIND=$ac_cv_path_FIND
8253 if test -n "$FIND"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8255 $as_echo "$FIND" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260 
8261 
8262           if test "x$FIND" = x; then
8263             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8264           fi
8265         else
8266           # Otherwise we believe it is a complete path. Use it as it is.
8267           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8268 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8269           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8270 $as_echo_n "checking for FIND... " >&6; }
8271           if test ! -x "$tool_specified"; then
8272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8273 $as_echo "not found" >&6; }
8274             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8275           fi
8276           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8277 $as_echo "$tool_specified" >&6; }
8278         fi
8279       fi
8280     fi
8281 
8282   fi
8283 
8284 
8285 
8286   if test "x$FIND" = x; then
8287     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8288   fi
8289 
8290 
8291 
8292 
8293 
8294   # Publish this variable in the help.
8295 
8296 
8297   if [ -z "${HEAD+x}" ]; then
8298     # The variable is not set by user, try to locate tool using the code snippet
8299     for ac_prog in head
8300 do
8301   # Extract the first word of "$ac_prog", so it can be a program name with args.
8302 set dummy $ac_prog; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_path_HEAD+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   case $HEAD in
8309   [\\/]* | ?:[\\/]*)
8310   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8311   ;;
8312   *)
8313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316   IFS=$as_save_IFS
8317   test -z "$as_dir" && as_dir=.
8318     for ac_exec_ext in '' $ac_executable_extensions; do
8319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325   done
8326 IFS=$as_save_IFS
8327 
8328   ;;
8329 esac
8330 fi
8331 HEAD=$ac_cv_path_HEAD
8332 if test -n "$HEAD"; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8334 $as_echo "$HEAD" >&6; }
8335 else
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339 
8340 
8341   test -n "$HEAD" && break
8342 done
8343 
8344   else
8345     # The variable is set, but is it from the command line or the environment?
8346 
8347     # Try to remove the string !HEAD! from our list.
8348     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8349     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8350       # If it failed, the variable was not from the command line. Ignore it,
8351       # but warn the user (except for BASH, which is always set by the calling BASH).
8352       if test "xHEAD" != xBASH; then
8353         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8354 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8355       fi
8356       # Try to locate tool using the code snippet
8357       for ac_prog in head
8358 do
8359   # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if ${ac_cv_path_HEAD+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   case $HEAD in
8367   [\\/]* | ?:[\\/]*)
8368   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8369   ;;
8370   *)
8371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376     for ac_exec_ext in '' $ac_executable_extensions; do
8377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383   done
8384 IFS=$as_save_IFS
8385 
8386   ;;
8387 esac
8388 fi
8389 HEAD=$ac_cv_path_HEAD
8390 if test -n "$HEAD"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8392 $as_echo "$HEAD" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397 
8398 
8399   test -n "$HEAD" && break
8400 done
8401 
8402     else
8403       # If it succeeded, then it was overridden by the user. We will use it
8404       # for the tool.
8405 
8406       # First remove it from the list of overridden variables, so we can test
8407       # for unknown variables in the end.
8408       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8409 
8410       # Check if we try to supply an empty value
8411       if test "x$HEAD" = x; then
8412         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8413 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8415 $as_echo_n "checking for HEAD... " >&6; }
8416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8417 $as_echo "disabled" >&6; }
8418       else
8419         # Check if the provided tool contains a complete path.
8420         tool_specified="$HEAD"
8421         tool_basename="${tool_specified##*/}"
8422         if test "x$tool_basename" = "x$tool_specified"; then
8423           # A command without a complete path is provided, search $PATH.
8424           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8425 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8426           # Extract the first word of "$tool_basename", so it can be a program name with args.
8427 set dummy $tool_basename; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_path_HEAD+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   case $HEAD in
8434   [\\/]* | ?:[\\/]*)
8435   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8436   ;;
8437   *)
8438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441   IFS=$as_save_IFS
8442   test -z "$as_dir" && as_dir=.
8443     for ac_exec_ext in '' $ac_executable_extensions; do
8444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447     break 2
8448   fi
8449 done
8450   done
8451 IFS=$as_save_IFS
8452 
8453   ;;
8454 esac
8455 fi
8456 HEAD=$ac_cv_path_HEAD
8457 if test -n "$HEAD"; then
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8459 $as_echo "$HEAD" >&6; }
8460 else
8461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464 
8465 
8466           if test "x$HEAD" = x; then
8467             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8468           fi
8469         else
8470           # Otherwise we believe it is a complete path. Use it as it is.
8471           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8472 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8473           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8474 $as_echo_n "checking for HEAD... " >&6; }
8475           if test ! -x "$tool_specified"; then
8476             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8477 $as_echo "not found" >&6; }
8478             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8479           fi
8480           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8481 $as_echo "$tool_specified" >&6; }
8482         fi
8483       fi
8484     fi
8485 
8486   fi
8487 
8488 
8489 
8490   if test "x$HEAD" = x; then
8491     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8492   fi
8493 
8494 
8495 
8496 
8497 
8498   # Publish this variable in the help.
8499 
8500 
8501   if [ -z "${GUNZIP+x}" ]; then
8502     # The variable is not set by user, try to locate tool using the code snippet
8503     for ac_prog in gunzip
8504 do
8505   # Extract the first word of "$ac_prog", so it can be a program name with args.
8506 set dummy $ac_prog; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_path_GUNZIP+:} false; then :
8510   $as_echo_n "(cached) " >&6
8511 else
8512   case $GUNZIP in
8513   [\\/]* | ?:[\\/]*)
8514   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8515   ;;
8516   *)
8517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520   IFS=$as_save_IFS
8521   test -z "$as_dir" && as_dir=.
8522     for ac_exec_ext in '' $ac_executable_extensions; do
8523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526     break 2
8527   fi
8528 done
8529   done
8530 IFS=$as_save_IFS
8531 
8532   ;;
8533 esac
8534 fi
8535 GUNZIP=$ac_cv_path_GUNZIP
8536 if test -n "$GUNZIP"; then
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8538 $as_echo "$GUNZIP" >&6; }
8539 else
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543 
8544 
8545   test -n "$GUNZIP" && break
8546 done
8547 
8548   else
8549     # The variable is set, but is it from the command line or the environment?
8550 
8551     # Try to remove the string !GUNZIP! from our list.
8552     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8553     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8554       # If it failed, the variable was not from the command line. Ignore it,
8555       # but warn the user (except for BASH, which is always set by the calling BASH).
8556       if test "xGUNZIP" != xBASH; then
8557         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8558 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8559       fi
8560       # Try to locate tool using the code snippet
8561       for ac_prog in gunzip
8562 do
8563   # Extract the first word of "$ac_prog", so it can be a program name with args.
8564 set dummy $ac_prog; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_path_GUNZIP+:} false; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   case $GUNZIP in
8571   [\\/]* | ?:[\\/]*)
8572   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8573   ;;
8574   *)
8575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578   IFS=$as_save_IFS
8579   test -z "$as_dir" && as_dir=.
8580     for ac_exec_ext in '' $ac_executable_extensions; do
8581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8582     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584     break 2
8585   fi
8586 done
8587   done
8588 IFS=$as_save_IFS
8589 
8590   ;;
8591 esac
8592 fi
8593 GUNZIP=$ac_cv_path_GUNZIP
8594 if test -n "$GUNZIP"; then
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8596 $as_echo "$GUNZIP" >&6; }
8597 else
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8600 fi
8601 
8602 
8603   test -n "$GUNZIP" && break
8604 done
8605 
8606     else
8607       # If it succeeded, then it was overridden by the user. We will use it
8608       # for the tool.
8609 
8610       # First remove it from the list of overridden variables, so we can test
8611       # for unknown variables in the end.
8612       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8613 
8614       # Check if we try to supply an empty value
8615       if test "x$GUNZIP" = x; then
8616         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8617 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8619 $as_echo_n "checking for GUNZIP... " >&6; }
8620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8621 $as_echo "disabled" >&6; }
8622       else
8623         # Check if the provided tool contains a complete path.
8624         tool_specified="$GUNZIP"
8625         tool_basename="${tool_specified##*/}"
8626         if test "x$tool_basename" = "x$tool_specified"; then
8627           # A command without a complete path is provided, search $PATH.
8628           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8629 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8630           # Extract the first word of "$tool_basename", so it can be a program name with args.
8631 set dummy $tool_basename; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_path_GUNZIP+:} false; then :
8635   $as_echo_n "(cached) " >&6
8636 else
8637   case $GUNZIP in
8638   [\\/]* | ?:[\\/]*)
8639   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8640   ;;
8641   *)
8642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645   IFS=$as_save_IFS
8646   test -z "$as_dir" && as_dir=.
8647     for ac_exec_ext in '' $ac_executable_extensions; do
8648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651     break 2
8652   fi
8653 done
8654   done
8655 IFS=$as_save_IFS
8656 
8657   ;;
8658 esac
8659 fi
8660 GUNZIP=$ac_cv_path_GUNZIP
8661 if test -n "$GUNZIP"; then
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8663 $as_echo "$GUNZIP" >&6; }
8664 else
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668 
8669 
8670           if test "x$GUNZIP" = x; then
8671             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8672           fi
8673         else
8674           # Otherwise we believe it is a complete path. Use it as it is.
8675           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8676 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8677           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8678 $as_echo_n "checking for GUNZIP... " >&6; }
8679           if test ! -x "$tool_specified"; then
8680             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8681 $as_echo "not found" >&6; }
8682             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8683           fi
8684           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8685 $as_echo "$tool_specified" >&6; }
8686         fi
8687       fi
8688     fi
8689 
8690   fi
8691 
8692 
8693 
8694   if test "x$GUNZIP" = x; then
8695     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8696   fi
8697 
8698 
8699 
8700 
8701 
8702   # Publish this variable in the help.
8703 
8704 
8705   if [ -z "${GZIP+x}" ]; then
8706     # The variable is not set by user, try to locate tool using the code snippet
8707     for ac_prog in pigz gzip
8708 do
8709   # Extract the first word of "$ac_prog", so it can be a program name with args.
8710 set dummy $ac_prog; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_path_GZIP+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   case $GZIP in
8717   [\\/]* | ?:[\\/]*)
8718   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8719   ;;
8720   *)
8721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 for as_dir in $PATH
8723 do
8724   IFS=$as_save_IFS
8725   test -z "$as_dir" && as_dir=.
8726     for ac_exec_ext in '' $ac_executable_extensions; do
8727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8728     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730     break 2
8731   fi
8732 done
8733   done
8734 IFS=$as_save_IFS
8735 
8736   ;;
8737 esac
8738 fi
8739 GZIP=$ac_cv_path_GZIP
8740 if test -n "$GZIP"; then
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8742 $as_echo "$GZIP" >&6; }
8743 else
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746 fi
8747 
8748 
8749   test -n "$GZIP" && break
8750 done
8751 
8752   else
8753     # The variable is set, but is it from the command line or the environment?
8754 
8755     # Try to remove the string !GZIP! from our list.
8756     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8757     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8758       # If it failed, the variable was not from the command line. Ignore it,
8759       # but warn the user (except for BASH, which is always set by the calling BASH).
8760       if test "xGZIP" != xBASH; then
8761         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8762 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8763       fi
8764       # Try to locate tool using the code snippet
8765       for ac_prog in pigz gzip
8766 do
8767   # Extract the first word of "$ac_prog", so it can be a program name with args.
8768 set dummy $ac_prog; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if ${ac_cv_path_GZIP+:} false; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   case $GZIP in
8775   [\\/]* | ?:[\\/]*)
8776   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8777   ;;
8778   *)
8779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782   IFS=$as_save_IFS
8783   test -z "$as_dir" && as_dir=.
8784     for ac_exec_ext in '' $ac_executable_extensions; do
8785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788     break 2
8789   fi
8790 done
8791   done
8792 IFS=$as_save_IFS
8793 
8794   ;;
8795 esac
8796 fi
8797 GZIP=$ac_cv_path_GZIP
8798 if test -n "$GZIP"; then
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8800 $as_echo "$GZIP" >&6; }
8801 else
8802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8804 fi
8805 
8806 
8807   test -n "$GZIP" && break
8808 done
8809 
8810     else
8811       # If it succeeded, then it was overridden by the user. We will use it
8812       # for the tool.
8813 
8814       # First remove it from the list of overridden variables, so we can test
8815       # for unknown variables in the end.
8816       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8817 
8818       # Check if we try to supply an empty value
8819       if test "x$GZIP" = x; then
8820         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8821 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8822         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8823 $as_echo_n "checking for GZIP... " >&6; }
8824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8825 $as_echo "disabled" >&6; }
8826       else
8827         # Check if the provided tool contains a complete path.
8828         tool_specified="$GZIP"
8829         tool_basename="${tool_specified##*/}"
8830         if test "x$tool_basename" = "x$tool_specified"; then
8831           # A command without a complete path is provided, search $PATH.
8832           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8833 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8834           # Extract the first word of "$tool_basename", so it can be a program name with args.
8835 set dummy $tool_basename; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_path_GZIP+:} false; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   case $GZIP in
8842   [\\/]* | ?:[\\/]*)
8843   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8844   ;;
8845   *)
8846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8848 do
8849   IFS=$as_save_IFS
8850   test -z "$as_dir" && as_dir=.
8851     for ac_exec_ext in '' $ac_executable_extensions; do
8852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8853     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855     break 2
8856   fi
8857 done
8858   done
8859 IFS=$as_save_IFS
8860 
8861   ;;
8862 esac
8863 fi
8864 GZIP=$ac_cv_path_GZIP
8865 if test -n "$GZIP"; then
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8867 $as_echo "$GZIP" >&6; }
8868 else
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 fi
8872 
8873 
8874           if test "x$GZIP" = x; then
8875             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8876           fi
8877         else
8878           # Otherwise we believe it is a complete path. Use it as it is.
8879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8880 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8881           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8882 $as_echo_n "checking for GZIP... " >&6; }
8883           if test ! -x "$tool_specified"; then
8884             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8885 $as_echo "not found" >&6; }
8886             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8887           fi
8888           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8889 $as_echo "$tool_specified" >&6; }
8890         fi
8891       fi
8892     fi
8893 
8894   fi
8895 
8896 
8897 
8898   if test "x$GZIP" = x; then
8899     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8900   fi
8901 
8902 
8903 
8904 
8905 
8906   # Publish this variable in the help.
8907 
8908 
8909   if [ -z "${LN+x}" ]; then
8910     # The variable is not set by user, try to locate tool using the code snippet
8911     for ac_prog in ln
8912 do
8913   # Extract the first word of "$ac_prog", so it can be a program name with args.
8914 set dummy $ac_prog; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_path_LN+:} false; then :
8918   $as_echo_n "(cached) " >&6
8919 else
8920   case $LN in
8921   [\\/]* | ?:[\\/]*)
8922   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8923   ;;
8924   *)
8925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928   IFS=$as_save_IFS
8929   test -z "$as_dir" && as_dir=.
8930     for ac_exec_ext in '' $ac_executable_extensions; do
8931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934     break 2
8935   fi
8936 done
8937   done
8938 IFS=$as_save_IFS
8939 
8940   ;;
8941 esac
8942 fi
8943 LN=$ac_cv_path_LN
8944 if test -n "$LN"; then
8945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8946 $as_echo "$LN" >&6; }
8947 else
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951 
8952 
8953   test -n "$LN" && break
8954 done
8955 
8956   else
8957     # The variable is set, but is it from the command line or the environment?
8958 
8959     # Try to remove the string !LN! from our list.
8960     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8961     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8962       # If it failed, the variable was not from the command line. Ignore it,
8963       # but warn the user (except for BASH, which is always set by the calling BASH).
8964       if test "xLN" != xBASH; then
8965         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8966 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8967       fi
8968       # Try to locate tool using the code snippet
8969       for ac_prog in ln
8970 do
8971   # Extract the first word of "$ac_prog", so it can be a program name with args.
8972 set dummy $ac_prog; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_path_LN+:} false; then :
8976   $as_echo_n "(cached) " >&6
8977 else
8978   case $LN in
8979   [\\/]* | ?:[\\/]*)
8980   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8981   ;;
8982   *)
8983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8985 do
8986   IFS=$as_save_IFS
8987   test -z "$as_dir" && as_dir=.
8988     for ac_exec_ext in '' $ac_executable_extensions; do
8989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8990     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992     break 2
8993   fi
8994 done
8995   done
8996 IFS=$as_save_IFS
8997 
8998   ;;
8999 esac
9000 fi
9001 LN=$ac_cv_path_LN
9002 if test -n "$LN"; then
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9004 $as_echo "$LN" >&6; }
9005 else
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9008 fi
9009 
9010 
9011   test -n "$LN" && break
9012 done
9013 
9014     else
9015       # If it succeeded, then it was overridden by the user. We will use it
9016       # for the tool.
9017 
9018       # First remove it from the list of overridden variables, so we can test
9019       # for unknown variables in the end.
9020       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9021 
9022       # Check if we try to supply an empty value
9023       if test "x$LN" = x; then
9024         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9025 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9027 $as_echo_n "checking for LN... " >&6; }
9028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9029 $as_echo "disabled" >&6; }
9030       else
9031         # Check if the provided tool contains a complete path.
9032         tool_specified="$LN"
9033         tool_basename="${tool_specified##*/}"
9034         if test "x$tool_basename" = "x$tool_specified"; then
9035           # A command without a complete path is provided, search $PATH.
9036           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9037 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9038           # Extract the first word of "$tool_basename", so it can be a program name with args.
9039 set dummy $tool_basename; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if ${ac_cv_path_LN+:} false; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   case $LN in
9046   [\\/]* | ?:[\\/]*)
9047   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9048   ;;
9049   *)
9050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053   IFS=$as_save_IFS
9054   test -z "$as_dir" && as_dir=.
9055     for ac_exec_ext in '' $ac_executable_extensions; do
9056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059     break 2
9060   fi
9061 done
9062   done
9063 IFS=$as_save_IFS
9064 
9065   ;;
9066 esac
9067 fi
9068 LN=$ac_cv_path_LN
9069 if test -n "$LN"; then
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9071 $as_echo "$LN" >&6; }
9072 else
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076 
9077 
9078           if test "x$LN" = x; then
9079             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9080           fi
9081         else
9082           # Otherwise we believe it is a complete path. Use it as it is.
9083           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9084 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9085           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9086 $as_echo_n "checking for LN... " >&6; }
9087           if test ! -x "$tool_specified"; then
9088             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9089 $as_echo "not found" >&6; }
9090             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9091           fi
9092           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9093 $as_echo "$tool_specified" >&6; }
9094         fi
9095       fi
9096     fi
9097 
9098   fi
9099 
9100 
9101 
9102   if test "x$LN" = x; then
9103     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9104   fi
9105 
9106 
9107 
9108 
9109 
9110   # Publish this variable in the help.
9111 
9112 
9113   if [ -z "${LS+x}" ]; then
9114     # The variable is not set by user, try to locate tool using the code snippet
9115     for ac_prog in ls
9116 do
9117   # Extract the first word of "$ac_prog", so it can be a program name with args.
9118 set dummy $ac_prog; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_path_LS+:} false; then :
9122   $as_echo_n "(cached) " >&6
9123 else
9124   case $LS in
9125   [\\/]* | ?:[\\/]*)
9126   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9127   ;;
9128   *)
9129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132   IFS=$as_save_IFS
9133   test -z "$as_dir" && as_dir=.
9134     for ac_exec_ext in '' $ac_executable_extensions; do
9135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138     break 2
9139   fi
9140 done
9141   done
9142 IFS=$as_save_IFS
9143 
9144   ;;
9145 esac
9146 fi
9147 LS=$ac_cv_path_LS
9148 if test -n "$LS"; then
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9150 $as_echo "$LS" >&6; }
9151 else
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9154 fi
9155 
9156 
9157   test -n "$LS" && break
9158 done
9159 
9160   else
9161     # The variable is set, but is it from the command line or the environment?
9162 
9163     # Try to remove the string !LS! from our list.
9164     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9165     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9166       # If it failed, the variable was not from the command line. Ignore it,
9167       # but warn the user (except for BASH, which is always set by the calling BASH).
9168       if test "xLS" != xBASH; then
9169         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9170 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9171       fi
9172       # Try to locate tool using the code snippet
9173       for ac_prog in ls
9174 do
9175   # Extract the first word of "$ac_prog", so it can be a program name with args.
9176 set dummy $ac_prog; ac_word=$2
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178 $as_echo_n "checking for $ac_word... " >&6; }
9179 if ${ac_cv_path_LS+:} false; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   case $LS in
9183   [\\/]* | ?:[\\/]*)
9184   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9185   ;;
9186   *)
9187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9189 do
9190   IFS=$as_save_IFS
9191   test -z "$as_dir" && as_dir=.
9192     for ac_exec_ext in '' $ac_executable_extensions; do
9193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196     break 2
9197   fi
9198 done
9199   done
9200 IFS=$as_save_IFS
9201 
9202   ;;
9203 esac
9204 fi
9205 LS=$ac_cv_path_LS
9206 if test -n "$LS"; then
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9208 $as_echo "$LS" >&6; }
9209 else
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213 
9214 
9215   test -n "$LS" && break
9216 done
9217 
9218     else
9219       # If it succeeded, then it was overridden by the user. We will use it
9220       # for the tool.
9221 
9222       # First remove it from the list of overridden variables, so we can test
9223       # for unknown variables in the end.
9224       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9225 
9226       # Check if we try to supply an empty value
9227       if test "x$LS" = x; then
9228         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9229 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9231 $as_echo_n "checking for LS... " >&6; }
9232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9233 $as_echo "disabled" >&6; }
9234       else
9235         # Check if the provided tool contains a complete path.
9236         tool_specified="$LS"
9237         tool_basename="${tool_specified##*/}"
9238         if test "x$tool_basename" = "x$tool_specified"; then
9239           # A command without a complete path is provided, search $PATH.
9240           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9241 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9242           # Extract the first word of "$tool_basename", so it can be a program name with args.
9243 set dummy $tool_basename; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if ${ac_cv_path_LS+:} false; then :
9247   $as_echo_n "(cached) " >&6
9248 else
9249   case $LS in
9250   [\\/]* | ?:[\\/]*)
9251   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9252   ;;
9253   *)
9254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9256 do
9257   IFS=$as_save_IFS
9258   test -z "$as_dir" && as_dir=.
9259     for ac_exec_ext in '' $ac_executable_extensions; do
9260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9261     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9263     break 2
9264   fi
9265 done
9266   done
9267 IFS=$as_save_IFS
9268 
9269   ;;
9270 esac
9271 fi
9272 LS=$ac_cv_path_LS
9273 if test -n "$LS"; then
9274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9275 $as_echo "$LS" >&6; }
9276 else
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9279 fi
9280 
9281 
9282           if test "x$LS" = x; then
9283             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9284           fi
9285         else
9286           # Otherwise we believe it is a complete path. Use it as it is.
9287           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9288 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9289           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9290 $as_echo_n "checking for LS... " >&6; }
9291           if test ! -x "$tool_specified"; then
9292             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9293 $as_echo "not found" >&6; }
9294             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9295           fi
9296           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9297 $as_echo "$tool_specified" >&6; }
9298         fi
9299       fi
9300     fi
9301 
9302   fi
9303 
9304 
9305 
9306   if test "x$LS" = x; then
9307     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9308   fi
9309 
9310 
9311 
9312 
9313 
9314   # Publish this variable in the help.
9315 
9316 
9317   if [ -z "${MKDIR+x}" ]; then
9318     # The variable is not set by user, try to locate tool using the code snippet
9319     for ac_prog in mkdir
9320 do
9321   # Extract the first word of "$ac_prog", so it can be a program name with args.
9322 set dummy $ac_prog; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_path_MKDIR+:} false; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   case $MKDIR in
9329   [\\/]* | ?:[\\/]*)
9330   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9331   ;;
9332   *)
9333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9335 do
9336   IFS=$as_save_IFS
9337   test -z "$as_dir" && as_dir=.
9338     for ac_exec_ext in '' $ac_executable_extensions; do
9339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9340     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342     break 2
9343   fi
9344 done
9345   done
9346 IFS=$as_save_IFS
9347 
9348   ;;
9349 esac
9350 fi
9351 MKDIR=$ac_cv_path_MKDIR
9352 if test -n "$MKDIR"; then
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9354 $as_echo "$MKDIR" >&6; }
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9358 fi
9359 
9360 
9361   test -n "$MKDIR" && break
9362 done
9363 
9364   else
9365     # The variable is set, but is it from the command line or the environment?
9366 
9367     # Try to remove the string !MKDIR! from our list.
9368     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9369     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9370       # If it failed, the variable was not from the command line. Ignore it,
9371       # but warn the user (except for BASH, which is always set by the calling BASH).
9372       if test "xMKDIR" != xBASH; then
9373         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9374 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9375       fi
9376       # Try to locate tool using the code snippet
9377       for ac_prog in mkdir
9378 do
9379   # Extract the first word of "$ac_prog", so it can be a program name with args.
9380 set dummy $ac_prog; ac_word=$2
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 $as_echo_n "checking for $ac_word... " >&6; }
9383 if ${ac_cv_path_MKDIR+:} false; then :
9384   $as_echo_n "(cached) " >&6
9385 else
9386   case $MKDIR in
9387   [\\/]* | ?:[\\/]*)
9388   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9389   ;;
9390   *)
9391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9393 do
9394   IFS=$as_save_IFS
9395   test -z "$as_dir" && as_dir=.
9396     for ac_exec_ext in '' $ac_executable_extensions; do
9397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400     break 2
9401   fi
9402 done
9403   done
9404 IFS=$as_save_IFS
9405 
9406   ;;
9407 esac
9408 fi
9409 MKDIR=$ac_cv_path_MKDIR
9410 if test -n "$MKDIR"; then
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9412 $as_echo "$MKDIR" >&6; }
9413 else
9414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9416 fi
9417 
9418 
9419   test -n "$MKDIR" && break
9420 done
9421 
9422     else
9423       # If it succeeded, then it was overridden by the user. We will use it
9424       # for the tool.
9425 
9426       # First remove it from the list of overridden variables, so we can test
9427       # for unknown variables in the end.
9428       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9429 
9430       # Check if we try to supply an empty value
9431       if test "x$MKDIR" = x; then
9432         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9433 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9435 $as_echo_n "checking for MKDIR... " >&6; }
9436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9437 $as_echo "disabled" >&6; }
9438       else
9439         # Check if the provided tool contains a complete path.
9440         tool_specified="$MKDIR"
9441         tool_basename="${tool_specified##*/}"
9442         if test "x$tool_basename" = "x$tool_specified"; then
9443           # A command without a complete path is provided, search $PATH.
9444           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9445 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9446           # Extract the first word of "$tool_basename", so it can be a program name with args.
9447 set dummy $tool_basename; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if ${ac_cv_path_MKDIR+:} false; then :
9451   $as_echo_n "(cached) " >&6
9452 else
9453   case $MKDIR in
9454   [\\/]* | ?:[\\/]*)
9455   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9456   ;;
9457   *)
9458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9460 do
9461   IFS=$as_save_IFS
9462   test -z "$as_dir" && as_dir=.
9463     for ac_exec_ext in '' $ac_executable_extensions; do
9464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9465     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467     break 2
9468   fi
9469 done
9470   done
9471 IFS=$as_save_IFS
9472 
9473   ;;
9474 esac
9475 fi
9476 MKDIR=$ac_cv_path_MKDIR
9477 if test -n "$MKDIR"; then
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9479 $as_echo "$MKDIR" >&6; }
9480 else
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484 
9485 
9486           if test "x$MKDIR" = x; then
9487             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9488           fi
9489         else
9490           # Otherwise we believe it is a complete path. Use it as it is.
9491           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9492 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9493           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9494 $as_echo_n "checking for MKDIR... " >&6; }
9495           if test ! -x "$tool_specified"; then
9496             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9497 $as_echo "not found" >&6; }
9498             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9499           fi
9500           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9501 $as_echo "$tool_specified" >&6; }
9502         fi
9503       fi
9504     fi
9505 
9506   fi
9507 
9508 
9509 
9510   if test "x$MKDIR" = x; then
9511     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9512   fi
9513 
9514 
9515 
9516 
9517 
9518   # Publish this variable in the help.
9519 
9520 
9521   if [ -z "${MKTEMP+x}" ]; then
9522     # The variable is not set by user, try to locate tool using the code snippet
9523     for ac_prog in mktemp
9524 do
9525   # Extract the first word of "$ac_prog", so it can be a program name with args.
9526 set dummy $ac_prog; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_MKTEMP+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   case $MKTEMP in
9533   [\\/]* | ?:[\\/]*)
9534   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9535   ;;
9536   *)
9537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540   IFS=$as_save_IFS
9541   test -z "$as_dir" && as_dir=.
9542     for ac_exec_ext in '' $ac_executable_extensions; do
9543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546     break 2
9547   fi
9548 done
9549   done
9550 IFS=$as_save_IFS
9551 
9552   ;;
9553 esac
9554 fi
9555 MKTEMP=$ac_cv_path_MKTEMP
9556 if test -n "$MKTEMP"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9558 $as_echo "$MKTEMP" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563 
9564 
9565   test -n "$MKTEMP" && break
9566 done
9567 
9568   else
9569     # The variable is set, but is it from the command line or the environment?
9570 
9571     # Try to remove the string !MKTEMP! from our list.
9572     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9573     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9574       # If it failed, the variable was not from the command line. Ignore it,
9575       # but warn the user (except for BASH, which is always set by the calling BASH).
9576       if test "xMKTEMP" != xBASH; then
9577         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9578 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9579       fi
9580       # Try to locate tool using the code snippet
9581       for ac_prog in mktemp
9582 do
9583   # Extract the first word of "$ac_prog", so it can be a program name with args.
9584 set dummy $ac_prog; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_MKTEMP+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   case $MKTEMP in
9591   [\\/]* | ?:[\\/]*)
9592   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9593   ;;
9594   *)
9595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598   IFS=$as_save_IFS
9599   test -z "$as_dir" && as_dir=.
9600     for ac_exec_ext in '' $ac_executable_extensions; do
9601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604     break 2
9605   fi
9606 done
9607   done
9608 IFS=$as_save_IFS
9609 
9610   ;;
9611 esac
9612 fi
9613 MKTEMP=$ac_cv_path_MKTEMP
9614 if test -n "$MKTEMP"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9616 $as_echo "$MKTEMP" >&6; }
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621 
9622 
9623   test -n "$MKTEMP" && break
9624 done
9625 
9626     else
9627       # If it succeeded, then it was overridden by the user. We will use it
9628       # for the tool.
9629 
9630       # First remove it from the list of overridden variables, so we can test
9631       # for unknown variables in the end.
9632       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9633 
9634       # Check if we try to supply an empty value
9635       if test "x$MKTEMP" = x; then
9636         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9637 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9639 $as_echo_n "checking for MKTEMP... " >&6; }
9640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9641 $as_echo "disabled" >&6; }
9642       else
9643         # Check if the provided tool contains a complete path.
9644         tool_specified="$MKTEMP"
9645         tool_basename="${tool_specified##*/}"
9646         if test "x$tool_basename" = "x$tool_specified"; then
9647           # A command without a complete path is provided, search $PATH.
9648           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9649 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9650           # Extract the first word of "$tool_basename", so it can be a program name with args.
9651 set dummy $tool_basename; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if ${ac_cv_path_MKTEMP+:} false; then :
9655   $as_echo_n "(cached) " >&6
9656 else
9657   case $MKTEMP in
9658   [\\/]* | ?:[\\/]*)
9659   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9660   ;;
9661   *)
9662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665   IFS=$as_save_IFS
9666   test -z "$as_dir" && as_dir=.
9667     for ac_exec_ext in '' $ac_executable_extensions; do
9668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671     break 2
9672   fi
9673 done
9674   done
9675 IFS=$as_save_IFS
9676 
9677   ;;
9678 esac
9679 fi
9680 MKTEMP=$ac_cv_path_MKTEMP
9681 if test -n "$MKTEMP"; then
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9683 $as_echo "$MKTEMP" >&6; }
9684 else
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9687 fi
9688 
9689 
9690           if test "x$MKTEMP" = x; then
9691             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9692           fi
9693         else
9694           # Otherwise we believe it is a complete path. Use it as it is.
9695           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9696 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9697           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9698 $as_echo_n "checking for MKTEMP... " >&6; }
9699           if test ! -x "$tool_specified"; then
9700             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9701 $as_echo "not found" >&6; }
9702             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9703           fi
9704           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9705 $as_echo "$tool_specified" >&6; }
9706         fi
9707       fi
9708     fi
9709 
9710   fi
9711 
9712 
9713 
9714   if test "x$MKTEMP" = x; then
9715     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9716   fi
9717 
9718 
9719 
9720 
9721 
9722   # Publish this variable in the help.
9723 
9724 
9725   if [ -z "${MV+x}" ]; then
9726     # The variable is not set by user, try to locate tool using the code snippet
9727     for ac_prog in mv
9728 do
9729   # Extract the first word of "$ac_prog", so it can be a program name with args.
9730 set dummy $ac_prog; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_path_MV+:} false; then :
9734   $as_echo_n "(cached) " >&6
9735 else
9736   case $MV in
9737   [\\/]* | ?:[\\/]*)
9738   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9739   ;;
9740   *)
9741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744   IFS=$as_save_IFS
9745   test -z "$as_dir" && as_dir=.
9746     for ac_exec_ext in '' $ac_executable_extensions; do
9747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9748     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750     break 2
9751   fi
9752 done
9753   done
9754 IFS=$as_save_IFS
9755 
9756   ;;
9757 esac
9758 fi
9759 MV=$ac_cv_path_MV
9760 if test -n "$MV"; then
9761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9762 $as_echo "$MV" >&6; }
9763 else
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767 
9768 
9769   test -n "$MV" && break
9770 done
9771 
9772   else
9773     # The variable is set, but is it from the command line or the environment?
9774 
9775     # Try to remove the string !MV! from our list.
9776     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9777     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9778       # If it failed, the variable was not from the command line. Ignore it,
9779       # but warn the user (except for BASH, which is always set by the calling BASH).
9780       if test "xMV" != xBASH; then
9781         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9782 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9783       fi
9784       # Try to locate tool using the code snippet
9785       for ac_prog in mv
9786 do
9787   # Extract the first word of "$ac_prog", so it can be a program name with args.
9788 set dummy $ac_prog; ac_word=$2
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 $as_echo_n "checking for $ac_word... " >&6; }
9791 if ${ac_cv_path_MV+:} false; then :
9792   $as_echo_n "(cached) " >&6
9793 else
9794   case $MV in
9795   [\\/]* | ?:[\\/]*)
9796   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9797   ;;
9798   *)
9799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9800 for as_dir in $PATH
9801 do
9802   IFS=$as_save_IFS
9803   test -z "$as_dir" && as_dir=.
9804     for ac_exec_ext in '' $ac_executable_extensions; do
9805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9806     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808     break 2
9809   fi
9810 done
9811   done
9812 IFS=$as_save_IFS
9813 
9814   ;;
9815 esac
9816 fi
9817 MV=$ac_cv_path_MV
9818 if test -n "$MV"; then
9819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9820 $as_echo "$MV" >&6; }
9821 else
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823 $as_echo "no" >&6; }
9824 fi
9825 
9826 
9827   test -n "$MV" && break
9828 done
9829 
9830     else
9831       # If it succeeded, then it was overridden by the user. We will use it
9832       # for the tool.
9833 
9834       # First remove it from the list of overridden variables, so we can test
9835       # for unknown variables in the end.
9836       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9837 
9838       # Check if we try to supply an empty value
9839       if test "x$MV" = x; then
9840         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9841 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9843 $as_echo_n "checking for MV... " >&6; }
9844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9845 $as_echo "disabled" >&6; }
9846       else
9847         # Check if the provided tool contains a complete path.
9848         tool_specified="$MV"
9849         tool_basename="${tool_specified##*/}"
9850         if test "x$tool_basename" = "x$tool_specified"; then
9851           # A command without a complete path is provided, search $PATH.
9852           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9853 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9854           # Extract the first word of "$tool_basename", so it can be a program name with args.
9855 set dummy $tool_basename; ac_word=$2
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857 $as_echo_n "checking for $ac_word... " >&6; }
9858 if ${ac_cv_path_MV+:} false; then :
9859   $as_echo_n "(cached) " >&6
9860 else
9861   case $MV in
9862   [\\/]* | ?:[\\/]*)
9863   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9864   ;;
9865   *)
9866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in $PATH
9868 do
9869   IFS=$as_save_IFS
9870   test -z "$as_dir" && as_dir=.
9871     for ac_exec_ext in '' $ac_executable_extensions; do
9872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875     break 2
9876   fi
9877 done
9878   done
9879 IFS=$as_save_IFS
9880 
9881   ;;
9882 esac
9883 fi
9884 MV=$ac_cv_path_MV
9885 if test -n "$MV"; then
9886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9887 $as_echo "$MV" >&6; }
9888 else
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 fi
9892 
9893 
9894           if test "x$MV" = x; then
9895             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9896           fi
9897         else
9898           # Otherwise we believe it is a complete path. Use it as it is.
9899           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9900 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9901           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9902 $as_echo_n "checking for MV... " >&6; }
9903           if test ! -x "$tool_specified"; then
9904             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9905 $as_echo "not found" >&6; }
9906             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9907           fi
9908           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9909 $as_echo "$tool_specified" >&6; }
9910         fi
9911       fi
9912     fi
9913 
9914   fi
9915 
9916 
9917 
9918   if test "x$MV" = x; then
9919     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9920   fi
9921 
9922 
9923 
9924 
9925 
9926   # Publish this variable in the help.
9927 
9928 
9929   if [ -z "${NAWK+x}" ]; then
9930     # The variable is not set by user, try to locate tool using the code snippet
9931     for ac_prog in nawk gawk awk
9932 do
9933   # Extract the first word of "$ac_prog", so it can be a program name with args.
9934 set dummy $ac_prog; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if ${ac_cv_path_NAWK+:} false; then :
9938   $as_echo_n "(cached) " >&6
9939 else
9940   case $NAWK in
9941   [\\/]* | ?:[\\/]*)
9942   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9943   ;;
9944   *)
9945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948   IFS=$as_save_IFS
9949   test -z "$as_dir" && as_dir=.
9950     for ac_exec_ext in '' $ac_executable_extensions; do
9951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954     break 2
9955   fi
9956 done
9957   done
9958 IFS=$as_save_IFS
9959 
9960   ;;
9961 esac
9962 fi
9963 NAWK=$ac_cv_path_NAWK
9964 if test -n "$NAWK"; then
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9966 $as_echo "$NAWK" >&6; }
9967 else
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9970 fi
9971 
9972 
9973   test -n "$NAWK" && break
9974 done
9975 
9976   else
9977     # The variable is set, but is it from the command line or the environment?
9978 
9979     # Try to remove the string !NAWK! from our list.
9980     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9981     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9982       # If it failed, the variable was not from the command line. Ignore it,
9983       # but warn the user (except for BASH, which is always set by the calling BASH).
9984       if test "xNAWK" != xBASH; then
9985         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9986 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9987       fi
9988       # Try to locate tool using the code snippet
9989       for ac_prog in nawk gawk awk
9990 do
9991   # Extract the first word of "$ac_prog", so it can be a program name with args.
9992 set dummy $ac_prog; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_path_NAWK+:} false; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   case $NAWK in
9999   [\\/]* | ?:[\\/]*)
10000   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10001   ;;
10002   *)
10003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10005 do
10006   IFS=$as_save_IFS
10007   test -z "$as_dir" && as_dir=.
10008     for ac_exec_ext in '' $ac_executable_extensions; do
10009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012     break 2
10013   fi
10014 done
10015   done
10016 IFS=$as_save_IFS
10017 
10018   ;;
10019 esac
10020 fi
10021 NAWK=$ac_cv_path_NAWK
10022 if test -n "$NAWK"; then
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10024 $as_echo "$NAWK" >&6; }
10025 else
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029 
10030 
10031   test -n "$NAWK" && break
10032 done
10033 
10034     else
10035       # If it succeeded, then it was overridden by the user. We will use it
10036       # for the tool.
10037 
10038       # First remove it from the list of overridden variables, so we can test
10039       # for unknown variables in the end.
10040       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10041 
10042       # Check if we try to supply an empty value
10043       if test "x$NAWK" = x; then
10044         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10045 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10047 $as_echo_n "checking for NAWK... " >&6; }
10048         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10049 $as_echo "disabled" >&6; }
10050       else
10051         # Check if the provided tool contains a complete path.
10052         tool_specified="$NAWK"
10053         tool_basename="${tool_specified##*/}"
10054         if test "x$tool_basename" = "x$tool_specified"; then
10055           # A command without a complete path is provided, search $PATH.
10056           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10057 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10058           # Extract the first word of "$tool_basename", so it can be a program name with args.
10059 set dummy $tool_basename; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_NAWK+:} false; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   case $NAWK in
10066   [\\/]* | ?:[\\/]*)
10067   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10068   ;;
10069   *)
10070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10072 do
10073   IFS=$as_save_IFS
10074   test -z "$as_dir" && as_dir=.
10075     for ac_exec_ext in '' $ac_executable_extensions; do
10076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079     break 2
10080   fi
10081 done
10082   done
10083 IFS=$as_save_IFS
10084 
10085   ;;
10086 esac
10087 fi
10088 NAWK=$ac_cv_path_NAWK
10089 if test -n "$NAWK"; then
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10091 $as_echo "$NAWK" >&6; }
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095 fi
10096 
10097 
10098           if test "x$NAWK" = x; then
10099             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10100           fi
10101         else
10102           # Otherwise we believe it is a complete path. Use it as it is.
10103           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10104 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10105           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10106 $as_echo_n "checking for NAWK... " >&6; }
10107           if test ! -x "$tool_specified"; then
10108             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10109 $as_echo "not found" >&6; }
10110             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10111           fi
10112           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10113 $as_echo "$tool_specified" >&6; }
10114         fi
10115       fi
10116     fi
10117 
10118   fi
10119 
10120 
10121 
10122   if test "x$NAWK" = x; then
10123     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10124   fi
10125 
10126 
10127 
10128 
10129 
10130   # Publish this variable in the help.
10131 
10132 
10133   if [ -z "${PRINTF+x}" ]; then
10134     # The variable is not set by user, try to locate tool using the code snippet
10135     for ac_prog in printf
10136 do
10137   # Extract the first word of "$ac_prog", so it can be a program name with args.
10138 set dummy $ac_prog; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if ${ac_cv_path_PRINTF+:} false; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   case $PRINTF in
10145   [\\/]* | ?:[\\/]*)
10146   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10147   ;;
10148   *)
10149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150 for as_dir in $PATH
10151 do
10152   IFS=$as_save_IFS
10153   test -z "$as_dir" && as_dir=.
10154     for ac_exec_ext in '' $ac_executable_extensions; do
10155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10156     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158     break 2
10159   fi
10160 done
10161   done
10162 IFS=$as_save_IFS
10163 
10164   ;;
10165 esac
10166 fi
10167 PRINTF=$ac_cv_path_PRINTF
10168 if test -n "$PRINTF"; then
10169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10170 $as_echo "$PRINTF" >&6; }
10171 else
10172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10174 fi
10175 
10176 
10177   test -n "$PRINTF" && break
10178 done
10179 
10180   else
10181     # The variable is set, but is it from the command line or the environment?
10182 
10183     # Try to remove the string !PRINTF! from our list.
10184     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10185     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10186       # If it failed, the variable was not from the command line. Ignore it,
10187       # but warn the user (except for BASH, which is always set by the calling BASH).
10188       if test "xPRINTF" != xBASH; then
10189         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10190 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10191       fi
10192       # Try to locate tool using the code snippet
10193       for ac_prog in printf
10194 do
10195   # Extract the first word of "$ac_prog", so it can be a program name with args.
10196 set dummy $ac_prog; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if ${ac_cv_path_PRINTF+:} false; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   case $PRINTF in
10203   [\\/]* | ?:[\\/]*)
10204   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10205   ;;
10206   *)
10207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210   IFS=$as_save_IFS
10211   test -z "$as_dir" && as_dir=.
10212     for ac_exec_ext in '' $ac_executable_extensions; do
10213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216     break 2
10217   fi
10218 done
10219   done
10220 IFS=$as_save_IFS
10221 
10222   ;;
10223 esac
10224 fi
10225 PRINTF=$ac_cv_path_PRINTF
10226 if test -n "$PRINTF"; then
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10228 $as_echo "$PRINTF" >&6; }
10229 else
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10232 fi
10233 
10234 
10235   test -n "$PRINTF" && break
10236 done
10237 
10238     else
10239       # If it succeeded, then it was overridden by the user. We will use it
10240       # for the tool.
10241 
10242       # First remove it from the list of overridden variables, so we can test
10243       # for unknown variables in the end.
10244       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10245 
10246       # Check if we try to supply an empty value
10247       if test "x$PRINTF" = x; then
10248         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10249 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10251 $as_echo_n "checking for PRINTF... " >&6; }
10252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10253 $as_echo "disabled" >&6; }
10254       else
10255         # Check if the provided tool contains a complete path.
10256         tool_specified="$PRINTF"
10257         tool_basename="${tool_specified##*/}"
10258         if test "x$tool_basename" = "x$tool_specified"; then
10259           # A command without a complete path is provided, search $PATH.
10260           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10261 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10262           # Extract the first word of "$tool_basename", so it can be a program name with args.
10263 set dummy $tool_basename; ac_word=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_path_PRINTF+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   case $PRINTF in
10270   [\\/]* | ?:[\\/]*)
10271   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10272   ;;
10273   *)
10274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10276 do
10277   IFS=$as_save_IFS
10278   test -z "$as_dir" && as_dir=.
10279     for ac_exec_ext in '' $ac_executable_extensions; do
10280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283     break 2
10284   fi
10285 done
10286   done
10287 IFS=$as_save_IFS
10288 
10289   ;;
10290 esac
10291 fi
10292 PRINTF=$ac_cv_path_PRINTF
10293 if test -n "$PRINTF"; then
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10295 $as_echo "$PRINTF" >&6; }
10296 else
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10299 fi
10300 
10301 
10302           if test "x$PRINTF" = x; then
10303             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10304           fi
10305         else
10306           # Otherwise we believe it is a complete path. Use it as it is.
10307           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10308 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10309           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10310 $as_echo_n "checking for PRINTF... " >&6; }
10311           if test ! -x "$tool_specified"; then
10312             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10313 $as_echo "not found" >&6; }
10314             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10315           fi
10316           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10317 $as_echo "$tool_specified" >&6; }
10318         fi
10319       fi
10320     fi
10321 
10322   fi
10323 
10324 
10325 
10326   if test "x$PRINTF" = x; then
10327     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10328   fi
10329 
10330 
10331 
10332 
10333 
10334   # Publish this variable in the help.
10335 
10336 
10337   if [ -z "${RM+x}" ]; then
10338     # The variable is not set by user, try to locate tool using the code snippet
10339     for ac_prog in rm
10340 do
10341   # Extract the first word of "$ac_prog", so it can be a program name with args.
10342 set dummy $ac_prog; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if ${ac_cv_path_RM+:} false; then :
10346   $as_echo_n "(cached) " >&6
10347 else
10348   case $RM in
10349   [\\/]* | ?:[\\/]*)
10350   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10351   ;;
10352   *)
10353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354 for as_dir in $PATH
10355 do
10356   IFS=$as_save_IFS
10357   test -z "$as_dir" && as_dir=.
10358     for ac_exec_ext in '' $ac_executable_extensions; do
10359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10360     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362     break 2
10363   fi
10364 done
10365   done
10366 IFS=$as_save_IFS
10367 
10368   ;;
10369 esac
10370 fi
10371 RM=$ac_cv_path_RM
10372 if test -n "$RM"; then
10373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10374 $as_echo "$RM" >&6; }
10375 else
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10378 fi
10379 
10380 
10381   test -n "$RM" && break
10382 done
10383 
10384   else
10385     # The variable is set, but is it from the command line or the environment?
10386 
10387     # Try to remove the string !RM! from our list.
10388     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10389     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10390       # If it failed, the variable was not from the command line. Ignore it,
10391       # but warn the user (except for BASH, which is always set by the calling BASH).
10392       if test "xRM" != xBASH; then
10393         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10394 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10395       fi
10396       # Try to locate tool using the code snippet
10397       for ac_prog in rm
10398 do
10399   # Extract the first word of "$ac_prog", so it can be a program name with args.
10400 set dummy $ac_prog; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_path_RM+:} false; then :
10404   $as_echo_n "(cached) " >&6
10405 else
10406   case $RM in
10407   [\\/]* | ?:[\\/]*)
10408   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10409   ;;
10410   *)
10411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414   IFS=$as_save_IFS
10415   test -z "$as_dir" && as_dir=.
10416     for ac_exec_ext in '' $ac_executable_extensions; do
10417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420     break 2
10421   fi
10422 done
10423   done
10424 IFS=$as_save_IFS
10425 
10426   ;;
10427 esac
10428 fi
10429 RM=$ac_cv_path_RM
10430 if test -n "$RM"; then
10431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10432 $as_echo "$RM" >&6; }
10433 else
10434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10436 fi
10437 
10438 
10439   test -n "$RM" && break
10440 done
10441 
10442     else
10443       # If it succeeded, then it was overridden by the user. We will use it
10444       # for the tool.
10445 
10446       # First remove it from the list of overridden variables, so we can test
10447       # for unknown variables in the end.
10448       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10449 
10450       # Check if we try to supply an empty value
10451       if test "x$RM" = x; then
10452         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10453 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10454         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10455 $as_echo_n "checking for RM... " >&6; }
10456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10457 $as_echo "disabled" >&6; }
10458       else
10459         # Check if the provided tool contains a complete path.
10460         tool_specified="$RM"
10461         tool_basename="${tool_specified##*/}"
10462         if test "x$tool_basename" = "x$tool_specified"; then
10463           # A command without a complete path is provided, search $PATH.
10464           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10465 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10466           # Extract the first word of "$tool_basename", so it can be a program name with args.
10467 set dummy $tool_basename; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if ${ac_cv_path_RM+:} false; then :
10471   $as_echo_n "(cached) " >&6
10472 else
10473   case $RM in
10474   [\\/]* | ?:[\\/]*)
10475   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10476   ;;
10477   *)
10478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481   IFS=$as_save_IFS
10482   test -z "$as_dir" && as_dir=.
10483     for ac_exec_ext in '' $ac_executable_extensions; do
10484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487     break 2
10488   fi
10489 done
10490   done
10491 IFS=$as_save_IFS
10492 
10493   ;;
10494 esac
10495 fi
10496 RM=$ac_cv_path_RM
10497 if test -n "$RM"; then
10498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10499 $as_echo "$RM" >&6; }
10500 else
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10503 fi
10504 
10505 
10506           if test "x$RM" = x; then
10507             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10508           fi
10509         else
10510           # Otherwise we believe it is a complete path. Use it as it is.
10511           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10512 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10513           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10514 $as_echo_n "checking for RM... " >&6; }
10515           if test ! -x "$tool_specified"; then
10516             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10517 $as_echo "not found" >&6; }
10518             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10519           fi
10520           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10521 $as_echo "$tool_specified" >&6; }
10522         fi
10523       fi
10524     fi
10525 
10526   fi
10527 
10528 
10529 
10530   if test "x$RM" = x; then
10531     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10532   fi
10533 
10534 
10535 
10536 
10537 
10538   # Publish this variable in the help.
10539 
10540 
10541   if [ -z "${RMDIR+x}" ]; then
10542     # The variable is not set by user, try to locate tool using the code snippet
10543     for ac_prog in rmdir
10544 do
10545   # Extract the first word of "$ac_prog", so it can be a program name with args.
10546 set dummy $ac_prog; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if ${ac_cv_path_RMDIR+:} false; then :
10550   $as_echo_n "(cached) " >&6
10551 else
10552   case $RMDIR in
10553   [\\/]* | ?:[\\/]*)
10554   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10555   ;;
10556   *)
10557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10559 do
10560   IFS=$as_save_IFS
10561   test -z "$as_dir" && as_dir=.
10562     for ac_exec_ext in '' $ac_executable_extensions; do
10563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566     break 2
10567   fi
10568 done
10569   done
10570 IFS=$as_save_IFS
10571 
10572   ;;
10573 esac
10574 fi
10575 RMDIR=$ac_cv_path_RMDIR
10576 if test -n "$RMDIR"; then
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10578 $as_echo "$RMDIR" >&6; }
10579 else
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10582 fi
10583 
10584 
10585   test -n "$RMDIR" && break
10586 done
10587 
10588   else
10589     # The variable is set, but is it from the command line or the environment?
10590 
10591     # Try to remove the string !RMDIR! from our list.
10592     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10593     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10594       # If it failed, the variable was not from the command line. Ignore it,
10595       # but warn the user (except for BASH, which is always set by the calling BASH).
10596       if test "xRMDIR" != xBASH; then
10597         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10598 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10599       fi
10600       # Try to locate tool using the code snippet
10601       for ac_prog in rmdir
10602 do
10603   # Extract the first word of "$ac_prog", so it can be a program name with args.
10604 set dummy $ac_prog; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if ${ac_cv_path_RMDIR+:} false; then :
10608   $as_echo_n "(cached) " >&6
10609 else
10610   case $RMDIR in
10611   [\\/]* | ?:[\\/]*)
10612   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10613   ;;
10614   *)
10615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10617 do
10618   IFS=$as_save_IFS
10619   test -z "$as_dir" && as_dir=.
10620     for ac_exec_ext in '' $ac_executable_extensions; do
10621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10622     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624     break 2
10625   fi
10626 done
10627   done
10628 IFS=$as_save_IFS
10629 
10630   ;;
10631 esac
10632 fi
10633 RMDIR=$ac_cv_path_RMDIR
10634 if test -n "$RMDIR"; then
10635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10636 $as_echo "$RMDIR" >&6; }
10637 else
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10640 fi
10641 
10642 
10643   test -n "$RMDIR" && break
10644 done
10645 
10646     else
10647       # If it succeeded, then it was overridden by the user. We will use it
10648       # for the tool.
10649 
10650       # First remove it from the list of overridden variables, so we can test
10651       # for unknown variables in the end.
10652       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10653 
10654       # Check if we try to supply an empty value
10655       if test "x$RMDIR" = x; then
10656         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10657 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10659 $as_echo_n "checking for RMDIR... " >&6; }
10660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10661 $as_echo "disabled" >&6; }
10662       else
10663         # Check if the provided tool contains a complete path.
10664         tool_specified="$RMDIR"
10665         tool_basename="${tool_specified##*/}"
10666         if test "x$tool_basename" = "x$tool_specified"; then
10667           # A command without a complete path is provided, search $PATH.
10668           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10669 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10670           # Extract the first word of "$tool_basename", so it can be a program name with args.
10671 set dummy $tool_basename; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if ${ac_cv_path_RMDIR+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   case $RMDIR in
10678   [\\/]* | ?:[\\/]*)
10679   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10680   ;;
10681   *)
10682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685   IFS=$as_save_IFS
10686   test -z "$as_dir" && as_dir=.
10687     for ac_exec_ext in '' $ac_executable_extensions; do
10688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691     break 2
10692   fi
10693 done
10694   done
10695 IFS=$as_save_IFS
10696 
10697   ;;
10698 esac
10699 fi
10700 RMDIR=$ac_cv_path_RMDIR
10701 if test -n "$RMDIR"; then
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10703 $as_echo "$RMDIR" >&6; }
10704 else
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708 
10709 
10710           if test "x$RMDIR" = x; then
10711             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10712           fi
10713         else
10714           # Otherwise we believe it is a complete path. Use it as it is.
10715           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10716 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10717           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10718 $as_echo_n "checking for RMDIR... " >&6; }
10719           if test ! -x "$tool_specified"; then
10720             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10721 $as_echo "not found" >&6; }
10722             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10723           fi
10724           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10725 $as_echo "$tool_specified" >&6; }
10726         fi
10727       fi
10728     fi
10729 
10730   fi
10731 
10732 
10733 
10734   if test "x$RMDIR" = x; then
10735     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10736   fi
10737 
10738 
10739 
10740 
10741 
10742   # Publish this variable in the help.
10743 
10744 
10745   if [ -z "${SH+x}" ]; then
10746     # The variable is not set by user, try to locate tool using the code snippet
10747     for ac_prog in sh
10748 do
10749   # Extract the first word of "$ac_prog", so it can be a program name with args.
10750 set dummy $ac_prog; ac_word=$2
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10752 $as_echo_n "checking for $ac_word... " >&6; }
10753 if ${ac_cv_path_SH+:} false; then :
10754   $as_echo_n "(cached) " >&6
10755 else
10756   case $SH in
10757   [\\/]* | ?:[\\/]*)
10758   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10759   ;;
10760   *)
10761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10763 do
10764   IFS=$as_save_IFS
10765   test -z "$as_dir" && as_dir=.
10766     for ac_exec_ext in '' $ac_executable_extensions; do
10767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10768     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770     break 2
10771   fi
10772 done
10773   done
10774 IFS=$as_save_IFS
10775 
10776   ;;
10777 esac
10778 fi
10779 SH=$ac_cv_path_SH
10780 if test -n "$SH"; then
10781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10782 $as_echo "$SH" >&6; }
10783 else
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10786 fi
10787 
10788 
10789   test -n "$SH" && break
10790 done
10791 
10792   else
10793     # The variable is set, but is it from the command line or the environment?
10794 
10795     # Try to remove the string !SH! from our list.
10796     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10797     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10798       # If it failed, the variable was not from the command line. Ignore it,
10799       # but warn the user (except for BASH, which is always set by the calling BASH).
10800       if test "xSH" != xBASH; then
10801         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10802 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10803       fi
10804       # Try to locate tool using the code snippet
10805       for ac_prog in sh
10806 do
10807   # Extract the first word of "$ac_prog", so it can be a program name with args.
10808 set dummy $ac_prog; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if ${ac_cv_path_SH+:} false; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   case $SH in
10815   [\\/]* | ?:[\\/]*)
10816   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10817   ;;
10818   *)
10819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10821 do
10822   IFS=$as_save_IFS
10823   test -z "$as_dir" && as_dir=.
10824     for ac_exec_ext in '' $ac_executable_extensions; do
10825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828     break 2
10829   fi
10830 done
10831   done
10832 IFS=$as_save_IFS
10833 
10834   ;;
10835 esac
10836 fi
10837 SH=$ac_cv_path_SH
10838 if test -n "$SH"; then
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10840 $as_echo "$SH" >&6; }
10841 else
10842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10844 fi
10845 
10846 
10847   test -n "$SH" && break
10848 done
10849 
10850     else
10851       # If it succeeded, then it was overridden by the user. We will use it
10852       # for the tool.
10853 
10854       # First remove it from the list of overridden variables, so we can test
10855       # for unknown variables in the end.
10856       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10857 
10858       # Check if we try to supply an empty value
10859       if test "x$SH" = x; then
10860         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10861 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10863 $as_echo_n "checking for SH... " >&6; }
10864         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10865 $as_echo "disabled" >&6; }
10866       else
10867         # Check if the provided tool contains a complete path.
10868         tool_specified="$SH"
10869         tool_basename="${tool_specified##*/}"
10870         if test "x$tool_basename" = "x$tool_specified"; then
10871           # A command without a complete path is provided, search $PATH.
10872           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10873 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10874           # Extract the first word of "$tool_basename", so it can be a program name with args.
10875 set dummy $tool_basename; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_path_SH+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   case $SH in
10882   [\\/]* | ?:[\\/]*)
10883   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10884   ;;
10885   *)
10886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10888 do
10889   IFS=$as_save_IFS
10890   test -z "$as_dir" && as_dir=.
10891     for ac_exec_ext in '' $ac_executable_extensions; do
10892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895     break 2
10896   fi
10897 done
10898   done
10899 IFS=$as_save_IFS
10900 
10901   ;;
10902 esac
10903 fi
10904 SH=$ac_cv_path_SH
10905 if test -n "$SH"; then
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10907 $as_echo "$SH" >&6; }
10908 else
10909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912 
10913 
10914           if test "x$SH" = x; then
10915             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10916           fi
10917         else
10918           # Otherwise we believe it is a complete path. Use it as it is.
10919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10920 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10921           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10922 $as_echo_n "checking for SH... " >&6; }
10923           if test ! -x "$tool_specified"; then
10924             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10925 $as_echo "not found" >&6; }
10926             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10927           fi
10928           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10929 $as_echo "$tool_specified" >&6; }
10930         fi
10931       fi
10932     fi
10933 
10934   fi
10935 
10936 
10937 
10938   if test "x$SH" = x; then
10939     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10940   fi
10941 
10942 
10943 
10944 
10945 
10946   # Publish this variable in the help.
10947 
10948 
10949   if [ -z "${SORT+x}" ]; then
10950     # The variable is not set by user, try to locate tool using the code snippet
10951     for ac_prog in sort
10952 do
10953   # Extract the first word of "$ac_prog", so it can be a program name with args.
10954 set dummy $ac_prog; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if ${ac_cv_path_SORT+:} false; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960   case $SORT in
10961   [\\/]* | ?:[\\/]*)
10962   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10963   ;;
10964   *)
10965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10967 do
10968   IFS=$as_save_IFS
10969   test -z "$as_dir" && as_dir=.
10970     for ac_exec_ext in '' $ac_executable_extensions; do
10971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10972     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974     break 2
10975   fi
10976 done
10977   done
10978 IFS=$as_save_IFS
10979 
10980   ;;
10981 esac
10982 fi
10983 SORT=$ac_cv_path_SORT
10984 if test -n "$SORT"; then
10985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10986 $as_echo "$SORT" >&6; }
10987 else
10988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 fi
10991 
10992 
10993   test -n "$SORT" && break
10994 done
10995 
10996   else
10997     # The variable is set, but is it from the command line or the environment?
10998 
10999     # Try to remove the string !SORT! from our list.
11000     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11001     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11002       # If it failed, the variable was not from the command line. Ignore it,
11003       # but warn the user (except for BASH, which is always set by the calling BASH).
11004       if test "xSORT" != xBASH; then
11005         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11006 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11007       fi
11008       # Try to locate tool using the code snippet
11009       for ac_prog in sort
11010 do
11011   # Extract the first word of "$ac_prog", so it can be a program name with args.
11012 set dummy $ac_prog; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_path_SORT+:} false; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   case $SORT in
11019   [\\/]* | ?:[\\/]*)
11020   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11021   ;;
11022   *)
11023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028     for ac_exec_ext in '' $ac_executable_extensions; do
11029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035   done
11036 IFS=$as_save_IFS
11037 
11038   ;;
11039 esac
11040 fi
11041 SORT=$ac_cv_path_SORT
11042 if test -n "$SORT"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11044 $as_echo "$SORT" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049 
11050 
11051   test -n "$SORT" && break
11052 done
11053 
11054     else
11055       # If it succeeded, then it was overridden by the user. We will use it
11056       # for the tool.
11057 
11058       # First remove it from the list of overridden variables, so we can test
11059       # for unknown variables in the end.
11060       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11061 
11062       # Check if we try to supply an empty value
11063       if test "x$SORT" = x; then
11064         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11065 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11067 $as_echo_n "checking for SORT... " >&6; }
11068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11069 $as_echo "disabled" >&6; }
11070       else
11071         # Check if the provided tool contains a complete path.
11072         tool_specified="$SORT"
11073         tool_basename="${tool_specified##*/}"
11074         if test "x$tool_basename" = "x$tool_specified"; then
11075           # A command without a complete path is provided, search $PATH.
11076           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11077 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11078           # Extract the first word of "$tool_basename", so it can be a program name with args.
11079 set dummy $tool_basename; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_path_SORT+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   case $SORT in
11086   [\\/]* | ?:[\\/]*)
11087   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11088   ;;
11089   *)
11090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11092 do
11093   IFS=$as_save_IFS
11094   test -z "$as_dir" && as_dir=.
11095     for ac_exec_ext in '' $ac_executable_extensions; do
11096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11097     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099     break 2
11100   fi
11101 done
11102   done
11103 IFS=$as_save_IFS
11104 
11105   ;;
11106 esac
11107 fi
11108 SORT=$ac_cv_path_SORT
11109 if test -n "$SORT"; then
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11111 $as_echo "$SORT" >&6; }
11112 else
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114 $as_echo "no" >&6; }
11115 fi
11116 
11117 
11118           if test "x$SORT" = x; then
11119             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11120           fi
11121         else
11122           # Otherwise we believe it is a complete path. Use it as it is.
11123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11124 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11125           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11126 $as_echo_n "checking for SORT... " >&6; }
11127           if test ! -x "$tool_specified"; then
11128             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11129 $as_echo "not found" >&6; }
11130             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11131           fi
11132           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11133 $as_echo "$tool_specified" >&6; }
11134         fi
11135       fi
11136     fi
11137 
11138   fi
11139 
11140 
11141 
11142   if test "x$SORT" = x; then
11143     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11144   fi
11145 
11146 
11147 
11148 
11149 
11150   # Publish this variable in the help.
11151 
11152 
11153   if [ -z "${TAIL+x}" ]; then
11154     # The variable is not set by user, try to locate tool using the code snippet
11155     for ac_prog in tail
11156 do
11157   # Extract the first word of "$ac_prog", so it can be a program name with args.
11158 set dummy $ac_prog; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_path_TAIL+:} false; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   case $TAIL in
11165   [\\/]* | ?:[\\/]*)
11166   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11167   ;;
11168   *)
11169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11171 do
11172   IFS=$as_save_IFS
11173   test -z "$as_dir" && as_dir=.
11174     for ac_exec_ext in '' $ac_executable_extensions; do
11175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11176     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178     break 2
11179   fi
11180 done
11181   done
11182 IFS=$as_save_IFS
11183 
11184   ;;
11185 esac
11186 fi
11187 TAIL=$ac_cv_path_TAIL
11188 if test -n "$TAIL"; then
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11190 $as_echo "$TAIL" >&6; }
11191 else
11192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11194 fi
11195 
11196 
11197   test -n "$TAIL" && break
11198 done
11199 
11200   else
11201     # The variable is set, but is it from the command line or the environment?
11202 
11203     # Try to remove the string !TAIL! from our list.
11204     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11205     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11206       # If it failed, the variable was not from the command line. Ignore it,
11207       # but warn the user (except for BASH, which is always set by the calling BASH).
11208       if test "xTAIL" != xBASH; then
11209         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11210 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11211       fi
11212       # Try to locate tool using the code snippet
11213       for ac_prog in tail
11214 do
11215   # Extract the first word of "$ac_prog", so it can be a program name with args.
11216 set dummy $ac_prog; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if ${ac_cv_path_TAIL+:} false; then :
11220   $as_echo_n "(cached) " >&6
11221 else
11222   case $TAIL in
11223   [\\/]* | ?:[\\/]*)
11224   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11225   ;;
11226   *)
11227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11229 do
11230   IFS=$as_save_IFS
11231   test -z "$as_dir" && as_dir=.
11232     for ac_exec_ext in '' $ac_executable_extensions; do
11233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236     break 2
11237   fi
11238 done
11239   done
11240 IFS=$as_save_IFS
11241 
11242   ;;
11243 esac
11244 fi
11245 TAIL=$ac_cv_path_TAIL
11246 if test -n "$TAIL"; then
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11248 $as_echo "$TAIL" >&6; }
11249 else
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11252 fi
11253 
11254 
11255   test -n "$TAIL" && break
11256 done
11257 
11258     else
11259       # If it succeeded, then it was overridden by the user. We will use it
11260       # for the tool.
11261 
11262       # First remove it from the list of overridden variables, so we can test
11263       # for unknown variables in the end.
11264       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11265 
11266       # Check if we try to supply an empty value
11267       if test "x$TAIL" = x; then
11268         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11269 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11271 $as_echo_n "checking for TAIL... " >&6; }
11272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11273 $as_echo "disabled" >&6; }
11274       else
11275         # Check if the provided tool contains a complete path.
11276         tool_specified="$TAIL"
11277         tool_basename="${tool_specified##*/}"
11278         if test "x$tool_basename" = "x$tool_specified"; then
11279           # A command without a complete path is provided, search $PATH.
11280           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11281 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11282           # Extract the first word of "$tool_basename", so it can be a program name with args.
11283 set dummy $tool_basename; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if ${ac_cv_path_TAIL+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   case $TAIL in
11290   [\\/]* | ?:[\\/]*)
11291   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11292   ;;
11293   *)
11294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295 for as_dir in $PATH
11296 do
11297   IFS=$as_save_IFS
11298   test -z "$as_dir" && as_dir=.
11299     for ac_exec_ext in '' $ac_executable_extensions; do
11300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303     break 2
11304   fi
11305 done
11306   done
11307 IFS=$as_save_IFS
11308 
11309   ;;
11310 esac
11311 fi
11312 TAIL=$ac_cv_path_TAIL
11313 if test -n "$TAIL"; then
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11315 $as_echo "$TAIL" >&6; }
11316 else
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 fi
11320 
11321 
11322           if test "x$TAIL" = x; then
11323             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11324           fi
11325         else
11326           # Otherwise we believe it is a complete path. Use it as it is.
11327           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11328 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11329           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11330 $as_echo_n "checking for TAIL... " >&6; }
11331           if test ! -x "$tool_specified"; then
11332             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11333 $as_echo "not found" >&6; }
11334             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11335           fi
11336           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11337 $as_echo "$tool_specified" >&6; }
11338         fi
11339       fi
11340     fi
11341 
11342   fi
11343 
11344 
11345 
11346   if test "x$TAIL" = x; then
11347     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11348   fi
11349 
11350 
11351 
11352 
11353 
11354   # Publish this variable in the help.
11355 
11356 
11357   if [ -z "${TAR+x}" ]; then
11358     # The variable is not set by user, try to locate tool using the code snippet
11359     for ac_prog in gtar tar
11360 do
11361   # Extract the first word of "$ac_prog", so it can be a program name with args.
11362 set dummy $ac_prog; ac_word=$2
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364 $as_echo_n "checking for $ac_word... " >&6; }
11365 if ${ac_cv_path_TAR+:} false; then :
11366   $as_echo_n "(cached) " >&6
11367 else
11368   case $TAR in
11369   [\\/]* | ?:[\\/]*)
11370   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11371   ;;
11372   *)
11373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376   IFS=$as_save_IFS
11377   test -z "$as_dir" && as_dir=.
11378     for ac_exec_ext in '' $ac_executable_extensions; do
11379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382     break 2
11383   fi
11384 done
11385   done
11386 IFS=$as_save_IFS
11387 
11388   ;;
11389 esac
11390 fi
11391 TAR=$ac_cv_path_TAR
11392 if test -n "$TAR"; then
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11394 $as_echo "$TAR" >&6; }
11395 else
11396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398 fi
11399 
11400 
11401   test -n "$TAR" && break
11402 done
11403 
11404   else
11405     # The variable is set, but is it from the command line or the environment?
11406 
11407     # Try to remove the string !TAR! from our list.
11408     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11409     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11410       # If it failed, the variable was not from the command line. Ignore it,
11411       # but warn the user (except for BASH, which is always set by the calling BASH).
11412       if test "xTAR" != xBASH; then
11413         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11414 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11415       fi
11416       # Try to locate tool using the code snippet
11417       for ac_prog in gtar tar
11418 do
11419   # Extract the first word of "$ac_prog", so it can be a program name with args.
11420 set dummy $ac_prog; ac_word=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if ${ac_cv_path_TAR+:} false; then :
11424   $as_echo_n "(cached) " >&6
11425 else
11426   case $TAR in
11427   [\\/]* | ?:[\\/]*)
11428   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11429   ;;
11430   *)
11431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11433 do
11434   IFS=$as_save_IFS
11435   test -z "$as_dir" && as_dir=.
11436     for ac_exec_ext in '' $ac_executable_extensions; do
11437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11438     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440     break 2
11441   fi
11442 done
11443   done
11444 IFS=$as_save_IFS
11445 
11446   ;;
11447 esac
11448 fi
11449 TAR=$ac_cv_path_TAR
11450 if test -n "$TAR"; then
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11452 $as_echo "$TAR" >&6; }
11453 else
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457 
11458 
11459   test -n "$TAR" && break
11460 done
11461 
11462     else
11463       # If it succeeded, then it was overridden by the user. We will use it
11464       # for the tool.
11465 
11466       # First remove it from the list of overridden variables, so we can test
11467       # for unknown variables in the end.
11468       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11469 
11470       # Check if we try to supply an empty value
11471       if test "x$TAR" = x; then
11472         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11473 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11474         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11475 $as_echo_n "checking for TAR... " >&6; }
11476         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11477 $as_echo "disabled" >&6; }
11478       else
11479         # Check if the provided tool contains a complete path.
11480         tool_specified="$TAR"
11481         tool_basename="${tool_specified##*/}"
11482         if test "x$tool_basename" = "x$tool_specified"; then
11483           # A command without a complete path is provided, search $PATH.
11484           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11485 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11486           # Extract the first word of "$tool_basename", so it can be a program name with args.
11487 set dummy $tool_basename; ac_word=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489 $as_echo_n "checking for $ac_word... " >&6; }
11490 if ${ac_cv_path_TAR+:} false; then :
11491   $as_echo_n "(cached) " >&6
11492 else
11493   case $TAR in
11494   [\\/]* | ?:[\\/]*)
11495   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11496   ;;
11497   *)
11498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH
11500 do
11501   IFS=$as_save_IFS
11502   test -z "$as_dir" && as_dir=.
11503     for ac_exec_ext in '' $ac_executable_extensions; do
11504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11505     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507     break 2
11508   fi
11509 done
11510   done
11511 IFS=$as_save_IFS
11512 
11513   ;;
11514 esac
11515 fi
11516 TAR=$ac_cv_path_TAR
11517 if test -n "$TAR"; then
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11519 $as_echo "$TAR" >&6; }
11520 else
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523 fi
11524 
11525 
11526           if test "x$TAR" = x; then
11527             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11528           fi
11529         else
11530           # Otherwise we believe it is a complete path. Use it as it is.
11531           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11532 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11533           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11534 $as_echo_n "checking for TAR... " >&6; }
11535           if test ! -x "$tool_specified"; then
11536             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11537 $as_echo "not found" >&6; }
11538             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11539           fi
11540           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11541 $as_echo "$tool_specified" >&6; }
11542         fi
11543       fi
11544     fi
11545 
11546   fi
11547 
11548 
11549 
11550   if test "x$TAR" = x; then
11551     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11552   fi
11553 
11554 
11555 
11556 
11557 
11558   # Publish this variable in the help.
11559 
11560 
11561   if [ -z "${TEE+x}" ]; then
11562     # The variable is not set by user, try to locate tool using the code snippet
11563     for ac_prog in tee
11564 do
11565   # Extract the first word of "$ac_prog", so it can be a program name with args.
11566 set dummy $ac_prog; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if ${ac_cv_path_TEE+:} false; then :
11570   $as_echo_n "(cached) " >&6
11571 else
11572   case $TEE in
11573   [\\/]* | ?:[\\/]*)
11574   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11575   ;;
11576   *)
11577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580   IFS=$as_save_IFS
11581   test -z "$as_dir" && as_dir=.
11582     for ac_exec_ext in '' $ac_executable_extensions; do
11583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586     break 2
11587   fi
11588 done
11589   done
11590 IFS=$as_save_IFS
11591 
11592   ;;
11593 esac
11594 fi
11595 TEE=$ac_cv_path_TEE
11596 if test -n "$TEE"; then
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11598 $as_echo "$TEE" >&6; }
11599 else
11600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 fi
11603 
11604 
11605   test -n "$TEE" && break
11606 done
11607 
11608   else
11609     # The variable is set, but is it from the command line or the environment?
11610 
11611     # Try to remove the string !TEE! from our list.
11612     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11613     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11614       # If it failed, the variable was not from the command line. Ignore it,
11615       # but warn the user (except for BASH, which is always set by the calling BASH).
11616       if test "xTEE" != xBASH; then
11617         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11618 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11619       fi
11620       # Try to locate tool using the code snippet
11621       for ac_prog in tee
11622 do
11623   # Extract the first word of "$ac_prog", so it can be a program name with args.
11624 set dummy $ac_prog; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if ${ac_cv_path_TEE+:} false; then :
11628   $as_echo_n "(cached) " >&6
11629 else
11630   case $TEE in
11631   [\\/]* | ?:[\\/]*)
11632   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11633   ;;
11634   *)
11635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638   IFS=$as_save_IFS
11639   test -z "$as_dir" && as_dir=.
11640     for ac_exec_ext in '' $ac_executable_extensions; do
11641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644     break 2
11645   fi
11646 done
11647   done
11648 IFS=$as_save_IFS
11649 
11650   ;;
11651 esac
11652 fi
11653 TEE=$ac_cv_path_TEE
11654 if test -n "$TEE"; then
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11656 $as_echo "$TEE" >&6; }
11657 else
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661 
11662 
11663   test -n "$TEE" && break
11664 done
11665 
11666     else
11667       # If it succeeded, then it was overridden by the user. We will use it
11668       # for the tool.
11669 
11670       # First remove it from the list of overridden variables, so we can test
11671       # for unknown variables in the end.
11672       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11673 
11674       # Check if we try to supply an empty value
11675       if test "x$TEE" = x; then
11676         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11677 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11679 $as_echo_n "checking for TEE... " >&6; }
11680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11681 $as_echo "disabled" >&6; }
11682       else
11683         # Check if the provided tool contains a complete path.
11684         tool_specified="$TEE"
11685         tool_basename="${tool_specified##*/}"
11686         if test "x$tool_basename" = "x$tool_specified"; then
11687           # A command without a complete path is provided, search $PATH.
11688           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11689 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11690           # Extract the first word of "$tool_basename", so it can be a program name with args.
11691 set dummy $tool_basename; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_TEE+:} false; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   case $TEE in
11698   [\\/]* | ?:[\\/]*)
11699   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11700   ;;
11701   *)
11702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11704 do
11705   IFS=$as_save_IFS
11706   test -z "$as_dir" && as_dir=.
11707     for ac_exec_ext in '' $ac_executable_extensions; do
11708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711     break 2
11712   fi
11713 done
11714   done
11715 IFS=$as_save_IFS
11716 
11717   ;;
11718 esac
11719 fi
11720 TEE=$ac_cv_path_TEE
11721 if test -n "$TEE"; then
11722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11723 $as_echo "$TEE" >&6; }
11724 else
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728 
11729 
11730           if test "x$TEE" = x; then
11731             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11732           fi
11733         else
11734           # Otherwise we believe it is a complete path. Use it as it is.
11735           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11736 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11737           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11738 $as_echo_n "checking for TEE... " >&6; }
11739           if test ! -x "$tool_specified"; then
11740             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11741 $as_echo "not found" >&6; }
11742             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11743           fi
11744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11745 $as_echo "$tool_specified" >&6; }
11746         fi
11747       fi
11748     fi
11749 
11750   fi
11751 
11752 
11753 
11754   if test "x$TEE" = x; then
11755     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11756   fi
11757 
11758 
11759 
11760 
11761 
11762   # Publish this variable in the help.
11763 
11764 
11765   if [ -z "${TOUCH+x}" ]; then
11766     # The variable is not set by user, try to locate tool using the code snippet
11767     for ac_prog in touch
11768 do
11769   # Extract the first word of "$ac_prog", so it can be a program name with args.
11770 set dummy $ac_prog; ac_word=$2
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772 $as_echo_n "checking for $ac_word... " >&6; }
11773 if ${ac_cv_path_TOUCH+:} false; then :
11774   $as_echo_n "(cached) " >&6
11775 else
11776   case $TOUCH in
11777   [\\/]* | ?:[\\/]*)
11778   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11779   ;;
11780   *)
11781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11783 do
11784   IFS=$as_save_IFS
11785   test -z "$as_dir" && as_dir=.
11786     for ac_exec_ext in '' $ac_executable_extensions; do
11787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790     break 2
11791   fi
11792 done
11793   done
11794 IFS=$as_save_IFS
11795 
11796   ;;
11797 esac
11798 fi
11799 TOUCH=$ac_cv_path_TOUCH
11800 if test -n "$TOUCH"; then
11801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11802 $as_echo "$TOUCH" >&6; }
11803 else
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 fi
11807 
11808 
11809   test -n "$TOUCH" && break
11810 done
11811 
11812   else
11813     # The variable is set, but is it from the command line or the environment?
11814 
11815     # Try to remove the string !TOUCH! from our list.
11816     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11817     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11818       # If it failed, the variable was not from the command line. Ignore it,
11819       # but warn the user (except for BASH, which is always set by the calling BASH).
11820       if test "xTOUCH" != xBASH; then
11821         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11822 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11823       fi
11824       # Try to locate tool using the code snippet
11825       for ac_prog in touch
11826 do
11827   # Extract the first word of "$ac_prog", so it can be a program name with args.
11828 set dummy $ac_prog; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_path_TOUCH+:} false; then :
11832   $as_echo_n "(cached) " >&6
11833 else
11834   case $TOUCH in
11835   [\\/]* | ?:[\\/]*)
11836   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11837   ;;
11838   *)
11839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11841 do
11842   IFS=$as_save_IFS
11843   test -z "$as_dir" && as_dir=.
11844     for ac_exec_ext in '' $ac_executable_extensions; do
11845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848     break 2
11849   fi
11850 done
11851   done
11852 IFS=$as_save_IFS
11853 
11854   ;;
11855 esac
11856 fi
11857 TOUCH=$ac_cv_path_TOUCH
11858 if test -n "$TOUCH"; then
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11860 $as_echo "$TOUCH" >&6; }
11861 else
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 fi
11865 
11866 
11867   test -n "$TOUCH" && break
11868 done
11869 
11870     else
11871       # If it succeeded, then it was overridden by the user. We will use it
11872       # for the tool.
11873 
11874       # First remove it from the list of overridden variables, so we can test
11875       # for unknown variables in the end.
11876       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11877 
11878       # Check if we try to supply an empty value
11879       if test "x$TOUCH" = x; then
11880         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11881 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11882         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11883 $as_echo_n "checking for TOUCH... " >&6; }
11884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11885 $as_echo "disabled" >&6; }
11886       else
11887         # Check if the provided tool contains a complete path.
11888         tool_specified="$TOUCH"
11889         tool_basename="${tool_specified##*/}"
11890         if test "x$tool_basename" = "x$tool_specified"; then
11891           # A command without a complete path is provided, search $PATH.
11892           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11893 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11894           # Extract the first word of "$tool_basename", so it can be a program name with args.
11895 set dummy $tool_basename; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_path_TOUCH+:} false; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   case $TOUCH in
11902   [\\/]* | ?:[\\/]*)
11903   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11904   ;;
11905   *)
11906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909   IFS=$as_save_IFS
11910   test -z "$as_dir" && as_dir=.
11911     for ac_exec_ext in '' $ac_executable_extensions; do
11912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915     break 2
11916   fi
11917 done
11918   done
11919 IFS=$as_save_IFS
11920 
11921   ;;
11922 esac
11923 fi
11924 TOUCH=$ac_cv_path_TOUCH
11925 if test -n "$TOUCH"; then
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11927 $as_echo "$TOUCH" >&6; }
11928 else
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932 
11933 
11934           if test "x$TOUCH" = x; then
11935             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11936           fi
11937         else
11938           # Otherwise we believe it is a complete path. Use it as it is.
11939           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11940 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11941           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11942 $as_echo_n "checking for TOUCH... " >&6; }
11943           if test ! -x "$tool_specified"; then
11944             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11945 $as_echo "not found" >&6; }
11946             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11947           fi
11948           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11949 $as_echo "$tool_specified" >&6; }
11950         fi
11951       fi
11952     fi
11953 
11954   fi
11955 
11956 
11957 
11958   if test "x$TOUCH" = x; then
11959     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11960   fi
11961 
11962 
11963 
11964 
11965 
11966   # Publish this variable in the help.
11967 
11968 
11969   if [ -z "${TR+x}" ]; then
11970     # The variable is not set by user, try to locate tool using the code snippet
11971     for ac_prog in tr
11972 do
11973   # Extract the first word of "$ac_prog", so it can be a program name with args.
11974 set dummy $ac_prog; ac_word=$2
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976 $as_echo_n "checking for $ac_word... " >&6; }
11977 if ${ac_cv_path_TR+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   case $TR in
11981   [\\/]* | ?:[\\/]*)
11982   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11983   ;;
11984   *)
11985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11987 do
11988   IFS=$as_save_IFS
11989   test -z "$as_dir" && as_dir=.
11990     for ac_exec_ext in '' $ac_executable_extensions; do
11991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11992     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994     break 2
11995   fi
11996 done
11997   done
11998 IFS=$as_save_IFS
11999 
12000   ;;
12001 esac
12002 fi
12003 TR=$ac_cv_path_TR
12004 if test -n "$TR"; then
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12006 $as_echo "$TR" >&6; }
12007 else
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12010 fi
12011 
12012 
12013   test -n "$TR" && break
12014 done
12015 
12016   else
12017     # The variable is set, but is it from the command line or the environment?
12018 
12019     # Try to remove the string !TR! from our list.
12020     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12021     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12022       # If it failed, the variable was not from the command line. Ignore it,
12023       # but warn the user (except for BASH, which is always set by the calling BASH).
12024       if test "xTR" != xBASH; then
12025         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12026 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12027       fi
12028       # Try to locate tool using the code snippet
12029       for ac_prog in tr
12030 do
12031   # Extract the first word of "$ac_prog", so it can be a program name with args.
12032 set dummy $ac_prog; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_path_TR+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   case $TR in
12039   [\\/]* | ?:[\\/]*)
12040   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12041   ;;
12042   *)
12043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12045 do
12046   IFS=$as_save_IFS
12047   test -z "$as_dir" && as_dir=.
12048     for ac_exec_ext in '' $ac_executable_extensions; do
12049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12052     break 2
12053   fi
12054 done
12055   done
12056 IFS=$as_save_IFS
12057 
12058   ;;
12059 esac
12060 fi
12061 TR=$ac_cv_path_TR
12062 if test -n "$TR"; then
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12064 $as_echo "$TR" >&6; }
12065 else
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069 
12070 
12071   test -n "$TR" && break
12072 done
12073 
12074     else
12075       # If it succeeded, then it was overridden by the user. We will use it
12076       # for the tool.
12077 
12078       # First remove it from the list of overridden variables, so we can test
12079       # for unknown variables in the end.
12080       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12081 
12082       # Check if we try to supply an empty value
12083       if test "x$TR" = x; then
12084         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12085 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12086         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12087 $as_echo_n "checking for TR... " >&6; }
12088         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12089 $as_echo "disabled" >&6; }
12090       else
12091         # Check if the provided tool contains a complete path.
12092         tool_specified="$TR"
12093         tool_basename="${tool_specified##*/}"
12094         if test "x$tool_basename" = "x$tool_specified"; then
12095           # A command without a complete path is provided, search $PATH.
12096           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12097 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12098           # Extract the first word of "$tool_basename", so it can be a program name with args.
12099 set dummy $tool_basename; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_path_TR+:} false; then :
12103   $as_echo_n "(cached) " >&6
12104 else
12105   case $TR in
12106   [\\/]* | ?:[\\/]*)
12107   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12108   ;;
12109   *)
12110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113   IFS=$as_save_IFS
12114   test -z "$as_dir" && as_dir=.
12115     for ac_exec_ext in '' $ac_executable_extensions; do
12116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119     break 2
12120   fi
12121 done
12122   done
12123 IFS=$as_save_IFS
12124 
12125   ;;
12126 esac
12127 fi
12128 TR=$ac_cv_path_TR
12129 if test -n "$TR"; then
12130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12131 $as_echo "$TR" >&6; }
12132 else
12133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135 fi
12136 
12137 
12138           if test "x$TR" = x; then
12139             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12140           fi
12141         else
12142           # Otherwise we believe it is a complete path. Use it as it is.
12143           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12144 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12145           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12146 $as_echo_n "checking for TR... " >&6; }
12147           if test ! -x "$tool_specified"; then
12148             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12149 $as_echo "not found" >&6; }
12150             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12151           fi
12152           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12153 $as_echo "$tool_specified" >&6; }
12154         fi
12155       fi
12156     fi
12157 
12158   fi
12159 
12160 
12161 
12162   if test "x$TR" = x; then
12163     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12164   fi
12165 
12166 
12167 
12168 
12169 
12170   # Publish this variable in the help.
12171 
12172 
12173   if [ -z "${UNAME+x}" ]; then
12174     # The variable is not set by user, try to locate tool using the code snippet
12175     for ac_prog in uname
12176 do
12177   # Extract the first word of "$ac_prog", so it can be a program name with args.
12178 set dummy $ac_prog; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_path_UNAME+:} false; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   case $UNAME in
12185   [\\/]* | ?:[\\/]*)
12186   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12187   ;;
12188   *)
12189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192   IFS=$as_save_IFS
12193   test -z "$as_dir" && as_dir=.
12194     for ac_exec_ext in '' $ac_executable_extensions; do
12195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198     break 2
12199   fi
12200 done
12201   done
12202 IFS=$as_save_IFS
12203 
12204   ;;
12205 esac
12206 fi
12207 UNAME=$ac_cv_path_UNAME
12208 if test -n "$UNAME"; then
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12210 $as_echo "$UNAME" >&6; }
12211 else
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215 
12216 
12217   test -n "$UNAME" && break
12218 done
12219 
12220   else
12221     # The variable is set, but is it from the command line or the environment?
12222 
12223     # Try to remove the string !UNAME! from our list.
12224     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12225     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12226       # If it failed, the variable was not from the command line. Ignore it,
12227       # but warn the user (except for BASH, which is always set by the calling BASH).
12228       if test "xUNAME" != xBASH; then
12229         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12230 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12231       fi
12232       # Try to locate tool using the code snippet
12233       for ac_prog in uname
12234 do
12235   # Extract the first word of "$ac_prog", so it can be a program name with args.
12236 set dummy $ac_prog; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_path_UNAME+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   case $UNAME in
12243   [\\/]* | ?:[\\/]*)
12244   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12245   ;;
12246   *)
12247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12249 do
12250   IFS=$as_save_IFS
12251   test -z "$as_dir" && as_dir=.
12252     for ac_exec_ext in '' $ac_executable_extensions; do
12253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12254     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256     break 2
12257   fi
12258 done
12259   done
12260 IFS=$as_save_IFS
12261 
12262   ;;
12263 esac
12264 fi
12265 UNAME=$ac_cv_path_UNAME
12266 if test -n "$UNAME"; then
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12268 $as_echo "$UNAME" >&6; }
12269 else
12270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272 fi
12273 
12274 
12275   test -n "$UNAME" && break
12276 done
12277 
12278     else
12279       # If it succeeded, then it was overridden by the user. We will use it
12280       # for the tool.
12281 
12282       # First remove it from the list of overridden variables, so we can test
12283       # for unknown variables in the end.
12284       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12285 
12286       # Check if we try to supply an empty value
12287       if test "x$UNAME" = x; then
12288         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12289 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12291 $as_echo_n "checking for UNAME... " >&6; }
12292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12293 $as_echo "disabled" >&6; }
12294       else
12295         # Check if the provided tool contains a complete path.
12296         tool_specified="$UNAME"
12297         tool_basename="${tool_specified##*/}"
12298         if test "x$tool_basename" = "x$tool_specified"; then
12299           # A command without a complete path is provided, search $PATH.
12300           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12301 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12302           # Extract the first word of "$tool_basename", so it can be a program name with args.
12303 set dummy $tool_basename; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if ${ac_cv_path_UNAME+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   case $UNAME in
12310   [\\/]* | ?:[\\/]*)
12311   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12312   ;;
12313   *)
12314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 for as_dir in $PATH
12316 do
12317   IFS=$as_save_IFS
12318   test -z "$as_dir" && as_dir=.
12319     for ac_exec_ext in '' $ac_executable_extensions; do
12320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323     break 2
12324   fi
12325 done
12326   done
12327 IFS=$as_save_IFS
12328 
12329   ;;
12330 esac
12331 fi
12332 UNAME=$ac_cv_path_UNAME
12333 if test -n "$UNAME"; then
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12335 $as_echo "$UNAME" >&6; }
12336 else
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 fi
12340 
12341 
12342           if test "x$UNAME" = x; then
12343             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12344           fi
12345         else
12346           # Otherwise we believe it is a complete path. Use it as it is.
12347           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12348 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12349           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12350 $as_echo_n "checking for UNAME... " >&6; }
12351           if test ! -x "$tool_specified"; then
12352             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12353 $as_echo "not found" >&6; }
12354             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12355           fi
12356           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12357 $as_echo "$tool_specified" >&6; }
12358         fi
12359       fi
12360     fi
12361 
12362   fi
12363 
12364 
12365 
12366   if test "x$UNAME" = x; then
12367     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12368   fi
12369 
12370 
12371 
12372 
12373 
12374   # Publish this variable in the help.
12375 
12376 
12377   if [ -z "${UNIQ+x}" ]; then
12378     # The variable is not set by user, try to locate tool using the code snippet
12379     for ac_prog in uniq
12380 do
12381   # Extract the first word of "$ac_prog", so it can be a program name with args.
12382 set dummy $ac_prog; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if ${ac_cv_path_UNIQ+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   case $UNIQ in
12389   [\\/]* | ?:[\\/]*)
12390   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12391   ;;
12392   *)
12393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $PATH
12395 do
12396   IFS=$as_save_IFS
12397   test -z "$as_dir" && as_dir=.
12398     for ac_exec_ext in '' $ac_executable_extensions; do
12399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402     break 2
12403   fi
12404 done
12405   done
12406 IFS=$as_save_IFS
12407 
12408   ;;
12409 esac
12410 fi
12411 UNIQ=$ac_cv_path_UNIQ
12412 if test -n "$UNIQ"; then
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12414 $as_echo "$UNIQ" >&6; }
12415 else
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418 fi
12419 
12420 
12421   test -n "$UNIQ" && break
12422 done
12423 
12424   else
12425     # The variable is set, but is it from the command line or the environment?
12426 
12427     # Try to remove the string !UNIQ! from our list.
12428     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12429     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12430       # If it failed, the variable was not from the command line. Ignore it,
12431       # but warn the user (except for BASH, which is always set by the calling BASH).
12432       if test "xUNIQ" != xBASH; then
12433         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12434 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12435       fi
12436       # Try to locate tool using the code snippet
12437       for ac_prog in uniq
12438 do
12439   # Extract the first word of "$ac_prog", so it can be a program name with args.
12440 set dummy $ac_prog; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_path_UNIQ+:} false; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   case $UNIQ in
12447   [\\/]* | ?:[\\/]*)
12448   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12449   ;;
12450   *)
12451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452 for as_dir in $PATH
12453 do
12454   IFS=$as_save_IFS
12455   test -z "$as_dir" && as_dir=.
12456     for ac_exec_ext in '' $ac_executable_extensions; do
12457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12458     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460     break 2
12461   fi
12462 done
12463   done
12464 IFS=$as_save_IFS
12465 
12466   ;;
12467 esac
12468 fi
12469 UNIQ=$ac_cv_path_UNIQ
12470 if test -n "$UNIQ"; then
12471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12472 $as_echo "$UNIQ" >&6; }
12473 else
12474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 fi
12477 
12478 
12479   test -n "$UNIQ" && break
12480 done
12481 
12482     else
12483       # If it succeeded, then it was overridden by the user. We will use it
12484       # for the tool.
12485 
12486       # First remove it from the list of overridden variables, so we can test
12487       # for unknown variables in the end.
12488       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12489 
12490       # Check if we try to supply an empty value
12491       if test "x$UNIQ" = x; then
12492         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12493 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12495 $as_echo_n "checking for UNIQ... " >&6; }
12496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12497 $as_echo "disabled" >&6; }
12498       else
12499         # Check if the provided tool contains a complete path.
12500         tool_specified="$UNIQ"
12501         tool_basename="${tool_specified##*/}"
12502         if test "x$tool_basename" = "x$tool_specified"; then
12503           # A command without a complete path is provided, search $PATH.
12504           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12505 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12506           # Extract the first word of "$tool_basename", so it can be a program name with args.
12507 set dummy $tool_basename; ac_word=$2
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12509 $as_echo_n "checking for $ac_word... " >&6; }
12510 if ${ac_cv_path_UNIQ+:} false; then :
12511   $as_echo_n "(cached) " >&6
12512 else
12513   case $UNIQ in
12514   [\\/]* | ?:[\\/]*)
12515   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12516   ;;
12517   *)
12518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12520 do
12521   IFS=$as_save_IFS
12522   test -z "$as_dir" && as_dir=.
12523     for ac_exec_ext in '' $ac_executable_extensions; do
12524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527     break 2
12528   fi
12529 done
12530   done
12531 IFS=$as_save_IFS
12532 
12533   ;;
12534 esac
12535 fi
12536 UNIQ=$ac_cv_path_UNIQ
12537 if test -n "$UNIQ"; then
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12539 $as_echo "$UNIQ" >&6; }
12540 else
12541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12543 fi
12544 
12545 
12546           if test "x$UNIQ" = x; then
12547             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12548           fi
12549         else
12550           # Otherwise we believe it is a complete path. Use it as it is.
12551           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12552 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12553           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12554 $as_echo_n "checking for UNIQ... " >&6; }
12555           if test ! -x "$tool_specified"; then
12556             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12557 $as_echo "not found" >&6; }
12558             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12559           fi
12560           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12561 $as_echo "$tool_specified" >&6; }
12562         fi
12563       fi
12564     fi
12565 
12566   fi
12567 
12568 
12569 
12570   if test "x$UNIQ" = x; then
12571     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12572   fi
12573 
12574 
12575 
12576 
12577 
12578   # Publish this variable in the help.
12579 
12580 
12581   if [ -z "${WC+x}" ]; then
12582     # The variable is not set by user, try to locate tool using the code snippet
12583     for ac_prog in wc
12584 do
12585   # Extract the first word of "$ac_prog", so it can be a program name with args.
12586 set dummy $ac_prog; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_WC+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   case $WC in
12593   [\\/]* | ?:[\\/]*)
12594   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12595   ;;
12596   *)
12597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611 
12612   ;;
12613 esac
12614 fi
12615 WC=$ac_cv_path_WC
12616 if test -n "$WC"; then
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12618 $as_echo "$WC" >&6; }
12619 else
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623 
12624 
12625   test -n "$WC" && break
12626 done
12627 
12628   else
12629     # The variable is set, but is it from the command line or the environment?
12630 
12631     # Try to remove the string !WC! from our list.
12632     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12633     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12634       # If it failed, the variable was not from the command line. Ignore it,
12635       # but warn the user (except for BASH, which is always set by the calling BASH).
12636       if test "xWC" != xBASH; then
12637         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12638 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12639       fi
12640       # Try to locate tool using the code snippet
12641       for ac_prog in wc
12642 do
12643   # Extract the first word of "$ac_prog", so it can be a program name with args.
12644 set dummy $ac_prog; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_WC+:} false; then :
12648   $as_echo_n "(cached) " >&6
12649 else
12650   case $WC in
12651   [\\/]* | ?:[\\/]*)
12652   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12653   ;;
12654   *)
12655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658   IFS=$as_save_IFS
12659   test -z "$as_dir" && as_dir=.
12660     for ac_exec_ext in '' $ac_executable_extensions; do
12661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664     break 2
12665   fi
12666 done
12667   done
12668 IFS=$as_save_IFS
12669 
12670   ;;
12671 esac
12672 fi
12673 WC=$ac_cv_path_WC
12674 if test -n "$WC"; then
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12676 $as_echo "$WC" >&6; }
12677 else
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 $as_echo "no" >&6; }
12680 fi
12681 
12682 
12683   test -n "$WC" && break
12684 done
12685 
12686     else
12687       # If it succeeded, then it was overridden by the user. We will use it
12688       # for the tool.
12689 
12690       # First remove it from the list of overridden variables, so we can test
12691       # for unknown variables in the end.
12692       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12693 
12694       # Check if we try to supply an empty value
12695       if test "x$WC" = x; then
12696         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12697 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12699 $as_echo_n "checking for WC... " >&6; }
12700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12701 $as_echo "disabled" >&6; }
12702       else
12703         # Check if the provided tool contains a complete path.
12704         tool_specified="$WC"
12705         tool_basename="${tool_specified##*/}"
12706         if test "x$tool_basename" = "x$tool_specified"; then
12707           # A command without a complete path is provided, search $PATH.
12708           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12709 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12710           # Extract the first word of "$tool_basename", so it can be a program name with args.
12711 set dummy $tool_basename; ac_word=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if ${ac_cv_path_WC+:} false; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   case $WC in
12718   [\\/]* | ?:[\\/]*)
12719   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12720   ;;
12721   *)
12722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725   IFS=$as_save_IFS
12726   test -z "$as_dir" && as_dir=.
12727     for ac_exec_ext in '' $ac_executable_extensions; do
12728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12729     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731     break 2
12732   fi
12733 done
12734   done
12735 IFS=$as_save_IFS
12736 
12737   ;;
12738 esac
12739 fi
12740 WC=$ac_cv_path_WC
12741 if test -n "$WC"; then
12742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12743 $as_echo "$WC" >&6; }
12744 else
12745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747 fi
12748 
12749 
12750           if test "x$WC" = x; then
12751             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12752           fi
12753         else
12754           # Otherwise we believe it is a complete path. Use it as it is.
12755           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12756 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12757           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12758 $as_echo_n "checking for WC... " >&6; }
12759           if test ! -x "$tool_specified"; then
12760             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12761 $as_echo "not found" >&6; }
12762             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12763           fi
12764           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12765 $as_echo "$tool_specified" >&6; }
12766         fi
12767       fi
12768     fi
12769 
12770   fi
12771 
12772 
12773 
12774   if test "x$WC" = x; then
12775     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12776   fi
12777 
12778 
12779 
12780 
12781 
12782   # Publish this variable in the help.
12783 
12784 
12785   if [ -z "${WHICH+x}" ]; then
12786     # The variable is not set by user, try to locate tool using the code snippet
12787     for ac_prog in which
12788 do
12789   # Extract the first word of "$ac_prog", so it can be a program name with args.
12790 set dummy $ac_prog; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_path_WHICH+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   case $WHICH in
12797   [\\/]* | ?:[\\/]*)
12798   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12799   ;;
12800   *)
12801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12803 do
12804   IFS=$as_save_IFS
12805   test -z "$as_dir" && as_dir=.
12806     for ac_exec_ext in '' $ac_executable_extensions; do
12807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12808     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810     break 2
12811   fi
12812 done
12813   done
12814 IFS=$as_save_IFS
12815 
12816   ;;
12817 esac
12818 fi
12819 WHICH=$ac_cv_path_WHICH
12820 if test -n "$WHICH"; then
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12822 $as_echo "$WHICH" >&6; }
12823 else
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827 
12828 
12829   test -n "$WHICH" && break
12830 done
12831 
12832   else
12833     # The variable is set, but is it from the command line or the environment?
12834 
12835     # Try to remove the string !WHICH! from our list.
12836     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12837     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12838       # If it failed, the variable was not from the command line. Ignore it,
12839       # but warn the user (except for BASH, which is always set by the calling BASH).
12840       if test "xWHICH" != xBASH; then
12841         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12842 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12843       fi
12844       # Try to locate tool using the code snippet
12845       for ac_prog in which
12846 do
12847   # Extract the first word of "$ac_prog", so it can be a program name with args.
12848 set dummy $ac_prog; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if ${ac_cv_path_WHICH+:} false; then :
12852   $as_echo_n "(cached) " >&6
12853 else
12854   case $WHICH in
12855   [\\/]* | ?:[\\/]*)
12856   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12857   ;;
12858   *)
12859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862   IFS=$as_save_IFS
12863   test -z "$as_dir" && as_dir=.
12864     for ac_exec_ext in '' $ac_executable_extensions; do
12865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868     break 2
12869   fi
12870 done
12871   done
12872 IFS=$as_save_IFS
12873 
12874   ;;
12875 esac
12876 fi
12877 WHICH=$ac_cv_path_WHICH
12878 if test -n "$WHICH"; then
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12880 $as_echo "$WHICH" >&6; }
12881 else
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12884 fi
12885 
12886 
12887   test -n "$WHICH" && break
12888 done
12889 
12890     else
12891       # If it succeeded, then it was overridden by the user. We will use it
12892       # for the tool.
12893 
12894       # First remove it from the list of overridden variables, so we can test
12895       # for unknown variables in the end.
12896       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12897 
12898       # Check if we try to supply an empty value
12899       if test "x$WHICH" = x; then
12900         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12901 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12903 $as_echo_n "checking for WHICH... " >&6; }
12904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12905 $as_echo "disabled" >&6; }
12906       else
12907         # Check if the provided tool contains a complete path.
12908         tool_specified="$WHICH"
12909         tool_basename="${tool_specified##*/}"
12910         if test "x$tool_basename" = "x$tool_specified"; then
12911           # A command without a complete path is provided, search $PATH.
12912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12913 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12914           # Extract the first word of "$tool_basename", so it can be a program name with args.
12915 set dummy $tool_basename; ac_word=$2
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12917 $as_echo_n "checking for $ac_word... " >&6; }
12918 if ${ac_cv_path_WHICH+:} false; then :
12919   $as_echo_n "(cached) " >&6
12920 else
12921   case $WHICH in
12922   [\\/]* | ?:[\\/]*)
12923   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12924   ;;
12925   *)
12926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929   IFS=$as_save_IFS
12930   test -z "$as_dir" && as_dir=.
12931     for ac_exec_ext in '' $ac_executable_extensions; do
12932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12933     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935     break 2
12936   fi
12937 done
12938   done
12939 IFS=$as_save_IFS
12940 
12941   ;;
12942 esac
12943 fi
12944 WHICH=$ac_cv_path_WHICH
12945 if test -n "$WHICH"; then
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12947 $as_echo "$WHICH" >&6; }
12948 else
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12951 fi
12952 
12953 
12954           if test "x$WHICH" = x; then
12955             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12956           fi
12957         else
12958           # Otherwise we believe it is a complete path. Use it as it is.
12959           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12960 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12961           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12962 $as_echo_n "checking for WHICH... " >&6; }
12963           if test ! -x "$tool_specified"; then
12964             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12965 $as_echo "not found" >&6; }
12966             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12967           fi
12968           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12969 $as_echo "$tool_specified" >&6; }
12970         fi
12971       fi
12972     fi
12973 
12974   fi
12975 
12976 
12977 
12978   if test "x$WHICH" = x; then
12979     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12980   fi
12981 
12982 
12983 
12984 
12985 
12986   # Publish this variable in the help.
12987 
12988 
12989   if [ -z "${XARGS+x}" ]; then
12990     # The variable is not set by user, try to locate tool using the code snippet
12991     for ac_prog in xargs
12992 do
12993   # Extract the first word of "$ac_prog", so it can be a program name with args.
12994 set dummy $ac_prog; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if ${ac_cv_path_XARGS+:} false; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000   case $XARGS in
13001   [\\/]* | ?:[\\/]*)
13002   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13003   ;;
13004   *)
13005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13007 do
13008   IFS=$as_save_IFS
13009   test -z "$as_dir" && as_dir=.
13010     for ac_exec_ext in '' $ac_executable_extensions; do
13011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014     break 2
13015   fi
13016 done
13017   done
13018 IFS=$as_save_IFS
13019 
13020   ;;
13021 esac
13022 fi
13023 XARGS=$ac_cv_path_XARGS
13024 if test -n "$XARGS"; then
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13026 $as_echo "$XARGS" >&6; }
13027 else
13028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030 fi
13031 
13032 
13033   test -n "$XARGS" && break
13034 done
13035 
13036   else
13037     # The variable is set, but is it from the command line or the environment?
13038 
13039     # Try to remove the string !XARGS! from our list.
13040     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13041     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13042       # If it failed, the variable was not from the command line. Ignore it,
13043       # but warn the user (except for BASH, which is always set by the calling BASH).
13044       if test "xXARGS" != xBASH; then
13045         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13046 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13047       fi
13048       # Try to locate tool using the code snippet
13049       for ac_prog in xargs
13050 do
13051   # Extract the first word of "$ac_prog", so it can be a program name with args.
13052 set dummy $ac_prog; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if ${ac_cv_path_XARGS+:} false; then :
13056   $as_echo_n "(cached) " >&6
13057 else
13058   case $XARGS in
13059   [\\/]* | ?:[\\/]*)
13060   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13061   ;;
13062   *)
13063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066   IFS=$as_save_IFS
13067   test -z "$as_dir" && as_dir=.
13068     for ac_exec_ext in '' $ac_executable_extensions; do
13069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13072     break 2
13073   fi
13074 done
13075   done
13076 IFS=$as_save_IFS
13077 
13078   ;;
13079 esac
13080 fi
13081 XARGS=$ac_cv_path_XARGS
13082 if test -n "$XARGS"; then
13083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13084 $as_echo "$XARGS" >&6; }
13085 else
13086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088 fi
13089 
13090 
13091   test -n "$XARGS" && break
13092 done
13093 
13094     else
13095       # If it succeeded, then it was overridden by the user. We will use it
13096       # for the tool.
13097 
13098       # First remove it from the list of overridden variables, so we can test
13099       # for unknown variables in the end.
13100       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13101 
13102       # Check if we try to supply an empty value
13103       if test "x$XARGS" = x; then
13104         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13105 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13107 $as_echo_n "checking for XARGS... " >&6; }
13108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13109 $as_echo "disabled" >&6; }
13110       else
13111         # Check if the provided tool contains a complete path.
13112         tool_specified="$XARGS"
13113         tool_basename="${tool_specified##*/}"
13114         if test "x$tool_basename" = "x$tool_specified"; then
13115           # A command without a complete path is provided, search $PATH.
13116           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13117 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13118           # Extract the first word of "$tool_basename", so it can be a program name with args.
13119 set dummy $tool_basename; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if ${ac_cv_path_XARGS+:} false; then :
13123   $as_echo_n "(cached) " >&6
13124 else
13125   case $XARGS in
13126   [\\/]* | ?:[\\/]*)
13127   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13128   ;;
13129   *)
13130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13132 do
13133   IFS=$as_save_IFS
13134   test -z "$as_dir" && as_dir=.
13135     for ac_exec_ext in '' $ac_executable_extensions; do
13136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13137     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139     break 2
13140   fi
13141 done
13142   done
13143 IFS=$as_save_IFS
13144 
13145   ;;
13146 esac
13147 fi
13148 XARGS=$ac_cv_path_XARGS
13149 if test -n "$XARGS"; then
13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13151 $as_echo "$XARGS" >&6; }
13152 else
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156 
13157 
13158           if test "x$XARGS" = x; then
13159             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13160           fi
13161         else
13162           # Otherwise we believe it is a complete path. Use it as it is.
13163           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13164 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13165           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13166 $as_echo_n "checking for XARGS... " >&6; }
13167           if test ! -x "$tool_specified"; then
13168             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13169 $as_echo "not found" >&6; }
13170             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13171           fi
13172           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13173 $as_echo "$tool_specified" >&6; }
13174         fi
13175       fi
13176     fi
13177 
13178   fi
13179 
13180 
13181 
13182   if test "x$XARGS" = x; then
13183     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13184   fi
13185 
13186 
13187 
13188   # Then required tools that require some special treatment.
13189 
13190 
13191   # Publish this variable in the help.
13192 
13193 
13194   if [ -z "${AWK+x}" ]; then
13195     # The variable is not set by user, try to locate tool using the code snippet
13196     for ac_prog in gawk mawk nawk awk
13197 do
13198   # Extract the first word of "$ac_prog", so it can be a program name with args.
13199 set dummy $ac_prog; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if ${ac_cv_prog_AWK+:} false; then :
13203   $as_echo_n "(cached) " >&6
13204 else
13205   if test -n "$AWK"; then
13206   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211   IFS=$as_save_IFS
13212   test -z "$as_dir" && as_dir=.
13213     for ac_exec_ext in '' $ac_executable_extensions; do
13214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215     ac_cv_prog_AWK="$ac_prog"
13216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217     break 2
13218   fi
13219 done
13220   done
13221 IFS=$as_save_IFS
13222 
13223 fi
13224 fi
13225 AWK=$ac_cv_prog_AWK
13226 if test -n "$AWK"; then
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13228 $as_echo "$AWK" >&6; }
13229 else
13230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233 
13234 
13235   test -n "$AWK" && break
13236 done
13237 
13238   else
13239     # The variable is set, but is it from the command line or the environment?
13240 
13241     # Try to remove the string !AWK! from our list.
13242     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13243     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13244       # If it failed, the variable was not from the command line. Ignore it,
13245       # but warn the user (except for BASH, which is always set by the calling BASH).
13246       if test "xAWK" != xBASH; then
13247         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13248 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13249       fi
13250       # Try to locate tool using the code snippet
13251       for ac_prog in gawk mawk nawk awk
13252 do
13253   # Extract the first word of "$ac_prog", so it can be a program name with args.
13254 set dummy $ac_prog; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if ${ac_cv_prog_AWK+:} false; then :
13258   $as_echo_n "(cached) " >&6
13259 else
13260   if test -n "$AWK"; then
13261   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13265 do
13266   IFS=$as_save_IFS
13267   test -z "$as_dir" && as_dir=.
13268     for ac_exec_ext in '' $ac_executable_extensions; do
13269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13270     ac_cv_prog_AWK="$ac_prog"
13271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13272     break 2
13273   fi
13274 done
13275   done
13276 IFS=$as_save_IFS
13277 
13278 fi
13279 fi
13280 AWK=$ac_cv_prog_AWK
13281 if test -n "$AWK"; then
13282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13283 $as_echo "$AWK" >&6; }
13284 else
13285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288 
13289 
13290   test -n "$AWK" && break
13291 done
13292 
13293     else
13294       # If it succeeded, then it was overridden by the user. We will use it
13295       # for the tool.
13296 
13297       # First remove it from the list of overridden variables, so we can test
13298       # for unknown variables in the end.
13299       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13300 
13301       # Check if we try to supply an empty value
13302       if test "x$AWK" = x; then
13303         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13304 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13306 $as_echo_n "checking for AWK... " >&6; }
13307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13308 $as_echo "disabled" >&6; }
13309       else
13310         # Check if the provided tool contains a complete path.
13311         tool_specified="$AWK"
13312         tool_basename="${tool_specified##*/}"
13313         if test "x$tool_basename" = "x$tool_specified"; then
13314           # A command without a complete path is provided, search $PATH.
13315           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13316 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13317           # Extract the first word of "$tool_basename", so it can be a program name with args.
13318 set dummy $tool_basename; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_AWK+:} false; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   case $AWK in
13325   [\\/]* | ?:[\\/]*)
13326   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13327   ;;
13328   *)
13329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332   IFS=$as_save_IFS
13333   test -z "$as_dir" && as_dir=.
13334     for ac_exec_ext in '' $ac_executable_extensions; do
13335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338     break 2
13339   fi
13340 done
13341   done
13342 IFS=$as_save_IFS
13343 
13344   ;;
13345 esac
13346 fi
13347 AWK=$ac_cv_path_AWK
13348 if test -n "$AWK"; then
13349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13350 $as_echo "$AWK" >&6; }
13351 else
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355 
13356 
13357           if test "x$AWK" = x; then
13358             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13359           fi
13360         else
13361           # Otherwise we believe it is a complete path. Use it as it is.
13362           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13363 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13364           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13365 $as_echo_n "checking for AWK... " >&6; }
13366           if test ! -x "$tool_specified"; then
13367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13368 $as_echo "not found" >&6; }
13369             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13370           fi
13371           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13372 $as_echo "$tool_specified" >&6; }
13373         fi
13374       fi
13375     fi
13376 
13377   fi
13378 
13379 
13380   if test "x$AWK" = x; then
13381     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13382   fi
13383 
13384 
13385 
13386 
13387   # Publish this variable in the help.
13388 
13389 
13390   if [ -z "${GREP+x}" ]; then
13391     # The variable is not set by user, try to locate tool using the code snippet
13392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13393 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13394 if ${ac_cv_path_GREP+:} false; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   if test -z "$GREP"; then
13398   ac_path_GREP_found=false
13399   # Loop through the user's path and test for each of PROGNAME-LIST
13400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_prog in grep ggrep; do
13406     for ac_exec_ext in '' $ac_executable_extensions; do
13407       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13408       as_fn_executable_p "$ac_path_GREP" || continue
13409 # Check for GNU ac_path_GREP and select it if it is found.
13410   # Check for GNU $ac_path_GREP
13411 case `"$ac_path_GREP" --version 2>&1` in
13412 *GNU*)
13413   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13414 *)
13415   ac_count=0
13416   $as_echo_n 0123456789 >"conftest.in"
13417   while :
13418   do
13419     cat "conftest.in" "conftest.in" >"conftest.tmp"
13420     mv "conftest.tmp" "conftest.in"
13421     cp "conftest.in" "conftest.nl"
13422     $as_echo 'GREP' >> "conftest.nl"
13423     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13424     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13425     as_fn_arith $ac_count + 1 && ac_count=$as_val
13426     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13427       # Best one so far, save it but keep looking for a better one
13428       ac_cv_path_GREP="$ac_path_GREP"
13429       ac_path_GREP_max=$ac_count
13430     fi
13431     # 10*(2^10) chars as input seems more than enough
13432     test $ac_count -gt 10 && break
13433   done
13434   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13435 esac
13436 
13437       $ac_path_GREP_found && break 3
13438     done
13439   done
13440   done
13441 IFS=$as_save_IFS
13442   if test -z "$ac_cv_path_GREP"; then
13443     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13444   fi
13445 else
13446   ac_cv_path_GREP=$GREP
13447 fi
13448 
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13451 $as_echo "$ac_cv_path_GREP" >&6; }
13452  GREP="$ac_cv_path_GREP"
13453 
13454 
13455   else
13456     # The variable is set, but is it from the command line or the environment?
13457 
13458     # Try to remove the string !GREP! from our list.
13459     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13460     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13461       # If it failed, the variable was not from the command line. Ignore it,
13462       # but warn the user (except for BASH, which is always set by the calling BASH).
13463       if test "xGREP" != xBASH; then
13464         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13465 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13466       fi
13467       # Try to locate tool using the code snippet
13468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13469 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13470 if ${ac_cv_path_GREP+:} false; then :
13471   $as_echo_n "(cached) " >&6
13472 else
13473   if test -z "$GREP"; then
13474   ac_path_GREP_found=false
13475   # Loop through the user's path and test for each of PROGNAME-LIST
13476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13478 do
13479   IFS=$as_save_IFS
13480   test -z "$as_dir" && as_dir=.
13481     for ac_prog in grep ggrep; do
13482     for ac_exec_ext in '' $ac_executable_extensions; do
13483       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13484       as_fn_executable_p "$ac_path_GREP" || continue
13485 # Check for GNU ac_path_GREP and select it if it is found.
13486   # Check for GNU $ac_path_GREP
13487 case `"$ac_path_GREP" --version 2>&1` in
13488 *GNU*)
13489   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13490 *)
13491   ac_count=0
13492   $as_echo_n 0123456789 >"conftest.in"
13493   while :
13494   do
13495     cat "conftest.in" "conftest.in" >"conftest.tmp"
13496     mv "conftest.tmp" "conftest.in"
13497     cp "conftest.in" "conftest.nl"
13498     $as_echo 'GREP' >> "conftest.nl"
13499     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13501     as_fn_arith $ac_count + 1 && ac_count=$as_val
13502     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13503       # Best one so far, save it but keep looking for a better one
13504       ac_cv_path_GREP="$ac_path_GREP"
13505       ac_path_GREP_max=$ac_count
13506     fi
13507     # 10*(2^10) chars as input seems more than enough
13508     test $ac_count -gt 10 && break
13509   done
13510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13511 esac
13512 
13513       $ac_path_GREP_found && break 3
13514     done
13515   done
13516   done
13517 IFS=$as_save_IFS
13518   if test -z "$ac_cv_path_GREP"; then
13519     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13520   fi
13521 else
13522   ac_cv_path_GREP=$GREP
13523 fi
13524 
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13527 $as_echo "$ac_cv_path_GREP" >&6; }
13528  GREP="$ac_cv_path_GREP"
13529 
13530 
13531     else
13532       # If it succeeded, then it was overridden by the user. We will use it
13533       # for the tool.
13534 
13535       # First remove it from the list of overridden variables, so we can test
13536       # for unknown variables in the end.
13537       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13538 
13539       # Check if we try to supply an empty value
13540       if test "x$GREP" = x; then
13541         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13542 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13544 $as_echo_n "checking for GREP... " >&6; }
13545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13546 $as_echo "disabled" >&6; }
13547       else
13548         # Check if the provided tool contains a complete path.
13549         tool_specified="$GREP"
13550         tool_basename="${tool_specified##*/}"
13551         if test "x$tool_basename" = "x$tool_specified"; then
13552           # A command without a complete path is provided, search $PATH.
13553           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13554 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13555           # Extract the first word of "$tool_basename", so it can be a program name with args.
13556 set dummy $tool_basename; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if ${ac_cv_path_GREP+:} false; then :
13560   $as_echo_n "(cached) " >&6
13561 else
13562   case $GREP in
13563   [\\/]* | ?:[\\/]*)
13564   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13565   ;;
13566   *)
13567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13569 do
13570   IFS=$as_save_IFS
13571   test -z "$as_dir" && as_dir=.
13572     for ac_exec_ext in '' $ac_executable_extensions; do
13573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13574     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576     break 2
13577   fi
13578 done
13579   done
13580 IFS=$as_save_IFS
13581 
13582   ;;
13583 esac
13584 fi
13585 GREP=$ac_cv_path_GREP
13586 if test -n "$GREP"; then
13587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13588 $as_echo "$GREP" >&6; }
13589 else
13590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13592 fi
13593 
13594 
13595           if test "x$GREP" = x; then
13596             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13597           fi
13598         else
13599           # Otherwise we believe it is a complete path. Use it as it is.
13600           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13601 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13602           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13603 $as_echo_n "checking for GREP... " >&6; }
13604           if test ! -x "$tool_specified"; then
13605             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13606 $as_echo "not found" >&6; }
13607             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13608           fi
13609           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13610 $as_echo "$tool_specified" >&6; }
13611         fi
13612       fi
13613     fi
13614 
13615   fi
13616 
13617 
13618   if test "x$GREP" = x; then
13619     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13620   fi
13621 
13622 
13623 
13624 
13625   # Publish this variable in the help.
13626 
13627 
13628   if [ -z "${EGREP+x}" ]; then
13629     # The variable is not set by user, try to locate tool using the code snippet
13630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13631 $as_echo_n "checking for egrep... " >&6; }
13632 if ${ac_cv_path_EGREP+:} false; then :
13633   $as_echo_n "(cached) " >&6
13634 else
13635   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13636    then ac_cv_path_EGREP="$GREP -E"
13637    else
13638      if test -z "$EGREP"; then
13639   ac_path_EGREP_found=false
13640   # Loop through the user's path and test for each of PROGNAME-LIST
13641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13643 do
13644   IFS=$as_save_IFS
13645   test -z "$as_dir" && as_dir=.
13646     for ac_prog in egrep; do
13647     for ac_exec_ext in '' $ac_executable_extensions; do
13648       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13649       as_fn_executable_p "$ac_path_EGREP" || continue
13650 # Check for GNU ac_path_EGREP and select it if it is found.
13651   # Check for GNU $ac_path_EGREP
13652 case `"$ac_path_EGREP" --version 2>&1` in
13653 *GNU*)
13654   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13655 *)
13656   ac_count=0
13657   $as_echo_n 0123456789 >"conftest.in"
13658   while :
13659   do
13660     cat "conftest.in" "conftest.in" >"conftest.tmp"
13661     mv "conftest.tmp" "conftest.in"
13662     cp "conftest.in" "conftest.nl"
13663     $as_echo 'EGREP' >> "conftest.nl"
13664     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13665     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13666     as_fn_arith $ac_count + 1 && ac_count=$as_val
13667     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13668       # Best one so far, save it but keep looking for a better one
13669       ac_cv_path_EGREP="$ac_path_EGREP"
13670       ac_path_EGREP_max=$ac_count
13671     fi
13672     # 10*(2^10) chars as input seems more than enough
13673     test $ac_count -gt 10 && break
13674   done
13675   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13676 esac
13677 
13678       $ac_path_EGREP_found && break 3
13679     done
13680   done
13681   done
13682 IFS=$as_save_IFS
13683   if test -z "$ac_cv_path_EGREP"; then
13684     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13685   fi
13686 else
13687   ac_cv_path_EGREP=$EGREP
13688 fi
13689 
13690    fi
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13693 $as_echo "$ac_cv_path_EGREP" >&6; }
13694  EGREP="$ac_cv_path_EGREP"
13695 
13696 
13697   else
13698     # The variable is set, but is it from the command line or the environment?
13699 
13700     # Try to remove the string !EGREP! from our list.
13701     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13702     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13703       # If it failed, the variable was not from the command line. Ignore it,
13704       # but warn the user (except for BASH, which is always set by the calling BASH).
13705       if test "xEGREP" != xBASH; then
13706         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13707 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13708       fi
13709       # Try to locate tool using the code snippet
13710       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13711 $as_echo_n "checking for egrep... " >&6; }
13712 if ${ac_cv_path_EGREP+:} false; then :
13713   $as_echo_n "(cached) " >&6
13714 else
13715   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13716    then ac_cv_path_EGREP="$GREP -E"
13717    else
13718      if test -z "$EGREP"; then
13719   ac_path_EGREP_found=false
13720   # Loop through the user's path and test for each of PROGNAME-LIST
13721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13723 do
13724   IFS=$as_save_IFS
13725   test -z "$as_dir" && as_dir=.
13726     for ac_prog in egrep; do
13727     for ac_exec_ext in '' $ac_executable_extensions; do
13728       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13729       as_fn_executable_p "$ac_path_EGREP" || continue
13730 # Check for GNU ac_path_EGREP and select it if it is found.
13731   # Check for GNU $ac_path_EGREP
13732 case `"$ac_path_EGREP" --version 2>&1` in
13733 *GNU*)
13734   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13735 *)
13736   ac_count=0
13737   $as_echo_n 0123456789 >"conftest.in"
13738   while :
13739   do
13740     cat "conftest.in" "conftest.in" >"conftest.tmp"
13741     mv "conftest.tmp" "conftest.in"
13742     cp "conftest.in" "conftest.nl"
13743     $as_echo 'EGREP' >> "conftest.nl"
13744     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13745     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13746     as_fn_arith $ac_count + 1 && ac_count=$as_val
13747     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13748       # Best one so far, save it but keep looking for a better one
13749       ac_cv_path_EGREP="$ac_path_EGREP"
13750       ac_path_EGREP_max=$ac_count
13751     fi
13752     # 10*(2^10) chars as input seems more than enough
13753     test $ac_count -gt 10 && break
13754   done
13755   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13756 esac
13757 
13758       $ac_path_EGREP_found && break 3
13759     done
13760   done
13761   done
13762 IFS=$as_save_IFS
13763   if test -z "$ac_cv_path_EGREP"; then
13764     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13765   fi
13766 else
13767   ac_cv_path_EGREP=$EGREP
13768 fi
13769 
13770    fi
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13773 $as_echo "$ac_cv_path_EGREP" >&6; }
13774  EGREP="$ac_cv_path_EGREP"
13775 
13776 
13777     else
13778       # If it succeeded, then it was overridden by the user. We will use it
13779       # for the tool.
13780 
13781       # First remove it from the list of overridden variables, so we can test
13782       # for unknown variables in the end.
13783       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13784 
13785       # Check if we try to supply an empty value
13786       if test "x$EGREP" = x; then
13787         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13788 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13790 $as_echo_n "checking for EGREP... " >&6; }
13791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13792 $as_echo "disabled" >&6; }
13793       else
13794         # Check if the provided tool contains a complete path.
13795         tool_specified="$EGREP"
13796         tool_basename="${tool_specified##*/}"
13797         if test "x$tool_basename" = "x$tool_specified"; then
13798           # A command without a complete path is provided, search $PATH.
13799           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13800 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13801           # Extract the first word of "$tool_basename", so it can be a program name with args.
13802 set dummy $tool_basename; ac_word=$2
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804 $as_echo_n "checking for $ac_word... " >&6; }
13805 if ${ac_cv_path_EGREP+:} false; then :
13806   $as_echo_n "(cached) " >&6
13807 else
13808   case $EGREP in
13809   [\\/]* | ?:[\\/]*)
13810   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13811   ;;
13812   *)
13813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13815 do
13816   IFS=$as_save_IFS
13817   test -z "$as_dir" && as_dir=.
13818     for ac_exec_ext in '' $ac_executable_extensions; do
13819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13820     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822     break 2
13823   fi
13824 done
13825   done
13826 IFS=$as_save_IFS
13827 
13828   ;;
13829 esac
13830 fi
13831 EGREP=$ac_cv_path_EGREP
13832 if test -n "$EGREP"; then
13833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13834 $as_echo "$EGREP" >&6; }
13835 else
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13838 fi
13839 
13840 
13841           if test "x$EGREP" = x; then
13842             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13843           fi
13844         else
13845           # Otherwise we believe it is a complete path. Use it as it is.
13846           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13847 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13848           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13849 $as_echo_n "checking for EGREP... " >&6; }
13850           if test ! -x "$tool_specified"; then
13851             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13852 $as_echo "not found" >&6; }
13853             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13854           fi
13855           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13856 $as_echo "$tool_specified" >&6; }
13857         fi
13858       fi
13859     fi
13860 
13861   fi
13862 
13863 
13864   if test "x$EGREP" = x; then
13865     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13866   fi
13867 
13868 
13869 
13870 
13871   # Publish this variable in the help.
13872 
13873 
13874   if [ -z "${FGREP+x}" ]; then
13875     # The variable is not set by user, try to locate tool using the code snippet
13876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13877 $as_echo_n "checking for fgrep... " >&6; }
13878 if ${ac_cv_path_FGREP+:} false; then :
13879   $as_echo_n "(cached) " >&6
13880 else
13881   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13882    then ac_cv_path_FGREP="$GREP -F"
13883    else
13884      if test -z "$FGREP"; then
13885   ac_path_FGREP_found=false
13886   # Loop through the user's path and test for each of PROGNAME-LIST
13887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13889 do
13890   IFS=$as_save_IFS
13891   test -z "$as_dir" && as_dir=.
13892     for ac_prog in fgrep; do
13893     for ac_exec_ext in '' $ac_executable_extensions; do
13894       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13895       as_fn_executable_p "$ac_path_FGREP" || continue
13896 # Check for GNU ac_path_FGREP and select it if it is found.
13897   # Check for GNU $ac_path_FGREP
13898 case `"$ac_path_FGREP" --version 2>&1` in
13899 *GNU*)
13900   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13901 *)
13902   ac_count=0
13903   $as_echo_n 0123456789 >"conftest.in"
13904   while :
13905   do
13906     cat "conftest.in" "conftest.in" >"conftest.tmp"
13907     mv "conftest.tmp" "conftest.in"
13908     cp "conftest.in" "conftest.nl"
13909     $as_echo 'FGREP' >> "conftest.nl"
13910     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13912     as_fn_arith $ac_count + 1 && ac_count=$as_val
13913     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13914       # Best one so far, save it but keep looking for a better one
13915       ac_cv_path_FGREP="$ac_path_FGREP"
13916       ac_path_FGREP_max=$ac_count
13917     fi
13918     # 10*(2^10) chars as input seems more than enough
13919     test $ac_count -gt 10 && break
13920   done
13921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13922 esac
13923 
13924       $ac_path_FGREP_found && break 3
13925     done
13926   done
13927   done
13928 IFS=$as_save_IFS
13929   if test -z "$ac_cv_path_FGREP"; then
13930     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13931   fi
13932 else
13933   ac_cv_path_FGREP=$FGREP
13934 fi
13935 
13936    fi
13937 fi
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13939 $as_echo "$ac_cv_path_FGREP" >&6; }
13940  FGREP="$ac_cv_path_FGREP"
13941 
13942 
13943   else
13944     # The variable is set, but is it from the command line or the environment?
13945 
13946     # Try to remove the string !FGREP! from our list.
13947     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13948     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13949       # If it failed, the variable was not from the command line. Ignore it,
13950       # but warn the user (except for BASH, which is always set by the calling BASH).
13951       if test "xFGREP" != xBASH; then
13952         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13953 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13954       fi
13955       # Try to locate tool using the code snippet
13956       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13957 $as_echo_n "checking for fgrep... " >&6; }
13958 if ${ac_cv_path_FGREP+:} false; then :
13959   $as_echo_n "(cached) " >&6
13960 else
13961   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13962    then ac_cv_path_FGREP="$GREP -F"
13963    else
13964      if test -z "$FGREP"; then
13965   ac_path_FGREP_found=false
13966   # Loop through the user's path and test for each of PROGNAME-LIST
13967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13969 do
13970   IFS=$as_save_IFS
13971   test -z "$as_dir" && as_dir=.
13972     for ac_prog in fgrep; do
13973     for ac_exec_ext in '' $ac_executable_extensions; do
13974       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13975       as_fn_executable_p "$ac_path_FGREP" || continue
13976 # Check for GNU ac_path_FGREP and select it if it is found.
13977   # Check for GNU $ac_path_FGREP
13978 case `"$ac_path_FGREP" --version 2>&1` in
13979 *GNU*)
13980   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13981 *)
13982   ac_count=0
13983   $as_echo_n 0123456789 >"conftest.in"
13984   while :
13985   do
13986     cat "conftest.in" "conftest.in" >"conftest.tmp"
13987     mv "conftest.tmp" "conftest.in"
13988     cp "conftest.in" "conftest.nl"
13989     $as_echo 'FGREP' >> "conftest.nl"
13990     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13992     as_fn_arith $ac_count + 1 && ac_count=$as_val
13993     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13994       # Best one so far, save it but keep looking for a better one
13995       ac_cv_path_FGREP="$ac_path_FGREP"
13996       ac_path_FGREP_max=$ac_count
13997     fi
13998     # 10*(2^10) chars as input seems more than enough
13999     test $ac_count -gt 10 && break
14000   done
14001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14002 esac
14003 
14004       $ac_path_FGREP_found && break 3
14005     done
14006   done
14007   done
14008 IFS=$as_save_IFS
14009   if test -z "$ac_cv_path_FGREP"; then
14010     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14011   fi
14012 else
14013   ac_cv_path_FGREP=$FGREP
14014 fi
14015 
14016    fi
14017 fi
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14019 $as_echo "$ac_cv_path_FGREP" >&6; }
14020  FGREP="$ac_cv_path_FGREP"
14021 
14022 
14023     else
14024       # If it succeeded, then it was overridden by the user. We will use it
14025       # for the tool.
14026 
14027       # First remove it from the list of overridden variables, so we can test
14028       # for unknown variables in the end.
14029       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14030 
14031       # Check if we try to supply an empty value
14032       if test "x$FGREP" = x; then
14033         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14034 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14036 $as_echo_n "checking for FGREP... " >&6; }
14037         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14038 $as_echo "disabled" >&6; }
14039       else
14040         # Check if the provided tool contains a complete path.
14041         tool_specified="$FGREP"
14042         tool_basename="${tool_specified##*/}"
14043         if test "x$tool_basename" = "x$tool_specified"; then
14044           # A command without a complete path is provided, search $PATH.
14045           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14046 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14047           # Extract the first word of "$tool_basename", so it can be a program name with args.
14048 set dummy $tool_basename; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if ${ac_cv_path_FGREP+:} false; then :
14052   $as_echo_n "(cached) " >&6
14053 else
14054   case $FGREP in
14055   [\\/]* | ?:[\\/]*)
14056   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14057   ;;
14058   *)
14059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14061 do
14062   IFS=$as_save_IFS
14063   test -z "$as_dir" && as_dir=.
14064     for ac_exec_ext in '' $ac_executable_extensions; do
14065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14066     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068     break 2
14069   fi
14070 done
14071   done
14072 IFS=$as_save_IFS
14073 
14074   ;;
14075 esac
14076 fi
14077 FGREP=$ac_cv_path_FGREP
14078 if test -n "$FGREP"; then
14079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14080 $as_echo "$FGREP" >&6; }
14081 else
14082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14084 fi
14085 
14086 
14087           if test "x$FGREP" = x; then
14088             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14089           fi
14090         else
14091           # Otherwise we believe it is a complete path. Use it as it is.
14092           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14093 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14094           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14095 $as_echo_n "checking for FGREP... " >&6; }
14096           if test ! -x "$tool_specified"; then
14097             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14098 $as_echo "not found" >&6; }
14099             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14100           fi
14101           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14102 $as_echo "$tool_specified" >&6; }
14103         fi
14104       fi
14105     fi
14106 
14107   fi
14108 
14109 
14110   if test "x$FGREP" = x; then
14111     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14112   fi
14113 
14114 
14115 
14116 
14117   # Publish this variable in the help.
14118 
14119 
14120   if [ -z "${SED+x}" ]; then
14121     # The variable is not set by user, try to locate tool using the code snippet
14122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14124 if ${ac_cv_path_SED+:} false; then :
14125   $as_echo_n "(cached) " >&6
14126 else
14127             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14128      for ac_i in 1 2 3 4 5 6 7; do
14129        ac_script="$ac_script$as_nl$ac_script"
14130      done
14131      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14132      { ac_script=; unset ac_script;}
14133      if test -z "$SED"; then
14134   ac_path_SED_found=false
14135   # Loop through the user's path and test for each of PROGNAME-LIST
14136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14138 do
14139   IFS=$as_save_IFS
14140   test -z "$as_dir" && as_dir=.
14141     for ac_prog in sed gsed; do
14142     for ac_exec_ext in '' $ac_executable_extensions; do
14143       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14144       as_fn_executable_p "$ac_path_SED" || continue
14145 # Check for GNU ac_path_SED and select it if it is found.
14146   # Check for GNU $ac_path_SED
14147 case `"$ac_path_SED" --version 2>&1` in
14148 *GNU*)
14149   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14150 *)
14151   ac_count=0
14152   $as_echo_n 0123456789 >"conftest.in"
14153   while :
14154   do
14155     cat "conftest.in" "conftest.in" >"conftest.tmp"
14156     mv "conftest.tmp" "conftest.in"
14157     cp "conftest.in" "conftest.nl"
14158     $as_echo '' >> "conftest.nl"
14159     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14160     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14161     as_fn_arith $ac_count + 1 && ac_count=$as_val
14162     if test $ac_count -gt ${ac_path_SED_max-0}; then
14163       # Best one so far, save it but keep looking for a better one
14164       ac_cv_path_SED="$ac_path_SED"
14165       ac_path_SED_max=$ac_count
14166     fi
14167     # 10*(2^10) chars as input seems more than enough
14168     test $ac_count -gt 10 && break
14169   done
14170   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14171 esac
14172 
14173       $ac_path_SED_found && break 3
14174     done
14175   done
14176   done
14177 IFS=$as_save_IFS
14178   if test -z "$ac_cv_path_SED"; then
14179     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14180   fi
14181 else
14182   ac_cv_path_SED=$SED
14183 fi
14184 
14185 fi
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14187 $as_echo "$ac_cv_path_SED" >&6; }
14188  SED="$ac_cv_path_SED"
14189   rm -f conftest.sed
14190 
14191   else
14192     # The variable is set, but is it from the command line or the environment?
14193 
14194     # Try to remove the string !SED! from our list.
14195     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14196     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14197       # If it failed, the variable was not from the command line. Ignore it,
14198       # but warn the user (except for BASH, which is always set by the calling BASH).
14199       if test "xSED" != xBASH; then
14200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14201 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14202       fi
14203       # Try to locate tool using the code snippet
14204       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14205 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14206 if ${ac_cv_path_SED+:} false; then :
14207   $as_echo_n "(cached) " >&6
14208 else
14209             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14210      for ac_i in 1 2 3 4 5 6 7; do
14211        ac_script="$ac_script$as_nl$ac_script"
14212      done
14213      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14214      { ac_script=; unset ac_script;}
14215      if test -z "$SED"; then
14216   ac_path_SED_found=false
14217   # Loop through the user's path and test for each of PROGNAME-LIST
14218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14220 do
14221   IFS=$as_save_IFS
14222   test -z "$as_dir" && as_dir=.
14223     for ac_prog in sed gsed; do
14224     for ac_exec_ext in '' $ac_executable_extensions; do
14225       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14226       as_fn_executable_p "$ac_path_SED" || continue
14227 # Check for GNU ac_path_SED and select it if it is found.
14228   # Check for GNU $ac_path_SED
14229 case `"$ac_path_SED" --version 2>&1` in
14230 *GNU*)
14231   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14232 *)
14233   ac_count=0
14234   $as_echo_n 0123456789 >"conftest.in"
14235   while :
14236   do
14237     cat "conftest.in" "conftest.in" >"conftest.tmp"
14238     mv "conftest.tmp" "conftest.in"
14239     cp "conftest.in" "conftest.nl"
14240     $as_echo '' >> "conftest.nl"
14241     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14243     as_fn_arith $ac_count + 1 && ac_count=$as_val
14244     if test $ac_count -gt ${ac_path_SED_max-0}; then
14245       # Best one so far, save it but keep looking for a better one
14246       ac_cv_path_SED="$ac_path_SED"
14247       ac_path_SED_max=$ac_count
14248     fi
14249     # 10*(2^10) chars as input seems more than enough
14250     test $ac_count -gt 10 && break
14251   done
14252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14253 esac
14254 
14255       $ac_path_SED_found && break 3
14256     done
14257   done
14258   done
14259 IFS=$as_save_IFS
14260   if test -z "$ac_cv_path_SED"; then
14261     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14262   fi
14263 else
14264   ac_cv_path_SED=$SED
14265 fi
14266 
14267 fi
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14269 $as_echo "$ac_cv_path_SED" >&6; }
14270  SED="$ac_cv_path_SED"
14271   rm -f conftest.sed
14272 
14273     else
14274       # If it succeeded, then it was overridden by the user. We will use it
14275       # for the tool.
14276 
14277       # First remove it from the list of overridden variables, so we can test
14278       # for unknown variables in the end.
14279       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14280 
14281       # Check if we try to supply an empty value
14282       if test "x$SED" = x; then
14283         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14284 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14286 $as_echo_n "checking for SED... " >&6; }
14287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14288 $as_echo "disabled" >&6; }
14289       else
14290         # Check if the provided tool contains a complete path.
14291         tool_specified="$SED"
14292         tool_basename="${tool_specified##*/}"
14293         if test "x$tool_basename" = "x$tool_specified"; then
14294           # A command without a complete path is provided, search $PATH.
14295           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14296 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14297           # Extract the first word of "$tool_basename", so it can be a program name with args.
14298 set dummy $tool_basename; ac_word=$2
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14300 $as_echo_n "checking for $ac_word... " >&6; }
14301 if ${ac_cv_path_SED+:} false; then :
14302   $as_echo_n "(cached) " >&6
14303 else
14304   case $SED in
14305   [\\/]* | ?:[\\/]*)
14306   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14307   ;;
14308   *)
14309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $PATH
14311 do
14312   IFS=$as_save_IFS
14313   test -z "$as_dir" && as_dir=.
14314     for ac_exec_ext in '' $ac_executable_extensions; do
14315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14316     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14318     break 2
14319   fi
14320 done
14321   done
14322 IFS=$as_save_IFS
14323 
14324   ;;
14325 esac
14326 fi
14327 SED=$ac_cv_path_SED
14328 if test -n "$SED"; then
14329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14330 $as_echo "$SED" >&6; }
14331 else
14332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; }
14334 fi
14335 
14336 
14337           if test "x$SED" = x; then
14338             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14339           fi
14340         else
14341           # Otherwise we believe it is a complete path. Use it as it is.
14342           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14343 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14344           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14345 $as_echo_n "checking for SED... " >&6; }
14346           if test ! -x "$tool_specified"; then
14347             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14348 $as_echo "not found" >&6; }
14349             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14350           fi
14351           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14352 $as_echo "$tool_specified" >&6; }
14353         fi
14354       fi
14355     fi
14356 
14357   fi
14358 
14359 
14360   if test "x$SED" = x; then
14361     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14362   fi
14363 
14364 
14365 
14366   # Always force rm.
14367   RM="$RM -f"
14368 
14369   # pwd behaves differently on various platforms and some don't support the -L flag.
14370   # Always use the bash builtin pwd to get uniform behavior.
14371   THEPWDCMD=pwd
14372 
14373   # These are not required on all platforms
14374 
14375 
14376   # Publish this variable in the help.
14377 
14378 
14379   if [ -z "${CYGPATH+x}" ]; then
14380     # The variable is not set by user, try to locate tool using the code snippet
14381     for ac_prog in cygpath
14382 do
14383   # Extract the first word of "$ac_prog", so it can be a program name with args.
14384 set dummy $ac_prog; ac_word=$2
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386 $as_echo_n "checking for $ac_word... " >&6; }
14387 if ${ac_cv_path_CYGPATH+:} false; then :
14388   $as_echo_n "(cached) " >&6
14389 else
14390   case $CYGPATH in
14391   [\\/]* | ?:[\\/]*)
14392   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14393   ;;
14394   *)
14395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $PATH
14397 do
14398   IFS=$as_save_IFS
14399   test -z "$as_dir" && as_dir=.
14400     for ac_exec_ext in '' $ac_executable_extensions; do
14401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14402     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14404     break 2
14405   fi
14406 done
14407   done
14408 IFS=$as_save_IFS
14409 
14410   ;;
14411 esac
14412 fi
14413 CYGPATH=$ac_cv_path_CYGPATH
14414 if test -n "$CYGPATH"; then
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14416 $as_echo "$CYGPATH" >&6; }
14417 else
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420 fi
14421 
14422 
14423   test -n "$CYGPATH" && break
14424 done
14425 
14426   else
14427     # The variable is set, but is it from the command line or the environment?
14428 
14429     # Try to remove the string !CYGPATH! from our list.
14430     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14431     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14432       # If it failed, the variable was not from the command line. Ignore it,
14433       # but warn the user (except for BASH, which is always set by the calling BASH).
14434       if test "xCYGPATH" != xBASH; then
14435         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14436 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14437       fi
14438       # Try to locate tool using the code snippet
14439       for ac_prog in cygpath
14440 do
14441   # Extract the first word of "$ac_prog", so it can be a program name with args.
14442 set dummy $ac_prog; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if ${ac_cv_path_CYGPATH+:} false; then :
14446   $as_echo_n "(cached) " >&6
14447 else
14448   case $CYGPATH in
14449   [\\/]* | ?:[\\/]*)
14450   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14451   ;;
14452   *)
14453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14455 do
14456   IFS=$as_save_IFS
14457   test -z "$as_dir" && as_dir=.
14458     for ac_exec_ext in '' $ac_executable_extensions; do
14459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14460     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14462     break 2
14463   fi
14464 done
14465   done
14466 IFS=$as_save_IFS
14467 
14468   ;;
14469 esac
14470 fi
14471 CYGPATH=$ac_cv_path_CYGPATH
14472 if test -n "$CYGPATH"; then
14473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14474 $as_echo "$CYGPATH" >&6; }
14475 else
14476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14478 fi
14479 
14480 
14481   test -n "$CYGPATH" && break
14482 done
14483 
14484     else
14485       # If it succeeded, then it was overridden by the user. We will use it
14486       # for the tool.
14487 
14488       # First remove it from the list of overridden variables, so we can test
14489       # for unknown variables in the end.
14490       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14491 
14492       # Check if we try to supply an empty value
14493       if test "x$CYGPATH" = x; then
14494         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14495 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14497 $as_echo_n "checking for CYGPATH... " >&6; }
14498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14499 $as_echo "disabled" >&6; }
14500       else
14501         # Check if the provided tool contains a complete path.
14502         tool_specified="$CYGPATH"
14503         tool_basename="${tool_specified##*/}"
14504         if test "x$tool_basename" = "x$tool_specified"; then
14505           # A command without a complete path is provided, search $PATH.
14506           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14507 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14508           # Extract the first word of "$tool_basename", so it can be a program name with args.
14509 set dummy $tool_basename; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14511 $as_echo_n "checking for $ac_word... " >&6; }
14512 if ${ac_cv_path_CYGPATH+:} false; then :
14513   $as_echo_n "(cached) " >&6
14514 else
14515   case $CYGPATH in
14516   [\\/]* | ?:[\\/]*)
14517   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14518   ;;
14519   *)
14520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14522 do
14523   IFS=$as_save_IFS
14524   test -z "$as_dir" && as_dir=.
14525     for ac_exec_ext in '' $ac_executable_extensions; do
14526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14527     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14529     break 2
14530   fi
14531 done
14532   done
14533 IFS=$as_save_IFS
14534 
14535   ;;
14536 esac
14537 fi
14538 CYGPATH=$ac_cv_path_CYGPATH
14539 if test -n "$CYGPATH"; then
14540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14541 $as_echo "$CYGPATH" >&6; }
14542 else
14543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 $as_echo "no" >&6; }
14545 fi
14546 
14547 
14548           if test "x$CYGPATH" = x; then
14549             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14550           fi
14551         else
14552           # Otherwise we believe it is a complete path. Use it as it is.
14553           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14554 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14555           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14556 $as_echo_n "checking for CYGPATH... " >&6; }
14557           if test ! -x "$tool_specified"; then
14558             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14559 $as_echo "not found" >&6; }
14560             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14561           fi
14562           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14563 $as_echo "$tool_specified" >&6; }
14564         fi
14565       fi
14566     fi
14567 
14568   fi
14569 
14570 
14571 
14572 
14573   # Publish this variable in the help.
14574 
14575 
14576   if [ -z "${READLINK+x}" ]; then
14577     # The variable is not set by user, try to locate tool using the code snippet
14578     for ac_prog in greadlink readlink
14579 do
14580   # Extract the first word of "$ac_prog", so it can be a program name with args.
14581 set dummy $ac_prog; ac_word=$2
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 $as_echo_n "checking for $ac_word... " >&6; }
14584 if ${ac_cv_path_READLINK+:} false; then :
14585   $as_echo_n "(cached) " >&6
14586 else
14587   case $READLINK in
14588   [\\/]* | ?:[\\/]*)
14589   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14590   ;;
14591   *)
14592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14593 for as_dir in $PATH
14594 do
14595   IFS=$as_save_IFS
14596   test -z "$as_dir" && as_dir=.
14597     for ac_exec_ext in '' $ac_executable_extensions; do
14598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14599     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14601     break 2
14602   fi
14603 done
14604   done
14605 IFS=$as_save_IFS
14606 
14607   ;;
14608 esac
14609 fi
14610 READLINK=$ac_cv_path_READLINK
14611 if test -n "$READLINK"; then
14612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14613 $as_echo "$READLINK" >&6; }
14614 else
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616 $as_echo "no" >&6; }
14617 fi
14618 
14619 
14620   test -n "$READLINK" && break
14621 done
14622 
14623   else
14624     # The variable is set, but is it from the command line or the environment?
14625 
14626     # Try to remove the string !READLINK! from our list.
14627     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14628     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14629       # If it failed, the variable was not from the command line. Ignore it,
14630       # but warn the user (except for BASH, which is always set by the calling BASH).
14631       if test "xREADLINK" != xBASH; then
14632         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14633 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14634       fi
14635       # Try to locate tool using the code snippet
14636       for ac_prog in greadlink readlink
14637 do
14638   # Extract the first word of "$ac_prog", so it can be a program name with args.
14639 set dummy $ac_prog; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14641 $as_echo_n "checking for $ac_word... " >&6; }
14642 if ${ac_cv_path_READLINK+:} false; then :
14643   $as_echo_n "(cached) " >&6
14644 else
14645   case $READLINK in
14646   [\\/]* | ?:[\\/]*)
14647   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14648   ;;
14649   *)
14650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653   IFS=$as_save_IFS
14654   test -z "$as_dir" && as_dir=.
14655     for ac_exec_ext in '' $ac_executable_extensions; do
14656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659     break 2
14660   fi
14661 done
14662   done
14663 IFS=$as_save_IFS
14664 
14665   ;;
14666 esac
14667 fi
14668 READLINK=$ac_cv_path_READLINK
14669 if test -n "$READLINK"; then
14670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14671 $as_echo "$READLINK" >&6; }
14672 else
14673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14675 fi
14676 
14677 
14678   test -n "$READLINK" && break
14679 done
14680 
14681     else
14682       # If it succeeded, then it was overridden by the user. We will use it
14683       # for the tool.
14684 
14685       # First remove it from the list of overridden variables, so we can test
14686       # for unknown variables in the end.
14687       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14688 
14689       # Check if we try to supply an empty value
14690       if test "x$READLINK" = x; then
14691         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14692 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14694 $as_echo_n "checking for READLINK... " >&6; }
14695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14696 $as_echo "disabled" >&6; }
14697       else
14698         # Check if the provided tool contains a complete path.
14699         tool_specified="$READLINK"
14700         tool_basename="${tool_specified##*/}"
14701         if test "x$tool_basename" = "x$tool_specified"; then
14702           # A command without a complete path is provided, search $PATH.
14703           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14704 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14705           # Extract the first word of "$tool_basename", so it can be a program name with args.
14706 set dummy $tool_basename; ac_word=$2
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14708 $as_echo_n "checking for $ac_word... " >&6; }
14709 if ${ac_cv_path_READLINK+:} false; then :
14710   $as_echo_n "(cached) " >&6
14711 else
14712   case $READLINK in
14713   [\\/]* | ?:[\\/]*)
14714   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14715   ;;
14716   *)
14717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14719 do
14720   IFS=$as_save_IFS
14721   test -z "$as_dir" && as_dir=.
14722     for ac_exec_ext in '' $ac_executable_extensions; do
14723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726     break 2
14727   fi
14728 done
14729   done
14730 IFS=$as_save_IFS
14731 
14732   ;;
14733 esac
14734 fi
14735 READLINK=$ac_cv_path_READLINK
14736 if test -n "$READLINK"; then
14737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14738 $as_echo "$READLINK" >&6; }
14739 else
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741 $as_echo "no" >&6; }
14742 fi
14743 
14744 
14745           if test "x$READLINK" = x; then
14746             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14747           fi
14748         else
14749           # Otherwise we believe it is a complete path. Use it as it is.
14750           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14751 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14752           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14753 $as_echo_n "checking for READLINK... " >&6; }
14754           if test ! -x "$tool_specified"; then
14755             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14756 $as_echo "not found" >&6; }
14757             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14758           fi
14759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14760 $as_echo "$tool_specified" >&6; }
14761         fi
14762       fi
14763     fi
14764 
14765   fi
14766 
14767 
14768 
14769 
14770   # Publish this variable in the help.
14771 
14772 
14773   if [ -z "${DF+x}" ]; then
14774     # The variable is not set by user, try to locate tool using the code snippet
14775     for ac_prog in df
14776 do
14777   # Extract the first word of "$ac_prog", so it can be a program name with args.
14778 set dummy $ac_prog; ac_word=$2
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14780 $as_echo_n "checking for $ac_word... " >&6; }
14781 if ${ac_cv_path_DF+:} false; then :
14782   $as_echo_n "(cached) " >&6
14783 else
14784   case $DF in
14785   [\\/]* | ?:[\\/]*)
14786   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14787   ;;
14788   *)
14789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14790 for as_dir in $PATH
14791 do
14792   IFS=$as_save_IFS
14793   test -z "$as_dir" && as_dir=.
14794     for ac_exec_ext in '' $ac_executable_extensions; do
14795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14796     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14798     break 2
14799   fi
14800 done
14801   done
14802 IFS=$as_save_IFS
14803 
14804   ;;
14805 esac
14806 fi
14807 DF=$ac_cv_path_DF
14808 if test -n "$DF"; then
14809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14810 $as_echo "$DF" >&6; }
14811 else
14812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14813 $as_echo "no" >&6; }
14814 fi
14815 
14816 
14817   test -n "$DF" && break
14818 done
14819 
14820   else
14821     # The variable is set, but is it from the command line or the environment?
14822 
14823     # Try to remove the string !DF! from our list.
14824     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14825     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14826       # If it failed, the variable was not from the command line. Ignore it,
14827       # but warn the user (except for BASH, which is always set by the calling BASH).
14828       if test "xDF" != xBASH; then
14829         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14830 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14831       fi
14832       # Try to locate tool using the code snippet
14833       for ac_prog in df
14834 do
14835   # Extract the first word of "$ac_prog", so it can be a program name with args.
14836 set dummy $ac_prog; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_path_DF+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   case $DF in
14843   [\\/]* | ?:[\\/]*)
14844   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14845   ;;
14846   *)
14847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14849 do
14850   IFS=$as_save_IFS
14851   test -z "$as_dir" && as_dir=.
14852     for ac_exec_ext in '' $ac_executable_extensions; do
14853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856     break 2
14857   fi
14858 done
14859   done
14860 IFS=$as_save_IFS
14861 
14862   ;;
14863 esac
14864 fi
14865 DF=$ac_cv_path_DF
14866 if test -n "$DF"; then
14867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14868 $as_echo "$DF" >&6; }
14869 else
14870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871 $as_echo "no" >&6; }
14872 fi
14873 
14874 
14875   test -n "$DF" && break
14876 done
14877 
14878     else
14879       # If it succeeded, then it was overridden by the user. We will use it
14880       # for the tool.
14881 
14882       # First remove it from the list of overridden variables, so we can test
14883       # for unknown variables in the end.
14884       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14885 
14886       # Check if we try to supply an empty value
14887       if test "x$DF" = x; then
14888         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14889 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14891 $as_echo_n "checking for DF... " >&6; }
14892         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14893 $as_echo "disabled" >&6; }
14894       else
14895         # Check if the provided tool contains a complete path.
14896         tool_specified="$DF"
14897         tool_basename="${tool_specified##*/}"
14898         if test "x$tool_basename" = "x$tool_specified"; then
14899           # A command without a complete path is provided, search $PATH.
14900           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14901 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14902           # Extract the first word of "$tool_basename", so it can be a program name with args.
14903 set dummy $tool_basename; ac_word=$2
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14905 $as_echo_n "checking for $ac_word... " >&6; }
14906 if ${ac_cv_path_DF+:} false; then :
14907   $as_echo_n "(cached) " >&6
14908 else
14909   case $DF in
14910   [\\/]* | ?:[\\/]*)
14911   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14912   ;;
14913   *)
14914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14915 for as_dir in $PATH
14916 do
14917   IFS=$as_save_IFS
14918   test -z "$as_dir" && as_dir=.
14919     for ac_exec_ext in '' $ac_executable_extensions; do
14920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14921     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14923     break 2
14924   fi
14925 done
14926   done
14927 IFS=$as_save_IFS
14928 
14929   ;;
14930 esac
14931 fi
14932 DF=$ac_cv_path_DF
14933 if test -n "$DF"; then
14934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14935 $as_echo "$DF" >&6; }
14936 else
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938 $as_echo "no" >&6; }
14939 fi
14940 
14941 
14942           if test "x$DF" = x; then
14943             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14944           fi
14945         else
14946           # Otherwise we believe it is a complete path. Use it as it is.
14947           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14948 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14949           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14950 $as_echo_n "checking for DF... " >&6; }
14951           if test ! -x "$tool_specified"; then
14952             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14953 $as_echo "not found" >&6; }
14954             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14955           fi
14956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14957 $as_echo "$tool_specified" >&6; }
14958         fi
14959       fi
14960     fi
14961 
14962   fi
14963 
14964 
14965 
14966 
14967   # Publish this variable in the help.
14968 
14969 
14970   if [ -z "${CPIO+x}" ]; then
14971     # The variable is not set by user, try to locate tool using the code snippet
14972     for ac_prog in cpio bsdcpio
14973 do
14974   # Extract the first word of "$ac_prog", so it can be a program name with args.
14975 set dummy $ac_prog; ac_word=$2
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14977 $as_echo_n "checking for $ac_word... " >&6; }
14978 if ${ac_cv_path_CPIO+:} false; then :
14979   $as_echo_n "(cached) " >&6
14980 else
14981   case $CPIO in
14982   [\\/]* | ?:[\\/]*)
14983   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14984   ;;
14985   *)
14986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987 for as_dir in $PATH
14988 do
14989   IFS=$as_save_IFS
14990   test -z "$as_dir" && as_dir=.
14991     for ac_exec_ext in '' $ac_executable_extensions; do
14992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14993     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14995     break 2
14996   fi
14997 done
14998   done
14999 IFS=$as_save_IFS
15000 
15001   ;;
15002 esac
15003 fi
15004 CPIO=$ac_cv_path_CPIO
15005 if test -n "$CPIO"; then
15006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15007 $as_echo "$CPIO" >&6; }
15008 else
15009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15010 $as_echo "no" >&6; }
15011 fi
15012 
15013 
15014   test -n "$CPIO" && break
15015 done
15016 
15017   else
15018     # The variable is set, but is it from the command line or the environment?
15019 
15020     # Try to remove the string !CPIO! from our list.
15021     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15022     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15023       # If it failed, the variable was not from the command line. Ignore it,
15024       # but warn the user (except for BASH, which is always set by the calling BASH).
15025       if test "xCPIO" != xBASH; then
15026         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15027 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15028       fi
15029       # Try to locate tool using the code snippet
15030       for ac_prog in cpio bsdcpio
15031 do
15032   # Extract the first word of "$ac_prog", so it can be a program name with args.
15033 set dummy $ac_prog; ac_word=$2
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15035 $as_echo_n "checking for $ac_word... " >&6; }
15036 if ${ac_cv_path_CPIO+:} false; then :
15037   $as_echo_n "(cached) " >&6
15038 else
15039   case $CPIO in
15040   [\\/]* | ?:[\\/]*)
15041   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15042   ;;
15043   *)
15044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045 for as_dir in $PATH
15046 do
15047   IFS=$as_save_IFS
15048   test -z "$as_dir" && as_dir=.
15049     for ac_exec_ext in '' $ac_executable_extensions; do
15050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15051     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15053     break 2
15054   fi
15055 done
15056   done
15057 IFS=$as_save_IFS
15058 
15059   ;;
15060 esac
15061 fi
15062 CPIO=$ac_cv_path_CPIO
15063 if test -n "$CPIO"; then
15064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15065 $as_echo "$CPIO" >&6; }
15066 else
15067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068 $as_echo "no" >&6; }
15069 fi
15070 
15071 
15072   test -n "$CPIO" && break
15073 done
15074 
15075     else
15076       # If it succeeded, then it was overridden by the user. We will use it
15077       # for the tool.
15078 
15079       # First remove it from the list of overridden variables, so we can test
15080       # for unknown variables in the end.
15081       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15082 
15083       # Check if we try to supply an empty value
15084       if test "x$CPIO" = x; then
15085         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15086 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15088 $as_echo_n "checking for CPIO... " >&6; }
15089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15090 $as_echo "disabled" >&6; }
15091       else
15092         # Check if the provided tool contains a complete path.
15093         tool_specified="$CPIO"
15094         tool_basename="${tool_specified##*/}"
15095         if test "x$tool_basename" = "x$tool_specified"; then
15096           # A command without a complete path is provided, search $PATH.
15097           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15098 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15099           # Extract the first word of "$tool_basename", so it can be a program name with args.
15100 set dummy $tool_basename; ac_word=$2
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15102 $as_echo_n "checking for $ac_word... " >&6; }
15103 if ${ac_cv_path_CPIO+:} false; then :
15104   $as_echo_n "(cached) " >&6
15105 else
15106   case $CPIO in
15107   [\\/]* | ?:[\\/]*)
15108   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15109   ;;
15110   *)
15111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15113 do
15114   IFS=$as_save_IFS
15115   test -z "$as_dir" && as_dir=.
15116     for ac_exec_ext in '' $ac_executable_extensions; do
15117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15120     break 2
15121   fi
15122 done
15123   done
15124 IFS=$as_save_IFS
15125 
15126   ;;
15127 esac
15128 fi
15129 CPIO=$ac_cv_path_CPIO
15130 if test -n "$CPIO"; then
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15132 $as_echo "$CPIO" >&6; }
15133 else
15134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135 $as_echo "no" >&6; }
15136 fi
15137 
15138 
15139           if test "x$CPIO" = x; then
15140             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15141           fi
15142         else
15143           # Otherwise we believe it is a complete path. Use it as it is.
15144           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15145 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15146           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15147 $as_echo_n "checking for CPIO... " >&6; }
15148           if test ! -x "$tool_specified"; then
15149             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15150 $as_echo "not found" >&6; }
15151             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15152           fi
15153           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15154 $as_echo "$tool_specified" >&6; }
15155         fi
15156       fi
15157     fi
15158 
15159   fi
15160 
15161 
15162 
15163 
15164   # Publish this variable in the help.
15165 
15166 
15167   if [ -z "${NICE+x}" ]; then
15168     # The variable is not set by user, try to locate tool using the code snippet
15169     for ac_prog in nice
15170 do
15171   # Extract the first word of "$ac_prog", so it can be a program name with args.
15172 set dummy $ac_prog; ac_word=$2
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15174 $as_echo_n "checking for $ac_word... " >&6; }
15175 if ${ac_cv_path_NICE+:} false; then :
15176   $as_echo_n "(cached) " >&6
15177 else
15178   case $NICE in
15179   [\\/]* | ?:[\\/]*)
15180   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15181   ;;
15182   *)
15183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15184 for as_dir in $PATH
15185 do
15186   IFS=$as_save_IFS
15187   test -z "$as_dir" && as_dir=.
15188     for ac_exec_ext in '' $ac_executable_extensions; do
15189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15190     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15192     break 2
15193   fi
15194 done
15195   done
15196 IFS=$as_save_IFS
15197 
15198   ;;
15199 esac
15200 fi
15201 NICE=$ac_cv_path_NICE
15202 if test -n "$NICE"; then
15203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15204 $as_echo "$NICE" >&6; }
15205 else
15206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207 $as_echo "no" >&6; }
15208 fi
15209 
15210 
15211   test -n "$NICE" && break
15212 done
15213 
15214   else
15215     # The variable is set, but is it from the command line or the environment?
15216 
15217     # Try to remove the string !NICE! from our list.
15218     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15219     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15220       # If it failed, the variable was not from the command line. Ignore it,
15221       # but warn the user (except for BASH, which is always set by the calling BASH).
15222       if test "xNICE" != xBASH; then
15223         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15224 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15225       fi
15226       # Try to locate tool using the code snippet
15227       for ac_prog in nice
15228 do
15229   # Extract the first word of "$ac_prog", so it can be a program name with args.
15230 set dummy $ac_prog; ac_word=$2
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15232 $as_echo_n "checking for $ac_word... " >&6; }
15233 if ${ac_cv_path_NICE+:} false; then :
15234   $as_echo_n "(cached) " >&6
15235 else
15236   case $NICE in
15237   [\\/]* | ?:[\\/]*)
15238   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15239   ;;
15240   *)
15241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15242 for as_dir in $PATH
15243 do
15244   IFS=$as_save_IFS
15245   test -z "$as_dir" && as_dir=.
15246     for ac_exec_ext in '' $ac_executable_extensions; do
15247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15248     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15250     break 2
15251   fi
15252 done
15253   done
15254 IFS=$as_save_IFS
15255 
15256   ;;
15257 esac
15258 fi
15259 NICE=$ac_cv_path_NICE
15260 if test -n "$NICE"; then
15261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15262 $as_echo "$NICE" >&6; }
15263 else
15264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 $as_echo "no" >&6; }
15266 fi
15267 
15268 
15269   test -n "$NICE" && break
15270 done
15271 
15272     else
15273       # If it succeeded, then it was overridden by the user. We will use it
15274       # for the tool.
15275 
15276       # First remove it from the list of overridden variables, so we can test
15277       # for unknown variables in the end.
15278       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15279 
15280       # Check if we try to supply an empty value
15281       if test "x$NICE" = x; then
15282         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15283 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15285 $as_echo_n "checking for NICE... " >&6; }
15286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15287 $as_echo "disabled" >&6; }
15288       else
15289         # Check if the provided tool contains a complete path.
15290         tool_specified="$NICE"
15291         tool_basename="${tool_specified##*/}"
15292         if test "x$tool_basename" = "x$tool_specified"; then
15293           # A command without a complete path is provided, search $PATH.
15294           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15295 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15296           # Extract the first word of "$tool_basename", so it can be a program name with args.
15297 set dummy $tool_basename; ac_word=$2
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15299 $as_echo_n "checking for $ac_word... " >&6; }
15300 if ${ac_cv_path_NICE+:} false; then :
15301   $as_echo_n "(cached) " >&6
15302 else
15303   case $NICE in
15304   [\\/]* | ?:[\\/]*)
15305   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15306   ;;
15307   *)
15308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15309 for as_dir in $PATH
15310 do
15311   IFS=$as_save_IFS
15312   test -z "$as_dir" && as_dir=.
15313     for ac_exec_ext in '' $ac_executable_extensions; do
15314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15315     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15317     break 2
15318   fi
15319 done
15320   done
15321 IFS=$as_save_IFS
15322 
15323   ;;
15324 esac
15325 fi
15326 NICE=$ac_cv_path_NICE
15327 if test -n "$NICE"; then
15328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15329 $as_echo "$NICE" >&6; }
15330 else
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332 $as_echo "no" >&6; }
15333 fi
15334 
15335 
15336           if test "x$NICE" = x; then
15337             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15338           fi
15339         else
15340           # Otherwise we believe it is a complete path. Use it as it is.
15341           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15342 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15343           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15344 $as_echo_n "checking for NICE... " >&6; }
15345           if test ! -x "$tool_specified"; then
15346             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15347 $as_echo "not found" >&6; }
15348             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15349           fi
15350           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15351 $as_echo "$tool_specified" >&6; }
15352         fi
15353       fi
15354     fi
15355 
15356   fi
15357 
15358 
15359 
15360 
15361 # Now we can determine OpenJDK build and target platforms. This is required to
15362 # have early on.
15363 # Make sure we can run config.sub.
15364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15365   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15366 
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15368 $as_echo_n "checking build system type... " >&6; }
15369 if ${ac_cv_build+:} false; then :
15370   $as_echo_n "(cached) " >&6
15371 else
15372   ac_build_alias=$build_alias
15373 test "x$ac_build_alias" = x &&
15374   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15375 test "x$ac_build_alias" = x &&
15376   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15378   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15379 
15380 fi
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15382 $as_echo "$ac_cv_build" >&6; }
15383 case $ac_cv_build in
15384 *-*-*) ;;
15385 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15386 esac
15387 build=$ac_cv_build
15388 ac_save_IFS=$IFS; IFS='-'
15389 set x $ac_cv_build
15390 shift
15391 build_cpu=$1
15392 build_vendor=$2
15393 shift; shift
15394 # Remember, the first character of IFS is used to create $*,
15395 # except with old shells:
15396 build_os=$*
15397 IFS=$ac_save_IFS
15398 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15399 
15400 
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15402 $as_echo_n "checking host system type... " >&6; }
15403 if ${ac_cv_host+:} false; then :
15404   $as_echo_n "(cached) " >&6
15405 else
15406   if test "x$host_alias" = x; then
15407   ac_cv_host=$ac_cv_build
15408 else
15409   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15410     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15411 fi
15412 
15413 fi
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15415 $as_echo "$ac_cv_host" >&6; }
15416 case $ac_cv_host in
15417 *-*-*) ;;
15418 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15419 esac
15420 host=$ac_cv_host
15421 ac_save_IFS=$IFS; IFS='-'
15422 set x $ac_cv_host
15423 shift
15424 host_cpu=$1
15425 host_vendor=$2
15426 shift; shift
15427 # Remember, the first character of IFS is used to create $*,
15428 # except with old shells:
15429 host_os=$*
15430 IFS=$ac_save_IFS
15431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15432 
15433 
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15435 $as_echo_n "checking target system type... " >&6; }
15436 if ${ac_cv_target+:} false; then :
15437   $as_echo_n "(cached) " >&6
15438 else
15439   if test "x$target_alias" = x; then
15440   ac_cv_target=$ac_cv_host
15441 else
15442   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15443     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15444 fi
15445 
15446 fi
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15448 $as_echo "$ac_cv_target" >&6; }
15449 case $ac_cv_target in
15450 *-*-*) ;;
15451 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15452 esac
15453 target=$ac_cv_target
15454 ac_save_IFS=$IFS; IFS='-'
15455 set x $ac_cv_target
15456 shift
15457 target_cpu=$1
15458 target_vendor=$2
15459 shift; shift
15460 # Remember, the first character of IFS is used to create $*,
15461 # except with old shells:
15462 target_os=$*
15463 IFS=$ac_save_IFS
15464 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15465 
15466 
15467 # The aliases save the names the user supplied, while $host etc.
15468 # will get canonicalized.
15469 test -n "$target_alias" &&
15470   test "$program_prefix$program_suffix$program_transform_name" = \
15471     NONENONEs,x,x, &&
15472   program_prefix=${target_alias}-
15473 
15474   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15475   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15476   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15477   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15478   # to use the configure naming style.
15479 
15480 
15481 
15482 
15483 
15484   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15485   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15486   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15487   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15488   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15489   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15490 
15491 
15492 
15493   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15494 
15495   case "$build_os" in
15496     *linux*)
15497       VAR_OS=linux
15498       VAR_OS_TYPE=unix
15499       ;;
15500     *solaris*)
15501       VAR_OS=solaris
15502       VAR_OS_TYPE=unix
15503       ;;
15504     *darwin*)
15505       VAR_OS=macosx
15506       VAR_OS_TYPE=unix
15507       ;;
15508     *bsd*)
15509       VAR_OS=bsd
15510       VAR_OS_TYPE=unix
15511       ;;
15512     *cygwin*)
15513       VAR_OS=windows
15514       VAR_OS_ENV=windows.cygwin
15515       ;;
15516     *mingw*)
15517       VAR_OS=windows
15518       VAR_OS_ENV=windows.msys
15519       ;;
15520     *aix*)
15521       VAR_OS=aix
15522       VAR_OS_TYPE=unix
15523       ;;
15524     *)
15525       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15526       ;;
15527   esac
15528 
15529 
15530   # First argument is the cpu name from the trip/quad
15531   case "$build_cpu" in
15532     x86_64)
15533       VAR_CPU=x86_64
15534       VAR_CPU_ARCH=x86
15535       VAR_CPU_BITS=64
15536       VAR_CPU_ENDIAN=little
15537       ;;
15538     i?86)
15539       VAR_CPU=x86
15540       VAR_CPU_ARCH=x86
15541       VAR_CPU_BITS=32
15542       VAR_CPU_ENDIAN=little
15543       ;;
15544     arm*)
15545       VAR_CPU=arm
15546       VAR_CPU_ARCH=arm
15547       VAR_CPU_BITS=32
15548       VAR_CPU_ENDIAN=little
15549       ;;
15550     aarch64)
15551       VAR_CPU=aarch64
15552       VAR_CPU_ARCH=aarch64
15553       VAR_CPU_BITS=64
15554       VAR_CPU_ENDIAN=little
15555       ;;
15556     powerpc)
15557       VAR_CPU=ppc
15558       VAR_CPU_ARCH=ppc
15559       VAR_CPU_BITS=32
15560       VAR_CPU_ENDIAN=big
15561       ;;
15562     powerpc64)
15563       VAR_CPU=ppc64
15564       VAR_CPU_ARCH=ppc
15565       VAR_CPU_BITS=64
15566       VAR_CPU_ENDIAN=big
15567       ;;
15568     powerpc64le)
15569       VAR_CPU=ppc64le
15570       VAR_CPU_ARCH=ppc
15571       VAR_CPU_BITS=64
15572       VAR_CPU_ENDIAN=little
15573       ;;
15574     s390)
15575       VAR_CPU=s390
15576       VAR_CPU_ARCH=s390
15577       VAR_CPU_BITS=32
15578       VAR_CPU_ENDIAN=big
15579       ;;
15580     s390x)
15581       VAR_CPU=s390x
15582       VAR_CPU_ARCH=s390
15583       VAR_CPU_BITS=64
15584       VAR_CPU_ENDIAN=big
15585       ;;
15586     sparc)
15587       VAR_CPU=sparc
15588       VAR_CPU_ARCH=sparc
15589       VAR_CPU_BITS=32
15590       VAR_CPU_ENDIAN=big
15591       ;;
15592     sparcv9|sparc64)
15593       VAR_CPU=sparcv9
15594       VAR_CPU_ARCH=sparc
15595       VAR_CPU_BITS=64
15596       VAR_CPU_ENDIAN=big
15597       ;;
15598     *)
15599       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15600       ;;
15601   esac
15602 
15603   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15604   OPENJDK_BUILD_OS="$VAR_OS"
15605   if test "x$VAR_OS_TYPE" != x; then
15606     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15607   else
15608     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15609   fi
15610   if test "x$VAR_OS_ENV" != x; then
15611     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15612   else
15613     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15614   fi
15615   OPENJDK_BUILD_CPU="$VAR_CPU"
15616   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15617   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15618   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15619 
15620 
15621 
15622 
15623 
15624 
15625 
15626 
15627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15628 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15630 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15631 
15632   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15633 
15634   case "$host_os" in
15635     *linux*)
15636       VAR_OS=linux
15637       VAR_OS_TYPE=unix
15638       ;;
15639     *solaris*)
15640       VAR_OS=solaris
15641       VAR_OS_TYPE=unix
15642       ;;
15643     *darwin*)
15644       VAR_OS=macosx
15645       VAR_OS_TYPE=unix
15646       ;;
15647     *bsd*)
15648       VAR_OS=bsd
15649       VAR_OS_TYPE=unix
15650       ;;
15651     *cygwin*)
15652       VAR_OS=windows
15653       VAR_OS_ENV=windows.cygwin
15654       ;;
15655     *mingw*)
15656       VAR_OS=windows
15657       VAR_OS_ENV=windows.msys
15658       ;;
15659     *aix*)
15660       VAR_OS=aix
15661       VAR_OS_TYPE=unix
15662       ;;
15663     *)
15664       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15665       ;;
15666   esac
15667 
15668 
15669   # First argument is the cpu name from the trip/quad
15670   case "$host_cpu" in
15671     x86_64)
15672       VAR_CPU=x86_64
15673       VAR_CPU_ARCH=x86
15674       VAR_CPU_BITS=64
15675       VAR_CPU_ENDIAN=little
15676       ;;
15677     i?86)
15678       VAR_CPU=x86
15679       VAR_CPU_ARCH=x86
15680       VAR_CPU_BITS=32
15681       VAR_CPU_ENDIAN=little
15682       ;;
15683     arm*)
15684       VAR_CPU=arm
15685       VAR_CPU_ARCH=arm
15686       VAR_CPU_BITS=32
15687       VAR_CPU_ENDIAN=little
15688       ;;
15689     aarch64)
15690       VAR_CPU=aarch64
15691       VAR_CPU_ARCH=aarch64
15692       VAR_CPU_BITS=64
15693       VAR_CPU_ENDIAN=little
15694       ;;
15695     powerpc)
15696       VAR_CPU=ppc
15697       VAR_CPU_ARCH=ppc
15698       VAR_CPU_BITS=32
15699       VAR_CPU_ENDIAN=big
15700       ;;
15701     powerpc64)
15702       VAR_CPU=ppc64
15703       VAR_CPU_ARCH=ppc
15704       VAR_CPU_BITS=64
15705       VAR_CPU_ENDIAN=big
15706       ;;
15707     powerpc64le)
15708       VAR_CPU=ppc64le
15709       VAR_CPU_ARCH=ppc
15710       VAR_CPU_BITS=64
15711       VAR_CPU_ENDIAN=little
15712       ;;
15713     s390)
15714       VAR_CPU=s390
15715       VAR_CPU_ARCH=s390
15716       VAR_CPU_BITS=32
15717       VAR_CPU_ENDIAN=big
15718       ;;
15719     s390x)
15720       VAR_CPU=s390x
15721       VAR_CPU_ARCH=s390
15722       VAR_CPU_BITS=64
15723       VAR_CPU_ENDIAN=big
15724       ;;
15725     sparc)
15726       VAR_CPU=sparc
15727       VAR_CPU_ARCH=sparc
15728       VAR_CPU_BITS=32
15729       VAR_CPU_ENDIAN=big
15730       ;;
15731     sparcv9|sparc64)
15732       VAR_CPU=sparcv9
15733       VAR_CPU_ARCH=sparc
15734       VAR_CPU_BITS=64
15735       VAR_CPU_ENDIAN=big
15736       ;;
15737     *)
15738       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15739       ;;
15740   esac
15741 
15742   # ... and setup our own variables. (Do this explicitly to facilitate searching)
15743   OPENJDK_TARGET_OS="$VAR_OS"
15744   if test "x$VAR_OS_TYPE" != x; then
15745     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15746   else
15747     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15748   fi
15749   if test "x$VAR_OS_ENV" != x; then
15750     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15751   else
15752     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15753   fi
15754   OPENJDK_TARGET_CPU="$VAR_CPU"
15755   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15756   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15757   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15758 
15759 
15760 
15761 
15762 
15763 
15764 
15765 
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15767 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15769 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15770 
15771 
15772 
15773 # Check whether --with-target-bits was given.
15774 if test "${with_target_bits+set}" = set; then :
15775   withval=$with_target_bits;
15776 fi
15777 
15778 
15779   # We have three types of compiles:
15780   # native  == normal compilation, target system == build system
15781   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15782   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15783   #
15784   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15785     # We're doing a proper cross-compilation
15786     COMPILE_TYPE="cross"
15787   else
15788     COMPILE_TYPE="native"
15789   fi
15790 
15791   if test "x$with_target_bits" != x; then
15792     if test "x$COMPILE_TYPE" = "xcross"; then
15793       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15794     fi
15795 
15796     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15797       # A reduced build is requested
15798       COMPILE_TYPE="reduced"
15799       OPENJDK_TARGET_CPU_BITS=32
15800       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15801         OPENJDK_TARGET_CPU=x86
15802       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15803         OPENJDK_TARGET_CPU=sparc
15804       else
15805         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15806       fi
15807     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15808       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
15809     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15810       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15811 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15812     else
15813       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15814     fi
15815   fi
15816 
15817 
15818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15819 $as_echo_n "checking compilation type... " >&6; }
15820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15821 $as_echo "$COMPILE_TYPE" >&6; }
15822 
15823 
15824   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15825     REQUIRED_OS_NAME=SunOS
15826     REQUIRED_OS_VERSION=5.10
15827   fi
15828   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15829     REQUIRED_OS_NAME=Linux
15830     REQUIRED_OS_VERSION=2.6
15831   fi
15832   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15833     REQUIRED_OS_NAME=Windows
15834     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15835       REQUIRED_OS_VERSION=5.2
15836     else
15837       REQUIRED_OS_VERSION=5.1
15838     fi
15839   fi
15840   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15841     REQUIRED_OS_NAME=Darwin
15842     REQUIRED_OS_VERSION=11.2
15843   fi
15844   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15845     REQUIRED_OS_NAME=AIX
15846     REQUIRED_OS_VERSION=7.1
15847   fi
15848 
15849 
15850 
15851 
15852 
15853 
15854   # Also store the legacy naming of the cpu.
15855   # Ie i586 and amd64 instead of x86 and x86_64
15856   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15857   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15858     OPENJDK_TARGET_CPU_LEGACY="i586"
15859   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15860     # On all platforms except MacOSX replace x86_64 with amd64.
15861     OPENJDK_TARGET_CPU_LEGACY="amd64"
15862   fi
15863 
15864 
15865   # And the second legacy naming of the cpu.
15866   # Ie i386 and amd64 instead of x86 and x86_64.
15867   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15868   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15869     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15870   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15871     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15872   fi
15873 
15874 
15875   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15876   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15877   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15878   OPENJDK_TARGET_CPU_ISADIR=""
15879   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15880     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15881       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15882     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15883       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15884     fi
15885   fi
15886 
15887 
15888   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15889   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15890   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15891     # On linux only, we replace x86 with i386.
15892     OPENJDK_TARGET_CPU_OSARCH="i386"
15893   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15894     # On all platforms except macosx, we replace x86_64 with amd64.
15895     OPENJDK_TARGET_CPU_OSARCH="amd64"
15896   fi
15897 
15898 
15899   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15900   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15901     OPENJDK_TARGET_CPU_JLI="i386"
15902   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15903     # On all platforms except macosx, we replace x86_64 with amd64.
15904     OPENJDK_TARGET_CPU_JLI="amd64"
15905   fi
15906 
15907   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15908       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15909   else
15910       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15911   fi
15912 
15913 
15914   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
15915   # Macosx is osx and x86_64 is x64
15916   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15917     OPENJDK_TARGET_OS_BUNDLE="osx"
15918   else
15919     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
15920   fi
15921   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15922     OPENJDK_TARGET_CPU_BUNDLE="x64"
15923   else
15924     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
15925   fi
15926   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
15927 
15928 
15929   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15930     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15931     # unpack200.exe. This variable is used in
15932     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
15933     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15934       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15935     fi
15936   fi
15937 
15938   if test "x$COMPILE_TYPE" = "xcross"; then
15939     # FIXME: ... or should this include reduced builds..?
15940     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15941   else
15942     DEFINE_CROSS_COMPILE_ARCH=""
15943   fi
15944 
15945 
15946   # Convert openjdk platform names to hotspot names
15947 
15948   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15949   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15950     HOTSPOT_TARGET_OS=bsd
15951   fi
15952 
15953 
15954   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15955   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15956     HOTSPOT_TARGET_OS_TYPE=posix
15957   fi
15958 
15959 
15960   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15961   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15962     HOTSPOT_TARGET_CPU=x86_32
15963   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15964     HOTSPOT_TARGET_CPU=sparc
15965   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15966     HOTSPOT_TARGET_CPU=ppc_64
15967   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15968     HOTSPOT_TARGET_CPU=ppc_64
15969   fi
15970 
15971 
15972   # This is identical with OPENJDK_*, but define anyway for consistency.
15973   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15974 
15975 
15976   # Setup HOTSPOT_TARGET_CPU_DEFINE
15977   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15978     HOTSPOT_TARGET_CPU_DEFINE=IA32
15979   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15980     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15981   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15982     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15983   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15984     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15985   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15986     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15987   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15988     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15989 
15990   # The cpu defines below are for zero, we don't support them directly.
15991   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15992     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15993   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15994     HOTSPOT_TARGET_CPU_DEFINE=PPC32
15995   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15996     HOTSPOT_TARGET_CPU_DEFINE=S390
15997   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
15998     HOTSPOT_TARGET_CPU_DEFINE=S390
15999   elif test "x$OPENJDK_TARGET_CPU" != x; then
16000     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16001   fi
16002 
16003 
16004 
16005 
16006   # Also store the legacy naming of the cpu.
16007   # Ie i586 and amd64 instead of x86 and x86_64
16008   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16009   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16010     OPENJDK_BUILD_CPU_LEGACY="i586"
16011   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16012     # On all platforms except MacOSX replace x86_64 with amd64.
16013     OPENJDK_BUILD_CPU_LEGACY="amd64"
16014   fi
16015 
16016 
16017   # And the second legacy naming of the cpu.
16018   # Ie i386 and amd64 instead of x86 and x86_64.
16019   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16020   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16021     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16022   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16023     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16024   fi
16025 
16026 
16027   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16028   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16029   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16030   OPENJDK_BUILD_CPU_ISADIR=""
16031   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16032     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16033       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16034     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16035       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16036     fi
16037   fi
16038 
16039 
16040   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16041   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16042   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16043     # On linux only, we replace x86 with i386.
16044     OPENJDK_BUILD_CPU_OSARCH="i386"
16045   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16046     # On all platforms except macosx, we replace x86_64 with amd64.
16047     OPENJDK_BUILD_CPU_OSARCH="amd64"
16048   fi
16049 
16050 
16051   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16052   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16053     OPENJDK_BUILD_CPU_JLI="i386"
16054   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16055     # On all platforms except macosx, we replace x86_64 with amd64.
16056     OPENJDK_BUILD_CPU_JLI="amd64"
16057   fi
16058 
16059   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16060       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16061   else
16062       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16063   fi
16064 
16065 
16066   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16067   # Macosx is osx and x86_64 is x64
16068   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16069     OPENJDK_BUILD_OS_BUNDLE="osx"
16070   else
16071     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16072   fi
16073   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16074     OPENJDK_BUILD_CPU_BUNDLE="x64"
16075   else
16076     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16077   fi
16078   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16079 
16080 
16081   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16082     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16083     # unpack200.exe. This variable is used in
16084     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16085     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16086       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16087     fi
16088   fi
16089 
16090   if test "x$COMPILE_TYPE" = "xcross"; then
16091     # FIXME: ... or should this include reduced builds..?
16092     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16093   else
16094     DEFINE_CROSS_COMPILE_ARCH=""
16095   fi
16096 
16097 
16098   # Convert openjdk platform names to hotspot names
16099 
16100   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16101   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16102     HOTSPOT_BUILD_OS=bsd
16103   fi
16104 
16105 
16106   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16107   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16108     HOTSPOT_BUILD_OS_TYPE=posix
16109   fi
16110 
16111 
16112   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16113   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16114     HOTSPOT_BUILD_CPU=x86_32
16115   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16116     HOTSPOT_BUILD_CPU=sparc
16117   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16118     HOTSPOT_BUILD_CPU=ppc_64
16119   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16120     HOTSPOT_BUILD_CPU=ppc_64
16121   fi
16122 
16123 
16124   # This is identical with OPENJDK_*, but define anyway for consistency.
16125   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16126 
16127 
16128   # Setup HOTSPOT_BUILD_CPU_DEFINE
16129   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16130     HOTSPOT_BUILD_CPU_DEFINE=IA32
16131   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16132     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16133   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16134     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16135   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16136     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16137   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16138     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16139   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16140     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16141 
16142   # The cpu defines below are for zero, we don't support them directly.
16143   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16144     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16145   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16146     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16147   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16148     HOTSPOT_BUILD_CPU_DEFINE=S390
16149   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16150     HOTSPOT_BUILD_CPU_DEFINE=S390
16151   elif test "x$OPENJDK_BUILD_CPU" != x; then
16152     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16153   fi
16154 
16155 
16156 
16157 
16158 
16159 
16160 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16161 
16162   # Save the current directory this script was started from
16163   CURDIR="$PWD"
16164 
16165   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16166   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16167   # was not available at that time.
16168   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16169   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16170     ORIGINAL_PATH="$REWRITTEN_PATH"
16171     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16172 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16173   fi
16174 
16175   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16176     PATH_SEP=";"
16177 
16178   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16179   if test $SRC_ROOT_LENGTH -gt 100; then
16180     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16181   fi
16182 
16183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16185 $as_echo_n "checking cygwin release... " >&6; }
16186     CYGWIN_VERSION=`$UNAME -r`
16187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16188 $as_echo "$CYGWIN_VERSION" >&6; }
16189     WINDOWS_ENV_VENDOR='cygwin'
16190     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16191 
16192     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16193     if test "x$CYGWIN_VERSION_OLD" != x; then
16194       { $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
16195 $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;}
16196       as_fn_error $? "Cannot continue" "$LINENO" 5
16197     fi
16198     if test "x$CYGPATH" = x; then
16199       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16200     fi
16201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16202 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16203     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16204     cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`
16205     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16206     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16208 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16209     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16210     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16211     if test "x$test_cygdrive_prefix" = x; then
16212       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16213     fi
16214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16216 $as_echo_n "checking msys release... " >&6; }
16217     MSYS_VERSION=`$UNAME -r`
16218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16219 $as_echo "$MSYS_VERSION" >&6; }
16220 
16221     WINDOWS_ENV_VENDOR='msys'
16222     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16223 
16224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16225 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16226     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16227     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16228 
16229   windows_path="$MSYS_ROOT_PATH"
16230   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16231     unix_path=`$CYGPATH -u "$windows_path"`
16232     MSYS_ROOT_PATH="$unix_path"
16233   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16234     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16235     MSYS_ROOT_PATH="$unix_path"
16236   fi
16237 
16238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16239 $as_echo "$MSYS_ROOT_PATH" >&6; }
16240     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16241   else
16242     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16243   fi
16244 
16245   # Test if windows or unix (cygwin/msys) find is first in path.
16246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16247 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16248   FIND_BINARY_OUTPUT=`find --version 2>&1`
16249   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16250     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16251 $as_echo "unix style" >&6; }
16252   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16254 $as_echo "Windows" >&6; }
16255     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16256 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16257     { $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
16258 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16259     as_fn_error $? "Cannot continue" "$LINENO" 5
16260   else
16261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16262 $as_echo "unknown" >&6; }
16263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16264 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16265   fi
16266 
16267   else
16268     PATH_SEP=":"
16269   fi
16270 
16271 
16272   # We get the top-level directory from the supporting wrappers.
16273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16274 $as_echo_n "checking for top-level directory... " >&6; }
16275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16276 $as_echo "$TOPDIR" >&6; }
16277 
16278 
16279   # Save the original version of TOPDIR for string comparisons
16280   ORIGINAL_TOPDIR="$TOPDIR"
16281 
16282 
16283   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16284 
16285   # Only process if variable expands to non-empty
16286 
16287   if test "x$CURDIR" != x; then
16288     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16289 
16290   # Input might be given as Windows format, start by converting to
16291   # unix format.
16292   path="$CURDIR"
16293   new_path=`$CYGPATH -u "$path"`
16294 
16295   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16296   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16297   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16298   # "foo.exe" is OK but "foo" is an error.
16299   #
16300   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16301   # It is also a way to make sure we got the proper file name for the real test later on.
16302   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16303   if test "x$test_shortpath" = x; then
16304     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16305 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16306     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16307   fi
16308 
16309   # Call helper function which possibly converts this using DOS-style short mode.
16310   # If so, the updated path is stored in $new_path.
16311 
16312   input_path="$new_path"
16313   # Check if we need to convert this using DOS-style short mode. If the path
16314   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16315   # take no chances and rewrite it.
16316   # Note: m4 eats our [], so we need to use [ and ] instead.
16317   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16318   if test "x$has_forbidden_chars" != x; then
16319     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16320     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16321     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16322     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16323       # Going to short mode and back again did indeed matter. Since short mode is
16324       # case insensitive, let's make it lowercase to improve readability.
16325       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16326       # Now convert it back to Unix-style (cygpath)
16327       input_path=`$CYGPATH -u "$shortmode_path"`
16328       new_path="$input_path"
16329     fi
16330   fi
16331 
16332   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16333   if test "x$test_cygdrive_prefix" = x; then
16334     # As a simple fix, exclude /usr/bin since it's not a real path.
16335     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16336       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16337       # a path prefixed by /cygdrive for fixpath to work.
16338       new_path="$CYGWIN_ROOT_PATH$input_path"
16339     fi
16340   fi
16341 
16342 
16343   if test "x$path" != "x$new_path"; then
16344     CURDIR="$new_path"
16345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16346 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16347   fi
16348 
16349     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16350 
16351   path="$CURDIR"
16352   has_colon=`$ECHO $path | $GREP ^.:`
16353   new_path="$path"
16354   if test "x$has_colon" = x; then
16355     # Not in mixed or Windows style, start by that.
16356     new_path=`cmd //c echo $path`
16357   fi
16358 
16359 
16360   input_path="$new_path"
16361   # Check if we need to convert this using DOS-style short mode. If the path
16362   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16363   # take no chances and rewrite it.
16364   # Note: m4 eats our [], so we need to use [ and ] instead.
16365   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16366   if test "x$has_forbidden_chars" != x; then
16367     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16368     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16369   fi
16370 
16371 
16372   windows_path="$new_path"
16373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16374     unix_path=`$CYGPATH -u "$windows_path"`
16375     new_path="$unix_path"
16376   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16377     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16378     new_path="$unix_path"
16379   fi
16380 
16381   if test "x$path" != "x$new_path"; then
16382     CURDIR="$new_path"
16383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16384 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16385   fi
16386 
16387   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16388   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16389 
16390     else
16391       # We're on a unix platform. Hooray! :)
16392       path="$CURDIR"
16393       has_space=`$ECHO "$path" | $GREP " "`
16394       if test "x$has_space" != x; then
16395         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16396 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16397         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16398       fi
16399 
16400       # Use eval to expand a potential ~
16401       eval path="$path"
16402       if test ! -f "$path" && test ! -d "$path"; then
16403         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16404       fi
16405 
16406       if test -d "$path"; then
16407         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16408       else
16409         dir="`$DIRNAME "$path"`"
16410         base="`$BASENAME "$path"`"
16411         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16412       fi
16413     fi
16414   fi
16415 
16416 
16417   # Only process if variable expands to non-empty
16418 
16419   if test "x$TOPDIR" != x; then
16420     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16421 
16422   # Input might be given as Windows format, start by converting to
16423   # unix format.
16424   path="$TOPDIR"
16425   new_path=`$CYGPATH -u "$path"`
16426 
16427   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16428   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16429   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16430   # "foo.exe" is OK but "foo" is an error.
16431   #
16432   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16433   # It is also a way to make sure we got the proper file name for the real test later on.
16434   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16435   if test "x$test_shortpath" = x; then
16436     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16437 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16438     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16439   fi
16440 
16441   # Call helper function which possibly converts this using DOS-style short mode.
16442   # If so, the updated path is stored in $new_path.
16443 
16444   input_path="$new_path"
16445   # Check if we need to convert this using DOS-style short mode. If the path
16446   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16447   # take no chances and rewrite it.
16448   # Note: m4 eats our [], so we need to use [ and ] instead.
16449   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16450   if test "x$has_forbidden_chars" != x; then
16451     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16452     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16453     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16454     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16455       # Going to short mode and back again did indeed matter. Since short mode is
16456       # case insensitive, let's make it lowercase to improve readability.
16457       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16458       # Now convert it back to Unix-style (cygpath)
16459       input_path=`$CYGPATH -u "$shortmode_path"`
16460       new_path="$input_path"
16461     fi
16462   fi
16463 
16464   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16465   if test "x$test_cygdrive_prefix" = x; then
16466     # As a simple fix, exclude /usr/bin since it's not a real path.
16467     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16468       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16469       # a path prefixed by /cygdrive for fixpath to work.
16470       new_path="$CYGWIN_ROOT_PATH$input_path"
16471     fi
16472   fi
16473 
16474 
16475   if test "x$path" != "x$new_path"; then
16476     TOPDIR="$new_path"
16477     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16478 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16479   fi
16480 
16481     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16482 
16483   path="$TOPDIR"
16484   has_colon=`$ECHO $path | $GREP ^.:`
16485   new_path="$path"
16486   if test "x$has_colon" = x; then
16487     # Not in mixed or Windows style, start by that.
16488     new_path=`cmd //c echo $path`
16489   fi
16490 
16491 
16492   input_path="$new_path"
16493   # Check if we need to convert this using DOS-style short mode. If the path
16494   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16495   # take no chances and rewrite it.
16496   # Note: m4 eats our [], so we need to use [ and ] instead.
16497   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16498   if test "x$has_forbidden_chars" != x; then
16499     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16500     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16501   fi
16502 
16503 
16504   windows_path="$new_path"
16505   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16506     unix_path=`$CYGPATH -u "$windows_path"`
16507     new_path="$unix_path"
16508   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16509     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16510     new_path="$unix_path"
16511   fi
16512 
16513   if test "x$path" != "x$new_path"; then
16514     TOPDIR="$new_path"
16515     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16516 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16517   fi
16518 
16519   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16520   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16521 
16522     else
16523       # We're on a unix platform. Hooray! :)
16524       path="$TOPDIR"
16525       has_space=`$ECHO "$path" | $GREP " "`
16526       if test "x$has_space" != x; then
16527         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16528 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16529         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16530       fi
16531 
16532       # Use eval to expand a potential ~
16533       eval path="$path"
16534       if test ! -f "$path" && test ! -d "$path"; then
16535         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16536       fi
16537 
16538       if test -d "$path"; then
16539         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16540       else
16541         dir="`$DIRNAME "$path"`"
16542         base="`$BASENAME "$path"`"
16543         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16544       fi
16545     fi
16546   fi
16547 
16548   # SRC_ROOT is a traditional alias for TOPDIR.
16549   SRC_ROOT=$TOPDIR
16550 
16551   # Calculate a canonical version of TOPDIR for string comparisons
16552   CANONICAL_TOPDIR=$TOPDIR
16553 
16554   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16555     # Follow a chain of symbolic links. Use readlink
16556     # where it exists, else fall back to horribly
16557     # complicated shell code.
16558     if test "x$READLINK_TESTED" != yes; then
16559       # On MacOSX there is a readlink tool with a different
16560       # purpose than the GNU readlink tool. Check the found readlink.
16561       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16562       if test "x$ISGNU" = x; then
16563         # A readlink that we do not know how to use.
16564         # Are there other non-GNU readlinks out there?
16565         READLINK_TESTED=yes
16566         READLINK=
16567       fi
16568     fi
16569 
16570     if test "x$READLINK" != x; then
16571       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16572     else
16573       # Save the current directory for restoring afterwards
16574       STARTDIR=$PWD
16575       COUNTER=0
16576       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16577       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16578       cd $sym_link_dir
16579       # Use -P flag to resolve symlinks in directories.
16580       cd `$THEPWDCMD -P`
16581       sym_link_dir=`$THEPWDCMD -P`
16582       # Resolve file symlinks
16583       while test $COUNTER -lt 20; do
16584         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16585         if test "x$ISLINK" == x; then
16586           # This is not a symbolic link! We are done!
16587           break
16588         fi
16589         # Again resolve directory symlinks since the target of the just found
16590         # link could be in a different directory
16591         cd `$DIRNAME $ISLINK`
16592         sym_link_dir=`$THEPWDCMD -P`
16593         sym_link_file=`$BASENAME $ISLINK`
16594         let COUNTER=COUNTER+1
16595       done
16596       cd $STARTDIR
16597       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16598     fi
16599   fi
16600 
16601 
16602 
16603   # Locate the directory of this script.
16604   AUTOCONF_DIR=$TOPDIR/common/autoconf
16605 
16606   # Setup username (for use in adhoc version strings etc)
16607   # Outer [ ] to quote m4.
16608    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16609 
16610 
16611 
16612 # Check if it's a pure open build or if custom sources are to be used.
16613 
16614   # Check whether --enable-openjdk-only was given.
16615 if test "${enable_openjdk_only+set}" = set; then :
16616   enableval=$enable_openjdk_only;
16617 else
16618   enable_openjdk_only="no"
16619 fi
16620 
16621 
16622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16623 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16625 $as_echo "$enable_openjdk_only" >&6; }
16626   if test "x$enable_openjdk_only" = "xyes"; then
16627     SUPPRESS_CUSTOM_EXTENSIONS="true"
16628   elif test "x$enable_openjdk_only" = "xno"; then
16629     SUPPRESS_CUSTOM_EXTENSIONS="false"
16630   else
16631     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16632   fi
16633 
16634   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16635   # the IncludeCustomExtension macro.
16636 
16637 
16638 # Check whether --with-custom-make-dir was given.
16639 if test "${with_custom_make_dir+set}" = set; then :
16640   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
16641 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16642 fi
16643 
16644 
16645 
16646 
16647 # These are needed to be able to create a configuration name (and thus the output directory)
16648 
16649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16650 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16651 
16652 # Check whether --with-jdk-variant was given.
16653 if test "${with_jdk_variant+set}" = set; then :
16654   withval=$with_jdk_variant;
16655 fi
16656 
16657 
16658   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16659     JDK_VARIANT="normal"
16660   else
16661     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16662   fi
16663 
16664 
16665 
16666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16667 $as_echo "$JDK_VARIANT" >&6; }
16668 
16669 
16670   DEBUG_LEVEL="release"
16671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16672 $as_echo_n "checking which debug level to use... " >&6; }
16673   # Check whether --enable-debug was given.
16674 if test "${enable_debug+set}" = set; then :
16675   enableval=$enable_debug;
16676         ENABLE_DEBUG="${enableval}"
16677         DEBUG_LEVEL="fastdebug"
16678 
16679 else
16680   ENABLE_DEBUG="no"
16681 fi
16682 
16683 
16684 
16685 # Check whether --with-debug-level was given.
16686 if test "${with_debug_level+set}" = set; then :
16687   withval=$with_debug_level;
16688         DEBUG_LEVEL="${withval}"
16689         if test "x$ENABLE_DEBUG" = xyes; then
16690           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16691         fi
16692 
16693 fi
16694 
16695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16696 $as_echo "$DEBUG_LEVEL" >&6; }
16697 
16698   if test "x$DEBUG_LEVEL" != xrelease && \
16699       test "x$DEBUG_LEVEL" != xoptimized && \
16700       test "x$DEBUG_LEVEL" != xfastdebug && \
16701       test "x$DEBUG_LEVEL" != xslowdebug; then
16702     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16703   fi
16704 
16705   # Translate DEBUG_LEVEL to debug level used by Hotspot
16706   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16707   if test "x$DEBUG_LEVEL" = xrelease; then
16708     HOTSPOT_DEBUG_LEVEL="product"
16709   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16710     HOTSPOT_DEBUG_LEVEL="debug"
16711   fi
16712 
16713   if test "x$DEBUG_LEVEL" = xoptimized; then
16714     # The debug level 'optimized' is a little special because it is currently only
16715     # applicable to the HotSpot build where it means to build a completely
16716     # optimized version of the VM without any debugging code (like for the
16717     # 'release' debug level which is called 'product' in the HotSpot build) but
16718     # with the exception that it can contain additional code which is otherwise
16719     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16720     # test new and/or experimental features which are not intended for customer
16721     # shipment. Because these new features need to be tested and benchmarked in
16722     # real world scenarios, we want to build the containing JDK at the 'release'
16723     # debug level.
16724     DEBUG_LEVEL="release"
16725   fi
16726 
16727 
16728 
16729 
16730 
16731 
16732 # Check whether --with-jvm-variants was given.
16733 if test "${with_jvm_variants+set}" = set; then :
16734   withval=$with_jvm_variants;
16735 fi
16736 
16737 
16738 
16739 
16740 # Check whether --with-cpu-port was given.
16741 if test "${with_cpu_port+set}" = set; then :
16742   withval=$with_cpu_port;
16743 fi
16744 
16745 
16746   if test "x$with_cpu_port" != x; then
16747     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
16748       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
16749     fi
16750     if test "x$with_cpu_port" != xarm64 && \
16751         test "x$with_cpu_port" != xaarch64; then
16752       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
16753     fi
16754     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
16755   fi
16756 
16757 
16758   if test "x$with_jvm_variants" = x; then
16759     with_jvm_variants="server"
16760   fi
16761   JVM_VARIANTS_OPT="$with_jvm_variants"
16762 
16763   # Has the user listed more than one variant?
16764   # Additional [] needed to keep m4 from mangling shell constructs.
16765   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16766     BUILDING_MULTIPLE_JVM_VARIANTS=true
16767   else
16768     BUILDING_MULTIPLE_JVM_VARIANTS=false
16769   fi
16770   # Replace the commas with AND for use in the build directory name.
16771   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16772 
16773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16774 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16775   # JVM_VARIANTS is a space-separated list.
16776   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16777   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16779 $as_echo "$JVM_VARIANTS" >&6; }
16780 
16781   # Check that the selected variants are valid
16782 
16783   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16784   # Notice that the original variant failes on SLES 10 and 11
16785   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16786   STACK=${JVM_VARIANTS// /$'\n'}
16787   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16788   if test "x$INVALID_VARIANTS" != x; then
16789     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16790 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16791     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16792   fi
16793 
16794   # All "special" variants share the same output directory ("server")
16795   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16796   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16797   STACK=${JVM_VARIANTS// /$'\n'}
16798   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16799   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16800     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16801   fi
16802 
16803   # The "main" variant is the one used by other libs to link against during the
16804   # build.
16805   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
16806     MAIN_VARIANT_PRIO_ORDER="server client minimal"
16807     for variant in $MAIN_VARIANT_PRIO_ORDER; do
16808       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
16809         JVM_VARIANT_MAIN="$variant"
16810         break
16811       fi
16812     done
16813   else
16814     JVM_VARIANT_MAIN="$JVM_VARIANTS"
16815   fi
16816 
16817 
16818 
16819 
16820 
16821   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16822     # zero behaves as a platform and rewrites these values. This is really weird. :(
16823     # We are guaranteed that we do not build any other variants when building zero.
16824     HOTSPOT_TARGET_CPU=zero
16825     HOTSPOT_TARGET_CPU_ARCH=zero
16826   fi
16827 
16828 
16829 # With basic setup done, call the custom early hook.
16830 
16831 
16832 # Check if we have devkits, extra paths or sysroot set.
16833 
16834 
16835 # Check whether --with-devkit was given.
16836 if test "${with_devkit+set}" = set; then :
16837   withval=$with_devkit;
16838 
16839   # Only process if variable expands to non-empty
16840 
16841   if test "x$with_devkit" != x; then
16842     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16843 
16844   # Input might be given as Windows format, start by converting to
16845   # unix format.
16846   path="$with_devkit"
16847   new_path=`$CYGPATH -u "$path"`
16848 
16849   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16850   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16851   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16852   # "foo.exe" is OK but "foo" is an error.
16853   #
16854   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16855   # It is also a way to make sure we got the proper file name for the real test later on.
16856   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16857   if test "x$test_shortpath" = x; then
16858     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16859 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16860     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16861   fi
16862 
16863   # Call helper function which possibly converts this using DOS-style short mode.
16864   # If so, the updated path is stored in $new_path.
16865 
16866   input_path="$new_path"
16867   # Check if we need to convert this using DOS-style short mode. If the path
16868   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16869   # take no chances and rewrite it.
16870   # Note: m4 eats our [], so we need to use [ and ] instead.
16871   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16872   if test "x$has_forbidden_chars" != x; then
16873     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16874     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16875     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16876     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16877       # Going to short mode and back again did indeed matter. Since short mode is
16878       # case insensitive, let's make it lowercase to improve readability.
16879       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16880       # Now convert it back to Unix-style (cygpath)
16881       input_path=`$CYGPATH -u "$shortmode_path"`
16882       new_path="$input_path"
16883     fi
16884   fi
16885 
16886   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16887   if test "x$test_cygdrive_prefix" = x; then
16888     # As a simple fix, exclude /usr/bin since it's not a real path.
16889     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16890       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16891       # a path prefixed by /cygdrive for fixpath to work.
16892       new_path="$CYGWIN_ROOT_PATH$input_path"
16893     fi
16894   fi
16895 
16896 
16897   if test "x$path" != "x$new_path"; then
16898     with_devkit="$new_path"
16899     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16900 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16901   fi
16902 
16903     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16904 
16905   path="$with_devkit"
16906   has_colon=`$ECHO $path | $GREP ^.:`
16907   new_path="$path"
16908   if test "x$has_colon" = x; then
16909     # Not in mixed or Windows style, start by that.
16910     new_path=`cmd //c echo $path`
16911   fi
16912 
16913 
16914   input_path="$new_path"
16915   # Check if we need to convert this using DOS-style short mode. If the path
16916   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16917   # take no chances and rewrite it.
16918   # Note: m4 eats our [], so we need to use [ and ] instead.
16919   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16920   if test "x$has_forbidden_chars" != x; then
16921     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16922     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16923   fi
16924 
16925 
16926   windows_path="$new_path"
16927   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16928     unix_path=`$CYGPATH -u "$windows_path"`
16929     new_path="$unix_path"
16930   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16931     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16932     new_path="$unix_path"
16933   fi
16934 
16935   if test "x$path" != "x$new_path"; then
16936     with_devkit="$new_path"
16937     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16938 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16939   fi
16940 
16941   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16942   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16943 
16944     else
16945       # We're on a unix platform. Hooray! :)
16946       path="$with_devkit"
16947       has_space=`$ECHO "$path" | $GREP " "`
16948       if test "x$has_space" != x; then
16949         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16950 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16951         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16952       fi
16953 
16954       # Use eval to expand a potential ~
16955       eval path="$path"
16956       if test ! -f "$path" && test ! -d "$path"; then
16957         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16958       fi
16959 
16960       if test -d "$path"; then
16961         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16962       else
16963         dir="`$DIRNAME "$path"`"
16964         base="`$BASENAME "$path"`"
16965         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16966       fi
16967     fi
16968   fi
16969 
16970         DEVKIT_ROOT="$with_devkit"
16971         # Check for a meta data info file in the root of the devkit
16972         if test -f "$DEVKIT_ROOT/devkit.info"; then
16973           . $DEVKIT_ROOT/devkit.info
16974           # This potentially sets the following:
16975           # A descriptive name of the devkit
16976 
16977   if test "x$DEVKIT_NAME" = x; then
16978     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16979   fi
16980 
16981           # Corresponds to --with-extra-path
16982 
16983   if test "x$DEVKIT_EXTRA_PATH" = x; then
16984     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16985   fi
16986 
16987           # Corresponds to --with-toolchain-path
16988 
16989   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16990     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16991   fi
16992 
16993           # Corresponds to --with-sysroot
16994 
16995   if test "x$DEVKIT_SYSROOT" = x; then
16996     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16997   fi
16998 
16999 
17000           # Identifies the Visual Studio version in the devkit
17001 
17002   if test "x$DEVKIT_VS_VERSION" = x; then
17003     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17004   fi
17005 
17006           # The Visual Studio include environment variable
17007 
17008   if test "x$DEVKIT_VS_INCLUDE" = x; then
17009     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17010   fi
17011 
17012           # The Visual Studio lib environment variable
17013 
17014   if test "x$DEVKIT_VS_LIB" = x; then
17015     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17016   fi
17017 
17018           # Corresponds to --with-msvcr-dll
17019 
17020   if test "x$DEVKIT_MSVCR_DLL" = x; then
17021     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17022   fi
17023 
17024           # Corresponds to --with-msvcp-dll
17025 
17026   if test "x$DEVKIT_MSVCP_DLL" = x; then
17027     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17028   fi
17029 
17030         fi
17031 
17032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17033 $as_echo_n "checking for devkit... " >&6; }
17034         if test "x$DEVKIT_NAME" != x; then
17035           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17036 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17037         else
17038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17039 $as_echo "$DEVKIT_ROOT" >&6; }
17040         fi
17041 
17042 
17043   if test "x$DEVKIT_EXTRA_PATH" != x; then
17044     if test "x$EXTRA_PATH" = x; then
17045       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17046     else
17047       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17048     fi
17049   fi
17050 
17051 
17052         # Fallback default of just /bin if DEVKIT_PATH is not defined
17053         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17054           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17055         fi
17056 
17057   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17058     if test "x$TOOLCHAIN_PATH" = x; then
17059       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17060     else
17061       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17062     fi
17063   fi
17064 
17065 
17066         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17067         # places for backwards compatiblity.
17068         if test "x$DEVKIT_SYSROOT" != x; then
17069           SYSROOT="$DEVKIT_SYSROOT"
17070         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17071           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17072         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17073           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17074         fi
17075 
17076 
17077 fi
17078 
17079 
17080   # You can force the sysroot if the sysroot encoded into the compiler tools
17081   # is not correct.
17082 
17083 # Check whether --with-sys-root was given.
17084 if test "${with_sys_root+set}" = set; then :
17085   withval=$with_sys_root; SYSROOT=$with_sys_root
17086 
17087 fi
17088 
17089 
17090 
17091 # Check whether --with-sysroot was given.
17092 if test "${with_sysroot+set}" = set; then :
17093   withval=$with_sysroot; SYSROOT=$with_sysroot
17094 
17095 fi
17096 
17097 
17098 
17099 # Check whether --with-tools-dir was given.
17100 if test "${with_tools_dir+set}" = set; then :
17101   withval=$with_tools_dir;
17102   if test "x$with_tools_dir" != x; then
17103     if test "x$TOOLCHAIN_PATH" = x; then
17104       TOOLCHAIN_PATH="$with_tools_dir"
17105     else
17106       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17107     fi
17108   fi
17109 
17110 
17111 fi
17112 
17113 
17114 
17115 # Check whether --with-toolchain-path was given.
17116 if test "${with_toolchain_path+set}" = set; then :
17117   withval=$with_toolchain_path;
17118   if test "x$with_toolchain_path" != x; then
17119     if test "x$TOOLCHAIN_PATH" = x; then
17120       TOOLCHAIN_PATH="$with_toolchain_path"
17121     else
17122       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17123     fi
17124   fi
17125 
17126 
17127 fi
17128 
17129 
17130 
17131 # Check whether --with-extra-path was given.
17132 if test "${with_extra_path+set}" = set; then :
17133   withval=$with_extra_path;
17134   if test "x$with_extra_path" != x; then
17135     if test "x$EXTRA_PATH" = x; then
17136       EXTRA_PATH="$with_extra_path"
17137     else
17138       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17139     fi
17140   fi
17141 
17142 
17143 fi
17144 
17145 
17146   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17147     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17148     # If not, detect if Xcode is installed by running xcodebuild -version
17149     # if no Xcode installed, xcodebuild exits with 1
17150     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17151     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17152       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17153       # fall back on the stub binary in /usr/bin/xcodebuild
17154       # Extract the first word of "xcodebuild", so it can be a program name with args.
17155 set dummy xcodebuild; ac_word=$2
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17157 $as_echo_n "checking for $ac_word... " >&6; }
17158 if ${ac_cv_path_XCODEBUILD+:} false; then :
17159   $as_echo_n "(cached) " >&6
17160 else
17161   case $XCODEBUILD in
17162   [\\/]* | ?:[\\/]*)
17163   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17164   ;;
17165   *)
17166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $TOOLCHAIN_PATH
17168 do
17169   IFS=$as_save_IFS
17170   test -z "$as_dir" && as_dir=.
17171     for ac_exec_ext in '' $ac_executable_extensions; do
17172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17173     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17175     break 2
17176   fi
17177 done
17178   done
17179 IFS=$as_save_IFS
17180 
17181   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17182   ;;
17183 esac
17184 fi
17185 XCODEBUILD=$ac_cv_path_XCODEBUILD
17186 if test -n "$XCODEBUILD"; then
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17188 $as_echo "$XCODEBUILD" >&6; }
17189 else
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192 fi
17193 
17194 
17195     else
17196       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17197       # when only the command line tools are installed there are no SDKs, so headers
17198       # are copied into the system frameworks
17199       XCODEBUILD=
17200 
17201     fi
17202 
17203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17204 $as_echo_n "checking for sdk name... " >&6; }
17205 
17206 # Check whether --with-sdk-name was given.
17207 if test "${with_sdk_name+set}" = set; then :
17208   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17209 
17210 fi
17211 
17212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17213 $as_echo "$SDKNAME" >&6; }
17214 
17215     # if toolchain path is specified then don't rely on system headers, they may not compile
17216     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17217     test -z "$TOOLCHAIN_PATH" && \
17218       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17219 
17220     if test -z "$SYSROOT"; then
17221       if test -n "$XCODEBUILD"; then
17222         # if we don't have system headers, use default SDK name (last resort)
17223         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17224           SDKNAME=${SDKNAME:-macosx}
17225         fi
17226 
17227         if test -n "$SDKNAME"; then
17228           # Call xcodebuild to determine SYSROOT
17229           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17230         fi
17231       else
17232         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17233           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
17234         fi
17235       fi
17236     else
17237       # warn user if --with-sdk-name was also set
17238       if test -n "$with_sdk_name"; then
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17240 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17241       fi
17242     fi
17243 
17244     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17245       # If no system framework headers, then SYSROOT must be set, or we won't build
17246       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
17247     fi
17248 
17249     # Perform a basic sanity test
17250     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17251       if test -z "$SYSROOT"; then
17252         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
17253       else
17254         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17255       fi
17256     fi
17257 
17258     # set SDKROOT too, Xcode tools will pick it up
17259     SDKROOT="$SYSROOT"
17260 
17261   fi
17262 
17263   # Prepend the extra path to the global path
17264 
17265   if test "x$EXTRA_PATH" != x; then
17266     if test "x$PATH" = x; then
17267       PATH="$EXTRA_PATH"
17268     else
17269       PATH="$EXTRA_PATH:$PATH"
17270     fi
17271   fi
17272 
17273 
17274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17275 $as_echo_n "checking for sysroot... " >&6; }
17276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17277 $as_echo "$SYSROOT" >&6; }
17278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17279 $as_echo_n "checking for toolchain path... " >&6; }
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17281 $as_echo "$TOOLCHAIN_PATH" >&6; }
17282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17283 $as_echo_n "checking for extra path... " >&6; }
17284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17285 $as_echo "$EXTRA_PATH" >&6; }
17286 
17287 
17288 # To properly create a configuration name, we need to have the OpenJDK target
17289 # and options (variants and debug level) parsed.
17290 
17291 
17292 
17293 # Check whether --with-conf-name was given.
17294 if test "${with_conf_name+set}" = set; then :
17295   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17296 fi
17297 
17298 
17299   # Test from where we are running configure, in or outside of src root.
17300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17301 $as_echo_n "checking where to store configuration... " >&6; }
17302   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17303       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17304       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17305     # We are running configure from the src root.
17306     # Create a default ./build/target-variant-debuglevel output root.
17307     if test "x${CONF_NAME}" = x; then
17308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17309 $as_echo "in default location" >&6; }
17310       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17311     else
17312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17313 $as_echo "in build directory with custom name" >&6; }
17314     fi
17315     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17316     $MKDIR -p "$OUTPUT_ROOT"
17317     if test ! -d "$OUTPUT_ROOT"; then
17318       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17319     fi
17320   else
17321     # We are running configure from outside of the src dir.
17322     # Then use the current directory as output dir!
17323     # If configuration is situated in normal build directory, just use the build
17324     # directory name as configuration name, otherwise use the complete path.
17325     if test "x${CONF_NAME}" = x; then
17326       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17327     fi
17328     OUTPUT_ROOT="$CURDIR"
17329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17330 $as_echo "in current directory" >&6; }
17331 
17332     # WARNING: This might be a bad thing to do. You need to be sure you want to
17333     # have a configuration in this directory. Do some sanity checks!
17334 
17335     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17336       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17337       # other files
17338       files_present=`$LS $OUTPUT_ROOT`
17339       # Configure has already touched config.log and confdefs.h in the current dir when this check
17340       # is performed.
17341       filtered_files=`$ECHO "$files_present" \
17342           | $SED -e 's/config.log//g' \
17343               -e 's/configure.log//g' \
17344               -e 's/confdefs.h//g' \
17345               -e 's/ //g' \
17346           | $TR -d '\n'`
17347       if test "x$filtered_files" != x; then
17348         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17349 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17350         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17351 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17352         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17353 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17354         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17355 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17356         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17357 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17358         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17359 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17360         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17361 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17362         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17363       fi
17364     fi
17365   fi
17366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17367 $as_echo_n "checking what configuration name to use... " >&6; }
17368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17369 $as_echo "$CONF_NAME" >&6; }
17370 
17371 
17372   # Only process if variable expands to non-empty
17373 
17374   if test "x$OUTPUT_ROOT" != x; then
17375     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17376 
17377   # Input might be given as Windows format, start by converting to
17378   # unix format.
17379   path="$OUTPUT_ROOT"
17380   new_path=`$CYGPATH -u "$path"`
17381 
17382   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17383   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17384   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17385   # "foo.exe" is OK but "foo" is an error.
17386   #
17387   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17388   # It is also a way to make sure we got the proper file name for the real test later on.
17389   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17390   if test "x$test_shortpath" = x; then
17391     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17392 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17393     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17394   fi
17395 
17396   # Call helper function which possibly converts this using DOS-style short mode.
17397   # If so, the updated path is stored in $new_path.
17398 
17399   input_path="$new_path"
17400   # Check if we need to convert this using DOS-style short mode. If the path
17401   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17402   # take no chances and rewrite it.
17403   # Note: m4 eats our [], so we need to use [ and ] instead.
17404   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17405   if test "x$has_forbidden_chars" != x; then
17406     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17407     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17408     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17409     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17410       # Going to short mode and back again did indeed matter. Since short mode is
17411       # case insensitive, let's make it lowercase to improve readability.
17412       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17413       # Now convert it back to Unix-style (cygpath)
17414       input_path=`$CYGPATH -u "$shortmode_path"`
17415       new_path="$input_path"
17416     fi
17417   fi
17418 
17419   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17420   if test "x$test_cygdrive_prefix" = x; then
17421     # As a simple fix, exclude /usr/bin since it's not a real path.
17422     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17423       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17424       # a path prefixed by /cygdrive for fixpath to work.
17425       new_path="$CYGWIN_ROOT_PATH$input_path"
17426     fi
17427   fi
17428 
17429 
17430   if test "x$path" != "x$new_path"; then
17431     OUTPUT_ROOT="$new_path"
17432     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17433 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17434   fi
17435 
17436     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17437 
17438   path="$OUTPUT_ROOT"
17439   has_colon=`$ECHO $path | $GREP ^.:`
17440   new_path="$path"
17441   if test "x$has_colon" = x; then
17442     # Not in mixed or Windows style, start by that.
17443     new_path=`cmd //c echo $path`
17444   fi
17445 
17446 
17447   input_path="$new_path"
17448   # Check if we need to convert this using DOS-style short mode. If the path
17449   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17450   # take no chances and rewrite it.
17451   # Note: m4 eats our [], so we need to use [ and ] instead.
17452   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17453   if test "x$has_forbidden_chars" != x; then
17454     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17455     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17456   fi
17457 
17458 
17459   windows_path="$new_path"
17460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17461     unix_path=`$CYGPATH -u "$windows_path"`
17462     new_path="$unix_path"
17463   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17464     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17465     new_path="$unix_path"
17466   fi
17467 
17468   if test "x$path" != "x$new_path"; then
17469     OUTPUT_ROOT="$new_path"
17470     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17471 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17472   fi
17473 
17474   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17475   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17476 
17477     else
17478       # We're on a unix platform. Hooray! :)
17479       path="$OUTPUT_ROOT"
17480       has_space=`$ECHO "$path" | $GREP " "`
17481       if test "x$has_space" != x; then
17482         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17483 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17484         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17485       fi
17486 
17487       # Use eval to expand a potential ~
17488       eval path="$path"
17489       if test ! -f "$path" && test ! -d "$path"; then
17490         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17491       fi
17492 
17493       if test -d "$path"; then
17494         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17495       else
17496         dir="`$DIRNAME "$path"`"
17497         base="`$BASENAME "$path"`"
17498         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17499       fi
17500     fi
17501   fi
17502 
17503 
17504   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17505   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17506 
17507   SPEC="$OUTPUT_ROOT/spec.gmk"
17508 
17509 
17510 
17511 
17512 
17513   # The spec.gmk file contains all variables for the make system.
17514   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17515 
17516   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17517   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17518 
17519   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17520   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17521 
17522   # The compare.sh is used to compare the build output to other builds.
17523   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17524 
17525   # The generated Makefile knows where the spec.gmk is and where the source is.
17526   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17527   # which will look for generated configurations
17528   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17529 
17530 
17531 
17532 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17533 
17534   for ac_prog in apt-get yum brew port pkgutil pkgadd
17535 do
17536   # Extract the first word of "$ac_prog", so it can be a program name with args.
17537 set dummy $ac_prog; ac_word=$2
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17539 $as_echo_n "checking for $ac_word... " >&6; }
17540 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17541   $as_echo_n "(cached) " >&6
17542 else
17543   if test -n "$PKGHANDLER"; then
17544   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17545 else
17546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17547 for as_dir in $PATH
17548 do
17549   IFS=$as_save_IFS
17550   test -z "$as_dir" && as_dir=.
17551     for ac_exec_ext in '' $ac_executable_extensions; do
17552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17553     ac_cv_prog_PKGHANDLER="$ac_prog"
17554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17555     break 2
17556   fi
17557 done
17558   done
17559 IFS=$as_save_IFS
17560 
17561 fi
17562 fi
17563 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17564 if test -n "$PKGHANDLER"; then
17565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17566 $as_echo "$PKGHANDLER" >&6; }
17567 else
17568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17569 $as_echo "no" >&6; }
17570 fi
17571 
17572 
17573   test -n "$PKGHANDLER" && break
17574 done
17575 
17576 
17577 
17578 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17579 
17580 
17581 
17582   # Publish this variable in the help.
17583 
17584 
17585   if [ -z "${MAKE+x}" ]; then
17586     # The variable is not set by user, try to locate tool using the code snippet
17587 
17588     # Try our hardest to locate a correct version of GNU make
17589     for ac_prog in gmake
17590 do
17591   # Extract the first word of "$ac_prog", so it can be a program name with args.
17592 set dummy $ac_prog; ac_word=$2
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17594 $as_echo_n "checking for $ac_word... " >&6; }
17595 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17596   $as_echo_n "(cached) " >&6
17597 else
17598   case $CHECK_GMAKE in
17599   [\\/]* | ?:[\\/]*)
17600   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17601   ;;
17602   *)
17603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17604 for as_dir in $PATH
17605 do
17606   IFS=$as_save_IFS
17607   test -z "$as_dir" && as_dir=.
17608     for ac_exec_ext in '' $ac_executable_extensions; do
17609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17610     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17612     break 2
17613   fi
17614 done
17615   done
17616 IFS=$as_save_IFS
17617 
17618   ;;
17619 esac
17620 fi
17621 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17622 if test -n "$CHECK_GMAKE"; then
17623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17624 $as_echo "$CHECK_GMAKE" >&6; }
17625 else
17626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17627 $as_echo "no" >&6; }
17628 fi
17629 
17630 
17631   test -n "$CHECK_GMAKE" && break
17632 done
17633 
17634 
17635   MAKE_CANDIDATE=""$CHECK_GMAKE""
17636   DESCRIPTION="gmake in PATH"
17637 
17638   # On Cygwin, we require a newer version of make than on other platforms
17639   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17640     MAKE_VERSION_EXPR="-e 4\."
17641     MAKE_REQUIRED_VERSION="4.0"
17642    else
17643     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17644     MAKE_REQUIRED_VERSION="3.81"
17645   fi
17646 
17647   if test "x$MAKE_CANDIDATE" != x; then
17648     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17649 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17650     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17651     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17652     if test "x$IS_GNU_MAKE" = x; then
17653       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17654 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17655     else
17656       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17657       if test "x$IS_MODERN_MAKE" = x; then
17658         { $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
17659 $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;}
17660       else
17661         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17662           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17663             MAKE_EXPECTED_ENV='cygwin'
17664           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17665             MAKE_EXPECTED_ENV='msys'
17666           else
17667             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17668           fi
17669           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17670           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17671         else
17672           # Not relevant for non-Windows
17673           IS_MAKE_CORRECT_ENV=true
17674         fi
17675         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17676           { $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
17677 $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;}
17678         else
17679           FOUND_MAKE=$MAKE_CANDIDATE
17680 
17681   # Only process if variable expands to non-empty
17682 
17683   if test "x$FOUND_MAKE" != x; then
17684     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17685 
17686   # First separate the path from the arguments. This will split at the first
17687   # space.
17688   complete="$FOUND_MAKE"
17689   path="${complete%% *}"
17690   tmp="$complete EOL"
17691   arguments="${tmp#* }"
17692 
17693   # Input might be given as Windows format, start by converting to
17694   # unix format.
17695   new_path=`$CYGPATH -u "$path"`
17696 
17697   # Now try to locate executable using which
17698   new_path=`$WHICH "$new_path" 2> /dev/null`
17699   # bat and cmd files are not always considered executable in cygwin causing which
17700   # to not find them
17701   if test "x$new_path" = x \
17702       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17703       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17704     new_path=`$CYGPATH -u "$path"`
17705   fi
17706   if test "x$new_path" = x; then
17707     # Oops. Which didn't find the executable.
17708     # The splitting of arguments from the executable at a space might have been incorrect,
17709     # since paths with space are more likely in Windows. Give it another try with the whole
17710     # argument.
17711     path="$complete"
17712     arguments="EOL"
17713     new_path=`$CYGPATH -u "$path"`
17714     new_path=`$WHICH "$new_path" 2> /dev/null`
17715     # bat and cmd files are not always considered executable in cygwin causing which
17716     # to not find them
17717     if test "x$new_path" = x \
17718         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17719         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17720       new_path=`$CYGPATH -u "$path"`
17721     fi
17722     if test "x$new_path" = x; then
17723       # It's still not found. Now this is an unrecoverable error.
17724       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17725 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17726       has_space=`$ECHO "$complete" | $GREP " "`
17727       if test "x$has_space" != x; then
17728         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17729 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17730       fi
17731       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17732     fi
17733   fi
17734 
17735   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17736   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17737   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17738   # "foo.exe" is OK but "foo" is an error.
17739   #
17740   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17741   # It is also a way to make sure we got the proper file name for the real test later on.
17742   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17743   if test "x$test_shortpath" = x; then
17744     # Short path failed, file does not exist as specified.
17745     # Try adding .exe or .cmd
17746     if test -f "${new_path}.exe"; then
17747       input_to_shortpath="${new_path}.exe"
17748     elif test -f "${new_path}.cmd"; then
17749       input_to_shortpath="${new_path}.cmd"
17750     else
17751       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17752 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17753       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17754 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17755       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17756     fi
17757   else
17758     input_to_shortpath="$new_path"
17759   fi
17760 
17761   # Call helper function which possibly converts this using DOS-style short mode.
17762   # If so, the updated path is stored in $new_path.
17763   new_path="$input_to_shortpath"
17764 
17765   input_path="$input_to_shortpath"
17766   # Check if we need to convert this using DOS-style short mode. If the path
17767   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17768   # take no chances and rewrite it.
17769   # Note: m4 eats our [], so we need to use [ and ] instead.
17770   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17771   if test "x$has_forbidden_chars" != x; then
17772     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17773     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17774     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17775     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17776       # Going to short mode and back again did indeed matter. Since short mode is
17777       # case insensitive, let's make it lowercase to improve readability.
17778       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17779       # Now convert it back to Unix-style (cygpath)
17780       input_path=`$CYGPATH -u "$shortmode_path"`
17781       new_path="$input_path"
17782     fi
17783   fi
17784 
17785   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17786   if test "x$test_cygdrive_prefix" = x; then
17787     # As a simple fix, exclude /usr/bin since it's not a real path.
17788     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17789       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17790       # a path prefixed by /cygdrive for fixpath to work.
17791       new_path="$CYGWIN_ROOT_PATH$input_path"
17792     fi
17793   fi
17794 
17795   # remove trailing .exe if any
17796   new_path="${new_path/%.exe/}"
17797 
17798     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17799 
17800   # First separate the path from the arguments. This will split at the first
17801   # space.
17802   complete="$FOUND_MAKE"
17803   path="${complete%% *}"
17804   tmp="$complete EOL"
17805   arguments="${tmp#* }"
17806 
17807   # Input might be given as Windows format, start by converting to
17808   # unix format.
17809   new_path="$path"
17810 
17811   windows_path="$new_path"
17812   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17813     unix_path=`$CYGPATH -u "$windows_path"`
17814     new_path="$unix_path"
17815   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17816     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17817     new_path="$unix_path"
17818   fi
17819 
17820 
17821   # Now try to locate executable using which
17822   new_path=`$WHICH "$new_path" 2> /dev/null`
17823 
17824   if test "x$new_path" = x; then
17825     # Oops. Which didn't find the executable.
17826     # The splitting of arguments from the executable at a space might have been incorrect,
17827     # since paths with space are more likely in Windows. Give it another try with the whole
17828     # argument.
17829     path="$complete"
17830     arguments="EOL"
17831     new_path="$path"
17832 
17833   windows_path="$new_path"
17834   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17835     unix_path=`$CYGPATH -u "$windows_path"`
17836     new_path="$unix_path"
17837   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17838     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17839     new_path="$unix_path"
17840   fi
17841 
17842 
17843     new_path=`$WHICH "$new_path" 2> /dev/null`
17844     # bat and cmd files are not always considered executable in MSYS causing which
17845     # to not find them
17846     if test "x$new_path" = x \
17847         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17848         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17849       new_path="$path"
17850 
17851   windows_path="$new_path"
17852   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17853     unix_path=`$CYGPATH -u "$windows_path"`
17854     new_path="$unix_path"
17855   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17856     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17857     new_path="$unix_path"
17858   fi
17859 
17860     fi
17861 
17862     if test "x$new_path" = x; then
17863       # It's still not found. Now this is an unrecoverable error.
17864       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17865 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17866       has_space=`$ECHO "$complete" | $GREP " "`
17867       if test "x$has_space" != x; then
17868         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17869 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17870       fi
17871       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17872     fi
17873   fi
17874 
17875   # Now new_path has a complete unix path to the binary
17876   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17877     # Keep paths in /bin as-is, but remove trailing .exe if any
17878     new_path="${new_path/%.exe/}"
17879     # Do not save /bin paths to all_fixpath_prefixes!
17880   else
17881     # Not in mixed or Windows style, start by that.
17882     new_path=`cmd //c echo $new_path`
17883 
17884   input_path="$new_path"
17885   # Check if we need to convert this using DOS-style short mode. If the path
17886   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17887   # take no chances and rewrite it.
17888   # Note: m4 eats our [], so we need to use [ and ] instead.
17889   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17890   if test "x$has_forbidden_chars" != x; then
17891     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17892     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17893   fi
17894 
17895     # Output is in $new_path
17896 
17897   windows_path="$new_path"
17898   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17899     unix_path=`$CYGPATH -u "$windows_path"`
17900     new_path="$unix_path"
17901   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17902     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17903     new_path="$unix_path"
17904   fi
17905 
17906     # remove trailing .exe if any
17907     new_path="${new_path/%.exe/}"
17908 
17909     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17910     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17911   fi
17912 
17913     else
17914       # We're on a unix platform. Hooray! :)
17915       # First separate the path from the arguments. This will split at the first
17916       # space.
17917       complete="$FOUND_MAKE"
17918       path="${complete%% *}"
17919       tmp="$complete EOL"
17920       arguments="${tmp#* }"
17921 
17922       # Cannot rely on the command "which" here since it doesn't always work.
17923       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17924       if test -z "$is_absolute_path"; then
17925         # Path to executable is not absolute. Find it.
17926         IFS_save="$IFS"
17927         IFS=:
17928         for p in $PATH; do
17929           if test -f "$p/$path" && test -x "$p/$path"; then
17930             new_path="$p/$path"
17931             break
17932           fi
17933         done
17934         IFS="$IFS_save"
17935       else
17936         # This is an absolute path, we can use it without further modifications.
17937         new_path="$path"
17938       fi
17939 
17940       if test "x$new_path" = x; then
17941         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17942 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17943         has_space=`$ECHO "$complete" | $GREP " "`
17944         if test "x$has_space" != x; then
17945           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17946 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17947         fi
17948         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17949       fi
17950     fi
17951 
17952     # Now join together the path and the arguments once again
17953     if test "x$arguments" != xEOL; then
17954       new_complete="$new_path ${arguments% *}"
17955     else
17956       new_complete="$new_path"
17957     fi
17958 
17959     if test "x$complete" != "x$new_complete"; then
17960       FOUND_MAKE="$new_complete"
17961       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17962 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17963     fi
17964   fi
17965 
17966         fi
17967       fi
17968     fi
17969   fi
17970 
17971 
17972     if test "x$FOUND_MAKE" = x; then
17973       for ac_prog in make
17974 do
17975   # Extract the first word of "$ac_prog", so it can be a program name with args.
17976 set dummy $ac_prog; ac_word=$2
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17978 $as_echo_n "checking for $ac_word... " >&6; }
17979 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982   case $CHECK_MAKE in
17983   [\\/]* | ?:[\\/]*)
17984   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17985   ;;
17986   *)
17987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17988 for as_dir in $PATH
17989 do
17990   IFS=$as_save_IFS
17991   test -z "$as_dir" && as_dir=.
17992     for ac_exec_ext in '' $ac_executable_extensions; do
17993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17994     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17996     break 2
17997   fi
17998 done
17999   done
18000 IFS=$as_save_IFS
18001 
18002   ;;
18003 esac
18004 fi
18005 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18006 if test -n "$CHECK_MAKE"; then
18007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18008 $as_echo "$CHECK_MAKE" >&6; }
18009 else
18010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18011 $as_echo "no" >&6; }
18012 fi
18013 
18014 
18015   test -n "$CHECK_MAKE" && break
18016 done
18017 
18018 
18019   MAKE_CANDIDATE=""$CHECK_MAKE""
18020   DESCRIPTION="make in PATH"
18021 
18022   # On Cygwin, we require a newer version of make than on other platforms
18023   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18024     MAKE_VERSION_EXPR="-e 4\."
18025     MAKE_REQUIRED_VERSION="4.0"
18026    else
18027     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18028     MAKE_REQUIRED_VERSION="3.81"
18029   fi
18030 
18031   if test "x$MAKE_CANDIDATE" != x; then
18032     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18033 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18034     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18035     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18036     if test "x$IS_GNU_MAKE" = x; then
18037       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18038 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18039     else
18040       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18041       if test "x$IS_MODERN_MAKE" = x; then
18042         { $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
18043 $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;}
18044       else
18045         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18046           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18047             MAKE_EXPECTED_ENV='cygwin'
18048           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18049             MAKE_EXPECTED_ENV='msys'
18050           else
18051             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18052           fi
18053           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18054           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18055         else
18056           # Not relevant for non-Windows
18057           IS_MAKE_CORRECT_ENV=true
18058         fi
18059         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18060           { $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
18061 $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;}
18062         else
18063           FOUND_MAKE=$MAKE_CANDIDATE
18064 
18065   # Only process if variable expands to non-empty
18066 
18067   if test "x$FOUND_MAKE" != x; then
18068     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18069 
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   # Input might be given as Windows format, start by converting to
18078   # unix format.
18079   new_path=`$CYGPATH -u "$path"`
18080 
18081   # Now try to locate executable using which
18082   new_path=`$WHICH "$new_path" 2> /dev/null`
18083   # bat and cmd files are not always considered executable in cygwin causing which
18084   # to not find them
18085   if test "x$new_path" = x \
18086       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18087       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18088     new_path=`$CYGPATH -u "$path"`
18089   fi
18090   if test "x$new_path" = x; then
18091     # Oops. Which didn't find the executable.
18092     # The splitting of arguments from the executable at a space might have been incorrect,
18093     # since paths with space are more likely in Windows. Give it another try with the whole
18094     # argument.
18095     path="$complete"
18096     arguments="EOL"
18097     new_path=`$CYGPATH -u "$path"`
18098     new_path=`$WHICH "$new_path" 2> /dev/null`
18099     # bat and cmd files are not always considered executable in cygwin causing which
18100     # to not find them
18101     if test "x$new_path" = x \
18102         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18103         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18104       new_path=`$CYGPATH -u "$path"`
18105     fi
18106     if test "x$new_path" = x; then
18107       # It's still not found. Now this is an unrecoverable error.
18108       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18109 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18110       has_space=`$ECHO "$complete" | $GREP " "`
18111       if test "x$has_space" != x; then
18112         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18113 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18114       fi
18115       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18116     fi
18117   fi
18118 
18119   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18120   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18121   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18122   # "foo.exe" is OK but "foo" is an error.
18123   #
18124   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18125   # It is also a way to make sure we got the proper file name for the real test later on.
18126   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18127   if test "x$test_shortpath" = x; then
18128     # Short path failed, file does not exist as specified.
18129     # Try adding .exe or .cmd
18130     if test -f "${new_path}.exe"; then
18131       input_to_shortpath="${new_path}.exe"
18132     elif test -f "${new_path}.cmd"; then
18133       input_to_shortpath="${new_path}.cmd"
18134     else
18135       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18136 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18137       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18138 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18139       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18140     fi
18141   else
18142     input_to_shortpath="$new_path"
18143   fi
18144 
18145   # Call helper function which possibly converts this using DOS-style short mode.
18146   # If so, the updated path is stored in $new_path.
18147   new_path="$input_to_shortpath"
18148 
18149   input_path="$input_to_shortpath"
18150   # Check if we need to convert this using DOS-style short mode. If the path
18151   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18152   # take no chances and rewrite it.
18153   # Note: m4 eats our [], so we need to use [ and ] instead.
18154   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18155   if test "x$has_forbidden_chars" != x; then
18156     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18157     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18158     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18159     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18160       # Going to short mode and back again did indeed matter. Since short mode is
18161       # case insensitive, let's make it lowercase to improve readability.
18162       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18163       # Now convert it back to Unix-style (cygpath)
18164       input_path=`$CYGPATH -u "$shortmode_path"`
18165       new_path="$input_path"
18166     fi
18167   fi
18168 
18169   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18170   if test "x$test_cygdrive_prefix" = x; then
18171     # As a simple fix, exclude /usr/bin since it's not a real path.
18172     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18173       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18174       # a path prefixed by /cygdrive for fixpath to work.
18175       new_path="$CYGWIN_ROOT_PATH$input_path"
18176     fi
18177   fi
18178 
18179   # remove trailing .exe if any
18180   new_path="${new_path/%.exe/}"
18181 
18182     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18183 
18184   # First separate the path from the arguments. This will split at the first
18185   # space.
18186   complete="$FOUND_MAKE"
18187   path="${complete%% *}"
18188   tmp="$complete EOL"
18189   arguments="${tmp#* }"
18190 
18191   # Input might be given as Windows format, start by converting to
18192   # unix format.
18193   new_path="$path"
18194 
18195   windows_path="$new_path"
18196   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18197     unix_path=`$CYGPATH -u "$windows_path"`
18198     new_path="$unix_path"
18199   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18200     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18201     new_path="$unix_path"
18202   fi
18203 
18204 
18205   # Now try to locate executable using which
18206   new_path=`$WHICH "$new_path" 2> /dev/null`
18207 
18208   if test "x$new_path" = x; then
18209     # Oops. Which didn't find the executable.
18210     # The splitting of arguments from the executable at a space might have been incorrect,
18211     # since paths with space are more likely in Windows. Give it another try with the whole
18212     # argument.
18213     path="$complete"
18214     arguments="EOL"
18215     new_path="$path"
18216 
18217   windows_path="$new_path"
18218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18219     unix_path=`$CYGPATH -u "$windows_path"`
18220     new_path="$unix_path"
18221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18222     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18223     new_path="$unix_path"
18224   fi
18225 
18226 
18227     new_path=`$WHICH "$new_path" 2> /dev/null`
18228     # bat and cmd files are not always considered executable in MSYS causing which
18229     # to not find them
18230     if test "x$new_path" = x \
18231         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18232         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18233       new_path="$path"
18234 
18235   windows_path="$new_path"
18236   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18237     unix_path=`$CYGPATH -u "$windows_path"`
18238     new_path="$unix_path"
18239   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18240     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18241     new_path="$unix_path"
18242   fi
18243 
18244     fi
18245 
18246     if test "x$new_path" = x; then
18247       # It's still not found. Now this is an unrecoverable error.
18248       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18249 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18250       has_space=`$ECHO "$complete" | $GREP " "`
18251       if test "x$has_space" != x; then
18252         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18253 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18254       fi
18255       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18256     fi
18257   fi
18258 
18259   # Now new_path has a complete unix path to the binary
18260   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18261     # Keep paths in /bin as-is, but remove trailing .exe if any
18262     new_path="${new_path/%.exe/}"
18263     # Do not save /bin paths to all_fixpath_prefixes!
18264   else
18265     # Not in mixed or Windows style, start by that.
18266     new_path=`cmd //c echo $new_path`
18267 
18268   input_path="$new_path"
18269   # Check if we need to convert this using DOS-style short mode. If the path
18270   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18271   # take no chances and rewrite it.
18272   # Note: m4 eats our [], so we need to use [ and ] instead.
18273   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18274   if test "x$has_forbidden_chars" != x; then
18275     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18276     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18277   fi
18278 
18279     # Output is in $new_path
18280 
18281   windows_path="$new_path"
18282   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18283     unix_path=`$CYGPATH -u "$windows_path"`
18284     new_path="$unix_path"
18285   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18286     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18287     new_path="$unix_path"
18288   fi
18289 
18290     # remove trailing .exe if any
18291     new_path="${new_path/%.exe/}"
18292 
18293     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18294     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18295   fi
18296 
18297     else
18298       # We're on a unix platform. Hooray! :)
18299       # First separate the path from the arguments. This will split at the first
18300       # space.
18301       complete="$FOUND_MAKE"
18302       path="${complete%% *}"
18303       tmp="$complete EOL"
18304       arguments="${tmp#* }"
18305 
18306       # Cannot rely on the command "which" here since it doesn't always work.
18307       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18308       if test -z "$is_absolute_path"; then
18309         # Path to executable is not absolute. Find it.
18310         IFS_save="$IFS"
18311         IFS=:
18312         for p in $PATH; do
18313           if test -f "$p/$path" && test -x "$p/$path"; then
18314             new_path="$p/$path"
18315             break
18316           fi
18317         done
18318         IFS="$IFS_save"
18319       else
18320         # This is an absolute path, we can use it without further modifications.
18321         new_path="$path"
18322       fi
18323 
18324       if test "x$new_path" = x; then
18325         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18326 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18327         has_space=`$ECHO "$complete" | $GREP " "`
18328         if test "x$has_space" != x; then
18329           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18330 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18331         fi
18332         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18333       fi
18334     fi
18335 
18336     # Now join together the path and the arguments once again
18337     if test "x$arguments" != xEOL; then
18338       new_complete="$new_path ${arguments% *}"
18339     else
18340       new_complete="$new_path"
18341     fi
18342 
18343     if test "x$complete" != "x$new_complete"; then
18344       FOUND_MAKE="$new_complete"
18345       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18346 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18347     fi
18348   fi
18349 
18350         fi
18351       fi
18352     fi
18353   fi
18354 
18355     fi
18356 
18357     if test "x$FOUND_MAKE" = x; then
18358       if test "x$TOOLCHAIN_PATH" != x; then
18359         # We have a toolchain path, check that as well before giving up.
18360         OLD_PATH=$PATH
18361         PATH=$TOOLCHAIN_PATH:$PATH
18362         for ac_prog in gmake
18363 do
18364   # Extract the first word of "$ac_prog", so it can be a program name with args.
18365 set dummy $ac_prog; ac_word=$2
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18367 $as_echo_n "checking for $ac_word... " >&6; }
18368 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18369   $as_echo_n "(cached) " >&6
18370 else
18371   case $CHECK_TOOLSDIR_GMAKE in
18372   [\\/]* | ?:[\\/]*)
18373   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18374   ;;
18375   *)
18376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18377 for as_dir in $PATH
18378 do
18379   IFS=$as_save_IFS
18380   test -z "$as_dir" && as_dir=.
18381     for ac_exec_ext in '' $ac_executable_extensions; do
18382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18383     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18385     break 2
18386   fi
18387 done
18388   done
18389 IFS=$as_save_IFS
18390 
18391   ;;
18392 esac
18393 fi
18394 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18395 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18397 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18398 else
18399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400 $as_echo "no" >&6; }
18401 fi
18402 
18403 
18404   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18405 done
18406 
18407 
18408   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18409   DESCRIPTION="gmake in tools-dir"
18410 
18411   # On Cygwin, we require a newer version of make than on other platforms
18412   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18413     MAKE_VERSION_EXPR="-e 4\."
18414     MAKE_REQUIRED_VERSION="4.0"
18415    else
18416     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18417     MAKE_REQUIRED_VERSION="3.81"
18418   fi
18419 
18420   if test "x$MAKE_CANDIDATE" != x; then
18421     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18422 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18423     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18424     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18425     if test "x$IS_GNU_MAKE" = x; then
18426       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18427 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18428     else
18429       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18430       if test "x$IS_MODERN_MAKE" = x; then
18431         { $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
18432 $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;}
18433       else
18434         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18435           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18436             MAKE_EXPECTED_ENV='cygwin'
18437           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18438             MAKE_EXPECTED_ENV='msys'
18439           else
18440             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18441           fi
18442           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18443           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18444         else
18445           # Not relevant for non-Windows
18446           IS_MAKE_CORRECT_ENV=true
18447         fi
18448         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18449           { $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
18450 $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;}
18451         else
18452           FOUND_MAKE=$MAKE_CANDIDATE
18453 
18454   # Only process if variable expands to non-empty
18455 
18456   if test "x$FOUND_MAKE" != x; then
18457     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18458 
18459   # First separate the path from the arguments. This will split at the first
18460   # space.
18461   complete="$FOUND_MAKE"
18462   path="${complete%% *}"
18463   tmp="$complete EOL"
18464   arguments="${tmp#* }"
18465 
18466   # Input might be given as Windows format, start by converting to
18467   # unix format.
18468   new_path=`$CYGPATH -u "$path"`
18469 
18470   # Now try to locate executable using which
18471   new_path=`$WHICH "$new_path" 2> /dev/null`
18472   # bat and cmd files are not always considered executable in cygwin causing which
18473   # to not find them
18474   if test "x$new_path" = x \
18475       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18476       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18477     new_path=`$CYGPATH -u "$path"`
18478   fi
18479   if test "x$new_path" = x; then
18480     # Oops. Which didn't find the executable.
18481     # The splitting of arguments from the executable at a space might have been incorrect,
18482     # since paths with space are more likely in Windows. Give it another try with the whole
18483     # argument.
18484     path="$complete"
18485     arguments="EOL"
18486     new_path=`$CYGPATH -u "$path"`
18487     new_path=`$WHICH "$new_path" 2> /dev/null`
18488     # bat and cmd files are not always considered executable in cygwin causing which
18489     # to not find them
18490     if test "x$new_path" = x \
18491         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18492         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18493       new_path=`$CYGPATH -u "$path"`
18494     fi
18495     if test "x$new_path" = x; then
18496       # It's still not found. Now this is an unrecoverable error.
18497       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18498 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18499       has_space=`$ECHO "$complete" | $GREP " "`
18500       if test "x$has_space" != x; then
18501         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18502 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18503       fi
18504       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18505     fi
18506   fi
18507 
18508   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18509   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18510   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18511   # "foo.exe" is OK but "foo" is an error.
18512   #
18513   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18514   # It is also a way to make sure we got the proper file name for the real test later on.
18515   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18516   if test "x$test_shortpath" = x; then
18517     # Short path failed, file does not exist as specified.
18518     # Try adding .exe or .cmd
18519     if test -f "${new_path}.exe"; then
18520       input_to_shortpath="${new_path}.exe"
18521     elif test -f "${new_path}.cmd"; then
18522       input_to_shortpath="${new_path}.cmd"
18523     else
18524       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18525 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18526       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18527 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18528       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18529     fi
18530   else
18531     input_to_shortpath="$new_path"
18532   fi
18533 
18534   # Call helper function which possibly converts this using DOS-style short mode.
18535   # If so, the updated path is stored in $new_path.
18536   new_path="$input_to_shortpath"
18537 
18538   input_path="$input_to_shortpath"
18539   # Check if we need to convert this using DOS-style short mode. If the path
18540   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18541   # take no chances and rewrite it.
18542   # Note: m4 eats our [], so we need to use [ and ] instead.
18543   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18544   if test "x$has_forbidden_chars" != x; then
18545     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18546     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18547     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18548     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18549       # Going to short mode and back again did indeed matter. Since short mode is
18550       # case insensitive, let's make it lowercase to improve readability.
18551       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18552       # Now convert it back to Unix-style (cygpath)
18553       input_path=`$CYGPATH -u "$shortmode_path"`
18554       new_path="$input_path"
18555     fi
18556   fi
18557 
18558   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18559   if test "x$test_cygdrive_prefix" = x; then
18560     # As a simple fix, exclude /usr/bin since it's not a real path.
18561     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18562       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18563       # a path prefixed by /cygdrive for fixpath to work.
18564       new_path="$CYGWIN_ROOT_PATH$input_path"
18565     fi
18566   fi
18567 
18568   # remove trailing .exe if any
18569   new_path="${new_path/%.exe/}"
18570 
18571     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18572 
18573   # First separate the path from the arguments. This will split at the first
18574   # space.
18575   complete="$FOUND_MAKE"
18576   path="${complete%% *}"
18577   tmp="$complete EOL"
18578   arguments="${tmp#* }"
18579 
18580   # Input might be given as Windows format, start by converting to
18581   # unix format.
18582   new_path="$path"
18583 
18584   windows_path="$new_path"
18585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18586     unix_path=`$CYGPATH -u "$windows_path"`
18587     new_path="$unix_path"
18588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18589     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18590     new_path="$unix_path"
18591   fi
18592 
18593 
18594   # Now try to locate executable using which
18595   new_path=`$WHICH "$new_path" 2> /dev/null`
18596 
18597   if test "x$new_path" = x; then
18598     # Oops. Which didn't find the executable.
18599     # The splitting of arguments from the executable at a space might have been incorrect,
18600     # since paths with space are more likely in Windows. Give it another try with the whole
18601     # argument.
18602     path="$complete"
18603     arguments="EOL"
18604     new_path="$path"
18605 
18606   windows_path="$new_path"
18607   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18608     unix_path=`$CYGPATH -u "$windows_path"`
18609     new_path="$unix_path"
18610   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18611     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18612     new_path="$unix_path"
18613   fi
18614 
18615 
18616     new_path=`$WHICH "$new_path" 2> /dev/null`
18617     # bat and cmd files are not always considered executable in MSYS causing which
18618     # to not find them
18619     if test "x$new_path" = x \
18620         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18621         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18622       new_path="$path"
18623 
18624   windows_path="$new_path"
18625   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18626     unix_path=`$CYGPATH -u "$windows_path"`
18627     new_path="$unix_path"
18628   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18629     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18630     new_path="$unix_path"
18631   fi
18632 
18633     fi
18634 
18635     if test "x$new_path" = x; then
18636       # It's still not found. Now this is an unrecoverable error.
18637       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18638 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18639       has_space=`$ECHO "$complete" | $GREP " "`
18640       if test "x$has_space" != x; then
18641         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18642 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18643       fi
18644       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18645     fi
18646   fi
18647 
18648   # Now new_path has a complete unix path to the binary
18649   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18650     # Keep paths in /bin as-is, but remove trailing .exe if any
18651     new_path="${new_path/%.exe/}"
18652     # Do not save /bin paths to all_fixpath_prefixes!
18653   else
18654     # Not in mixed or Windows style, start by that.
18655     new_path=`cmd //c echo $new_path`
18656 
18657   input_path="$new_path"
18658   # Check if we need to convert this using DOS-style short mode. If the path
18659   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18660   # take no chances and rewrite it.
18661   # Note: m4 eats our [], so we need to use [ and ] instead.
18662   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18663   if test "x$has_forbidden_chars" != x; then
18664     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18665     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18666   fi
18667 
18668     # Output is in $new_path
18669 
18670   windows_path="$new_path"
18671   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18672     unix_path=`$CYGPATH -u "$windows_path"`
18673     new_path="$unix_path"
18674   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18675     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18676     new_path="$unix_path"
18677   fi
18678 
18679     # remove trailing .exe if any
18680     new_path="${new_path/%.exe/}"
18681 
18682     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18683     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18684   fi
18685 
18686     else
18687       # We're on a unix platform. Hooray! :)
18688       # First separate the path from the arguments. This will split at the first
18689       # space.
18690       complete="$FOUND_MAKE"
18691       path="${complete%% *}"
18692       tmp="$complete EOL"
18693       arguments="${tmp#* }"
18694 
18695       # Cannot rely on the command "which" here since it doesn't always work.
18696       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18697       if test -z "$is_absolute_path"; then
18698         # Path to executable is not absolute. Find it.
18699         IFS_save="$IFS"
18700         IFS=:
18701         for p in $PATH; do
18702           if test -f "$p/$path" && test -x "$p/$path"; then
18703             new_path="$p/$path"
18704             break
18705           fi
18706         done
18707         IFS="$IFS_save"
18708       else
18709         # This is an absolute path, we can use it without further modifications.
18710         new_path="$path"
18711       fi
18712 
18713       if test "x$new_path" = x; then
18714         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18715 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18716         has_space=`$ECHO "$complete" | $GREP " "`
18717         if test "x$has_space" != x; then
18718           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18719 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18720         fi
18721         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18722       fi
18723     fi
18724 
18725     # Now join together the path and the arguments once again
18726     if test "x$arguments" != xEOL; then
18727       new_complete="$new_path ${arguments% *}"
18728     else
18729       new_complete="$new_path"
18730     fi
18731 
18732     if test "x$complete" != "x$new_complete"; then
18733       FOUND_MAKE="$new_complete"
18734       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18735 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18736     fi
18737   fi
18738 
18739         fi
18740       fi
18741     fi
18742   fi
18743 
18744         if test "x$FOUND_MAKE" = x; then
18745           for ac_prog in make
18746 do
18747   # Extract the first word of "$ac_prog", so it can be a program name with args.
18748 set dummy $ac_prog; ac_word=$2
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18750 $as_echo_n "checking for $ac_word... " >&6; }
18751 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18752   $as_echo_n "(cached) " >&6
18753 else
18754   case $CHECK_TOOLSDIR_MAKE in
18755   [\\/]* | ?:[\\/]*)
18756   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18757   ;;
18758   *)
18759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18760 for as_dir in $PATH
18761 do
18762   IFS=$as_save_IFS
18763   test -z "$as_dir" && as_dir=.
18764     for ac_exec_ext in '' $ac_executable_extensions; do
18765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18766     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18768     break 2
18769   fi
18770 done
18771   done
18772 IFS=$as_save_IFS
18773 
18774   ;;
18775 esac
18776 fi
18777 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18778 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18780 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18781 else
18782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18783 $as_echo "no" >&6; }
18784 fi
18785 
18786 
18787   test -n "$CHECK_TOOLSDIR_MAKE" && break
18788 done
18789 
18790 
18791   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18792   DESCRIPTION="make in tools-dir"
18793 
18794   # On Cygwin, we require a newer version of make than on other platforms
18795   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18796     MAKE_VERSION_EXPR="-e 4\."
18797     MAKE_REQUIRED_VERSION="4.0"
18798    else
18799     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18800     MAKE_REQUIRED_VERSION="3.81"
18801   fi
18802 
18803   if test "x$MAKE_CANDIDATE" != x; then
18804     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18805 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18806     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18807     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18808     if test "x$IS_GNU_MAKE" = x; then
18809       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18810 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18811     else
18812       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18813       if test "x$IS_MODERN_MAKE" = x; then
18814         { $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
18815 $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;}
18816       else
18817         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18818           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18819             MAKE_EXPECTED_ENV='cygwin'
18820           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18821             MAKE_EXPECTED_ENV='msys'
18822           else
18823             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18824           fi
18825           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18826           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18827         else
18828           # Not relevant for non-Windows
18829           IS_MAKE_CORRECT_ENV=true
18830         fi
18831         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18832           { $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
18833 $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;}
18834         else
18835           FOUND_MAKE=$MAKE_CANDIDATE
18836 
18837   # Only process if variable expands to non-empty
18838 
18839   if test "x$FOUND_MAKE" != x; then
18840     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18841 
18842   # First separate the path from the arguments. This will split at the first
18843   # space.
18844   complete="$FOUND_MAKE"
18845   path="${complete%% *}"
18846   tmp="$complete EOL"
18847   arguments="${tmp#* }"
18848 
18849   # Input might be given as Windows format, start by converting to
18850   # unix format.
18851   new_path=`$CYGPATH -u "$path"`
18852 
18853   # Now try to locate executable using which
18854   new_path=`$WHICH "$new_path" 2> /dev/null`
18855   # bat and cmd files are not always considered executable in cygwin causing which
18856   # to not find them
18857   if test "x$new_path" = x \
18858       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18859       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18860     new_path=`$CYGPATH -u "$path"`
18861   fi
18862   if test "x$new_path" = x; then
18863     # Oops. Which didn't find the executable.
18864     # The splitting of arguments from the executable at a space might have been incorrect,
18865     # since paths with space are more likely in Windows. Give it another try with the whole
18866     # argument.
18867     path="$complete"
18868     arguments="EOL"
18869     new_path=`$CYGPATH -u "$path"`
18870     new_path=`$WHICH "$new_path" 2> /dev/null`
18871     # bat and cmd files are not always considered executable in cygwin causing which
18872     # to not find them
18873     if test "x$new_path" = x \
18874         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18875         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18876       new_path=`$CYGPATH -u "$path"`
18877     fi
18878     if test "x$new_path" = x; then
18879       # It's still not found. Now this is an unrecoverable error.
18880       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18881 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18882       has_space=`$ECHO "$complete" | $GREP " "`
18883       if test "x$has_space" != x; then
18884         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18885 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18886       fi
18887       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18888     fi
18889   fi
18890 
18891   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18892   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18893   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18894   # "foo.exe" is OK but "foo" is an error.
18895   #
18896   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18897   # It is also a way to make sure we got the proper file name for the real test later on.
18898   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18899   if test "x$test_shortpath" = x; then
18900     # Short path failed, file does not exist as specified.
18901     # Try adding .exe or .cmd
18902     if test -f "${new_path}.exe"; then
18903       input_to_shortpath="${new_path}.exe"
18904     elif test -f "${new_path}.cmd"; then
18905       input_to_shortpath="${new_path}.cmd"
18906     else
18907       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18908 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18909       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18910 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18911       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18912     fi
18913   else
18914     input_to_shortpath="$new_path"
18915   fi
18916 
18917   # Call helper function which possibly converts this using DOS-style short mode.
18918   # If so, the updated path is stored in $new_path.
18919   new_path="$input_to_shortpath"
18920 
18921   input_path="$input_to_shortpath"
18922   # Check if we need to convert this using DOS-style short mode. If the path
18923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18924   # take no chances and rewrite it.
18925   # Note: m4 eats our [], so we need to use [ and ] instead.
18926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18927   if test "x$has_forbidden_chars" != x; then
18928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18929     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18930     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18931     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18932       # Going to short mode and back again did indeed matter. Since short mode is
18933       # case insensitive, let's make it lowercase to improve readability.
18934       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18935       # Now convert it back to Unix-style (cygpath)
18936       input_path=`$CYGPATH -u "$shortmode_path"`
18937       new_path="$input_path"
18938     fi
18939   fi
18940 
18941   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18942   if test "x$test_cygdrive_prefix" = x; then
18943     # As a simple fix, exclude /usr/bin since it's not a real path.
18944     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18945       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18946       # a path prefixed by /cygdrive for fixpath to work.
18947       new_path="$CYGWIN_ROOT_PATH$input_path"
18948     fi
18949   fi
18950 
18951   # remove trailing .exe if any
18952   new_path="${new_path/%.exe/}"
18953 
18954     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18955 
18956   # First separate the path from the arguments. This will split at the first
18957   # space.
18958   complete="$FOUND_MAKE"
18959   path="${complete%% *}"
18960   tmp="$complete EOL"
18961   arguments="${tmp#* }"
18962 
18963   # Input might be given as Windows format, start by converting to
18964   # unix format.
18965   new_path="$path"
18966 
18967   windows_path="$new_path"
18968   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18969     unix_path=`$CYGPATH -u "$windows_path"`
18970     new_path="$unix_path"
18971   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18972     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18973     new_path="$unix_path"
18974   fi
18975 
18976 
18977   # Now try to locate executable using which
18978   new_path=`$WHICH "$new_path" 2> /dev/null`
18979 
18980   if test "x$new_path" = x; then
18981     # Oops. Which didn't find the executable.
18982     # The splitting of arguments from the executable at a space might have been incorrect,
18983     # since paths with space are more likely in Windows. Give it another try with the whole
18984     # argument.
18985     path="$complete"
18986     arguments="EOL"
18987     new_path="$path"
18988 
18989   windows_path="$new_path"
18990   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18991     unix_path=`$CYGPATH -u "$windows_path"`
18992     new_path="$unix_path"
18993   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18994     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18995     new_path="$unix_path"
18996   fi
18997 
18998 
18999     new_path=`$WHICH "$new_path" 2> /dev/null`
19000     # bat and cmd files are not always considered executable in MSYS causing which
19001     # to not find them
19002     if test "x$new_path" = x \
19003         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19004         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19005       new_path="$path"
19006 
19007   windows_path="$new_path"
19008   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19009     unix_path=`$CYGPATH -u "$windows_path"`
19010     new_path="$unix_path"
19011   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19012     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19013     new_path="$unix_path"
19014   fi
19015 
19016     fi
19017 
19018     if test "x$new_path" = x; then
19019       # It's still not found. Now this is an unrecoverable error.
19020       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19021 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19022       has_space=`$ECHO "$complete" | $GREP " "`
19023       if test "x$has_space" != x; then
19024         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19025 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19026       fi
19027       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19028     fi
19029   fi
19030 
19031   # Now new_path has a complete unix path to the binary
19032   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19033     # Keep paths in /bin as-is, but remove trailing .exe if any
19034     new_path="${new_path/%.exe/}"
19035     # Do not save /bin paths to all_fixpath_prefixes!
19036   else
19037     # Not in mixed or Windows style, start by that.
19038     new_path=`cmd //c echo $new_path`
19039 
19040   input_path="$new_path"
19041   # Check if we need to convert this using DOS-style short mode. If the path
19042   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19043   # take no chances and rewrite it.
19044   # Note: m4 eats our [], so we need to use [ and ] instead.
19045   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19046   if test "x$has_forbidden_chars" != x; then
19047     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19048     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19049   fi
19050 
19051     # Output is in $new_path
19052 
19053   windows_path="$new_path"
19054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19055     unix_path=`$CYGPATH -u "$windows_path"`
19056     new_path="$unix_path"
19057   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19058     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19059     new_path="$unix_path"
19060   fi
19061 
19062     # remove trailing .exe if any
19063     new_path="${new_path/%.exe/}"
19064 
19065     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19066     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19067   fi
19068 
19069     else
19070       # We're on a unix platform. Hooray! :)
19071       # First separate the path from the arguments. This will split at the first
19072       # space.
19073       complete="$FOUND_MAKE"
19074       path="${complete%% *}"
19075       tmp="$complete EOL"
19076       arguments="${tmp#* }"
19077 
19078       # Cannot rely on the command "which" here since it doesn't always work.
19079       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19080       if test -z "$is_absolute_path"; then
19081         # Path to executable is not absolute. Find it.
19082         IFS_save="$IFS"
19083         IFS=:
19084         for p in $PATH; do
19085           if test -f "$p/$path" && test -x "$p/$path"; then
19086             new_path="$p/$path"
19087             break
19088           fi
19089         done
19090         IFS="$IFS_save"
19091       else
19092         # This is an absolute path, we can use it without further modifications.
19093         new_path="$path"
19094       fi
19095 
19096       if test "x$new_path" = x; then
19097         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19098 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19099         has_space=`$ECHO "$complete" | $GREP " "`
19100         if test "x$has_space" != x; then
19101           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19102 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19103         fi
19104         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19105       fi
19106     fi
19107 
19108     # Now join together the path and the arguments once again
19109     if test "x$arguments" != xEOL; then
19110       new_complete="$new_path ${arguments% *}"
19111     else
19112       new_complete="$new_path"
19113     fi
19114 
19115     if test "x$complete" != "x$new_complete"; then
19116       FOUND_MAKE="$new_complete"
19117       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19118 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19119     fi
19120   fi
19121 
19122         fi
19123       fi
19124     fi
19125   fi
19126 
19127         fi
19128         PATH=$OLD_PATH
19129       fi
19130     fi
19131 
19132     if test "x$FOUND_MAKE" = x; then
19133       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
19134     fi
19135 
19136   else
19137     # The variable is set, but is it from the command line or the environment?
19138 
19139     # Try to remove the string !MAKE! from our list.
19140     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19141     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19142       # If it failed, the variable was not from the command line. Ignore it,
19143       # but warn the user (except for BASH, which is always set by the calling BASH).
19144       if test "xMAKE" != xBASH; then
19145         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19146 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19147       fi
19148       # Try to locate tool using the code snippet
19149 
19150     # Try our hardest to locate a correct version of GNU make
19151     for ac_prog in gmake
19152 do
19153   # Extract the first word of "$ac_prog", so it can be a program name with args.
19154 set dummy $ac_prog; ac_word=$2
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19156 $as_echo_n "checking for $ac_word... " >&6; }
19157 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19158   $as_echo_n "(cached) " >&6
19159 else
19160   case $CHECK_GMAKE in
19161   [\\/]* | ?:[\\/]*)
19162   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19163   ;;
19164   *)
19165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19166 for as_dir in $PATH
19167 do
19168   IFS=$as_save_IFS
19169   test -z "$as_dir" && as_dir=.
19170     for ac_exec_ext in '' $ac_executable_extensions; do
19171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19172     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19174     break 2
19175   fi
19176 done
19177   done
19178 IFS=$as_save_IFS
19179 
19180   ;;
19181 esac
19182 fi
19183 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19184 if test -n "$CHECK_GMAKE"; then
19185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19186 $as_echo "$CHECK_GMAKE" >&6; }
19187 else
19188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19189 $as_echo "no" >&6; }
19190 fi
19191 
19192 
19193   test -n "$CHECK_GMAKE" && break
19194 done
19195 
19196 
19197   MAKE_CANDIDATE=""$CHECK_GMAKE""
19198   DESCRIPTION="gmake in PATH"
19199 
19200   # On Cygwin, we require a newer version of make than on other platforms
19201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19202     MAKE_VERSION_EXPR="-e 4\."
19203     MAKE_REQUIRED_VERSION="4.0"
19204    else
19205     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19206     MAKE_REQUIRED_VERSION="3.81"
19207   fi
19208 
19209   if test "x$MAKE_CANDIDATE" != x; then
19210     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19211 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19212     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19213     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19214     if test "x$IS_GNU_MAKE" = x; then
19215       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19216 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19217     else
19218       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19219       if test "x$IS_MODERN_MAKE" = x; then
19220         { $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
19221 $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;}
19222       else
19223         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19224           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19225             MAKE_EXPECTED_ENV='cygwin'
19226           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19227             MAKE_EXPECTED_ENV='msys'
19228           else
19229             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19230           fi
19231           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19232           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19233         else
19234           # Not relevant for non-Windows
19235           IS_MAKE_CORRECT_ENV=true
19236         fi
19237         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19238           { $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
19239 $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;}
19240         else
19241           FOUND_MAKE=$MAKE_CANDIDATE
19242 
19243   # Only process if variable expands to non-empty
19244 
19245   if test "x$FOUND_MAKE" != x; then
19246     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19247 
19248   # First separate the path from the arguments. This will split at the first
19249   # space.
19250   complete="$FOUND_MAKE"
19251   path="${complete%% *}"
19252   tmp="$complete EOL"
19253   arguments="${tmp#* }"
19254 
19255   # Input might be given as Windows format, start by converting to
19256   # unix format.
19257   new_path=`$CYGPATH -u "$path"`
19258 
19259   # Now try to locate executable using which
19260   new_path=`$WHICH "$new_path" 2> /dev/null`
19261   # bat and cmd files are not always considered executable in cygwin causing which
19262   # to not find them
19263   if test "x$new_path" = x \
19264       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19265       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19266     new_path=`$CYGPATH -u "$path"`
19267   fi
19268   if test "x$new_path" = x; then
19269     # Oops. Which didn't find the executable.
19270     # The splitting of arguments from the executable at a space might have been incorrect,
19271     # since paths with space are more likely in Windows. Give it another try with the whole
19272     # argument.
19273     path="$complete"
19274     arguments="EOL"
19275     new_path=`$CYGPATH -u "$path"`
19276     new_path=`$WHICH "$new_path" 2> /dev/null`
19277     # bat and cmd files are not always considered executable in cygwin causing which
19278     # to not find them
19279     if test "x$new_path" = x \
19280         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19281         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19282       new_path=`$CYGPATH -u "$path"`
19283     fi
19284     if test "x$new_path" = x; then
19285       # It's still not found. Now this is an unrecoverable error.
19286       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19287 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19288       has_space=`$ECHO "$complete" | $GREP " "`
19289       if test "x$has_space" != x; then
19290         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19291 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19292       fi
19293       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19294     fi
19295   fi
19296 
19297   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19298   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19299   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19300   # "foo.exe" is OK but "foo" is an error.
19301   #
19302   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19303   # It is also a way to make sure we got the proper file name for the real test later on.
19304   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19305   if test "x$test_shortpath" = x; then
19306     # Short path failed, file does not exist as specified.
19307     # Try adding .exe or .cmd
19308     if test -f "${new_path}.exe"; then
19309       input_to_shortpath="${new_path}.exe"
19310     elif test -f "${new_path}.cmd"; then
19311       input_to_shortpath="${new_path}.cmd"
19312     else
19313       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19314 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19315       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19316 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19317       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19318     fi
19319   else
19320     input_to_shortpath="$new_path"
19321   fi
19322 
19323   # Call helper function which possibly converts this using DOS-style short mode.
19324   # If so, the updated path is stored in $new_path.
19325   new_path="$input_to_shortpath"
19326 
19327   input_path="$input_to_shortpath"
19328   # Check if we need to convert this using DOS-style short mode. If the path
19329   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19330   # take no chances and rewrite it.
19331   # Note: m4 eats our [], so we need to use [ and ] instead.
19332   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19333   if test "x$has_forbidden_chars" != x; then
19334     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19335     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19336     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19337     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19338       # Going to short mode and back again did indeed matter. Since short mode is
19339       # case insensitive, let's make it lowercase to improve readability.
19340       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19341       # Now convert it back to Unix-style (cygpath)
19342       input_path=`$CYGPATH -u "$shortmode_path"`
19343       new_path="$input_path"
19344     fi
19345   fi
19346 
19347   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19348   if test "x$test_cygdrive_prefix" = x; then
19349     # As a simple fix, exclude /usr/bin since it's not a real path.
19350     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19351       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19352       # a path prefixed by /cygdrive for fixpath to work.
19353       new_path="$CYGWIN_ROOT_PATH$input_path"
19354     fi
19355   fi
19356 
19357   # remove trailing .exe if any
19358   new_path="${new_path/%.exe/}"
19359 
19360     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19361 
19362   # First separate the path from the arguments. This will split at the first
19363   # space.
19364   complete="$FOUND_MAKE"
19365   path="${complete%% *}"
19366   tmp="$complete EOL"
19367   arguments="${tmp#* }"
19368 
19369   # Input might be given as Windows format, start by converting to
19370   # unix format.
19371   new_path="$path"
19372 
19373   windows_path="$new_path"
19374   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19375     unix_path=`$CYGPATH -u "$windows_path"`
19376     new_path="$unix_path"
19377   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19378     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19379     new_path="$unix_path"
19380   fi
19381 
19382 
19383   # Now try to locate executable using which
19384   new_path=`$WHICH "$new_path" 2> /dev/null`
19385 
19386   if test "x$new_path" = x; then
19387     # Oops. Which didn't find the executable.
19388     # The splitting of arguments from the executable at a space might have been incorrect,
19389     # since paths with space are more likely in Windows. Give it another try with the whole
19390     # argument.
19391     path="$complete"
19392     arguments="EOL"
19393     new_path="$path"
19394 
19395   windows_path="$new_path"
19396   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19397     unix_path=`$CYGPATH -u "$windows_path"`
19398     new_path="$unix_path"
19399   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19400     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19401     new_path="$unix_path"
19402   fi
19403 
19404 
19405     new_path=`$WHICH "$new_path" 2> /dev/null`
19406     # bat and cmd files are not always considered executable in MSYS causing which
19407     # to not find them
19408     if test "x$new_path" = x \
19409         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19410         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19411       new_path="$path"
19412 
19413   windows_path="$new_path"
19414   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19415     unix_path=`$CYGPATH -u "$windows_path"`
19416     new_path="$unix_path"
19417   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19418     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19419     new_path="$unix_path"
19420   fi
19421 
19422     fi
19423 
19424     if test "x$new_path" = x; then
19425       # It's still not found. Now this is an unrecoverable error.
19426       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19427 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19428       has_space=`$ECHO "$complete" | $GREP " "`
19429       if test "x$has_space" != x; then
19430         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19432       fi
19433       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19434     fi
19435   fi
19436 
19437   # Now new_path has a complete unix path to the binary
19438   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19439     # Keep paths in /bin as-is, but remove trailing .exe if any
19440     new_path="${new_path/%.exe/}"
19441     # Do not save /bin paths to all_fixpath_prefixes!
19442   else
19443     # Not in mixed or Windows style, start by that.
19444     new_path=`cmd //c echo $new_path`
19445 
19446   input_path="$new_path"
19447   # Check if we need to convert this using DOS-style short mode. If the path
19448   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19449   # take no chances and rewrite it.
19450   # Note: m4 eats our [], so we need to use [ and ] instead.
19451   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19452   if test "x$has_forbidden_chars" != x; then
19453     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19454     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19455   fi
19456 
19457     # Output is in $new_path
19458 
19459   windows_path="$new_path"
19460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19461     unix_path=`$CYGPATH -u "$windows_path"`
19462     new_path="$unix_path"
19463   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19464     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19465     new_path="$unix_path"
19466   fi
19467 
19468     # remove trailing .exe if any
19469     new_path="${new_path/%.exe/}"
19470 
19471     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19472     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19473   fi
19474 
19475     else
19476       # We're on a unix platform. Hooray! :)
19477       # First separate the path from the arguments. This will split at the first
19478       # space.
19479       complete="$FOUND_MAKE"
19480       path="${complete%% *}"
19481       tmp="$complete EOL"
19482       arguments="${tmp#* }"
19483 
19484       # Cannot rely on the command "which" here since it doesn't always work.
19485       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19486       if test -z "$is_absolute_path"; then
19487         # Path to executable is not absolute. Find it.
19488         IFS_save="$IFS"
19489         IFS=:
19490         for p in $PATH; do
19491           if test -f "$p/$path" && test -x "$p/$path"; then
19492             new_path="$p/$path"
19493             break
19494           fi
19495         done
19496         IFS="$IFS_save"
19497       else
19498         # This is an absolute path, we can use it without further modifications.
19499         new_path="$path"
19500       fi
19501 
19502       if test "x$new_path" = x; then
19503         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19504 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19505         has_space=`$ECHO "$complete" | $GREP " "`
19506         if test "x$has_space" != x; then
19507           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19508 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19509         fi
19510         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19511       fi
19512     fi
19513 
19514     # Now join together the path and the arguments once again
19515     if test "x$arguments" != xEOL; then
19516       new_complete="$new_path ${arguments% *}"
19517     else
19518       new_complete="$new_path"
19519     fi
19520 
19521     if test "x$complete" != "x$new_complete"; then
19522       FOUND_MAKE="$new_complete"
19523       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19524 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19525     fi
19526   fi
19527 
19528         fi
19529       fi
19530     fi
19531   fi
19532 
19533 
19534     if test "x$FOUND_MAKE" = x; then
19535       for ac_prog in make
19536 do
19537   # Extract the first word of "$ac_prog", so it can be a program name with args.
19538 set dummy $ac_prog; ac_word=$2
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19540 $as_echo_n "checking for $ac_word... " >&6; }
19541 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19542   $as_echo_n "(cached) " >&6
19543 else
19544   case $CHECK_MAKE in
19545   [\\/]* | ?:[\\/]*)
19546   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19547   ;;
19548   *)
19549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19550 for as_dir in $PATH
19551 do
19552   IFS=$as_save_IFS
19553   test -z "$as_dir" && as_dir=.
19554     for ac_exec_ext in '' $ac_executable_extensions; do
19555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19556     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19558     break 2
19559   fi
19560 done
19561   done
19562 IFS=$as_save_IFS
19563 
19564   ;;
19565 esac
19566 fi
19567 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19568 if test -n "$CHECK_MAKE"; then
19569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19570 $as_echo "$CHECK_MAKE" >&6; }
19571 else
19572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19573 $as_echo "no" >&6; }
19574 fi
19575 
19576 
19577   test -n "$CHECK_MAKE" && break
19578 done
19579 
19580 
19581   MAKE_CANDIDATE=""$CHECK_MAKE""
19582   DESCRIPTION="make in PATH"
19583 
19584   # On Cygwin, we require a newer version of make than on other platforms
19585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19586     MAKE_VERSION_EXPR="-e 4\."
19587     MAKE_REQUIRED_VERSION="4.0"
19588    else
19589     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19590     MAKE_REQUIRED_VERSION="3.81"
19591   fi
19592 
19593   if test "x$MAKE_CANDIDATE" != x; then
19594     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19595 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19596     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19597     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19598     if test "x$IS_GNU_MAKE" = x; then
19599       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19600 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19601     else
19602       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19603       if test "x$IS_MODERN_MAKE" = x; then
19604         { $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
19605 $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;}
19606       else
19607         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19608           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19609             MAKE_EXPECTED_ENV='cygwin'
19610           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19611             MAKE_EXPECTED_ENV='msys'
19612           else
19613             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19614           fi
19615           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19616           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19617         else
19618           # Not relevant for non-Windows
19619           IS_MAKE_CORRECT_ENV=true
19620         fi
19621         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19622           { $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
19623 $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;}
19624         else
19625           FOUND_MAKE=$MAKE_CANDIDATE
19626 
19627   # Only process if variable expands to non-empty
19628 
19629   if test "x$FOUND_MAKE" != x; then
19630     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19631 
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   # Input might be given as Windows format, start by converting to
19640   # unix format.
19641   new_path=`$CYGPATH -u "$path"`
19642 
19643   # Now try to locate executable using which
19644   new_path=`$WHICH "$new_path" 2> /dev/null`
19645   # bat and cmd files are not always considered executable in cygwin causing which
19646   # to not find them
19647   if test "x$new_path" = x \
19648       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19649       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19650     new_path=`$CYGPATH -u "$path"`
19651   fi
19652   if test "x$new_path" = x; then
19653     # Oops. Which didn't find the executable.
19654     # The splitting of arguments from the executable at a space might have been incorrect,
19655     # since paths with space are more likely in Windows. Give it another try with the whole
19656     # argument.
19657     path="$complete"
19658     arguments="EOL"
19659     new_path=`$CYGPATH -u "$path"`
19660     new_path=`$WHICH "$new_path" 2> /dev/null`
19661     # bat and cmd files are not always considered executable in cygwin causing which
19662     # to not find them
19663     if test "x$new_path" = x \
19664         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19665         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19666       new_path=`$CYGPATH -u "$path"`
19667     fi
19668     if test "x$new_path" = x; then
19669       # It's still not found. Now this is an unrecoverable error.
19670       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19671 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19672       has_space=`$ECHO "$complete" | $GREP " "`
19673       if test "x$has_space" != x; then
19674         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19675 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19676       fi
19677       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19678     fi
19679   fi
19680 
19681   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19682   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19683   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19684   # "foo.exe" is OK but "foo" is an error.
19685   #
19686   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19687   # It is also a way to make sure we got the proper file name for the real test later on.
19688   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19689   if test "x$test_shortpath" = x; then
19690     # Short path failed, file does not exist as specified.
19691     # Try adding .exe or .cmd
19692     if test -f "${new_path}.exe"; then
19693       input_to_shortpath="${new_path}.exe"
19694     elif test -f "${new_path}.cmd"; then
19695       input_to_shortpath="${new_path}.cmd"
19696     else
19697       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19698 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19699       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19700 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19701       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19702     fi
19703   else
19704     input_to_shortpath="$new_path"
19705   fi
19706 
19707   # Call helper function which possibly converts this using DOS-style short mode.
19708   # If so, the updated path is stored in $new_path.
19709   new_path="$input_to_shortpath"
19710 
19711   input_path="$input_to_shortpath"
19712   # Check if we need to convert this using DOS-style short mode. If the path
19713   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19714   # take no chances and rewrite it.
19715   # Note: m4 eats our [], so we need to use [ and ] instead.
19716   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19717   if test "x$has_forbidden_chars" != x; then
19718     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19719     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19720     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19721     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19722       # Going to short mode and back again did indeed matter. Since short mode is
19723       # case insensitive, let's make it lowercase to improve readability.
19724       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19725       # Now convert it back to Unix-style (cygpath)
19726       input_path=`$CYGPATH -u "$shortmode_path"`
19727       new_path="$input_path"
19728     fi
19729   fi
19730 
19731   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19732   if test "x$test_cygdrive_prefix" = x; then
19733     # As a simple fix, exclude /usr/bin since it's not a real path.
19734     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19735       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19736       # a path prefixed by /cygdrive for fixpath to work.
19737       new_path="$CYGWIN_ROOT_PATH$input_path"
19738     fi
19739   fi
19740 
19741   # remove trailing .exe if any
19742   new_path="${new_path/%.exe/}"
19743 
19744     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19745 
19746   # First separate the path from the arguments. This will split at the first
19747   # space.
19748   complete="$FOUND_MAKE"
19749   path="${complete%% *}"
19750   tmp="$complete EOL"
19751   arguments="${tmp#* }"
19752 
19753   # Input might be given as Windows format, start by converting to
19754   # unix format.
19755   new_path="$path"
19756 
19757   windows_path="$new_path"
19758   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19759     unix_path=`$CYGPATH -u "$windows_path"`
19760     new_path="$unix_path"
19761   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19762     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19763     new_path="$unix_path"
19764   fi
19765 
19766 
19767   # Now try to locate executable using which
19768   new_path=`$WHICH "$new_path" 2> /dev/null`
19769 
19770   if test "x$new_path" = x; then
19771     # Oops. Which didn't find the executable.
19772     # The splitting of arguments from the executable at a space might have been incorrect,
19773     # since paths with space are more likely in Windows. Give it another try with the whole
19774     # argument.
19775     path="$complete"
19776     arguments="EOL"
19777     new_path="$path"
19778 
19779   windows_path="$new_path"
19780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19781     unix_path=`$CYGPATH -u "$windows_path"`
19782     new_path="$unix_path"
19783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19785     new_path="$unix_path"
19786   fi
19787 
19788 
19789     new_path=`$WHICH "$new_path" 2> /dev/null`
19790     # bat and cmd files are not always considered executable in MSYS causing which
19791     # to not find them
19792     if test "x$new_path" = x \
19793         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19794         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19795       new_path="$path"
19796 
19797   windows_path="$new_path"
19798   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19799     unix_path=`$CYGPATH -u "$windows_path"`
19800     new_path="$unix_path"
19801   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19802     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19803     new_path="$unix_path"
19804   fi
19805 
19806     fi
19807 
19808     if test "x$new_path" = x; then
19809       # It's still not found. Now this is an unrecoverable error.
19810       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19811 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19812       has_space=`$ECHO "$complete" | $GREP " "`
19813       if test "x$has_space" != x; then
19814         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19816       fi
19817       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19818     fi
19819   fi
19820 
19821   # Now new_path has a complete unix path to the binary
19822   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19823     # Keep paths in /bin as-is, but remove trailing .exe if any
19824     new_path="${new_path/%.exe/}"
19825     # Do not save /bin paths to all_fixpath_prefixes!
19826   else
19827     # Not in mixed or Windows style, start by that.
19828     new_path=`cmd //c echo $new_path`
19829 
19830   input_path="$new_path"
19831   # Check if we need to convert this using DOS-style short mode. If the path
19832   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19833   # take no chances and rewrite it.
19834   # Note: m4 eats our [], so we need to use [ and ] instead.
19835   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19836   if test "x$has_forbidden_chars" != x; then
19837     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19838     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19839   fi
19840 
19841     # Output is in $new_path
19842 
19843   windows_path="$new_path"
19844   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19845     unix_path=`$CYGPATH -u "$windows_path"`
19846     new_path="$unix_path"
19847   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19848     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19849     new_path="$unix_path"
19850   fi
19851 
19852     # remove trailing .exe if any
19853     new_path="${new_path/%.exe/}"
19854 
19855     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19856     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19857   fi
19858 
19859     else
19860       # We're on a unix platform. Hooray! :)
19861       # First separate the path from the arguments. This will split at the first
19862       # space.
19863       complete="$FOUND_MAKE"
19864       path="${complete%% *}"
19865       tmp="$complete EOL"
19866       arguments="${tmp#* }"
19867 
19868       # Cannot rely on the command "which" here since it doesn't always work.
19869       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19870       if test -z "$is_absolute_path"; then
19871         # Path to executable is not absolute. Find it.
19872         IFS_save="$IFS"
19873         IFS=:
19874         for p in $PATH; do
19875           if test -f "$p/$path" && test -x "$p/$path"; then
19876             new_path="$p/$path"
19877             break
19878           fi
19879         done
19880         IFS="$IFS_save"
19881       else
19882         # This is an absolute path, we can use it without further modifications.
19883         new_path="$path"
19884       fi
19885 
19886       if test "x$new_path" = x; then
19887         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19888 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19889         has_space=`$ECHO "$complete" | $GREP " "`
19890         if test "x$has_space" != x; then
19891           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19892 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19893         fi
19894         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19895       fi
19896     fi
19897 
19898     # Now join together the path and the arguments once again
19899     if test "x$arguments" != xEOL; then
19900       new_complete="$new_path ${arguments% *}"
19901     else
19902       new_complete="$new_path"
19903     fi
19904 
19905     if test "x$complete" != "x$new_complete"; then
19906       FOUND_MAKE="$new_complete"
19907       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19908 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19909     fi
19910   fi
19911 
19912         fi
19913       fi
19914     fi
19915   fi
19916 
19917     fi
19918 
19919     if test "x$FOUND_MAKE" = x; then
19920       if test "x$TOOLCHAIN_PATH" != x; then
19921         # We have a toolchain path, check that as well before giving up.
19922         OLD_PATH=$PATH
19923         PATH=$TOOLCHAIN_PATH:$PATH
19924         for ac_prog in gmake
19925 do
19926   # Extract the first word of "$ac_prog", so it can be a program name with args.
19927 set dummy $ac_prog; ac_word=$2
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19929 $as_echo_n "checking for $ac_word... " >&6; }
19930 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19931   $as_echo_n "(cached) " >&6
19932 else
19933   case $CHECK_TOOLSDIR_GMAKE in
19934   [\\/]* | ?:[\\/]*)
19935   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19936   ;;
19937   *)
19938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939 for as_dir in $PATH
19940 do
19941   IFS=$as_save_IFS
19942   test -z "$as_dir" && as_dir=.
19943     for ac_exec_ext in '' $ac_executable_extensions; do
19944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19945     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19947     break 2
19948   fi
19949 done
19950   done
19951 IFS=$as_save_IFS
19952 
19953   ;;
19954 esac
19955 fi
19956 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19957 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19959 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19960 else
19961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19963 fi
19964 
19965 
19966   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19967 done
19968 
19969 
19970   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19971   DESCRIPTION="gmake in tools-dir"
19972 
19973   # On Cygwin, we require a newer version of make than on other platforms
19974   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19975     MAKE_VERSION_EXPR="-e 4\."
19976     MAKE_REQUIRED_VERSION="4.0"
19977    else
19978     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19979     MAKE_REQUIRED_VERSION="3.81"
19980   fi
19981 
19982   if test "x$MAKE_CANDIDATE" != x; then
19983     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19984 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19985     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19986     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19987     if test "x$IS_GNU_MAKE" = x; then
19988       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19989 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19990     else
19991       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19992       if test "x$IS_MODERN_MAKE" = x; then
19993         { $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
19994 $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;}
19995       else
19996         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19997           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19998             MAKE_EXPECTED_ENV='cygwin'
19999           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20000             MAKE_EXPECTED_ENV='msys'
20001           else
20002             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20003           fi
20004           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20005           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20006         else
20007           # Not relevant for non-Windows
20008           IS_MAKE_CORRECT_ENV=true
20009         fi
20010         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20011           { $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
20012 $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;}
20013         else
20014           FOUND_MAKE=$MAKE_CANDIDATE
20015 
20016   # Only process if variable expands to non-empty
20017 
20018   if test "x$FOUND_MAKE" != x; then
20019     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20020 
20021   # First separate the path from the arguments. This will split at the first
20022   # space.
20023   complete="$FOUND_MAKE"
20024   path="${complete%% *}"
20025   tmp="$complete EOL"
20026   arguments="${tmp#* }"
20027 
20028   # Input might be given as Windows format, start by converting to
20029   # unix format.
20030   new_path=`$CYGPATH -u "$path"`
20031 
20032   # Now try to locate executable using which
20033   new_path=`$WHICH "$new_path" 2> /dev/null`
20034   # bat and cmd files are not always considered executable in cygwin causing which
20035   # to not find them
20036   if test "x$new_path" = x \
20037       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20038       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20039     new_path=`$CYGPATH -u "$path"`
20040   fi
20041   if test "x$new_path" = x; then
20042     # Oops. Which didn't find the executable.
20043     # The splitting of arguments from the executable at a space might have been incorrect,
20044     # since paths with space are more likely in Windows. Give it another try with the whole
20045     # argument.
20046     path="$complete"
20047     arguments="EOL"
20048     new_path=`$CYGPATH -u "$path"`
20049     new_path=`$WHICH "$new_path" 2> /dev/null`
20050     # bat and cmd files are not always considered executable in cygwin causing which
20051     # to not find them
20052     if test "x$new_path" = x \
20053         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20054         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20055       new_path=`$CYGPATH -u "$path"`
20056     fi
20057     if test "x$new_path" = x; then
20058       # It's still not found. Now this is an unrecoverable error.
20059       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20060 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20061       has_space=`$ECHO "$complete" | $GREP " "`
20062       if test "x$has_space" != x; then
20063         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20064 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20065       fi
20066       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20067     fi
20068   fi
20069 
20070   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20071   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20072   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20073   # "foo.exe" is OK but "foo" is an error.
20074   #
20075   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20076   # It is also a way to make sure we got the proper file name for the real test later on.
20077   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20078   if test "x$test_shortpath" = x; then
20079     # Short path failed, file does not exist as specified.
20080     # Try adding .exe or .cmd
20081     if test -f "${new_path}.exe"; then
20082       input_to_shortpath="${new_path}.exe"
20083     elif test -f "${new_path}.cmd"; then
20084       input_to_shortpath="${new_path}.cmd"
20085     else
20086       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20087 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20088       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20089 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20090       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20091     fi
20092   else
20093     input_to_shortpath="$new_path"
20094   fi
20095 
20096   # Call helper function which possibly converts this using DOS-style short mode.
20097   # If so, the updated path is stored in $new_path.
20098   new_path="$input_to_shortpath"
20099 
20100   input_path="$input_to_shortpath"
20101   # Check if we need to convert this using DOS-style short mode. If the path
20102   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20103   # take no chances and rewrite it.
20104   # Note: m4 eats our [], so we need to use [ and ] instead.
20105   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20106   if test "x$has_forbidden_chars" != x; then
20107     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20108     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20109     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20110     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20111       # Going to short mode and back again did indeed matter. Since short mode is
20112       # case insensitive, let's make it lowercase to improve readability.
20113       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20114       # Now convert it back to Unix-style (cygpath)
20115       input_path=`$CYGPATH -u "$shortmode_path"`
20116       new_path="$input_path"
20117     fi
20118   fi
20119 
20120   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20121   if test "x$test_cygdrive_prefix" = x; then
20122     # As a simple fix, exclude /usr/bin since it's not a real path.
20123     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20124       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20125       # a path prefixed by /cygdrive for fixpath to work.
20126       new_path="$CYGWIN_ROOT_PATH$input_path"
20127     fi
20128   fi
20129 
20130   # remove trailing .exe if any
20131   new_path="${new_path/%.exe/}"
20132 
20133     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20134 
20135   # First separate the path from the arguments. This will split at the first
20136   # space.
20137   complete="$FOUND_MAKE"
20138   path="${complete%% *}"
20139   tmp="$complete EOL"
20140   arguments="${tmp#* }"
20141 
20142   # Input might be given as Windows format, start by converting to
20143   # unix format.
20144   new_path="$path"
20145 
20146   windows_path="$new_path"
20147   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20148     unix_path=`$CYGPATH -u "$windows_path"`
20149     new_path="$unix_path"
20150   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20151     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20152     new_path="$unix_path"
20153   fi
20154 
20155 
20156   # Now try to locate executable using which
20157   new_path=`$WHICH "$new_path" 2> /dev/null`
20158 
20159   if test "x$new_path" = x; then
20160     # Oops. Which didn't find the executable.
20161     # The splitting of arguments from the executable at a space might have been incorrect,
20162     # since paths with space are more likely in Windows. Give it another try with the whole
20163     # argument.
20164     path="$complete"
20165     arguments="EOL"
20166     new_path="$path"
20167 
20168   windows_path="$new_path"
20169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20170     unix_path=`$CYGPATH -u "$windows_path"`
20171     new_path="$unix_path"
20172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20173     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20174     new_path="$unix_path"
20175   fi
20176 
20177 
20178     new_path=`$WHICH "$new_path" 2> /dev/null`
20179     # bat and cmd files are not always considered executable in MSYS causing which
20180     # to not find them
20181     if test "x$new_path" = x \
20182         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20183         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20184       new_path="$path"
20185 
20186   windows_path="$new_path"
20187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20188     unix_path=`$CYGPATH -u "$windows_path"`
20189     new_path="$unix_path"
20190   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20191     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20192     new_path="$unix_path"
20193   fi
20194 
20195     fi
20196 
20197     if test "x$new_path" = x; then
20198       # It's still not found. Now this is an unrecoverable error.
20199       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20200 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20201       has_space=`$ECHO "$complete" | $GREP " "`
20202       if test "x$has_space" != x; then
20203         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20204 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20205       fi
20206       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20207     fi
20208   fi
20209 
20210   # Now new_path has a complete unix path to the binary
20211   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20212     # Keep paths in /bin as-is, but remove trailing .exe if any
20213     new_path="${new_path/%.exe/}"
20214     # Do not save /bin paths to all_fixpath_prefixes!
20215   else
20216     # Not in mixed or Windows style, start by that.
20217     new_path=`cmd //c echo $new_path`
20218 
20219   input_path="$new_path"
20220   # Check if we need to convert this using DOS-style short mode. If the path
20221   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20222   # take no chances and rewrite it.
20223   # Note: m4 eats our [], so we need to use [ and ] instead.
20224   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20225   if test "x$has_forbidden_chars" != x; then
20226     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20227     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20228   fi
20229 
20230     # Output is in $new_path
20231 
20232   windows_path="$new_path"
20233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20234     unix_path=`$CYGPATH -u "$windows_path"`
20235     new_path="$unix_path"
20236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20237     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20238     new_path="$unix_path"
20239   fi
20240 
20241     # remove trailing .exe if any
20242     new_path="${new_path/%.exe/}"
20243 
20244     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20245     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20246   fi
20247 
20248     else
20249       # We're on a unix platform. Hooray! :)
20250       # First separate the path from the arguments. This will split at the first
20251       # space.
20252       complete="$FOUND_MAKE"
20253       path="${complete%% *}"
20254       tmp="$complete EOL"
20255       arguments="${tmp#* }"
20256 
20257       # Cannot rely on the command "which" here since it doesn't always work.
20258       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20259       if test -z "$is_absolute_path"; then
20260         # Path to executable is not absolute. Find it.
20261         IFS_save="$IFS"
20262         IFS=:
20263         for p in $PATH; do
20264           if test -f "$p/$path" && test -x "$p/$path"; then
20265             new_path="$p/$path"
20266             break
20267           fi
20268         done
20269         IFS="$IFS_save"
20270       else
20271         # This is an absolute path, we can use it without further modifications.
20272         new_path="$path"
20273       fi
20274 
20275       if test "x$new_path" = x; then
20276         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20277 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20278         has_space=`$ECHO "$complete" | $GREP " "`
20279         if test "x$has_space" != x; then
20280           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20281 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20282         fi
20283         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20284       fi
20285     fi
20286 
20287     # Now join together the path and the arguments once again
20288     if test "x$arguments" != xEOL; then
20289       new_complete="$new_path ${arguments% *}"
20290     else
20291       new_complete="$new_path"
20292     fi
20293 
20294     if test "x$complete" != "x$new_complete"; then
20295       FOUND_MAKE="$new_complete"
20296       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20297 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20298     fi
20299   fi
20300 
20301         fi
20302       fi
20303     fi
20304   fi
20305 
20306         if test "x$FOUND_MAKE" = x; then
20307           for ac_prog in make
20308 do
20309   # Extract the first word of "$ac_prog", so it can be a program name with args.
20310 set dummy $ac_prog; ac_word=$2
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20312 $as_echo_n "checking for $ac_word... " >&6; }
20313 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20314   $as_echo_n "(cached) " >&6
20315 else
20316   case $CHECK_TOOLSDIR_MAKE in
20317   [\\/]* | ?:[\\/]*)
20318   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20319   ;;
20320   *)
20321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20322 for as_dir in $PATH
20323 do
20324   IFS=$as_save_IFS
20325   test -z "$as_dir" && as_dir=.
20326     for ac_exec_ext in '' $ac_executable_extensions; do
20327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20328     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20330     break 2
20331   fi
20332 done
20333   done
20334 IFS=$as_save_IFS
20335 
20336   ;;
20337 esac
20338 fi
20339 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20340 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20342 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20343 else
20344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20345 $as_echo "no" >&6; }
20346 fi
20347 
20348 
20349   test -n "$CHECK_TOOLSDIR_MAKE" && break
20350 done
20351 
20352 
20353   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20354   DESCRIPTION="make in tools-dir"
20355 
20356   # On Cygwin, we require a newer version of make than on other platforms
20357   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20358     MAKE_VERSION_EXPR="-e 4\."
20359     MAKE_REQUIRED_VERSION="4.0"
20360    else
20361     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20362     MAKE_REQUIRED_VERSION="3.81"
20363   fi
20364 
20365   if test "x$MAKE_CANDIDATE" != x; then
20366     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20367 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20368     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20369     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20370     if test "x$IS_GNU_MAKE" = x; then
20371       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20372 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20373     else
20374       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20375       if test "x$IS_MODERN_MAKE" = x; then
20376         { $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
20377 $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;}
20378       else
20379         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20380           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20381             MAKE_EXPECTED_ENV='cygwin'
20382           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20383             MAKE_EXPECTED_ENV='msys'
20384           else
20385             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20386           fi
20387           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20388           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20389         else
20390           # Not relevant for non-Windows
20391           IS_MAKE_CORRECT_ENV=true
20392         fi
20393         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20394           { $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
20395 $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;}
20396         else
20397           FOUND_MAKE=$MAKE_CANDIDATE
20398 
20399   # Only process if variable expands to non-empty
20400 
20401   if test "x$FOUND_MAKE" != x; then
20402     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20403 
20404   # First separate the path from the arguments. This will split at the first
20405   # space.
20406   complete="$FOUND_MAKE"
20407   path="${complete%% *}"
20408   tmp="$complete EOL"
20409   arguments="${tmp#* }"
20410 
20411   # Input might be given as Windows format, start by converting to
20412   # unix format.
20413   new_path=`$CYGPATH -u "$path"`
20414 
20415   # Now try to locate executable using which
20416   new_path=`$WHICH "$new_path" 2> /dev/null`
20417   # bat and cmd files are not always considered executable in cygwin causing which
20418   # to not find them
20419   if test "x$new_path" = x \
20420       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20421       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20422     new_path=`$CYGPATH -u "$path"`
20423   fi
20424   if test "x$new_path" = x; then
20425     # Oops. Which didn't find the executable.
20426     # The splitting of arguments from the executable at a space might have been incorrect,
20427     # since paths with space are more likely in Windows. Give it another try with the whole
20428     # argument.
20429     path="$complete"
20430     arguments="EOL"
20431     new_path=`$CYGPATH -u "$path"`
20432     new_path=`$WHICH "$new_path" 2> /dev/null`
20433     # bat and cmd files are not always considered executable in cygwin causing which
20434     # to not find them
20435     if test "x$new_path" = x \
20436         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20437         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20438       new_path=`$CYGPATH -u "$path"`
20439     fi
20440     if test "x$new_path" = x; then
20441       # It's still not found. Now this is an unrecoverable error.
20442       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20443 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20444       has_space=`$ECHO "$complete" | $GREP " "`
20445       if test "x$has_space" != x; then
20446         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20447 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20448       fi
20449       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20450     fi
20451   fi
20452 
20453   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20454   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20455   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20456   # "foo.exe" is OK but "foo" is an error.
20457   #
20458   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20459   # It is also a way to make sure we got the proper file name for the real test later on.
20460   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20461   if test "x$test_shortpath" = x; then
20462     # Short path failed, file does not exist as specified.
20463     # Try adding .exe or .cmd
20464     if test -f "${new_path}.exe"; then
20465       input_to_shortpath="${new_path}.exe"
20466     elif test -f "${new_path}.cmd"; then
20467       input_to_shortpath="${new_path}.cmd"
20468     else
20469       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20470 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20471       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20472 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20473       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20474     fi
20475   else
20476     input_to_shortpath="$new_path"
20477   fi
20478 
20479   # Call helper function which possibly converts this using DOS-style short mode.
20480   # If so, the updated path is stored in $new_path.
20481   new_path="$input_to_shortpath"
20482 
20483   input_path="$input_to_shortpath"
20484   # Check if we need to convert this using DOS-style short mode. If the path
20485   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20486   # take no chances and rewrite it.
20487   # Note: m4 eats our [], so we need to use [ and ] instead.
20488   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20489   if test "x$has_forbidden_chars" != x; then
20490     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20491     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20492     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20493     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20494       # Going to short mode and back again did indeed matter. Since short mode is
20495       # case insensitive, let's make it lowercase to improve readability.
20496       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20497       # Now convert it back to Unix-style (cygpath)
20498       input_path=`$CYGPATH -u "$shortmode_path"`
20499       new_path="$input_path"
20500     fi
20501   fi
20502 
20503   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20504   if test "x$test_cygdrive_prefix" = x; then
20505     # As a simple fix, exclude /usr/bin since it's not a real path.
20506     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20507       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20508       # a path prefixed by /cygdrive for fixpath to work.
20509       new_path="$CYGWIN_ROOT_PATH$input_path"
20510     fi
20511   fi
20512 
20513   # remove trailing .exe if any
20514   new_path="${new_path/%.exe/}"
20515 
20516     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20517 
20518   # First separate the path from the arguments. This will split at the first
20519   # space.
20520   complete="$FOUND_MAKE"
20521   path="${complete%% *}"
20522   tmp="$complete EOL"
20523   arguments="${tmp#* }"
20524 
20525   # Input might be given as Windows format, start by converting to
20526   # unix format.
20527   new_path="$path"
20528 
20529   windows_path="$new_path"
20530   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20531     unix_path=`$CYGPATH -u "$windows_path"`
20532     new_path="$unix_path"
20533   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20534     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20535     new_path="$unix_path"
20536   fi
20537 
20538 
20539   # Now try to locate executable using which
20540   new_path=`$WHICH "$new_path" 2> /dev/null`
20541 
20542   if test "x$new_path" = x; then
20543     # Oops. Which didn't find the executable.
20544     # The splitting of arguments from the executable at a space might have been incorrect,
20545     # since paths with space are more likely in Windows. Give it another try with the whole
20546     # argument.
20547     path="$complete"
20548     arguments="EOL"
20549     new_path="$path"
20550 
20551   windows_path="$new_path"
20552   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20553     unix_path=`$CYGPATH -u "$windows_path"`
20554     new_path="$unix_path"
20555   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20556     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20557     new_path="$unix_path"
20558   fi
20559 
20560 
20561     new_path=`$WHICH "$new_path" 2> /dev/null`
20562     # bat and cmd files are not always considered executable in MSYS causing which
20563     # to not find them
20564     if test "x$new_path" = x \
20565         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20566         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20567       new_path="$path"
20568 
20569   windows_path="$new_path"
20570   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20571     unix_path=`$CYGPATH -u "$windows_path"`
20572     new_path="$unix_path"
20573   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20574     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20575     new_path="$unix_path"
20576   fi
20577 
20578     fi
20579 
20580     if test "x$new_path" = x; then
20581       # It's still not found. Now this is an unrecoverable error.
20582       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20583 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20584       has_space=`$ECHO "$complete" | $GREP " "`
20585       if test "x$has_space" != x; then
20586         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20587 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20588       fi
20589       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20590     fi
20591   fi
20592 
20593   # Now new_path has a complete unix path to the binary
20594   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20595     # Keep paths in /bin as-is, but remove trailing .exe if any
20596     new_path="${new_path/%.exe/}"
20597     # Do not save /bin paths to all_fixpath_prefixes!
20598   else
20599     # Not in mixed or Windows style, start by that.
20600     new_path=`cmd //c echo $new_path`
20601 
20602   input_path="$new_path"
20603   # Check if we need to convert this using DOS-style short mode. If the path
20604   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20605   # take no chances and rewrite it.
20606   # Note: m4 eats our [], so we need to use [ and ] instead.
20607   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20608   if test "x$has_forbidden_chars" != x; then
20609     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20610     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20611   fi
20612 
20613     # Output is in $new_path
20614 
20615   windows_path="$new_path"
20616   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20617     unix_path=`$CYGPATH -u "$windows_path"`
20618     new_path="$unix_path"
20619   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20620     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20621     new_path="$unix_path"
20622   fi
20623 
20624     # remove trailing .exe if any
20625     new_path="${new_path/%.exe/}"
20626 
20627     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20628     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20629   fi
20630 
20631     else
20632       # We're on a unix platform. Hooray! :)
20633       # First separate the path from the arguments. This will split at the first
20634       # space.
20635       complete="$FOUND_MAKE"
20636       path="${complete%% *}"
20637       tmp="$complete EOL"
20638       arguments="${tmp#* }"
20639 
20640       # Cannot rely on the command "which" here since it doesn't always work.
20641       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20642       if test -z "$is_absolute_path"; then
20643         # Path to executable is not absolute. Find it.
20644         IFS_save="$IFS"
20645         IFS=:
20646         for p in $PATH; do
20647           if test -f "$p/$path" && test -x "$p/$path"; then
20648             new_path="$p/$path"
20649             break
20650           fi
20651         done
20652         IFS="$IFS_save"
20653       else
20654         # This is an absolute path, we can use it without further modifications.
20655         new_path="$path"
20656       fi
20657 
20658       if test "x$new_path" = x; then
20659         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20660 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20661         has_space=`$ECHO "$complete" | $GREP " "`
20662         if test "x$has_space" != x; then
20663           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20664 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20665         fi
20666         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20667       fi
20668     fi
20669 
20670     # Now join together the path and the arguments once again
20671     if test "x$arguments" != xEOL; then
20672       new_complete="$new_path ${arguments% *}"
20673     else
20674       new_complete="$new_path"
20675     fi
20676 
20677     if test "x$complete" != "x$new_complete"; then
20678       FOUND_MAKE="$new_complete"
20679       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20680 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20681     fi
20682   fi
20683 
20684         fi
20685       fi
20686     fi
20687   fi
20688 
20689         fi
20690         PATH=$OLD_PATH
20691       fi
20692     fi
20693 
20694     if test "x$FOUND_MAKE" = x; then
20695       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
20696     fi
20697 
20698     else
20699       # If it succeeded, then it was overridden by the user. We will use it
20700       # for the tool.
20701 
20702       # First remove it from the list of overridden variables, so we can test
20703       # for unknown variables in the end.
20704       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20705 
20706       # Check if we try to supply an empty value
20707       if test "x$MAKE" = x; then
20708         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20709 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20711 $as_echo_n "checking for MAKE... " >&6; }
20712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20713 $as_echo "disabled" >&6; }
20714       else
20715         # Check if the provided tool contains a complete path.
20716         tool_specified="$MAKE"
20717         tool_basename="${tool_specified##*/}"
20718         if test "x$tool_basename" = "x$tool_specified"; then
20719           # A command without a complete path is provided, search $PATH.
20720           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20721 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20722           # Extract the first word of "$tool_basename", so it can be a program name with args.
20723 set dummy $tool_basename; ac_word=$2
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20725 $as_echo_n "checking for $ac_word... " >&6; }
20726 if ${ac_cv_path_MAKE+:} false; then :
20727   $as_echo_n "(cached) " >&6
20728 else
20729   case $MAKE in
20730   [\\/]* | ?:[\\/]*)
20731   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20732   ;;
20733   *)
20734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20735 for as_dir in $PATH
20736 do
20737   IFS=$as_save_IFS
20738   test -z "$as_dir" && as_dir=.
20739     for ac_exec_ext in '' $ac_executable_extensions; do
20740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20741     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20743     break 2
20744   fi
20745 done
20746   done
20747 IFS=$as_save_IFS
20748 
20749   ;;
20750 esac
20751 fi
20752 MAKE=$ac_cv_path_MAKE
20753 if test -n "$MAKE"; then
20754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20755 $as_echo "$MAKE" >&6; }
20756 else
20757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20758 $as_echo "no" >&6; }
20759 fi
20760 
20761 
20762           if test "x$MAKE" = x; then
20763             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20764           fi
20765         else
20766           # Otherwise we believe it is a complete path. Use it as it is.
20767           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20768 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20769           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20770 $as_echo_n "checking for MAKE... " >&6; }
20771           if test ! -x "$tool_specified"; then
20772             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20773 $as_echo "not found" >&6; }
20774             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20775           fi
20776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20777 $as_echo "$tool_specified" >&6; }
20778         fi
20779       fi
20780     fi
20781 
20782     # If MAKE was set by user, verify the version
20783 
20784   MAKE_CANDIDATE=""$MAKE""
20785   DESCRIPTION="user supplied MAKE=$MAKE"
20786 
20787   # On Cygwin, we require a newer version of make than on other platforms
20788   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20789     MAKE_VERSION_EXPR="-e 4\."
20790     MAKE_REQUIRED_VERSION="4.0"
20791    else
20792     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20793     MAKE_REQUIRED_VERSION="3.81"
20794   fi
20795 
20796   if test "x$MAKE_CANDIDATE" != x; then
20797     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20798 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20799     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20800     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20801     if test "x$IS_GNU_MAKE" = x; then
20802       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20803 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20804     else
20805       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20806       if test "x$IS_MODERN_MAKE" = x; then
20807         { $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
20808 $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;}
20809       else
20810         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20811           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20812             MAKE_EXPECTED_ENV='cygwin'
20813           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20814             MAKE_EXPECTED_ENV='msys'
20815           else
20816             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20817           fi
20818           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20819           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20820         else
20821           # Not relevant for non-Windows
20822           IS_MAKE_CORRECT_ENV=true
20823         fi
20824         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20825           { $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
20826 $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;}
20827         else
20828           FOUND_MAKE=$MAKE_CANDIDATE
20829 
20830   # Only process if variable expands to non-empty
20831 
20832   if test "x$FOUND_MAKE" != x; then
20833     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20834 
20835   # First separate the path from the arguments. This will split at the first
20836   # space.
20837   complete="$FOUND_MAKE"
20838   path="${complete%% *}"
20839   tmp="$complete EOL"
20840   arguments="${tmp#* }"
20841 
20842   # Input might be given as Windows format, start by converting to
20843   # unix format.
20844   new_path=`$CYGPATH -u "$path"`
20845 
20846   # Now try to locate executable using which
20847   new_path=`$WHICH "$new_path" 2> /dev/null`
20848   # bat and cmd files are not always considered executable in cygwin causing which
20849   # to not find them
20850   if test "x$new_path" = x \
20851       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20852       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20853     new_path=`$CYGPATH -u "$path"`
20854   fi
20855   if test "x$new_path" = x; then
20856     # Oops. Which didn't find the executable.
20857     # The splitting of arguments from the executable at a space might have been incorrect,
20858     # since paths with space are more likely in Windows. Give it another try with the whole
20859     # argument.
20860     path="$complete"
20861     arguments="EOL"
20862     new_path=`$CYGPATH -u "$path"`
20863     new_path=`$WHICH "$new_path" 2> /dev/null`
20864     # bat and cmd files are not always considered executable in cygwin causing which
20865     # to not find them
20866     if test "x$new_path" = x \
20867         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20868         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20869       new_path=`$CYGPATH -u "$path"`
20870     fi
20871     if test "x$new_path" = x; then
20872       # It's still not found. Now this is an unrecoverable error.
20873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20875       has_space=`$ECHO "$complete" | $GREP " "`
20876       if test "x$has_space" != x; then
20877         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20878 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20879       fi
20880       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20881     fi
20882   fi
20883 
20884   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20885   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20886   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20887   # "foo.exe" is OK but "foo" is an error.
20888   #
20889   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20890   # It is also a way to make sure we got the proper file name for the real test later on.
20891   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20892   if test "x$test_shortpath" = x; then
20893     # Short path failed, file does not exist as specified.
20894     # Try adding .exe or .cmd
20895     if test -f "${new_path}.exe"; then
20896       input_to_shortpath="${new_path}.exe"
20897     elif test -f "${new_path}.cmd"; then
20898       input_to_shortpath="${new_path}.cmd"
20899     else
20900       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20901 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20902       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20903 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20904       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20905     fi
20906   else
20907     input_to_shortpath="$new_path"
20908   fi
20909 
20910   # Call helper function which possibly converts this using DOS-style short mode.
20911   # If so, the updated path is stored in $new_path.
20912   new_path="$input_to_shortpath"
20913 
20914   input_path="$input_to_shortpath"
20915   # Check if we need to convert this using DOS-style short mode. If the path
20916   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20917   # take no chances and rewrite it.
20918   # Note: m4 eats our [], so we need to use [ and ] instead.
20919   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20920   if test "x$has_forbidden_chars" != x; then
20921     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20922     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20923     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20924     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20925       # Going to short mode and back again did indeed matter. Since short mode is
20926       # case insensitive, let's make it lowercase to improve readability.
20927       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20928       # Now convert it back to Unix-style (cygpath)
20929       input_path=`$CYGPATH -u "$shortmode_path"`
20930       new_path="$input_path"
20931     fi
20932   fi
20933 
20934   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20935   if test "x$test_cygdrive_prefix" = x; then
20936     # As a simple fix, exclude /usr/bin since it's not a real path.
20937     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20938       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20939       # a path prefixed by /cygdrive for fixpath to work.
20940       new_path="$CYGWIN_ROOT_PATH$input_path"
20941     fi
20942   fi
20943 
20944   # remove trailing .exe if any
20945   new_path="${new_path/%.exe/}"
20946 
20947     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20948 
20949   # First separate the path from the arguments. This will split at the first
20950   # space.
20951   complete="$FOUND_MAKE"
20952   path="${complete%% *}"
20953   tmp="$complete EOL"
20954   arguments="${tmp#* }"
20955 
20956   # Input might be given as Windows format, start by converting to
20957   # unix format.
20958   new_path="$path"
20959 
20960   windows_path="$new_path"
20961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20962     unix_path=`$CYGPATH -u "$windows_path"`
20963     new_path="$unix_path"
20964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20966     new_path="$unix_path"
20967   fi
20968 
20969 
20970   # Now try to locate executable using which
20971   new_path=`$WHICH "$new_path" 2> /dev/null`
20972 
20973   if test "x$new_path" = x; then
20974     # Oops. Which didn't find the executable.
20975     # The splitting of arguments from the executable at a space might have been incorrect,
20976     # since paths with space are more likely in Windows. Give it another try with the whole
20977     # argument.
20978     path="$complete"
20979     arguments="EOL"
20980     new_path="$path"
20981 
20982   windows_path="$new_path"
20983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20984     unix_path=`$CYGPATH -u "$windows_path"`
20985     new_path="$unix_path"
20986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20988     new_path="$unix_path"
20989   fi
20990 
20991 
20992     new_path=`$WHICH "$new_path" 2> /dev/null`
20993     # bat and cmd files are not always considered executable in MSYS causing which
20994     # to not find them
20995     if test "x$new_path" = x \
20996         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20997         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20998       new_path="$path"
20999 
21000   windows_path="$new_path"
21001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21002     unix_path=`$CYGPATH -u "$windows_path"`
21003     new_path="$unix_path"
21004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21006     new_path="$unix_path"
21007   fi
21008 
21009     fi
21010 
21011     if test "x$new_path" = x; then
21012       # It's still not found. Now this is an unrecoverable error.
21013       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21014 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21015       has_space=`$ECHO "$complete" | $GREP " "`
21016       if test "x$has_space" != x; then
21017         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21018 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21019       fi
21020       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21021     fi
21022   fi
21023 
21024   # Now new_path has a complete unix path to the binary
21025   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21026     # Keep paths in /bin as-is, but remove trailing .exe if any
21027     new_path="${new_path/%.exe/}"
21028     # Do not save /bin paths to all_fixpath_prefixes!
21029   else
21030     # Not in mixed or Windows style, start by that.
21031     new_path=`cmd //c echo $new_path`
21032 
21033   input_path="$new_path"
21034   # Check if we need to convert this using DOS-style short mode. If the path
21035   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21036   # take no chances and rewrite it.
21037   # Note: m4 eats our [], so we need to use [ and ] instead.
21038   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21039   if test "x$has_forbidden_chars" != x; then
21040     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21041     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21042   fi
21043 
21044     # Output is in $new_path
21045 
21046   windows_path="$new_path"
21047   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21048     unix_path=`$CYGPATH -u "$windows_path"`
21049     new_path="$unix_path"
21050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21051     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21052     new_path="$unix_path"
21053   fi
21054 
21055     # remove trailing .exe if any
21056     new_path="${new_path/%.exe/}"
21057 
21058     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21059     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21060   fi
21061 
21062     else
21063       # We're on a unix platform. Hooray! :)
21064       # First separate the path from the arguments. This will split at the first
21065       # space.
21066       complete="$FOUND_MAKE"
21067       path="${complete%% *}"
21068       tmp="$complete EOL"
21069       arguments="${tmp#* }"
21070 
21071       # Cannot rely on the command "which" here since it doesn't always work.
21072       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21073       if test -z "$is_absolute_path"; then
21074         # Path to executable is not absolute. Find it.
21075         IFS_save="$IFS"
21076         IFS=:
21077         for p in $PATH; do
21078           if test -f "$p/$path" && test -x "$p/$path"; then
21079             new_path="$p/$path"
21080             break
21081           fi
21082         done
21083         IFS="$IFS_save"
21084       else
21085         # This is an absolute path, we can use it without further modifications.
21086         new_path="$path"
21087       fi
21088 
21089       if test "x$new_path" = x; then
21090         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21092         has_space=`$ECHO "$complete" | $GREP " "`
21093         if test "x$has_space" != x; then
21094           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21095 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21096         fi
21097         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21098       fi
21099     fi
21100 
21101     # Now join together the path and the arguments once again
21102     if test "x$arguments" != xEOL; then
21103       new_complete="$new_path ${arguments% *}"
21104     else
21105       new_complete="$new_path"
21106     fi
21107 
21108     if test "x$complete" != "x$new_complete"; then
21109       FOUND_MAKE="$new_complete"
21110       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21111 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21112     fi
21113   fi
21114 
21115         fi
21116       fi
21117     fi
21118   fi
21119 
21120     if test "x$FOUND_MAKE" = x; then
21121       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21122     fi
21123 
21124   fi
21125 
21126 
21127   MAKE=$FOUND_MAKE
21128 
21129   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21130 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21131 
21132 
21133   # Check if make supports the output sync option and if so, setup using it.
21134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21135 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21136   if $MAKE --version -O > /dev/null 2>&1; then
21137     OUTPUT_SYNC_SUPPORTED=true
21138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21139 $as_echo "yes" >&6; }
21140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21141 $as_echo_n "checking for output-sync value... " >&6; }
21142 
21143 # Check whether --with-output-sync was given.
21144 if test "${with_output_sync+set}" = set; then :
21145   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21146 fi
21147 
21148     if test "x$OUTPUT_SYNC" = "x"; then
21149       OUTPUT_SYNC=none
21150     fi
21151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21152 $as_echo "$OUTPUT_SYNC" >&6; }
21153     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21154       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21155     fi
21156   else
21157     OUTPUT_SYNC_SUPPORTED=false
21158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21159 $as_echo "no" >&6; }
21160   fi
21161 
21162 
21163 
21164 
21165 
21166 
21167   # Test if find supports -delete
21168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21169 $as_echo_n "checking if find supports -delete... " >&6; }
21170   FIND_DELETE="-delete"
21171 
21172   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21173 
21174   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21175 
21176   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21177   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21178     # No, it does not.
21179     $RM $DELETEDIR/TestIfFindSupportsDelete
21180     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21181       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21182       FIND_DELETE="-print | $XARGS $RM"
21183     else
21184       FIND_DELETE="-exec $RM \{\} \+"
21185     fi
21186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21187 $as_echo "no" >&6; }
21188   else
21189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21190 $as_echo "yes" >&6; }
21191   fi
21192   $RMDIR $DELETEDIR
21193 
21194 
21195 
21196   # Test which kind of tar was found
21197   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21198     TAR_TYPE="gnu"
21199   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21200     TAR_TYPE="bsd"
21201   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21202     TAR_TYPE="bsd"
21203   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21204     TAR_TYPE="solaris"
21205   fi
21206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21207 $as_echo_n "checking what type of tar was found... " >&6; }
21208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21209 $as_echo "$TAR_TYPE" >&6; }
21210 
21211   TAR_CREATE_FILE_PARAM=""
21212 
21213   if test "x$TAR_TYPE" = "xgnu"; then
21214     TAR_INCLUDE_PARAM="T"
21215     TAR_SUPPORTS_TRANSFORM="true"
21216     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21217       # When using gnu tar for Solaris targets, need to use compatibility mode
21218       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21219     fi
21220   else
21221     TAR_INCLUDE_PARAM="I"
21222     TAR_SUPPORTS_TRANSFORM="false"
21223   fi
21224 
21225 
21226 
21227 
21228 
21229 
21230   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21231   # This is a problem for the grep resident on AIX.
21232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21233 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21234   # Multiple subsequent spaces..
21235   STACK_SPACES='aaa   bbb   ccc'
21236   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21237   # patterns in it.
21238   STACK_LIST=${STACK_SPACES// /$'\n'}
21239   NEEDLE_SPACES='ccc bbb aaa'
21240   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21241   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21242   if test "x$RESULT" == "x"; then
21243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21244 $as_echo "yes" >&6; }
21245   else
21246     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21247       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21248     fi
21249     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21250   fi
21251 
21252 
21253   # These tools might not be installed by default,
21254   # need hint on how to install them.
21255 
21256 
21257 
21258   # Publish this variable in the help.
21259 
21260 
21261   if [ -z "${UNZIP+x}" ]; then
21262     # The variable is not set by user, try to locate tool using the code snippet
21263     for ac_prog in unzip
21264 do
21265   # Extract the first word of "$ac_prog", so it can be a program name with args.
21266 set dummy $ac_prog; ac_word=$2
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21268 $as_echo_n "checking for $ac_word... " >&6; }
21269 if ${ac_cv_path_UNZIP+:} false; then :
21270   $as_echo_n "(cached) " >&6
21271 else
21272   case $UNZIP in
21273   [\\/]* | ?:[\\/]*)
21274   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21275   ;;
21276   *)
21277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21278 for as_dir in $PATH
21279 do
21280   IFS=$as_save_IFS
21281   test -z "$as_dir" && as_dir=.
21282     for ac_exec_ext in '' $ac_executable_extensions; do
21283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21284     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21286     break 2
21287   fi
21288 done
21289   done
21290 IFS=$as_save_IFS
21291 
21292   ;;
21293 esac
21294 fi
21295 UNZIP=$ac_cv_path_UNZIP
21296 if test -n "$UNZIP"; then
21297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21298 $as_echo "$UNZIP" >&6; }
21299 else
21300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21301 $as_echo "no" >&6; }
21302 fi
21303 
21304 
21305   test -n "$UNZIP" && break
21306 done
21307 
21308   else
21309     # The variable is set, but is it from the command line or the environment?
21310 
21311     # Try to remove the string !UNZIP! from our list.
21312     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21313     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21314       # If it failed, the variable was not from the command line. Ignore it,
21315       # but warn the user (except for BASH, which is always set by the calling BASH).
21316       if test "xUNZIP" != xBASH; then
21317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21318 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21319       fi
21320       # Try to locate tool using the code snippet
21321       for ac_prog in unzip
21322 do
21323   # Extract the first word of "$ac_prog", so it can be a program name with args.
21324 set dummy $ac_prog; ac_word=$2
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21326 $as_echo_n "checking for $ac_word... " >&6; }
21327 if ${ac_cv_path_UNZIP+:} false; then :
21328   $as_echo_n "(cached) " >&6
21329 else
21330   case $UNZIP in
21331   [\\/]* | ?:[\\/]*)
21332   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21333   ;;
21334   *)
21335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21336 for as_dir in $PATH
21337 do
21338   IFS=$as_save_IFS
21339   test -z "$as_dir" && as_dir=.
21340     for ac_exec_ext in '' $ac_executable_extensions; do
21341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21342     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21344     break 2
21345   fi
21346 done
21347   done
21348 IFS=$as_save_IFS
21349 
21350   ;;
21351 esac
21352 fi
21353 UNZIP=$ac_cv_path_UNZIP
21354 if test -n "$UNZIP"; then
21355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21356 $as_echo "$UNZIP" >&6; }
21357 else
21358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21359 $as_echo "no" >&6; }
21360 fi
21361 
21362 
21363   test -n "$UNZIP" && break
21364 done
21365 
21366     else
21367       # If it succeeded, then it was overridden by the user. We will use it
21368       # for the tool.
21369 
21370       # First remove it from the list of overridden variables, so we can test
21371       # for unknown variables in the end.
21372       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21373 
21374       # Check if we try to supply an empty value
21375       if test "x$UNZIP" = x; then
21376         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21377 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21378         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21379 $as_echo_n "checking for UNZIP... " >&6; }
21380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21381 $as_echo "disabled" >&6; }
21382       else
21383         # Check if the provided tool contains a complete path.
21384         tool_specified="$UNZIP"
21385         tool_basename="${tool_specified##*/}"
21386         if test "x$tool_basename" = "x$tool_specified"; then
21387           # A command without a complete path is provided, search $PATH.
21388           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21389 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21390           # Extract the first word of "$tool_basename", so it can be a program name with args.
21391 set dummy $tool_basename; ac_word=$2
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21393 $as_echo_n "checking for $ac_word... " >&6; }
21394 if ${ac_cv_path_UNZIP+:} false; then :
21395   $as_echo_n "(cached) " >&6
21396 else
21397   case $UNZIP in
21398   [\\/]* | ?:[\\/]*)
21399   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21400   ;;
21401   *)
21402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21403 for as_dir in $PATH
21404 do
21405   IFS=$as_save_IFS
21406   test -z "$as_dir" && as_dir=.
21407     for ac_exec_ext in '' $ac_executable_extensions; do
21408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21409     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21411     break 2
21412   fi
21413 done
21414   done
21415 IFS=$as_save_IFS
21416 
21417   ;;
21418 esac
21419 fi
21420 UNZIP=$ac_cv_path_UNZIP
21421 if test -n "$UNZIP"; then
21422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21423 $as_echo "$UNZIP" >&6; }
21424 else
21425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21426 $as_echo "no" >&6; }
21427 fi
21428 
21429 
21430           if test "x$UNZIP" = x; then
21431             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21432           fi
21433         else
21434           # Otherwise we believe it is a complete path. Use it as it is.
21435           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21436 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21437           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21438 $as_echo_n "checking for UNZIP... " >&6; }
21439           if test ! -x "$tool_specified"; then
21440             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21441 $as_echo "not found" >&6; }
21442             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21443           fi
21444           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21445 $as_echo "$tool_specified" >&6; }
21446         fi
21447       fi
21448     fi
21449 
21450   fi
21451 
21452 
21453 
21454   if test "x$UNZIP" = x; then
21455     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21456   fi
21457 
21458 
21459   # Since zip uses "ZIP" as a environment variable for passing options, we need
21460   # to name our variable differently, hence ZIPEXE.
21461 
21462 
21463 
21464   # Publish this variable in the help.
21465 
21466 
21467   if [ -z "${ZIPEXE+x}" ]; then
21468     # The variable is not set by user, try to locate tool using the code snippet
21469     for ac_prog in zip
21470 do
21471   # Extract the first word of "$ac_prog", so it can be a program name with args.
21472 set dummy $ac_prog; ac_word=$2
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21474 $as_echo_n "checking for $ac_word... " >&6; }
21475 if ${ac_cv_path_ZIPEXE+:} false; then :
21476   $as_echo_n "(cached) " >&6
21477 else
21478   case $ZIPEXE in
21479   [\\/]* | ?:[\\/]*)
21480   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21481   ;;
21482   *)
21483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21484 for as_dir in $PATH
21485 do
21486   IFS=$as_save_IFS
21487   test -z "$as_dir" && as_dir=.
21488     for ac_exec_ext in '' $ac_executable_extensions; do
21489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21490     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21492     break 2
21493   fi
21494 done
21495   done
21496 IFS=$as_save_IFS
21497 
21498   ;;
21499 esac
21500 fi
21501 ZIPEXE=$ac_cv_path_ZIPEXE
21502 if test -n "$ZIPEXE"; then
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21504 $as_echo "$ZIPEXE" >&6; }
21505 else
21506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21507 $as_echo "no" >&6; }
21508 fi
21509 
21510 
21511   test -n "$ZIPEXE" && break
21512 done
21513 
21514   else
21515     # The variable is set, but is it from the command line or the environment?
21516 
21517     # Try to remove the string !ZIPEXE! from our list.
21518     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21519     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21520       # If it failed, the variable was not from the command line. Ignore it,
21521       # but warn the user (except for BASH, which is always set by the calling BASH).
21522       if test "xZIPEXE" != xBASH; then
21523         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21524 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21525       fi
21526       # Try to locate tool using the code snippet
21527       for ac_prog in zip
21528 do
21529   # Extract the first word of "$ac_prog", so it can be a program name with args.
21530 set dummy $ac_prog; ac_word=$2
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21532 $as_echo_n "checking for $ac_word... " >&6; }
21533 if ${ac_cv_path_ZIPEXE+:} false; then :
21534   $as_echo_n "(cached) " >&6
21535 else
21536   case $ZIPEXE in
21537   [\\/]* | ?:[\\/]*)
21538   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21539   ;;
21540   *)
21541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21542 for as_dir in $PATH
21543 do
21544   IFS=$as_save_IFS
21545   test -z "$as_dir" && as_dir=.
21546     for ac_exec_ext in '' $ac_executable_extensions; do
21547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21548     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21550     break 2
21551   fi
21552 done
21553   done
21554 IFS=$as_save_IFS
21555 
21556   ;;
21557 esac
21558 fi
21559 ZIPEXE=$ac_cv_path_ZIPEXE
21560 if test -n "$ZIPEXE"; then
21561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21562 $as_echo "$ZIPEXE" >&6; }
21563 else
21564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565 $as_echo "no" >&6; }
21566 fi
21567 
21568 
21569   test -n "$ZIPEXE" && break
21570 done
21571 
21572     else
21573       # If it succeeded, then it was overridden by the user. We will use it
21574       # for the tool.
21575 
21576       # First remove it from the list of overridden variables, so we can test
21577       # for unknown variables in the end.
21578       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21579 
21580       # Check if we try to supply an empty value
21581       if test "x$ZIPEXE" = x; then
21582         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21583 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21585 $as_echo_n "checking for ZIPEXE... " >&6; }
21586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21587 $as_echo "disabled" >&6; }
21588       else
21589         # Check if the provided tool contains a complete path.
21590         tool_specified="$ZIPEXE"
21591         tool_basename="${tool_specified##*/}"
21592         if test "x$tool_basename" = "x$tool_specified"; then
21593           # A command without a complete path is provided, search $PATH.
21594           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21595 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21596           # Extract the first word of "$tool_basename", so it can be a program name with args.
21597 set dummy $tool_basename; ac_word=$2
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21599 $as_echo_n "checking for $ac_word... " >&6; }
21600 if ${ac_cv_path_ZIPEXE+:} false; then :
21601   $as_echo_n "(cached) " >&6
21602 else
21603   case $ZIPEXE in
21604   [\\/]* | ?:[\\/]*)
21605   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21606   ;;
21607   *)
21608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21609 for as_dir in $PATH
21610 do
21611   IFS=$as_save_IFS
21612   test -z "$as_dir" && as_dir=.
21613     for ac_exec_ext in '' $ac_executable_extensions; do
21614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21615     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21617     break 2
21618   fi
21619 done
21620   done
21621 IFS=$as_save_IFS
21622 
21623   ;;
21624 esac
21625 fi
21626 ZIPEXE=$ac_cv_path_ZIPEXE
21627 if test -n "$ZIPEXE"; then
21628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21629 $as_echo "$ZIPEXE" >&6; }
21630 else
21631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21632 $as_echo "no" >&6; }
21633 fi
21634 
21635 
21636           if test "x$ZIPEXE" = x; then
21637             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21638           fi
21639         else
21640           # Otherwise we believe it is a complete path. Use it as it is.
21641           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21642 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21644 $as_echo_n "checking for ZIPEXE... " >&6; }
21645           if test ! -x "$tool_specified"; then
21646             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21647 $as_echo "not found" >&6; }
21648             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21649           fi
21650           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21651 $as_echo "$tool_specified" >&6; }
21652         fi
21653       fi
21654     fi
21655 
21656   fi
21657 
21658 
21659 
21660   if test "x$ZIPEXE" = x; then
21661     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21662   fi
21663 
21664 
21665 
21666   # Non-required basic tools
21667 
21668 
21669 
21670   # Publish this variable in the help.
21671 
21672 
21673   if [ -z "${LDD+x}" ]; then
21674     # The variable is not set by user, try to locate tool using the code snippet
21675     for ac_prog in ldd
21676 do
21677   # Extract the first word of "$ac_prog", so it can be a program name with args.
21678 set dummy $ac_prog; ac_word=$2
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21680 $as_echo_n "checking for $ac_word... " >&6; }
21681 if ${ac_cv_path_LDD+:} false; then :
21682   $as_echo_n "(cached) " >&6
21683 else
21684   case $LDD in
21685   [\\/]* | ?:[\\/]*)
21686   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21687   ;;
21688   *)
21689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21690 for as_dir in $PATH
21691 do
21692   IFS=$as_save_IFS
21693   test -z "$as_dir" && as_dir=.
21694     for ac_exec_ext in '' $ac_executable_extensions; do
21695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21696     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21698     break 2
21699   fi
21700 done
21701   done
21702 IFS=$as_save_IFS
21703 
21704   ;;
21705 esac
21706 fi
21707 LDD=$ac_cv_path_LDD
21708 if test -n "$LDD"; then
21709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21710 $as_echo "$LDD" >&6; }
21711 else
21712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 $as_echo "no" >&6; }
21714 fi
21715 
21716 
21717   test -n "$LDD" && break
21718 done
21719 
21720   else
21721     # The variable is set, but is it from the command line or the environment?
21722 
21723     # Try to remove the string !LDD! from our list.
21724     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21725     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21726       # If it failed, the variable was not from the command line. Ignore it,
21727       # but warn the user (except for BASH, which is always set by the calling BASH).
21728       if test "xLDD" != xBASH; then
21729         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21730 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21731       fi
21732       # Try to locate tool using the code snippet
21733       for ac_prog in ldd
21734 do
21735   # Extract the first word of "$ac_prog", so it can be a program name with args.
21736 set dummy $ac_prog; ac_word=$2
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21738 $as_echo_n "checking for $ac_word... " >&6; }
21739 if ${ac_cv_path_LDD+:} false; then :
21740   $as_echo_n "(cached) " >&6
21741 else
21742   case $LDD in
21743   [\\/]* | ?:[\\/]*)
21744   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21745   ;;
21746   *)
21747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21748 for as_dir in $PATH
21749 do
21750   IFS=$as_save_IFS
21751   test -z "$as_dir" && as_dir=.
21752     for ac_exec_ext in '' $ac_executable_extensions; do
21753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21754     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21756     break 2
21757   fi
21758 done
21759   done
21760 IFS=$as_save_IFS
21761 
21762   ;;
21763 esac
21764 fi
21765 LDD=$ac_cv_path_LDD
21766 if test -n "$LDD"; then
21767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21768 $as_echo "$LDD" >&6; }
21769 else
21770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21771 $as_echo "no" >&6; }
21772 fi
21773 
21774 
21775   test -n "$LDD" && break
21776 done
21777 
21778     else
21779       # If it succeeded, then it was overridden by the user. We will use it
21780       # for the tool.
21781 
21782       # First remove it from the list of overridden variables, so we can test
21783       # for unknown variables in the end.
21784       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21785 
21786       # Check if we try to supply an empty value
21787       if test "x$LDD" = x; then
21788         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21789 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21791 $as_echo_n "checking for LDD... " >&6; }
21792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21793 $as_echo "disabled" >&6; }
21794       else
21795         # Check if the provided tool contains a complete path.
21796         tool_specified="$LDD"
21797         tool_basename="${tool_specified##*/}"
21798         if test "x$tool_basename" = "x$tool_specified"; then
21799           # A command without a complete path is provided, search $PATH.
21800           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21801 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21802           # Extract the first word of "$tool_basename", so it can be a program name with args.
21803 set dummy $tool_basename; ac_word=$2
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21805 $as_echo_n "checking for $ac_word... " >&6; }
21806 if ${ac_cv_path_LDD+:} false; then :
21807   $as_echo_n "(cached) " >&6
21808 else
21809   case $LDD in
21810   [\\/]* | ?:[\\/]*)
21811   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21812   ;;
21813   *)
21814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21816 do
21817   IFS=$as_save_IFS
21818   test -z "$as_dir" && as_dir=.
21819     for ac_exec_ext in '' $ac_executable_extensions; do
21820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21821     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21823     break 2
21824   fi
21825 done
21826   done
21827 IFS=$as_save_IFS
21828 
21829   ;;
21830 esac
21831 fi
21832 LDD=$ac_cv_path_LDD
21833 if test -n "$LDD"; then
21834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21835 $as_echo "$LDD" >&6; }
21836 else
21837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21838 $as_echo "no" >&6; }
21839 fi
21840 
21841 
21842           if test "x$LDD" = x; then
21843             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21844           fi
21845         else
21846           # Otherwise we believe it is a complete path. Use it as it is.
21847           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21848 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21849           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21850 $as_echo_n "checking for LDD... " >&6; }
21851           if test ! -x "$tool_specified"; then
21852             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21853 $as_echo "not found" >&6; }
21854             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21855           fi
21856           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21857 $as_echo "$tool_specified" >&6; }
21858         fi
21859       fi
21860     fi
21861 
21862   fi
21863 
21864 
21865   if test "x$LDD" = "x"; then
21866     # List shared lib dependencies is used for
21867     # debug output and checking for forbidden dependencies.
21868     # We can build without it.
21869     LDD="true"
21870   fi
21871 
21872 
21873   # Publish this variable in the help.
21874 
21875 
21876   if [ -z "${OTOOL+x}" ]; then
21877     # The variable is not set by user, try to locate tool using the code snippet
21878     for ac_prog in otool
21879 do
21880   # Extract the first word of "$ac_prog", so it can be a program name with args.
21881 set dummy $ac_prog; ac_word=$2
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21883 $as_echo_n "checking for $ac_word... " >&6; }
21884 if ${ac_cv_path_OTOOL+:} false; then :
21885   $as_echo_n "(cached) " >&6
21886 else
21887   case $OTOOL in
21888   [\\/]* | ?:[\\/]*)
21889   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21890   ;;
21891   *)
21892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21893 for as_dir in $PATH
21894 do
21895   IFS=$as_save_IFS
21896   test -z "$as_dir" && as_dir=.
21897     for ac_exec_ext in '' $ac_executable_extensions; do
21898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21899     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21901     break 2
21902   fi
21903 done
21904   done
21905 IFS=$as_save_IFS
21906 
21907   ;;
21908 esac
21909 fi
21910 OTOOL=$ac_cv_path_OTOOL
21911 if test -n "$OTOOL"; then
21912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21913 $as_echo "$OTOOL" >&6; }
21914 else
21915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21916 $as_echo "no" >&6; }
21917 fi
21918 
21919 
21920   test -n "$OTOOL" && break
21921 done
21922 
21923   else
21924     # The variable is set, but is it from the command line or the environment?
21925 
21926     # Try to remove the string !OTOOL! from our list.
21927     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21928     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21929       # If it failed, the variable was not from the command line. Ignore it,
21930       # but warn the user (except for BASH, which is always set by the calling BASH).
21931       if test "xOTOOL" != xBASH; then
21932         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21933 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21934       fi
21935       # Try to locate tool using the code snippet
21936       for ac_prog in otool
21937 do
21938   # Extract the first word of "$ac_prog", so it can be a program name with args.
21939 set dummy $ac_prog; ac_word=$2
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21941 $as_echo_n "checking for $ac_word... " >&6; }
21942 if ${ac_cv_path_OTOOL+:} false; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945   case $OTOOL in
21946   [\\/]* | ?:[\\/]*)
21947   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21948   ;;
21949   *)
21950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21951 for as_dir in $PATH
21952 do
21953   IFS=$as_save_IFS
21954   test -z "$as_dir" && as_dir=.
21955     for ac_exec_ext in '' $ac_executable_extensions; do
21956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21957     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21959     break 2
21960   fi
21961 done
21962   done
21963 IFS=$as_save_IFS
21964 
21965   ;;
21966 esac
21967 fi
21968 OTOOL=$ac_cv_path_OTOOL
21969 if test -n "$OTOOL"; then
21970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21971 $as_echo "$OTOOL" >&6; }
21972 else
21973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21975 fi
21976 
21977 
21978   test -n "$OTOOL" && break
21979 done
21980 
21981     else
21982       # If it succeeded, then it was overridden by the user. We will use it
21983       # for the tool.
21984 
21985       # First remove it from the list of overridden variables, so we can test
21986       # for unknown variables in the end.
21987       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21988 
21989       # Check if we try to supply an empty value
21990       if test "x$OTOOL" = x; then
21991         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21992 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21993         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21994 $as_echo_n "checking for OTOOL... " >&6; }
21995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21996 $as_echo "disabled" >&6; }
21997       else
21998         # Check if the provided tool contains a complete path.
21999         tool_specified="$OTOOL"
22000         tool_basename="${tool_specified##*/}"
22001         if test "x$tool_basename" = "x$tool_specified"; then
22002           # A command without a complete path is provided, search $PATH.
22003           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
22004 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
22005           # Extract the first word of "$tool_basename", so it can be a program name with args.
22006 set dummy $tool_basename; ac_word=$2
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22008 $as_echo_n "checking for $ac_word... " >&6; }
22009 if ${ac_cv_path_OTOOL+:} false; then :
22010   $as_echo_n "(cached) " >&6
22011 else
22012   case $OTOOL in
22013   [\\/]* | ?:[\\/]*)
22014   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
22015   ;;
22016   *)
22017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22018 for as_dir in $PATH
22019 do
22020   IFS=$as_save_IFS
22021   test -z "$as_dir" && as_dir=.
22022     for ac_exec_ext in '' $ac_executable_extensions; do
22023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22024     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
22025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22026     break 2
22027   fi
22028 done
22029   done
22030 IFS=$as_save_IFS
22031 
22032   ;;
22033 esac
22034 fi
22035 OTOOL=$ac_cv_path_OTOOL
22036 if test -n "$OTOOL"; then
22037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
22038 $as_echo "$OTOOL" >&6; }
22039 else
22040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22042 fi
22043 
22044 
22045           if test "x$OTOOL" = x; then
22046             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22047           fi
22048         else
22049           # Otherwise we believe it is a complete path. Use it as it is.
22050           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
22051 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
22052           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
22053 $as_echo_n "checking for OTOOL... " >&6; }
22054           if test ! -x "$tool_specified"; then
22055             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22056 $as_echo "not found" >&6; }
22057             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22058           fi
22059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22060 $as_echo "$tool_specified" >&6; }
22061         fi
22062       fi
22063     fi
22064 
22065   fi
22066 
22067 
22068   if test "x$OTOOL" = "x"; then
22069     OTOOL="true"
22070   fi
22071 
22072 
22073   # Publish this variable in the help.
22074 
22075 
22076   if [ -z "${READELF+x}" ]; then
22077     # The variable is not set by user, try to locate tool using the code snippet
22078     for ac_prog in greadelf readelf
22079 do
22080   # Extract the first word of "$ac_prog", so it can be a program name with args.
22081 set dummy $ac_prog; ac_word=$2
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22083 $as_echo_n "checking for $ac_word... " >&6; }
22084 if ${ac_cv_path_READELF+:} false; then :
22085   $as_echo_n "(cached) " >&6
22086 else
22087   case $READELF in
22088   [\\/]* | ?:[\\/]*)
22089   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22090   ;;
22091   *)
22092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22093 for as_dir in $PATH
22094 do
22095   IFS=$as_save_IFS
22096   test -z "$as_dir" && as_dir=.
22097     for ac_exec_ext in '' $ac_executable_extensions; do
22098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22099     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22101     break 2
22102   fi
22103 done
22104   done
22105 IFS=$as_save_IFS
22106 
22107   ;;
22108 esac
22109 fi
22110 READELF=$ac_cv_path_READELF
22111 if test -n "$READELF"; then
22112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22113 $as_echo "$READELF" >&6; }
22114 else
22115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22116 $as_echo "no" >&6; }
22117 fi
22118 
22119 
22120   test -n "$READELF" && break
22121 done
22122 
22123   else
22124     # The variable is set, but is it from the command line or the environment?
22125 
22126     # Try to remove the string !READELF! from our list.
22127     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22128     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22129       # If it failed, the variable was not from the command line. Ignore it,
22130       # but warn the user (except for BASH, which is always set by the calling BASH).
22131       if test "xREADELF" != xBASH; then
22132         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22133 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22134       fi
22135       # Try to locate tool using the code snippet
22136       for ac_prog in greadelf readelf
22137 do
22138   # Extract the first word of "$ac_prog", so it can be a program name with args.
22139 set dummy $ac_prog; ac_word=$2
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22141 $as_echo_n "checking for $ac_word... " >&6; }
22142 if ${ac_cv_path_READELF+:} false; then :
22143   $as_echo_n "(cached) " >&6
22144 else
22145   case $READELF in
22146   [\\/]* | ?:[\\/]*)
22147   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22148   ;;
22149   *)
22150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22151 for as_dir in $PATH
22152 do
22153   IFS=$as_save_IFS
22154   test -z "$as_dir" && as_dir=.
22155     for ac_exec_ext in '' $ac_executable_extensions; do
22156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22157     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22159     break 2
22160   fi
22161 done
22162   done
22163 IFS=$as_save_IFS
22164 
22165   ;;
22166 esac
22167 fi
22168 READELF=$ac_cv_path_READELF
22169 if test -n "$READELF"; then
22170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22171 $as_echo "$READELF" >&6; }
22172 else
22173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22174 $as_echo "no" >&6; }
22175 fi
22176 
22177 
22178   test -n "$READELF" && break
22179 done
22180 
22181     else
22182       # If it succeeded, then it was overridden by the user. We will use it
22183       # for the tool.
22184 
22185       # First remove it from the list of overridden variables, so we can test
22186       # for unknown variables in the end.
22187       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22188 
22189       # Check if we try to supply an empty value
22190       if test "x$READELF" = x; then
22191         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22192 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22194 $as_echo_n "checking for READELF... " >&6; }
22195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22196 $as_echo "disabled" >&6; }
22197       else
22198         # Check if the provided tool contains a complete path.
22199         tool_specified="$READELF"
22200         tool_basename="${tool_specified##*/}"
22201         if test "x$tool_basename" = "x$tool_specified"; then
22202           # A command without a complete path is provided, search $PATH.
22203           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22204 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22205           # Extract the first word of "$tool_basename", so it can be a program name with args.
22206 set dummy $tool_basename; ac_word=$2
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22208 $as_echo_n "checking for $ac_word... " >&6; }
22209 if ${ac_cv_path_READELF+:} false; then :
22210   $as_echo_n "(cached) " >&6
22211 else
22212   case $READELF in
22213   [\\/]* | ?:[\\/]*)
22214   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22215   ;;
22216   *)
22217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22218 for as_dir in $PATH
22219 do
22220   IFS=$as_save_IFS
22221   test -z "$as_dir" && as_dir=.
22222     for ac_exec_ext in '' $ac_executable_extensions; do
22223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22224     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22226     break 2
22227   fi
22228 done
22229   done
22230 IFS=$as_save_IFS
22231 
22232   ;;
22233 esac
22234 fi
22235 READELF=$ac_cv_path_READELF
22236 if test -n "$READELF"; then
22237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22238 $as_echo "$READELF" >&6; }
22239 else
22240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22241 $as_echo "no" >&6; }
22242 fi
22243 
22244 
22245           if test "x$READELF" = x; then
22246             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22247           fi
22248         else
22249           # Otherwise we believe it is a complete path. Use it as it is.
22250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22251 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22252           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22253 $as_echo_n "checking for READELF... " >&6; }
22254           if test ! -x "$tool_specified"; then
22255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22256 $as_echo "not found" >&6; }
22257             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22258           fi
22259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22260 $as_echo "$tool_specified" >&6; }
22261         fi
22262       fi
22263     fi
22264 
22265   fi
22266 
22267 
22268 
22269 
22270   # Publish this variable in the help.
22271 
22272 
22273   if [ -z "${HG+x}" ]; then
22274     # The variable is not set by user, try to locate tool using the code snippet
22275     for ac_prog in hg
22276 do
22277   # Extract the first word of "$ac_prog", so it can be a program name with args.
22278 set dummy $ac_prog; ac_word=$2
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22280 $as_echo_n "checking for $ac_word... " >&6; }
22281 if ${ac_cv_path_HG+:} false; then :
22282   $as_echo_n "(cached) " >&6
22283 else
22284   case $HG in
22285   [\\/]* | ?:[\\/]*)
22286   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22287   ;;
22288   *)
22289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22290 for as_dir in $PATH
22291 do
22292   IFS=$as_save_IFS
22293   test -z "$as_dir" && as_dir=.
22294     for ac_exec_ext in '' $ac_executable_extensions; do
22295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22296     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22298     break 2
22299   fi
22300 done
22301   done
22302 IFS=$as_save_IFS
22303 
22304   ;;
22305 esac
22306 fi
22307 HG=$ac_cv_path_HG
22308 if test -n "$HG"; then
22309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22310 $as_echo "$HG" >&6; }
22311 else
22312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22313 $as_echo "no" >&6; }
22314 fi
22315 
22316 
22317   test -n "$HG" && break
22318 done
22319 
22320   else
22321     # The variable is set, but is it from the command line or the environment?
22322 
22323     # Try to remove the string !HG! from our list.
22324     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22325     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22326       # If it failed, the variable was not from the command line. Ignore it,
22327       # but warn the user (except for BASH, which is always set by the calling BASH).
22328       if test "xHG" != xBASH; then
22329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22330 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22331       fi
22332       # Try to locate tool using the code snippet
22333       for ac_prog in hg
22334 do
22335   # Extract the first word of "$ac_prog", so it can be a program name with args.
22336 set dummy $ac_prog; ac_word=$2
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22338 $as_echo_n "checking for $ac_word... " >&6; }
22339 if ${ac_cv_path_HG+:} false; then :
22340   $as_echo_n "(cached) " >&6
22341 else
22342   case $HG in
22343   [\\/]* | ?:[\\/]*)
22344   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22345   ;;
22346   *)
22347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22348 for as_dir in $PATH
22349 do
22350   IFS=$as_save_IFS
22351   test -z "$as_dir" && as_dir=.
22352     for ac_exec_ext in '' $ac_executable_extensions; do
22353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22354     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22356     break 2
22357   fi
22358 done
22359   done
22360 IFS=$as_save_IFS
22361 
22362   ;;
22363 esac
22364 fi
22365 HG=$ac_cv_path_HG
22366 if test -n "$HG"; then
22367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22368 $as_echo "$HG" >&6; }
22369 else
22370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22371 $as_echo "no" >&6; }
22372 fi
22373 
22374 
22375   test -n "$HG" && break
22376 done
22377 
22378     else
22379       # If it succeeded, then it was overridden by the user. We will use it
22380       # for the tool.
22381 
22382       # First remove it from the list of overridden variables, so we can test
22383       # for unknown variables in the end.
22384       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22385 
22386       # Check if we try to supply an empty value
22387       if test "x$HG" = x; then
22388         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22389 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22391 $as_echo_n "checking for HG... " >&6; }
22392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22393 $as_echo "disabled" >&6; }
22394       else
22395         # Check if the provided tool contains a complete path.
22396         tool_specified="$HG"
22397         tool_basename="${tool_specified##*/}"
22398         if test "x$tool_basename" = "x$tool_specified"; then
22399           # A command without a complete path is provided, search $PATH.
22400           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22401 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22402           # Extract the first word of "$tool_basename", so it can be a program name with args.
22403 set dummy $tool_basename; ac_word=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if ${ac_cv_path_HG+:} false; then :
22407   $as_echo_n "(cached) " >&6
22408 else
22409   case $HG in
22410   [\\/]* | ?:[\\/]*)
22411   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22412   ;;
22413   *)
22414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22416 do
22417   IFS=$as_save_IFS
22418   test -z "$as_dir" && as_dir=.
22419     for ac_exec_ext in '' $ac_executable_extensions; do
22420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22421     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22423     break 2
22424   fi
22425 done
22426   done
22427 IFS=$as_save_IFS
22428 
22429   ;;
22430 esac
22431 fi
22432 HG=$ac_cv_path_HG
22433 if test -n "$HG"; then
22434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22435 $as_echo "$HG" >&6; }
22436 else
22437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438 $as_echo "no" >&6; }
22439 fi
22440 
22441 
22442           if test "x$HG" = x; then
22443             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22444           fi
22445         else
22446           # Otherwise we believe it is a complete path. Use it as it is.
22447           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22448 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22449           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22450 $as_echo_n "checking for HG... " >&6; }
22451           if test ! -x "$tool_specified"; then
22452             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22453 $as_echo "not found" >&6; }
22454             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22455           fi
22456           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22457 $as_echo "$tool_specified" >&6; }
22458         fi
22459       fi
22460     fi
22461 
22462   fi
22463 
22464 
22465 
22466 
22467   # Publish this variable in the help.
22468 
22469 
22470   if [ -z "${STAT+x}" ]; then
22471     # The variable is not set by user, try to locate tool using the code snippet
22472     for ac_prog in stat
22473 do
22474   # Extract the first word of "$ac_prog", so it can be a program name with args.
22475 set dummy $ac_prog; ac_word=$2
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22477 $as_echo_n "checking for $ac_word... " >&6; }
22478 if ${ac_cv_path_STAT+:} false; then :
22479   $as_echo_n "(cached) " >&6
22480 else
22481   case $STAT in
22482   [\\/]* | ?:[\\/]*)
22483   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22484   ;;
22485   *)
22486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487 for as_dir in $PATH
22488 do
22489   IFS=$as_save_IFS
22490   test -z "$as_dir" && as_dir=.
22491     for ac_exec_ext in '' $ac_executable_extensions; do
22492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22493     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22495     break 2
22496   fi
22497 done
22498   done
22499 IFS=$as_save_IFS
22500 
22501   ;;
22502 esac
22503 fi
22504 STAT=$ac_cv_path_STAT
22505 if test -n "$STAT"; then
22506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22507 $as_echo "$STAT" >&6; }
22508 else
22509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22510 $as_echo "no" >&6; }
22511 fi
22512 
22513 
22514   test -n "$STAT" && break
22515 done
22516 
22517   else
22518     # The variable is set, but is it from the command line or the environment?
22519 
22520     # Try to remove the string !STAT! from our list.
22521     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22522     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22523       # If it failed, the variable was not from the command line. Ignore it,
22524       # but warn the user (except for BASH, which is always set by the calling BASH).
22525       if test "xSTAT" != xBASH; then
22526         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22527 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22528       fi
22529       # Try to locate tool using the code snippet
22530       for ac_prog in stat
22531 do
22532   # Extract the first word of "$ac_prog", so it can be a program name with args.
22533 set dummy $ac_prog; ac_word=$2
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22535 $as_echo_n "checking for $ac_word... " >&6; }
22536 if ${ac_cv_path_STAT+:} false; then :
22537   $as_echo_n "(cached) " >&6
22538 else
22539   case $STAT in
22540   [\\/]* | ?:[\\/]*)
22541   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22542   ;;
22543   *)
22544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22545 for as_dir in $PATH
22546 do
22547   IFS=$as_save_IFS
22548   test -z "$as_dir" && as_dir=.
22549     for ac_exec_ext in '' $ac_executable_extensions; do
22550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22551     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22553     break 2
22554   fi
22555 done
22556   done
22557 IFS=$as_save_IFS
22558 
22559   ;;
22560 esac
22561 fi
22562 STAT=$ac_cv_path_STAT
22563 if test -n "$STAT"; then
22564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22565 $as_echo "$STAT" >&6; }
22566 else
22567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22568 $as_echo "no" >&6; }
22569 fi
22570 
22571 
22572   test -n "$STAT" && break
22573 done
22574 
22575     else
22576       # If it succeeded, then it was overridden by the user. We will use it
22577       # for the tool.
22578 
22579       # First remove it from the list of overridden variables, so we can test
22580       # for unknown variables in the end.
22581       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22582 
22583       # Check if we try to supply an empty value
22584       if test "x$STAT" = x; then
22585         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22586 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22588 $as_echo_n "checking for STAT... " >&6; }
22589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22590 $as_echo "disabled" >&6; }
22591       else
22592         # Check if the provided tool contains a complete path.
22593         tool_specified="$STAT"
22594         tool_basename="${tool_specified##*/}"
22595         if test "x$tool_basename" = "x$tool_specified"; then
22596           # A command without a complete path is provided, search $PATH.
22597           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22598 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22599           # Extract the first word of "$tool_basename", so it can be a program name with args.
22600 set dummy $tool_basename; ac_word=$2
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22602 $as_echo_n "checking for $ac_word... " >&6; }
22603 if ${ac_cv_path_STAT+:} false; then :
22604   $as_echo_n "(cached) " >&6
22605 else
22606   case $STAT in
22607   [\\/]* | ?:[\\/]*)
22608   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22609   ;;
22610   *)
22611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22612 for as_dir in $PATH
22613 do
22614   IFS=$as_save_IFS
22615   test -z "$as_dir" && as_dir=.
22616     for ac_exec_ext in '' $ac_executable_extensions; do
22617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22618     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22620     break 2
22621   fi
22622 done
22623   done
22624 IFS=$as_save_IFS
22625 
22626   ;;
22627 esac
22628 fi
22629 STAT=$ac_cv_path_STAT
22630 if test -n "$STAT"; then
22631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22632 $as_echo "$STAT" >&6; }
22633 else
22634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22635 $as_echo "no" >&6; }
22636 fi
22637 
22638 
22639           if test "x$STAT" = x; then
22640             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22641           fi
22642         else
22643           # Otherwise we believe it is a complete path. Use it as it is.
22644           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22645 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22646           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22647 $as_echo_n "checking for STAT... " >&6; }
22648           if test ! -x "$tool_specified"; then
22649             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22650 $as_echo "not found" >&6; }
22651             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22652           fi
22653           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22654 $as_echo "$tool_specified" >&6; }
22655         fi
22656       fi
22657     fi
22658 
22659   fi
22660 
22661 
22662 
22663 
22664   # Publish this variable in the help.
22665 
22666 
22667   if [ -z "${TIME+x}" ]; then
22668     # The variable is not set by user, try to locate tool using the code snippet
22669     for ac_prog in time
22670 do
22671   # Extract the first word of "$ac_prog", so it can be a program name with args.
22672 set dummy $ac_prog; ac_word=$2
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22674 $as_echo_n "checking for $ac_word... " >&6; }
22675 if ${ac_cv_path_TIME+:} false; then :
22676   $as_echo_n "(cached) " >&6
22677 else
22678   case $TIME in
22679   [\\/]* | ?:[\\/]*)
22680   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22681   ;;
22682   *)
22683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22684 for as_dir in $PATH
22685 do
22686   IFS=$as_save_IFS
22687   test -z "$as_dir" && as_dir=.
22688     for ac_exec_ext in '' $ac_executable_extensions; do
22689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22690     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22692     break 2
22693   fi
22694 done
22695   done
22696 IFS=$as_save_IFS
22697 
22698   ;;
22699 esac
22700 fi
22701 TIME=$ac_cv_path_TIME
22702 if test -n "$TIME"; then
22703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22704 $as_echo "$TIME" >&6; }
22705 else
22706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707 $as_echo "no" >&6; }
22708 fi
22709 
22710 
22711   test -n "$TIME" && break
22712 done
22713 
22714   else
22715     # The variable is set, but is it from the command line or the environment?
22716 
22717     # Try to remove the string !TIME! from our list.
22718     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22719     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22720       # If it failed, the variable was not from the command line. Ignore it,
22721       # but warn the user (except for BASH, which is always set by the calling BASH).
22722       if test "xTIME" != xBASH; then
22723         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22724 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22725       fi
22726       # Try to locate tool using the code snippet
22727       for ac_prog in time
22728 do
22729   # Extract the first word of "$ac_prog", so it can be a program name with args.
22730 set dummy $ac_prog; ac_word=$2
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22732 $as_echo_n "checking for $ac_word... " >&6; }
22733 if ${ac_cv_path_TIME+:} false; then :
22734   $as_echo_n "(cached) " >&6
22735 else
22736   case $TIME in
22737   [\\/]* | ?:[\\/]*)
22738   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22739   ;;
22740   *)
22741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22742 for as_dir in $PATH
22743 do
22744   IFS=$as_save_IFS
22745   test -z "$as_dir" && as_dir=.
22746     for ac_exec_ext in '' $ac_executable_extensions; do
22747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22748     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22750     break 2
22751   fi
22752 done
22753   done
22754 IFS=$as_save_IFS
22755 
22756   ;;
22757 esac
22758 fi
22759 TIME=$ac_cv_path_TIME
22760 if test -n "$TIME"; then
22761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22762 $as_echo "$TIME" >&6; }
22763 else
22764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22765 $as_echo "no" >&6; }
22766 fi
22767 
22768 
22769   test -n "$TIME" && break
22770 done
22771 
22772     else
22773       # If it succeeded, then it was overridden by the user. We will use it
22774       # for the tool.
22775 
22776       # First remove it from the list of overridden variables, so we can test
22777       # for unknown variables in the end.
22778       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22779 
22780       # Check if we try to supply an empty value
22781       if test "x$TIME" = x; then
22782         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22783 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22785 $as_echo_n "checking for TIME... " >&6; }
22786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22787 $as_echo "disabled" >&6; }
22788       else
22789         # Check if the provided tool contains a complete path.
22790         tool_specified="$TIME"
22791         tool_basename="${tool_specified##*/}"
22792         if test "x$tool_basename" = "x$tool_specified"; then
22793           # A command without a complete path is provided, search $PATH.
22794           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22795 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22796           # Extract the first word of "$tool_basename", so it can be a program name with args.
22797 set dummy $tool_basename; ac_word=$2
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22799 $as_echo_n "checking for $ac_word... " >&6; }
22800 if ${ac_cv_path_TIME+:} false; then :
22801   $as_echo_n "(cached) " >&6
22802 else
22803   case $TIME in
22804   [\\/]* | ?:[\\/]*)
22805   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22806   ;;
22807   *)
22808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22809 for as_dir in $PATH
22810 do
22811   IFS=$as_save_IFS
22812   test -z "$as_dir" && as_dir=.
22813     for ac_exec_ext in '' $ac_executable_extensions; do
22814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22815     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22817     break 2
22818   fi
22819 done
22820   done
22821 IFS=$as_save_IFS
22822 
22823   ;;
22824 esac
22825 fi
22826 TIME=$ac_cv_path_TIME
22827 if test -n "$TIME"; then
22828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22829 $as_echo "$TIME" >&6; }
22830 else
22831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 $as_echo "no" >&6; }
22833 fi
22834 
22835 
22836           if test "x$TIME" = x; then
22837             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22838           fi
22839         else
22840           # Otherwise we believe it is a complete path. Use it as it is.
22841           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22842 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22843           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22844 $as_echo_n "checking for TIME... " >&6; }
22845           if test ! -x "$tool_specified"; then
22846             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22847 $as_echo "not found" >&6; }
22848             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22849           fi
22850           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22851 $as_echo "$tool_specified" >&6; }
22852         fi
22853       fi
22854     fi
22855 
22856   fi
22857 
22858 
22859   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
22860   # be in the user path.
22861 
22862 
22863   # Publish this variable in the help.
22864 
22865 
22866   if [ -z "${DTRACE+x}" ]; then
22867     # The variable is not set by user, try to locate tool using the code snippet
22868     for ac_prog in dtrace
22869 do
22870   # Extract the first word of "$ac_prog", so it can be a program name with args.
22871 set dummy $ac_prog; ac_word=$2
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22873 $as_echo_n "checking for $ac_word... " >&6; }
22874 if ${ac_cv_path_DTRACE+:} false; then :
22875   $as_echo_n "(cached) " >&6
22876 else
22877   case $DTRACE in
22878   [\\/]* | ?:[\\/]*)
22879   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22880   ;;
22881   *)
22882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22883 as_dummy="$PATH:/usr/sbin"
22884 for as_dir in $as_dummy
22885 do
22886   IFS=$as_save_IFS
22887   test -z "$as_dir" && as_dir=.
22888     for ac_exec_ext in '' $ac_executable_extensions; do
22889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22890     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22892     break 2
22893   fi
22894 done
22895   done
22896 IFS=$as_save_IFS
22897 
22898   ;;
22899 esac
22900 fi
22901 DTRACE=$ac_cv_path_DTRACE
22902 if test -n "$DTRACE"; then
22903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22904 $as_echo "$DTRACE" >&6; }
22905 else
22906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22907 $as_echo "no" >&6; }
22908 fi
22909 
22910 
22911   test -n "$DTRACE" && break
22912 done
22913 
22914   else
22915     # The variable is set, but is it from the command line or the environment?
22916 
22917     # Try to remove the string !DTRACE! from our list.
22918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22920       # If it failed, the variable was not from the command line. Ignore it,
22921       # but warn the user (except for BASH, which is always set by the calling BASH).
22922       if test "xDTRACE" != xBASH; then
22923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22924 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22925       fi
22926       # Try to locate tool using the code snippet
22927       for ac_prog in dtrace
22928 do
22929   # Extract the first word of "$ac_prog", so it can be a program name with args.
22930 set dummy $ac_prog; ac_word=$2
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22932 $as_echo_n "checking for $ac_word... " >&6; }
22933 if ${ac_cv_path_DTRACE+:} false; then :
22934   $as_echo_n "(cached) " >&6
22935 else
22936   case $DTRACE in
22937   [\\/]* | ?:[\\/]*)
22938   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22939   ;;
22940   *)
22941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22942 as_dummy="$PATH:/usr/sbin"
22943 for as_dir in $as_dummy
22944 do
22945   IFS=$as_save_IFS
22946   test -z "$as_dir" && as_dir=.
22947     for ac_exec_ext in '' $ac_executable_extensions; do
22948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22949     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22951     break 2
22952   fi
22953 done
22954   done
22955 IFS=$as_save_IFS
22956 
22957   ;;
22958 esac
22959 fi
22960 DTRACE=$ac_cv_path_DTRACE
22961 if test -n "$DTRACE"; then
22962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22963 $as_echo "$DTRACE" >&6; }
22964 else
22965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966 $as_echo "no" >&6; }
22967 fi
22968 
22969 
22970   test -n "$DTRACE" && break
22971 done
22972 
22973     else
22974       # If it succeeded, then it was overridden by the user. We will use it
22975       # for the tool.
22976 
22977       # First remove it from the list of overridden variables, so we can test
22978       # for unknown variables in the end.
22979       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22980 
22981       # Check if we try to supply an empty value
22982       if test "x$DTRACE" = x; then
22983         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22984 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22986 $as_echo_n "checking for DTRACE... " >&6; }
22987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22988 $as_echo "disabled" >&6; }
22989       else
22990         # Check if the provided tool contains a complete path.
22991         tool_specified="$DTRACE"
22992         tool_basename="${tool_specified##*/}"
22993         if test "x$tool_basename" = "x$tool_specified"; then
22994           # A command without a complete path is provided, search $PATH.
22995           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22996 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22997           # Extract the first word of "$tool_basename", so it can be a program name with args.
22998 set dummy $tool_basename; ac_word=$2
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23000 $as_echo_n "checking for $ac_word... " >&6; }
23001 if ${ac_cv_path_DTRACE+:} false; then :
23002   $as_echo_n "(cached) " >&6
23003 else
23004   case $DTRACE in
23005   [\\/]* | ?:[\\/]*)
23006   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23007   ;;
23008   *)
23009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23010 for as_dir in $PATH
23011 do
23012   IFS=$as_save_IFS
23013   test -z "$as_dir" && as_dir=.
23014     for ac_exec_ext in '' $ac_executable_extensions; do
23015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23016     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23018     break 2
23019   fi
23020 done
23021   done
23022 IFS=$as_save_IFS
23023 
23024   ;;
23025 esac
23026 fi
23027 DTRACE=$ac_cv_path_DTRACE
23028 if test -n "$DTRACE"; then
23029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23030 $as_echo "$DTRACE" >&6; }
23031 else
23032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033 $as_echo "no" >&6; }
23034 fi
23035 
23036 
23037           if test "x$DTRACE" = x; then
23038             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23039           fi
23040         else
23041           # Otherwise we believe it is a complete path. Use it as it is.
23042           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23043 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23044           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23045 $as_echo_n "checking for DTRACE... " >&6; }
23046           if test ! -x "$tool_specified"; then
23047             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23048 $as_echo "not found" >&6; }
23049             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23050           fi
23051           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23052 $as_echo "$tool_specified" >&6; }
23053         fi
23054       fi
23055     fi
23056 
23057   fi
23058 
23059 
23060 
23061 
23062   # Publish this variable in the help.
23063 
23064 
23065   if [ -z "${PATCH+x}" ]; then
23066     # The variable is not set by user, try to locate tool using the code snippet
23067     for ac_prog in gpatch patch
23068 do
23069   # Extract the first word of "$ac_prog", so it can be a program name with args.
23070 set dummy $ac_prog; ac_word=$2
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23072 $as_echo_n "checking for $ac_word... " >&6; }
23073 if ${ac_cv_path_PATCH+:} false; then :
23074   $as_echo_n "(cached) " >&6
23075 else
23076   case $PATCH in
23077   [\\/]* | ?:[\\/]*)
23078   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23079   ;;
23080   *)
23081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23082 for as_dir in $PATH
23083 do
23084   IFS=$as_save_IFS
23085   test -z "$as_dir" && as_dir=.
23086     for ac_exec_ext in '' $ac_executable_extensions; do
23087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23088     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23090     break 2
23091   fi
23092 done
23093   done
23094 IFS=$as_save_IFS
23095 
23096   ;;
23097 esac
23098 fi
23099 PATCH=$ac_cv_path_PATCH
23100 if test -n "$PATCH"; then
23101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23102 $as_echo "$PATCH" >&6; }
23103 else
23104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23105 $as_echo "no" >&6; }
23106 fi
23107 
23108 
23109   test -n "$PATCH" && break
23110 done
23111 
23112   else
23113     # The variable is set, but is it from the command line or the environment?
23114 
23115     # Try to remove the string !PATCH! from our list.
23116     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23117     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23118       # If it failed, the variable was not from the command line. Ignore it,
23119       # but warn the user (except for BASH, which is always set by the calling BASH).
23120       if test "xPATCH" != xBASH; then
23121         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23122 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23123       fi
23124       # Try to locate tool using the code snippet
23125       for ac_prog in gpatch patch
23126 do
23127   # Extract the first word of "$ac_prog", so it can be a program name with args.
23128 set dummy $ac_prog; ac_word=$2
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23130 $as_echo_n "checking for $ac_word... " >&6; }
23131 if ${ac_cv_path_PATCH+:} false; then :
23132   $as_echo_n "(cached) " >&6
23133 else
23134   case $PATCH in
23135   [\\/]* | ?:[\\/]*)
23136   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23137   ;;
23138   *)
23139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23140 for as_dir in $PATH
23141 do
23142   IFS=$as_save_IFS
23143   test -z "$as_dir" && as_dir=.
23144     for ac_exec_ext in '' $ac_executable_extensions; do
23145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23146     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23148     break 2
23149   fi
23150 done
23151   done
23152 IFS=$as_save_IFS
23153 
23154   ;;
23155 esac
23156 fi
23157 PATCH=$ac_cv_path_PATCH
23158 if test -n "$PATCH"; then
23159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23160 $as_echo "$PATCH" >&6; }
23161 else
23162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23163 $as_echo "no" >&6; }
23164 fi
23165 
23166 
23167   test -n "$PATCH" && break
23168 done
23169 
23170     else
23171       # If it succeeded, then it was overridden by the user. We will use it
23172       # for the tool.
23173 
23174       # First remove it from the list of overridden variables, so we can test
23175       # for unknown variables in the end.
23176       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23177 
23178       # Check if we try to supply an empty value
23179       if test "x$PATCH" = x; then
23180         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23181 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23183 $as_echo_n "checking for PATCH... " >&6; }
23184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23185 $as_echo "disabled" >&6; }
23186       else
23187         # Check if the provided tool contains a complete path.
23188         tool_specified="$PATCH"
23189         tool_basename="${tool_specified##*/}"
23190         if test "x$tool_basename" = "x$tool_specified"; then
23191           # A command without a complete path is provided, search $PATH.
23192           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23193 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23194           # Extract the first word of "$tool_basename", so it can be a program name with args.
23195 set dummy $tool_basename; ac_word=$2
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23197 $as_echo_n "checking for $ac_word... " >&6; }
23198 if ${ac_cv_path_PATCH+:} false; then :
23199   $as_echo_n "(cached) " >&6
23200 else
23201   case $PATCH in
23202   [\\/]* | ?:[\\/]*)
23203   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23204   ;;
23205   *)
23206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23207 for as_dir in $PATH
23208 do
23209   IFS=$as_save_IFS
23210   test -z "$as_dir" && as_dir=.
23211     for ac_exec_ext in '' $ac_executable_extensions; do
23212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23213     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23215     break 2
23216   fi
23217 done
23218   done
23219 IFS=$as_save_IFS
23220 
23221   ;;
23222 esac
23223 fi
23224 PATCH=$ac_cv_path_PATCH
23225 if test -n "$PATCH"; then
23226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23227 $as_echo "$PATCH" >&6; }
23228 else
23229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23230 $as_echo "no" >&6; }
23231 fi
23232 
23233 
23234           if test "x$PATCH" = x; then
23235             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23236           fi
23237         else
23238           # Otherwise we believe it is a complete path. Use it as it is.
23239           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23240 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23241           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23242 $as_echo_n "checking for PATCH... " >&6; }
23243           if test ! -x "$tool_specified"; then
23244             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23245 $as_echo "not found" >&6; }
23246             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23247           fi
23248           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23249 $as_echo "$tool_specified" >&6; }
23250         fi
23251       fi
23252     fi
23253 
23254   fi
23255 
23256 
23257   # Check if it's GNU time
23258   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23259   if test "x$IS_GNU_TIME" != x; then
23260     IS_GNU_TIME=yes
23261   else
23262     IS_GNU_TIME=no
23263   fi
23264 
23265 
23266   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23267 
23268 
23269 
23270   # Publish this variable in the help.
23271 
23272 
23273   if [ -z "${DSYMUTIL+x}" ]; then
23274     # The variable is not set by user, try to locate tool using the code snippet
23275     for ac_prog in dsymutil
23276 do
23277   # Extract the first word of "$ac_prog", so it can be a program name with args.
23278 set dummy $ac_prog; ac_word=$2
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23280 $as_echo_n "checking for $ac_word... " >&6; }
23281 if ${ac_cv_path_DSYMUTIL+:} false; then :
23282   $as_echo_n "(cached) " >&6
23283 else
23284   case $DSYMUTIL in
23285   [\\/]* | ?:[\\/]*)
23286   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23287   ;;
23288   *)
23289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23290 for as_dir in $PATH
23291 do
23292   IFS=$as_save_IFS
23293   test -z "$as_dir" && as_dir=.
23294     for ac_exec_ext in '' $ac_executable_extensions; do
23295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23296     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23298     break 2
23299   fi
23300 done
23301   done
23302 IFS=$as_save_IFS
23303 
23304   ;;
23305 esac
23306 fi
23307 DSYMUTIL=$ac_cv_path_DSYMUTIL
23308 if test -n "$DSYMUTIL"; then
23309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23310 $as_echo "$DSYMUTIL" >&6; }
23311 else
23312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23313 $as_echo "no" >&6; }
23314 fi
23315 
23316 
23317   test -n "$DSYMUTIL" && break
23318 done
23319 
23320   else
23321     # The variable is set, but is it from the command line or the environment?
23322 
23323     # Try to remove the string !DSYMUTIL! from our list.
23324     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23325     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23326       # If it failed, the variable was not from the command line. Ignore it,
23327       # but warn the user (except for BASH, which is always set by the calling BASH).
23328       if test "xDSYMUTIL" != xBASH; then
23329         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23330 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23331       fi
23332       # Try to locate tool using the code snippet
23333       for ac_prog in dsymutil
23334 do
23335   # Extract the first word of "$ac_prog", so it can be a program name with args.
23336 set dummy $ac_prog; ac_word=$2
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23338 $as_echo_n "checking for $ac_word... " >&6; }
23339 if ${ac_cv_path_DSYMUTIL+:} false; then :
23340   $as_echo_n "(cached) " >&6
23341 else
23342   case $DSYMUTIL in
23343   [\\/]* | ?:[\\/]*)
23344   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23345   ;;
23346   *)
23347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23348 for as_dir in $PATH
23349 do
23350   IFS=$as_save_IFS
23351   test -z "$as_dir" && as_dir=.
23352     for ac_exec_ext in '' $ac_executable_extensions; do
23353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23354     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23356     break 2
23357   fi
23358 done
23359   done
23360 IFS=$as_save_IFS
23361 
23362   ;;
23363 esac
23364 fi
23365 DSYMUTIL=$ac_cv_path_DSYMUTIL
23366 if test -n "$DSYMUTIL"; then
23367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23368 $as_echo "$DSYMUTIL" >&6; }
23369 else
23370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371 $as_echo "no" >&6; }
23372 fi
23373 
23374 
23375   test -n "$DSYMUTIL" && break
23376 done
23377 
23378     else
23379       # If it succeeded, then it was overridden by the user. We will use it
23380       # for the tool.
23381 
23382       # First remove it from the list of overridden variables, so we can test
23383       # for unknown variables in the end.
23384       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23385 
23386       # Check if we try to supply an empty value
23387       if test "x$DSYMUTIL" = x; then
23388         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23389 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23391 $as_echo_n "checking for DSYMUTIL... " >&6; }
23392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23393 $as_echo "disabled" >&6; }
23394       else
23395         # Check if the provided tool contains a complete path.
23396         tool_specified="$DSYMUTIL"
23397         tool_basename="${tool_specified##*/}"
23398         if test "x$tool_basename" = "x$tool_specified"; then
23399           # A command without a complete path is provided, search $PATH.
23400           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23401 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23402           # Extract the first word of "$tool_basename", so it can be a program name with args.
23403 set dummy $tool_basename; ac_word=$2
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23405 $as_echo_n "checking for $ac_word... " >&6; }
23406 if ${ac_cv_path_DSYMUTIL+:} false; then :
23407   $as_echo_n "(cached) " >&6
23408 else
23409   case $DSYMUTIL in
23410   [\\/]* | ?:[\\/]*)
23411   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23412   ;;
23413   *)
23414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23415 for as_dir in $PATH
23416 do
23417   IFS=$as_save_IFS
23418   test -z "$as_dir" && as_dir=.
23419     for ac_exec_ext in '' $ac_executable_extensions; do
23420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23421     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23423     break 2
23424   fi
23425 done
23426   done
23427 IFS=$as_save_IFS
23428 
23429   ;;
23430 esac
23431 fi
23432 DSYMUTIL=$ac_cv_path_DSYMUTIL
23433 if test -n "$DSYMUTIL"; then
23434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23435 $as_echo "$DSYMUTIL" >&6; }
23436 else
23437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23438 $as_echo "no" >&6; }
23439 fi
23440 
23441 
23442           if test "x$DSYMUTIL" = x; then
23443             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23444           fi
23445         else
23446           # Otherwise we believe it is a complete path. Use it as it is.
23447           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23448 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23449           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23450 $as_echo_n "checking for DSYMUTIL... " >&6; }
23451           if test ! -x "$tool_specified"; then
23452             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23453 $as_echo "not found" >&6; }
23454             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23455           fi
23456           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23457 $as_echo "$tool_specified" >&6; }
23458         fi
23459       fi
23460     fi
23461 
23462   fi
23463 
23464 
23465 
23466   if test "x$DSYMUTIL" = x; then
23467     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23468   fi
23469 
23470 
23471 
23472 
23473 
23474   # Publish this variable in the help.
23475 
23476 
23477   if [ -z "${XATTR+x}" ]; then
23478     # The variable is not set by user, try to locate tool using the code snippet
23479     for ac_prog in xattr
23480 do
23481   # Extract the first word of "$ac_prog", so it can be a program name with args.
23482 set dummy $ac_prog; ac_word=$2
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23484 $as_echo_n "checking for $ac_word... " >&6; }
23485 if ${ac_cv_path_XATTR+:} false; then :
23486   $as_echo_n "(cached) " >&6
23487 else
23488   case $XATTR in
23489   [\\/]* | ?:[\\/]*)
23490   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23491   ;;
23492   *)
23493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23494 for as_dir in $PATH
23495 do
23496   IFS=$as_save_IFS
23497   test -z "$as_dir" && as_dir=.
23498     for ac_exec_ext in '' $ac_executable_extensions; do
23499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23500     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23502     break 2
23503   fi
23504 done
23505   done
23506 IFS=$as_save_IFS
23507 
23508   ;;
23509 esac
23510 fi
23511 XATTR=$ac_cv_path_XATTR
23512 if test -n "$XATTR"; then
23513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23514 $as_echo "$XATTR" >&6; }
23515 else
23516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23517 $as_echo "no" >&6; }
23518 fi
23519 
23520 
23521   test -n "$XATTR" && break
23522 done
23523 
23524   else
23525     # The variable is set, but is it from the command line or the environment?
23526 
23527     # Try to remove the string !XATTR! from our list.
23528     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23529     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23530       # If it failed, the variable was not from the command line. Ignore it,
23531       # but warn the user (except for BASH, which is always set by the calling BASH).
23532       if test "xXATTR" != xBASH; then
23533         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23534 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23535       fi
23536       # Try to locate tool using the code snippet
23537       for ac_prog in xattr
23538 do
23539   # Extract the first word of "$ac_prog", so it can be a program name with args.
23540 set dummy $ac_prog; ac_word=$2
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23542 $as_echo_n "checking for $ac_word... " >&6; }
23543 if ${ac_cv_path_XATTR+:} false; then :
23544   $as_echo_n "(cached) " >&6
23545 else
23546   case $XATTR in
23547   [\\/]* | ?:[\\/]*)
23548   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23549   ;;
23550   *)
23551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23552 for as_dir in $PATH
23553 do
23554   IFS=$as_save_IFS
23555   test -z "$as_dir" && as_dir=.
23556     for ac_exec_ext in '' $ac_executable_extensions; do
23557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23558     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23560     break 2
23561   fi
23562 done
23563   done
23564 IFS=$as_save_IFS
23565 
23566   ;;
23567 esac
23568 fi
23569 XATTR=$ac_cv_path_XATTR
23570 if test -n "$XATTR"; then
23571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23572 $as_echo "$XATTR" >&6; }
23573 else
23574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23575 $as_echo "no" >&6; }
23576 fi
23577 
23578 
23579   test -n "$XATTR" && break
23580 done
23581 
23582     else
23583       # If it succeeded, then it was overridden by the user. We will use it
23584       # for the tool.
23585 
23586       # First remove it from the list of overridden variables, so we can test
23587       # for unknown variables in the end.
23588       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23589 
23590       # Check if we try to supply an empty value
23591       if test "x$XATTR" = x; then
23592         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23593 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23595 $as_echo_n "checking for XATTR... " >&6; }
23596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23597 $as_echo "disabled" >&6; }
23598       else
23599         # Check if the provided tool contains a complete path.
23600         tool_specified="$XATTR"
23601         tool_basename="${tool_specified##*/}"
23602         if test "x$tool_basename" = "x$tool_specified"; then
23603           # A command without a complete path is provided, search $PATH.
23604           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23605 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23606           # Extract the first word of "$tool_basename", so it can be a program name with args.
23607 set dummy $tool_basename; ac_word=$2
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23609 $as_echo_n "checking for $ac_word... " >&6; }
23610 if ${ac_cv_path_XATTR+:} false; then :
23611   $as_echo_n "(cached) " >&6
23612 else
23613   case $XATTR in
23614   [\\/]* | ?:[\\/]*)
23615   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23616   ;;
23617   *)
23618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23619 for as_dir in $PATH
23620 do
23621   IFS=$as_save_IFS
23622   test -z "$as_dir" && as_dir=.
23623     for ac_exec_ext in '' $ac_executable_extensions; do
23624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23625     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23627     break 2
23628   fi
23629 done
23630   done
23631 IFS=$as_save_IFS
23632 
23633   ;;
23634 esac
23635 fi
23636 XATTR=$ac_cv_path_XATTR
23637 if test -n "$XATTR"; then
23638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23639 $as_echo "$XATTR" >&6; }
23640 else
23641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642 $as_echo "no" >&6; }
23643 fi
23644 
23645 
23646           if test "x$XATTR" = x; then
23647             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23648           fi
23649         else
23650           # Otherwise we believe it is a complete path. Use it as it is.
23651           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23652 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23653           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23654 $as_echo_n "checking for XATTR... " >&6; }
23655           if test ! -x "$tool_specified"; then
23656             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23657 $as_echo "not found" >&6; }
23658             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23659           fi
23660           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23661 $as_echo "$tool_specified" >&6; }
23662         fi
23663       fi
23664     fi
23665 
23666   fi
23667 
23668 
23669 
23670   if test "x$XATTR" = x; then
23671     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23672   fi
23673 
23674 
23675 
23676 
23677   # Publish this variable in the help.
23678 
23679 
23680   if [ -z "${CODESIGN+x}" ]; then
23681     # The variable is not set by user, try to locate tool using the code snippet
23682     for ac_prog in codesign
23683 do
23684   # Extract the first word of "$ac_prog", so it can be a program name with args.
23685 set dummy $ac_prog; ac_word=$2
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23687 $as_echo_n "checking for $ac_word... " >&6; }
23688 if ${ac_cv_path_CODESIGN+:} false; then :
23689   $as_echo_n "(cached) " >&6
23690 else
23691   case $CODESIGN in
23692   [\\/]* | ?:[\\/]*)
23693   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23694   ;;
23695   *)
23696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23697 for as_dir in $PATH
23698 do
23699   IFS=$as_save_IFS
23700   test -z "$as_dir" && as_dir=.
23701     for ac_exec_ext in '' $ac_executable_extensions; do
23702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23703     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23705     break 2
23706   fi
23707 done
23708   done
23709 IFS=$as_save_IFS
23710 
23711   ;;
23712 esac
23713 fi
23714 CODESIGN=$ac_cv_path_CODESIGN
23715 if test -n "$CODESIGN"; then
23716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23717 $as_echo "$CODESIGN" >&6; }
23718 else
23719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23720 $as_echo "no" >&6; }
23721 fi
23722 
23723 
23724   test -n "$CODESIGN" && break
23725 done
23726 
23727   else
23728     # The variable is set, but is it from the command line or the environment?
23729 
23730     # Try to remove the string !CODESIGN! from our list.
23731     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23732     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23733       # If it failed, the variable was not from the command line. Ignore it,
23734       # but warn the user (except for BASH, which is always set by the calling BASH).
23735       if test "xCODESIGN" != xBASH; then
23736         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23737 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23738       fi
23739       # Try to locate tool using the code snippet
23740       for ac_prog in codesign
23741 do
23742   # Extract the first word of "$ac_prog", so it can be a program name with args.
23743 set dummy $ac_prog; ac_word=$2
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23745 $as_echo_n "checking for $ac_word... " >&6; }
23746 if ${ac_cv_path_CODESIGN+:} false; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   case $CODESIGN in
23750   [\\/]* | ?:[\\/]*)
23751   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23752   ;;
23753   *)
23754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23755 for as_dir in $PATH
23756 do
23757   IFS=$as_save_IFS
23758   test -z "$as_dir" && as_dir=.
23759     for ac_exec_ext in '' $ac_executable_extensions; do
23760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23761     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23763     break 2
23764   fi
23765 done
23766   done
23767 IFS=$as_save_IFS
23768 
23769   ;;
23770 esac
23771 fi
23772 CODESIGN=$ac_cv_path_CODESIGN
23773 if test -n "$CODESIGN"; then
23774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23775 $as_echo "$CODESIGN" >&6; }
23776 else
23777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23778 $as_echo "no" >&6; }
23779 fi
23780 
23781 
23782   test -n "$CODESIGN" && break
23783 done
23784 
23785     else
23786       # If it succeeded, then it was overridden by the user. We will use it
23787       # for the tool.
23788 
23789       # First remove it from the list of overridden variables, so we can test
23790       # for unknown variables in the end.
23791       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23792 
23793       # Check if we try to supply an empty value
23794       if test "x$CODESIGN" = x; then
23795         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23796 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23798 $as_echo_n "checking for CODESIGN... " >&6; }
23799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23800 $as_echo "disabled" >&6; }
23801       else
23802         # Check if the provided tool contains a complete path.
23803         tool_specified="$CODESIGN"
23804         tool_basename="${tool_specified##*/}"
23805         if test "x$tool_basename" = "x$tool_specified"; then
23806           # A command without a complete path is provided, search $PATH.
23807           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23808 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23809           # Extract the first word of "$tool_basename", so it can be a program name with args.
23810 set dummy $tool_basename; ac_word=$2
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23812 $as_echo_n "checking for $ac_word... " >&6; }
23813 if ${ac_cv_path_CODESIGN+:} false; then :
23814   $as_echo_n "(cached) " >&6
23815 else
23816   case $CODESIGN in
23817   [\\/]* | ?:[\\/]*)
23818   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23819   ;;
23820   *)
23821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23822 for as_dir in $PATH
23823 do
23824   IFS=$as_save_IFS
23825   test -z "$as_dir" && as_dir=.
23826     for ac_exec_ext in '' $ac_executable_extensions; do
23827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23828     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23830     break 2
23831   fi
23832 done
23833   done
23834 IFS=$as_save_IFS
23835 
23836   ;;
23837 esac
23838 fi
23839 CODESIGN=$ac_cv_path_CODESIGN
23840 if test -n "$CODESIGN"; then
23841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23842 $as_echo "$CODESIGN" >&6; }
23843 else
23844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23845 $as_echo "no" >&6; }
23846 fi
23847 
23848 
23849           if test "x$CODESIGN" = x; then
23850             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23851           fi
23852         else
23853           # Otherwise we believe it is a complete path. Use it as it is.
23854           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23855 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23856           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23857 $as_echo_n "checking for CODESIGN... " >&6; }
23858           if test ! -x "$tool_specified"; then
23859             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23860 $as_echo "not found" >&6; }
23861             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23862           fi
23863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23864 $as_echo "$tool_specified" >&6; }
23865         fi
23866       fi
23867     fi
23868 
23869   fi
23870 
23871 
23872     if test "x$CODESIGN" != "x"; then
23873       # Verify that the openjdk_codesign certificate is present
23874       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23875 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23876       $RM codesign-testfile
23877       $TOUCH codesign-testfile
23878       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23879       $RM codesign-testfile
23880       if test "x$CODESIGN" = x; then
23881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23882 $as_echo "no" >&6; }
23883       else
23884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23885 $as_echo "yes" >&6; }
23886       fi
23887     fi
23888 
23889 
23890 
23891   # Publish this variable in the help.
23892 
23893 
23894   if [ -z "${SETFILE+x}" ]; then
23895     # The variable is not set by user, try to locate tool using the code snippet
23896     for ac_prog in SetFile
23897 do
23898   # Extract the first word of "$ac_prog", so it can be a program name with args.
23899 set dummy $ac_prog; ac_word=$2
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23901 $as_echo_n "checking for $ac_word... " >&6; }
23902 if ${ac_cv_path_SETFILE+:} false; then :
23903   $as_echo_n "(cached) " >&6
23904 else
23905   case $SETFILE in
23906   [\\/]* | ?:[\\/]*)
23907   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23908   ;;
23909   *)
23910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23911 for as_dir in $PATH
23912 do
23913   IFS=$as_save_IFS
23914   test -z "$as_dir" && as_dir=.
23915     for ac_exec_ext in '' $ac_executable_extensions; do
23916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23917     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23919     break 2
23920   fi
23921 done
23922   done
23923 IFS=$as_save_IFS
23924 
23925   ;;
23926 esac
23927 fi
23928 SETFILE=$ac_cv_path_SETFILE
23929 if test -n "$SETFILE"; then
23930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23931 $as_echo "$SETFILE" >&6; }
23932 else
23933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23934 $as_echo "no" >&6; }
23935 fi
23936 
23937 
23938   test -n "$SETFILE" && break
23939 done
23940 
23941   else
23942     # The variable is set, but is it from the command line or the environment?
23943 
23944     # Try to remove the string !SETFILE! from our list.
23945     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23946     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23947       # If it failed, the variable was not from the command line. Ignore it,
23948       # but warn the user (except for BASH, which is always set by the calling BASH).
23949       if test "xSETFILE" != xBASH; then
23950         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23951 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23952       fi
23953       # Try to locate tool using the code snippet
23954       for ac_prog in SetFile
23955 do
23956   # Extract the first word of "$ac_prog", so it can be a program name with args.
23957 set dummy $ac_prog; ac_word=$2
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23959 $as_echo_n "checking for $ac_word... " >&6; }
23960 if ${ac_cv_path_SETFILE+:} false; then :
23961   $as_echo_n "(cached) " >&6
23962 else
23963   case $SETFILE in
23964   [\\/]* | ?:[\\/]*)
23965   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23966   ;;
23967   *)
23968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23969 for as_dir in $PATH
23970 do
23971   IFS=$as_save_IFS
23972   test -z "$as_dir" && as_dir=.
23973     for ac_exec_ext in '' $ac_executable_extensions; do
23974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23975     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23977     break 2
23978   fi
23979 done
23980   done
23981 IFS=$as_save_IFS
23982 
23983   ;;
23984 esac
23985 fi
23986 SETFILE=$ac_cv_path_SETFILE
23987 if test -n "$SETFILE"; then
23988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23989 $as_echo "$SETFILE" >&6; }
23990 else
23991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23992 $as_echo "no" >&6; }
23993 fi
23994 
23995 
23996   test -n "$SETFILE" && break
23997 done
23998 
23999     else
24000       # If it succeeded, then it was overridden by the user. We will use it
24001       # for the tool.
24002 
24003       # First remove it from the list of overridden variables, so we can test
24004       # for unknown variables in the end.
24005       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24006 
24007       # Check if we try to supply an empty value
24008       if test "x$SETFILE" = x; then
24009         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24010 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24012 $as_echo_n "checking for SETFILE... " >&6; }
24013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24014 $as_echo "disabled" >&6; }
24015       else
24016         # Check if the provided tool contains a complete path.
24017         tool_specified="$SETFILE"
24018         tool_basename="${tool_specified##*/}"
24019         if test "x$tool_basename" = "x$tool_specified"; then
24020           # A command without a complete path is provided, search $PATH.
24021           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24022 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24023           # Extract the first word of "$tool_basename", so it can be a program name with args.
24024 set dummy $tool_basename; ac_word=$2
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24026 $as_echo_n "checking for $ac_word... " >&6; }
24027 if ${ac_cv_path_SETFILE+:} false; then :
24028   $as_echo_n "(cached) " >&6
24029 else
24030   case $SETFILE in
24031   [\\/]* | ?:[\\/]*)
24032   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24033   ;;
24034   *)
24035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24036 for as_dir in $PATH
24037 do
24038   IFS=$as_save_IFS
24039   test -z "$as_dir" && as_dir=.
24040     for ac_exec_ext in '' $ac_executable_extensions; do
24041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24042     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24044     break 2
24045   fi
24046 done
24047   done
24048 IFS=$as_save_IFS
24049 
24050   ;;
24051 esac
24052 fi
24053 SETFILE=$ac_cv_path_SETFILE
24054 if test -n "$SETFILE"; then
24055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24056 $as_echo "$SETFILE" >&6; }
24057 else
24058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24059 $as_echo "no" >&6; }
24060 fi
24061 
24062 
24063           if test "x$SETFILE" = x; then
24064             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24065           fi
24066         else
24067           # Otherwise we believe it is a complete path. Use it as it is.
24068           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24069 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24070           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24071 $as_echo_n "checking for SETFILE... " >&6; }
24072           if test ! -x "$tool_specified"; then
24073             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24074 $as_echo "not found" >&6; }
24075             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24076           fi
24077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24078 $as_echo "$tool_specified" >&6; }
24079         fi
24080       fi
24081     fi
24082 
24083   fi
24084 
24085 
24086 
24087   if test "x$SETFILE" = x; then
24088     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24089   fi
24090 
24091 
24092   fi
24093 
24094 
24095   # Check bash version
24096   # Extra [ ] to stop m4 mangling
24097    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24099 $as_echo_n "checking bash version... " >&6; }
24100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24101 $as_echo "$BASH_VER" >&6; }
24102 
24103   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24104   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24105   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24106     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24107   fi
24108 
24109   # Test if bash supports pipefail.
24110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24111 $as_echo_n "checking if bash supports pipefail... " >&6; }
24112   if ${BASH} -c 'set -o pipefail'; then
24113     BASH_ARGS="$BASH_ARGS -o pipefail"
24114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24115 $as_echo "yes" >&6; }
24116   else
24117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24119   fi
24120 
24121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24122 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24123   if ${BASH} -e -c 'true'; then
24124     BASH_ARGS="$BASH_ARGS -e"
24125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24126 $as_echo "yes" >&6; }
24127   else
24128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24129 $as_echo "no" >&6; }
24130   fi
24131 
24132 
24133 
24134 
24135 # Check if pkg-config is available.
24136 
24137 
24138 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24139         if test -n "$ac_tool_prefix"; then
24140   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24143 $as_echo_n "checking for $ac_word... " >&6; }
24144 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24145   $as_echo_n "(cached) " >&6
24146 else
24147   case $PKG_CONFIG in
24148   [\\/]* | ?:[\\/]*)
24149   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24150   ;;
24151   *)
24152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24153 for as_dir in $PATH
24154 do
24155   IFS=$as_save_IFS
24156   test -z "$as_dir" && as_dir=.
24157     for ac_exec_ext in '' $ac_executable_extensions; do
24158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24159     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24161     break 2
24162   fi
24163 done
24164   done
24165 IFS=$as_save_IFS
24166 
24167   ;;
24168 esac
24169 fi
24170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24171 if test -n "$PKG_CONFIG"; then
24172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24173 $as_echo "$PKG_CONFIG" >&6; }
24174 else
24175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24176 $as_echo "no" >&6; }
24177 fi
24178 
24179 
24180 fi
24181 if test -z "$ac_cv_path_PKG_CONFIG"; then
24182   ac_pt_PKG_CONFIG=$PKG_CONFIG
24183   # Extract the first word of "pkg-config", so it can be a program name with args.
24184 set dummy pkg-config; ac_word=$2
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24186 $as_echo_n "checking for $ac_word... " >&6; }
24187 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24188   $as_echo_n "(cached) " >&6
24189 else
24190   case $ac_pt_PKG_CONFIG in
24191   [\\/]* | ?:[\\/]*)
24192   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24193   ;;
24194   *)
24195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24196 for as_dir in $PATH
24197 do
24198   IFS=$as_save_IFS
24199   test -z "$as_dir" && as_dir=.
24200     for ac_exec_ext in '' $ac_executable_extensions; do
24201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24202     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24204     break 2
24205   fi
24206 done
24207   done
24208 IFS=$as_save_IFS
24209 
24210   ;;
24211 esac
24212 fi
24213 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24214 if test -n "$ac_pt_PKG_CONFIG"; then
24215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24216 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24217 else
24218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24219 $as_echo "no" >&6; }
24220 fi
24221 
24222   if test "x$ac_pt_PKG_CONFIG" = x; then
24223     PKG_CONFIG=""
24224   else
24225     case $cross_compiling:$ac_tool_warned in
24226 yes:)
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24229 ac_tool_warned=yes ;;
24230 esac
24231     PKG_CONFIG=$ac_pt_PKG_CONFIG
24232   fi
24233 else
24234   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24235 fi
24236 
24237 fi
24238 if test -n "$PKG_CONFIG"; then
24239         _pkg_min_version=0.9.0
24240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24241 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24242         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24244 $as_echo "yes" >&6; }
24245         else
24246                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24247 $as_echo "no" >&6; }
24248                 PKG_CONFIG=""
24249         fi
24250 
24251 fi
24252 
24253 # After basic tools have been setup, we can check build os specific details.
24254 
24255   ###############################################################################
24256 
24257   # Note that this is the build platform OS version!
24258 
24259   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24260   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24261   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24262   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24263 
24264 
24265 
24266 
24267 
24268 # Misc basic settings
24269 
24270 
24271 # Check whether --with-default-make-target was given.
24272 if test "${with_default_make_target+set}" = set; then :
24273   withval=$with_default_make_target;
24274 fi
24275 
24276   if test "x$with_default_make_target" = "x" \
24277       || test "x$with_default_make_target" = "xyes"; then
24278     DEFAULT_MAKE_TARGET="exploded-image"
24279   elif test "x$with_default_make_target" = "xno"; then
24280     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24281   else
24282     DEFAULT_MAKE_TARGET="$with_default_make_target"
24283   fi
24284 
24285 
24286 
24287 
24288 ###############################################################################
24289 #
24290 # Determine OpenJDK variants, options and version numbers.
24291 #
24292 ###############################################################################
24293 
24294 # We need build & target for this.
24295 
24296   # Should we build a JDK without a graphical UI?
24297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24298 $as_echo_n "checking headless only... " >&6; }
24299   # Check whether --enable-headless-only was given.
24300 if test "${enable_headless_only+set}" = set; then :
24301   enableval=$enable_headless_only;
24302 fi
24303 
24304 
24305   if test "x$enable_headless_only" = "xyes"; then
24306     ENABLE_HEADLESS_ONLY="true"
24307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24308 $as_echo "yes" >&6; }
24309   elif test "x$enable_headless_only" = "xno"; then
24310     ENABLE_HEADLESS_ONLY="false"
24311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24312 $as_echo "no" >&6; }
24313   elif test "x$enable_headless_only" = "x"; then
24314     ENABLE_HEADLESS_ONLY="false"
24315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24316 $as_echo "no" >&6; }
24317   else
24318     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24319   fi
24320 
24321 
24322 
24323   # Choose cacerts source file
24324 
24325 # Check whether --with-cacerts-file was given.
24326 if test "${with_cacerts_file+set}" = set; then :
24327   withval=$with_cacerts_file;
24328 fi
24329 
24330   if test "x$with_cacerts_file" != x; then
24331     CACERTS_FILE=$with_cacerts_file
24332   fi
24333 
24334 
24335   # Enable or disable unlimited crypto
24336   # Check whether --enable-unlimited-crypto was given.
24337 if test "${enable_unlimited_crypto+set}" = set; then :
24338   enableval=$enable_unlimited_crypto;
24339 else
24340   enable_unlimited_crypto=yes
24341 fi
24342 
24343   if test "x$enable_unlimited_crypto" = "xyes"; then
24344     UNLIMITED_CRYPTO=true
24345   else
24346     UNLIMITED_CRYPTO=false
24347   fi
24348 
24349 
24350   # Should we build the serviceability agent (SA)?
24351   INCLUDE_SA=true
24352   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24353     INCLUDE_SA=false
24354   fi
24355   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24356     INCLUDE_SA=false
24357   fi
24358 
24359 
24360   # Compress jars
24361   COMPRESS_JARS=false
24362 
24363 
24364 
24365   # Setup default copyright year. Mostly overridden when building close to a new year.
24366 
24367 # Check whether --with-copyright-year was given.
24368 if test "${with_copyright_year+set}" = set; then :
24369   withval=$with_copyright_year;
24370 fi
24371 
24372   if test "x$with_copyright_year" = xyes; then
24373     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24374   elif test "x$with_copyright_year" != x; then
24375     COPYRIGHT_YEAR="$with_copyright_year"
24376   else
24377     COPYRIGHT_YEAR=`$DATE +'%Y'`
24378   fi
24379 
24380 
24381 
24382   # Check whether --enable-keep-packaged-modules was given.
24383 if test "${enable_keep_packaged_modules+set}" = set; then :
24384   enableval=$enable_keep_packaged_modules;
24385 fi
24386 
24387 
24388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24389 $as_echo_n "checking if packaged modules are kept... " >&6; }
24390   if test "x$enable_keep_packaged_modules" = "xyes"; then
24391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24392 $as_echo "yes" >&6; }
24393     JLINK_KEEP_PACKAGED_MODULES=true
24394   elif test "x$enable_keep_packaged_modules" = "xno"; then
24395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24396 $as_echo "no" >&6; }
24397     JLINK_KEEP_PACKAGED_MODULES=false
24398   elif test "x$enable_keep_packaged_modules" = "x"; then
24399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24400 $as_echo "yes (default)" >&6; }
24401     JLINK_KEEP_PACKAGED_MODULES=true
24402   else
24403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24404 $as_echo "error" >&6; }
24405     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24406   fi
24407 
24408 
24409 
24410 
24411   # Warn user that old version arguments are deprecated.
24412 
24413 
24414 # Check whether --with-milestone was given.
24415 if test "${with_milestone+set}" = set; then :
24416   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24417 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24418 fi
24419 
24420 
24421 
24422 
24423 # Check whether --with-update-version was given.
24424 if test "${with_update_version+set}" = set; then :
24425   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24426 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24427 fi
24428 
24429 
24430 
24431 
24432 # Check whether --with-user-release-suffix was given.
24433 if test "${with_user_release_suffix+set}" = set; then :
24434   withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5
24435 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24436 fi
24437 
24438 
24439 
24440 
24441 # Check whether --with-build-number was given.
24442 if test "${with_build_number+set}" = set; then :
24443   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24444 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24445 fi
24446 
24447 
24448 
24449   # Source the version numbers file
24450   . $AUTOCONF_DIR/version-numbers
24451 
24452   # Some non-version number information is set in that file
24453 
24454 
24455 
24456 
24457 
24458 
24459 
24460 
24461 
24462   # Override version from arguments
24463 
24464   # If --with-version-string is set, process it first. It is possible to
24465   # override parts with more specific flags, since these are processed later.
24466 
24467 # Check whether --with-version-string was given.
24468 if test "${with_version_string+set}" = set; then :
24469   withval=$with_version_string;
24470 fi
24471 
24472   if test "x$with_version_string" = xyes; then
24473     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24474   elif test "x$with_version_string" != x; then
24475     # Additional [] needed to keep m4 from mangling shell constructs.
24476     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24477       VERSION_MAJOR=${BASH_REMATCH[1]}
24478       VERSION_MINOR=${BASH_REMATCH[3]}
24479       VERSION_SECURITY=${BASH_REMATCH[5]}
24480       VERSION_PATCH=${BASH_REMATCH[7]}
24481       VERSION_PRE=${BASH_REMATCH[9]}
24482       version_plus_separator=${BASH_REMATCH[11]}
24483       VERSION_BUILD=${BASH_REMATCH[12]}
24484       VERSION_OPT=${BASH_REMATCH[14]}
24485       # Unspecified numerical fields are interpreted as 0.
24486       if test "x$VERSION_MINOR" = x; then
24487         VERSION_MINOR=0
24488       fi
24489       if test "x$VERSION_SECURITY" = x; then
24490         VERSION_SECURITY=0
24491       fi
24492       if test "x$VERSION_PATCH" = x; then
24493         VERSION_PATCH=0
24494       fi
24495       if test "x$version_plus_separator" != x \
24496           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24497         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24498       fi
24499       # Stop the version part process from setting default values.
24500       # We still allow them to explicitly override though.
24501       NO_DEFAULT_VERSION_PARTS=true
24502     else
24503       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24504     fi
24505   fi
24506 
24507 
24508 # Check whether --with-version-pre was given.
24509 if test "${with_version_pre+set}" = set; then :
24510   withval=$with_version_pre; with_version_pre_present=true
24511 else
24512   with_version_pre_present=false
24513 fi
24514 
24515 
24516   if test "x$with_version_pre_present" = xtrue; then
24517     if test "x$with_version_pre" = xyes; then
24518       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24519     elif test "x$with_version_pre" = xno; then
24520       # Interpret --without-* as empty string instead of the literal "no"
24521       VERSION_PRE=
24522     else
24523       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24524        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24525       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24526         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24527 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24528       fi
24529     fi
24530   else
24531     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24532       # Default is to use "internal" as pre
24533       VERSION_PRE="internal"
24534     fi
24535   fi
24536 
24537 
24538 # Check whether --with-version-opt was given.
24539 if test "${with_version_opt+set}" = set; then :
24540   withval=$with_version_opt; with_version_opt_present=true
24541 else
24542   with_version_opt_present=false
24543 fi
24544 
24545 
24546   if test "x$with_version_opt_present" = xtrue; then
24547     if test "x$with_version_opt" = xyes; then
24548       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24549     elif test "x$with_version_opt" = xno; then
24550       # Interpret --without-* as empty string instead of the literal "no"
24551       VERSION_OPT=
24552     else
24553       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24554        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24555       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24556         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24557 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24558       fi
24559     fi
24560   else
24561     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24562       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
24563       # Outer [ ] to quote m4.
24564        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24565       VERSION_OPT="adhoc.$USERNAME.$basedirname"
24566     fi
24567   fi
24568 
24569 
24570 # Check whether --with-version-build was given.
24571 if test "${with_version_build+set}" = set; then :
24572   withval=$with_version_build; with_version_build_present=true
24573 else
24574   with_version_build_present=false
24575 fi
24576 
24577 
24578   if test "x$with_version_build_present" = xtrue; then
24579     if test "x$with_version_build" = xyes; then
24580       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24581     elif test "x$with_version_build" = xno; then
24582       # Interpret --without-* as empty string instead of the literal "no"
24583       VERSION_BUILD=
24584     elif test "x$with_version_build" = x; then
24585       VERSION_BUILD=
24586     else
24587 
24588   # Additional [] needed to keep m4 from mangling shell constructs.
24589   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24590     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24591   fi
24592   # Extract the version number without leading zeros.
24593   cleaned_value=${BASH_REMATCH[1]}
24594   if test "x$cleaned_value" = x; then
24595     # Special case for zero
24596     cleaned_value=${BASH_REMATCH[2]}
24597   fi
24598 
24599   if test $cleaned_value -gt 255; then
24600     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24601   fi
24602   if test "x$cleaned_value" != "x$with_version_build"; then
24603     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24604 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24605   fi
24606   VERSION_BUILD=$cleaned_value
24607 
24608     fi
24609   else
24610     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24611       # Default is to not have a build number.
24612       VERSION_BUILD=""
24613       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24614       VERSION_BUILD=0
24615     fi
24616   fi
24617 
24618 
24619 # Check whether --with-version-major was given.
24620 if test "${with_version_major+set}" = set; then :
24621   withval=$with_version_major; with_version_major_present=true
24622 else
24623   with_version_major_present=false
24624 fi
24625 
24626 
24627   if test "x$with_version_major_present" = xtrue; then
24628     if test "x$with_version_major" = xyes; then
24629       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24630     else
24631 
24632   # Additional [] needed to keep m4 from mangling shell constructs.
24633   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24634     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24635   fi
24636   # Extract the version number without leading zeros.
24637   cleaned_value=${BASH_REMATCH[1]}
24638   if test "x$cleaned_value" = x; then
24639     # Special case for zero
24640     cleaned_value=${BASH_REMATCH[2]}
24641   fi
24642 
24643   if test $cleaned_value -gt 255; then
24644     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24645   fi
24646   if test "x$cleaned_value" != "x$with_version_major"; then
24647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24648 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24649   fi
24650   VERSION_MAJOR=$cleaned_value
24651 
24652     fi
24653   else
24654     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24655       # Default is to get value from version-numbers
24656       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24657     fi
24658   fi
24659 
24660 
24661 # Check whether --with-version-minor was given.
24662 if test "${with_version_minor+set}" = set; then :
24663   withval=$with_version_minor; with_version_minor_present=true
24664 else
24665   with_version_minor_present=false
24666 fi
24667 
24668 
24669   if test "x$with_version_minor_present" = xtrue; then
24670     if test "x$with_version_minor" = xyes; then
24671       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24672     elif test "x$with_version_minor" = xno; then
24673       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24674       VERSION_MINOR=0
24675     elif test "x$with_version_minor" = x; then
24676       VERSION_MINOR=0
24677     else
24678 
24679   # Additional [] needed to keep m4 from mangling shell constructs.
24680   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24681     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24682   fi
24683   # Extract the version number without leading zeros.
24684   cleaned_value=${BASH_REMATCH[1]}
24685   if test "x$cleaned_value" = x; then
24686     # Special case for zero
24687     cleaned_value=${BASH_REMATCH[2]}
24688   fi
24689 
24690   if test $cleaned_value -gt 255; then
24691     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24692   fi
24693   if test "x$cleaned_value" != "x$with_version_minor"; then
24694     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24695 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24696   fi
24697   VERSION_MINOR=$cleaned_value
24698 
24699     fi
24700   else
24701     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24702       # Default is 0, if unspecified
24703       VERSION_MINOR=$DEFAULT_VERSION_MINOR
24704     fi
24705   fi
24706 
24707 
24708 # Check whether --with-version-security was given.
24709 if test "${with_version_security+set}" = set; then :
24710   withval=$with_version_security; with_version_security_present=true
24711 else
24712   with_version_security_present=false
24713 fi
24714 
24715 
24716   if test "x$with_version_security_present" = xtrue; then
24717     if test "x$with_version_security" = xyes; then
24718       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24719     elif test "x$with_version_security" = xno; then
24720       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24721       VERSION_SECURITY=0
24722     elif test "x$with_version_security" = x; then
24723       VERSION_SECURITY=0
24724     else
24725 
24726   # Additional [] needed to keep m4 from mangling shell constructs.
24727   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24728     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24729   fi
24730   # Extract the version number without leading zeros.
24731   cleaned_value=${BASH_REMATCH[1]}
24732   if test "x$cleaned_value" = x; then
24733     # Special case for zero
24734     cleaned_value=${BASH_REMATCH[2]}
24735   fi
24736 
24737   if test $cleaned_value -gt 255; then
24738     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24739   fi
24740   if test "x$cleaned_value" != "x$with_version_security"; then
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24742 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24743   fi
24744   VERSION_SECURITY=$cleaned_value
24745 
24746     fi
24747   else
24748     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24749       # Default is 0, if unspecified
24750       VERSION_SECURITY=$DEFAULT_VERSION_SECURITY
24751     fi
24752   fi
24753 
24754 
24755 # Check whether --with-version-patch was given.
24756 if test "${with_version_patch+set}" = set; then :
24757   withval=$with_version_patch; with_version_patch_present=true
24758 else
24759   with_version_patch_present=false
24760 fi
24761 
24762 
24763   if test "x$with_version_patch_present" = xtrue; then
24764     if test "x$with_version_patch" = xyes; then
24765       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24766     elif test "x$with_version_patch" = xno; then
24767       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24768       VERSION_PATCH=0
24769     elif test "x$with_version_patch" = x; then
24770       VERSION_PATCH=0
24771     else
24772 
24773   # Additional [] needed to keep m4 from mangling shell constructs.
24774   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24775     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24776   fi
24777   # Extract the version number without leading zeros.
24778   cleaned_value=${BASH_REMATCH[1]}
24779   if test "x$cleaned_value" = x; then
24780     # Special case for zero
24781     cleaned_value=${BASH_REMATCH[2]}
24782   fi
24783 
24784   if test $cleaned_value -gt 255; then
24785     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24786   fi
24787   if test "x$cleaned_value" != "x$with_version_patch"; then
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24789 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24790   fi
24791   VERSION_PATCH=$cleaned_value
24792 
24793     fi
24794   else
24795     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24796       # Default is 0, if unspecified
24797       VERSION_PATCH=$DEFAULT_VERSION_PATCH
24798     fi
24799   fi
24800 
24801   # Calculate derived version properties
24802 
24803   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24804   if test "x$VERSION_PRE" = x; then
24805     VERSION_IS_GA=true
24806   else
24807     VERSION_IS_GA=false
24808   fi
24809 
24810   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24811   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24812 
24813   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24814   # Strip trailing zeroes from stripped_version_number
24815   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24816   VERSION_NUMBER=$stripped_version_number
24817 
24818   # The complete version string, with additional build information
24819   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24820     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24821   else
24822     # If either build or opt is set, we need a + separator
24823     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24824   fi
24825 
24826   # The short version string, just VERSION_NUMBER and PRE, if present.
24827   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24828 
24829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24830 $as_echo_n "checking for version string... " >&6; }
24831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24832 $as_echo "$VERSION_STRING" >&6; }
24833 
24834 
24835 
24836 
24837 
24838 
24839 
24840 
24841 
24842 
24843 
24844 
24845 
24846 
24847 
24848 ###############################################################################
24849 #
24850 # Setup BootJDK, used to bootstrap the build.
24851 #
24852 ###############################################################################
24853 
24854 
24855   BOOT_JDK_FOUND=no
24856 
24857 # Check whether --with-boot-jdk was given.
24858 if test "${with_boot_jdk+set}" = set; then :
24859   withval=$with_boot_jdk;
24860 fi
24861 
24862 
24863   # We look for the Boot JDK through various means, going from more certain to
24864   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24865   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24866   # must check if this is indeed valid; otherwise we'll continue looking.
24867 
24868   # Test: Is bootjdk explicitly set by command line arguments?
24869 
24870   if test "x$BOOT_JDK_FOUND" = xno; then
24871     # Now execute the test
24872 
24873   if test "x$with_boot_jdk" != x; then
24874     BOOT_JDK=$with_boot_jdk
24875     BOOT_JDK_FOUND=maybe
24876     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24877 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24878   fi
24879 
24880 
24881     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24882     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24883       # Do we have a bin/java?
24884       if test ! -x "$BOOT_JDK/bin/java"; then
24885         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24887         BOOT_JDK_FOUND=no
24888       else
24889         # Do we have a bin/javac?
24890         if test ! -x "$BOOT_JDK/bin/javac"; then
24891           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24892 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24893           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24894 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24895           BOOT_JDK_FOUND=no
24896         else
24897           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24898           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
24899 
24900           # Extra M4 quote needed to protect [] in grep expression.
24901           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24902           if test "x$FOUND_CORRECT_VERSION" = x; then
24903             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24904 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24905             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24906 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24907             BOOT_JDK_FOUND=no
24908           else
24909             # We're done! :-)
24910             BOOT_JDK_FOUND=yes
24911 
24912   # Only process if variable expands to non-empty
24913 
24914   if test "x$BOOT_JDK" != x; then
24915     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24916 
24917   # Input might be given as Windows format, start by converting to
24918   # unix format.
24919   path="$BOOT_JDK"
24920   new_path=`$CYGPATH -u "$path"`
24921 
24922   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24923   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24924   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24925   # "foo.exe" is OK but "foo" is an error.
24926   #
24927   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24928   # It is also a way to make sure we got the proper file name for the real test later on.
24929   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24930   if test "x$test_shortpath" = x; then
24931     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24932 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24933     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24934   fi
24935 
24936   # Call helper function which possibly converts this using DOS-style short mode.
24937   # If so, the updated path is stored in $new_path.
24938 
24939   input_path="$new_path"
24940   # Check if we need to convert this using DOS-style short mode. If the path
24941   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24942   # take no chances and rewrite it.
24943   # Note: m4 eats our [], so we need to use [ and ] instead.
24944   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24945   if test "x$has_forbidden_chars" != x; then
24946     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24947     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24948     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24949     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24950       # Going to short mode and back again did indeed matter. Since short mode is
24951       # case insensitive, let's make it lowercase to improve readability.
24952       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24953       # Now convert it back to Unix-style (cygpath)
24954       input_path=`$CYGPATH -u "$shortmode_path"`
24955       new_path="$input_path"
24956     fi
24957   fi
24958 
24959   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24960   if test "x$test_cygdrive_prefix" = x; then
24961     # As a simple fix, exclude /usr/bin since it's not a real path.
24962     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24963       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24964       # a path prefixed by /cygdrive for fixpath to work.
24965       new_path="$CYGWIN_ROOT_PATH$input_path"
24966     fi
24967   fi
24968 
24969 
24970   if test "x$path" != "x$new_path"; then
24971     BOOT_JDK="$new_path"
24972     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24973 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24974   fi
24975 
24976     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24977 
24978   path="$BOOT_JDK"
24979   has_colon=`$ECHO $path | $GREP ^.:`
24980   new_path="$path"
24981   if test "x$has_colon" = x; then
24982     # Not in mixed or Windows style, start by that.
24983     new_path=`cmd //c echo $path`
24984   fi
24985 
24986 
24987   input_path="$new_path"
24988   # Check if we need to convert this using DOS-style short mode. If the path
24989   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24990   # take no chances and rewrite it.
24991   # Note: m4 eats our [], so we need to use [ and ] instead.
24992   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24993   if test "x$has_forbidden_chars" != x; then
24994     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24995     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24996   fi
24997 
24998 
24999   windows_path="$new_path"
25000   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25001     unix_path=`$CYGPATH -u "$windows_path"`
25002     new_path="$unix_path"
25003   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25004     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25005     new_path="$unix_path"
25006   fi
25007 
25008   if test "x$path" != "x$new_path"; then
25009     BOOT_JDK="$new_path"
25010     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25011 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25012   fi
25013 
25014   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25015   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25016 
25017     else
25018       # We're on a unix platform. Hooray! :)
25019       path="$BOOT_JDK"
25020       has_space=`$ECHO "$path" | $GREP " "`
25021       if test "x$has_space" != x; then
25022         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25023 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25024         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25025       fi
25026 
25027       # Use eval to expand a potential ~
25028       eval path="$path"
25029       if test ! -f "$path" && test ! -d "$path"; then
25030         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25031       fi
25032 
25033       if test -d "$path"; then
25034         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25035       else
25036         dir="`$DIRNAME "$path"`"
25037         base="`$BASENAME "$path"`"
25038         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25039       fi
25040     fi
25041   fi
25042 
25043             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25044 $as_echo_n "checking for Boot JDK... " >&6; }
25045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25046 $as_echo "$BOOT_JDK" >&6; }
25047             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25048 $as_echo_n "checking Boot JDK version... " >&6; }
25049             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25050             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25051 $as_echo "$BOOT_JDK_VERSION" >&6; }
25052           fi # end check jdk version
25053         fi # end check javac
25054       fi # end check java
25055     fi # end check boot jdk found
25056   fi
25057 
25058   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
25059     # Having specified an argument which is incorrect will produce an instant failure;
25060     # we should not go on looking
25061     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
25062   fi
25063 
25064   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
25065 
25066   if test "x$BOOT_JDK_FOUND" = xno; then
25067     # Now execute the test
25068 
25069   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25070     # First check at user selected default
25071 
25072   if test "x$BOOT_JDK_FOUND" = xno; then
25073     # Now execute the test
25074 
25075   if test -x /usr/libexec/java_home; then
25076     BOOT_JDK=`/usr/libexec/java_home `
25077     BOOT_JDK_FOUND=maybe
25078     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25079 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25080   fi
25081 
25082 
25083     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25084     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25085       # Do we have a bin/java?
25086       if test ! -x "$BOOT_JDK/bin/java"; then
25087         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25089         BOOT_JDK_FOUND=no
25090       else
25091         # Do we have a bin/javac?
25092         if test ! -x "$BOOT_JDK/bin/javac"; then
25093           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25095           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25096 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25097           BOOT_JDK_FOUND=no
25098         else
25099           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25100           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25101 
25102           # Extra M4 quote needed to protect [] in grep expression.
25103           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25104           if test "x$FOUND_CORRECT_VERSION" = x; then
25105             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25106 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25107             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25108 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25109             BOOT_JDK_FOUND=no
25110           else
25111             # We're done! :-)
25112             BOOT_JDK_FOUND=yes
25113 
25114   # Only process if variable expands to non-empty
25115 
25116   if test "x$BOOT_JDK" != x; then
25117     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25118 
25119   # Input might be given as Windows format, start by converting to
25120   # unix format.
25121   path="$BOOT_JDK"
25122   new_path=`$CYGPATH -u "$path"`
25123 
25124   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25125   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25126   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25127   # "foo.exe" is OK but "foo" is an error.
25128   #
25129   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25130   # It is also a way to make sure we got the proper file name for the real test later on.
25131   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25132   if test "x$test_shortpath" = x; then
25133     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25134 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25135     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25136   fi
25137 
25138   # Call helper function which possibly converts this using DOS-style short mode.
25139   # If so, the updated path is stored in $new_path.
25140 
25141   input_path="$new_path"
25142   # Check if we need to convert this using DOS-style short mode. If the path
25143   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25144   # take no chances and rewrite it.
25145   # Note: m4 eats our [], so we need to use [ and ] instead.
25146   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25147   if test "x$has_forbidden_chars" != x; then
25148     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25149     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25150     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25151     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25152       # Going to short mode and back again did indeed matter. Since short mode is
25153       # case insensitive, let's make it lowercase to improve readability.
25154       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25155       # Now convert it back to Unix-style (cygpath)
25156       input_path=`$CYGPATH -u "$shortmode_path"`
25157       new_path="$input_path"
25158     fi
25159   fi
25160 
25161   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25162   if test "x$test_cygdrive_prefix" = x; then
25163     # As a simple fix, exclude /usr/bin since it's not a real path.
25164     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25165       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25166       # a path prefixed by /cygdrive for fixpath to work.
25167       new_path="$CYGWIN_ROOT_PATH$input_path"
25168     fi
25169   fi
25170 
25171 
25172   if test "x$path" != "x$new_path"; then
25173     BOOT_JDK="$new_path"
25174     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25175 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25176   fi
25177 
25178     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25179 
25180   path="$BOOT_JDK"
25181   has_colon=`$ECHO $path | $GREP ^.:`
25182   new_path="$path"
25183   if test "x$has_colon" = x; then
25184     # Not in mixed or Windows style, start by that.
25185     new_path=`cmd //c echo $path`
25186   fi
25187 
25188 
25189   input_path="$new_path"
25190   # Check if we need to convert this using DOS-style short mode. If the path
25191   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25192   # take no chances and rewrite it.
25193   # Note: m4 eats our [], so we need to use [ and ] instead.
25194   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25195   if test "x$has_forbidden_chars" != x; then
25196     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25197     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25198   fi
25199 
25200 
25201   windows_path="$new_path"
25202   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25203     unix_path=`$CYGPATH -u "$windows_path"`
25204     new_path="$unix_path"
25205   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25206     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25207     new_path="$unix_path"
25208   fi
25209 
25210   if test "x$path" != "x$new_path"; then
25211     BOOT_JDK="$new_path"
25212     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25213 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25214   fi
25215 
25216   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25217   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25218 
25219     else
25220       # We're on a unix platform. Hooray! :)
25221       path="$BOOT_JDK"
25222       has_space=`$ECHO "$path" | $GREP " "`
25223       if test "x$has_space" != x; then
25224         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25225 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25226         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25227       fi
25228 
25229       # Use eval to expand a potential ~
25230       eval path="$path"
25231       if test ! -f "$path" && test ! -d "$path"; then
25232         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25233       fi
25234 
25235       if test -d "$path"; then
25236         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25237       else
25238         dir="`$DIRNAME "$path"`"
25239         base="`$BASENAME "$path"`"
25240         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25241       fi
25242     fi
25243   fi
25244 
25245             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25246 $as_echo_n "checking for Boot JDK... " >&6; }
25247             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25248 $as_echo "$BOOT_JDK" >&6; }
25249             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25250 $as_echo_n "checking Boot JDK version... " >&6; }
25251             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25252             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25253 $as_echo "$BOOT_JDK_VERSION" >&6; }
25254           fi # end check jdk version
25255         fi # end check javac
25256       fi # end check java
25257     fi # end check boot jdk found
25258   fi
25259 
25260     # If that did not work out (e.g. too old), try explicit versions instead
25261 
25262   if test "x$BOOT_JDK_FOUND" = xno; then
25263     # Now execute the test
25264 
25265   if test -x /usr/libexec/java_home; then
25266     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
25267     BOOT_JDK_FOUND=maybe
25268     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
25269 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
25270   fi
25271 
25272 
25273     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25274     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25275       # Do we have a bin/java?
25276       if test ! -x "$BOOT_JDK/bin/java"; then
25277         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25278 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25279         BOOT_JDK_FOUND=no
25280       else
25281         # Do we have a bin/javac?
25282         if test ! -x "$BOOT_JDK/bin/javac"; then
25283           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25285           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25286 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25287           BOOT_JDK_FOUND=no
25288         else
25289           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25290           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25291 
25292           # Extra M4 quote needed to protect [] in grep expression.
25293           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25294           if test "x$FOUND_CORRECT_VERSION" = x; then
25295             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25296 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25297             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25298 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25299             BOOT_JDK_FOUND=no
25300           else
25301             # We're done! :-)
25302             BOOT_JDK_FOUND=yes
25303 
25304   # Only process if variable expands to non-empty
25305 
25306   if test "x$BOOT_JDK" != x; then
25307     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25308 
25309   # Input might be given as Windows format, start by converting to
25310   # unix format.
25311   path="$BOOT_JDK"
25312   new_path=`$CYGPATH -u "$path"`
25313 
25314   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25315   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25316   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25317   # "foo.exe" is OK but "foo" is an error.
25318   #
25319   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25320   # It is also a way to make sure we got the proper file name for the real test later on.
25321   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25322   if test "x$test_shortpath" = x; then
25323     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25325     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25326   fi
25327 
25328   # Call helper function which possibly converts this using DOS-style short mode.
25329   # If so, the updated path is stored in $new_path.
25330 
25331   input_path="$new_path"
25332   # Check if we need to convert this using DOS-style short mode. If the path
25333   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25334   # take no chances and rewrite it.
25335   # Note: m4 eats our [], so we need to use [ and ] instead.
25336   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25337   if test "x$has_forbidden_chars" != x; then
25338     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25339     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25340     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25341     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25342       # Going to short mode and back again did indeed matter. Since short mode is
25343       # case insensitive, let's make it lowercase to improve readability.
25344       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25345       # Now convert it back to Unix-style (cygpath)
25346       input_path=`$CYGPATH -u "$shortmode_path"`
25347       new_path="$input_path"
25348     fi
25349   fi
25350 
25351   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25352   if test "x$test_cygdrive_prefix" = x; then
25353     # As a simple fix, exclude /usr/bin since it's not a real path.
25354     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25355       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25356       # a path prefixed by /cygdrive for fixpath to work.
25357       new_path="$CYGWIN_ROOT_PATH$input_path"
25358     fi
25359   fi
25360 
25361 
25362   if test "x$path" != "x$new_path"; then
25363     BOOT_JDK="$new_path"
25364     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25365 $as_echo "$as_me: