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 STLPORT_LIB
 658 LIBZIP_CAN_USE_MMAP
 659 LIBDL
 660 LIBM
 661 USE_EXTERNAL_LCMS
 662 LCMS_LIBS
 663 LCMS_CFLAGS
 664 USE_EXTERNAL_LIBZ
 665 USE_EXTERNAL_LIBPNG
 666 PNG_LIBS
 667 PNG_CFLAGS
 668 USE_EXTERNAL_LIBGIF
 669 USE_EXTERNAL_LIBJPEG
 670 LLVM_LIBS
 671 LLVM_LDFLAGS
 672 LLVM_CFLAGS
 673 LLVM_CONFIG
 674 LIBFFI_LIBS
 675 LIBFFI_CFLAGS
 676 ALSA_LIBS
 677 ALSA_CFLAGS
 678 FREETYPE_BUNDLE_LIB_PATH
 679 FREETYPE_LIBS
 680 FREETYPE_CFLAGS
 681 CUPS_CFLAGS
 682 X_EXTRA_LIBS
 683 X_LIBS
 684 X_PRE_LIBS
 685 X_CFLAGS
 686 XMKMF
 687 MSVCP_DLL
 688 MSVCR_DLL
 689 LIBCXX
 690 STATIC_CXX_SETTING
 691 FIXPATH_DETACH_FLAG
 692 FIXPATH
 693 BUILD_GTEST
 694 VALID_JVM_FEATURES
 695 JVM_FEATURES_custom
 696 JVM_FEATURES_zeroshark
 697 JVM_FEATURES_zero
 698 JVM_FEATURES_minimal
 699 JVM_FEATURES_core
 700 JVM_FEATURES_client
 701 JVM_FEATURES_server
 702 INCLUDE_DTRACE
 703 GCOV_ENABLED
 704 STRIP_POLICY
 705 DEBUG_BINARIES
 706 ZIP_EXTERNAL_DEBUG_SYMBOLS
 707 COPY_DEBUG_SYMBOLS
 708 COMPILE_WITH_DEBUG_SYMBOLS
 709 CFLAGS_WARNINGS_ARE_ERRORS
 710 BUILD_CC_DISABLE_WARNING_PREFIX
 711 DISABLE_WARNING_PREFIX
 712 HOTSPOT_SET_WARNINGS_AS_ERRORS
 713 WARNINGS_AS_ERRORS
 714 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 715 ZERO_ARCHFLAG
 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 NO_LIFETIME_DSE_CFLAG
 753 NO_NULL_POINTER_CHECK_CFLAG
 754 CXXSTD_CXXFLAG
 755 CXX_O_FLAG_SIZE
 756 CXX_O_FLAG_NONE
 757 CXX_O_FLAG_DEBUG
 758 CXX_O_FLAG_NORM
 759 CXX_O_FLAG_HI
 760 CXX_O_FLAG_HIGHEST
 761 CXX_O_FLAG_HIGHEST_JVM
 762 C_O_FLAG_SIZE
 763 C_O_FLAG_NONE
 764 C_O_FLAG_DEBUG
 765 C_O_FLAG_NORM
 766 C_O_FLAG_HI
 767 C_O_FLAG_HIGHEST
 768 C_O_FLAG_HIGHEST_JVM
 769 JVM_CFLAGS_SYMBOLS
 770 CXXFLAGS_DEBUG_SYMBOLS
 771 CFLAGS_DEBUG_SYMBOLS
 772 CXX_FLAG_DEPS
 773 C_FLAG_DEPS
 774 SHARED_LIBRARY_FLAGS
 775 SET_SHARED_LIBRARY_MAPFILE
 776 SET_SHARED_LIBRARY_NAME
 777 SET_SHARED_LIBRARY_ORIGIN
 778 SET_EXECUTABLE_ORIGIN
 779 CXX_FLAG_REORDER
 780 C_FLAG_REORDER
 781 JVM_RCFLAGS
 782 RC_FLAGS
 783 AR_OUT_OPTION
 784 LD_OUT_OPTION
 785 EXE_OUT_OPTION
 786 CC_OUT_OPTION
 787 STRIPFLAGS
 788 ARFLAGS
 789 COMPILER_BINDCMD_FILE_FLAG
 790 COMPILER_COMMAND_FILE_FLAG
 791 COMPILER_TARGET_BITS_FLAG
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 USE_CLANG
 798 HOTSPOT_LD
 799 HOTSPOT_CXX
 800 HOTSPOT_RC
 801 HOTSPOT_MT
 802 BUILD_AS
 803 BUILD_LDCXX
 804 BUILD_LD
 805 BUILD_STRIP
 806 BUILD_OBJCOPY
 807 BUILD_AR
 808 BUILD_NM
 809 BUILD_CXX
 810 BUILD_CC
 811 BUILD_SYSROOT_LDFLAGS
 812 BUILD_SYSROOT_CFLAGS
 813 ac_ct_OBJDUMP
 814 OBJDUMP
 815 ac_ct_OBJCOPY
 816 OBJCOPY
 817 ac_ct_NM
 818 ac_ct_STRIP
 819 GNM
 820 NM
 821 STRIP
 822 MSBUILD
 823 DUMPBIN
 824 RC
 825 MT
 826 LIPO
 827 ac_ct_AR
 828 AR
 829 AS
 830 LDCXX
 831 LD
 832 CXXCPP
 833 CPP
 834 CXX_VERSION_NUMBER
 835 CC_VERSION_NUMBER
 836 ac_ct_CXX
 837 CXXFLAGS
 838 CXX
 839 TOOLCHAIN_PATH_CXX
 840 POTENTIAL_CXX
 841 OBJEXT
 842 EXEEXT
 843 ac_ct_CC
 844 CPPFLAGS
 845 LDFLAGS
 846 CFLAGS
 847 CC
 848 TOOLCHAIN_PATH_CC
 849 POTENTIAL_CC
 850 TOOLCHAIN_VERSION
 851 VS_LIB
 852 VS_INCLUDE
 853 VS_PATH
 854 CYGWIN_LINK
 855 SYSROOT_LDFLAGS
 856 SYSROOT_CFLAGS
 857 EXTRA_LDFLAGS
 858 EXTRA_CXXFLAGS
 859 EXTRA_CFLAGS
 860 LEGACY_EXTRA_LDFLAGS
 861 LEGACY_EXTRA_CXXFLAGS
 862 LEGACY_EXTRA_CFLAGS
 863 EXE_SUFFIX
 864 OBJ_SUFFIX
 865 STATIC_LIBRARY
 866 SHARED_LIBRARY
 867 STATIC_LIBRARY_SUFFIX
 868 SHARED_LIBRARY_SUFFIX
 869 LIBRARY_PREFIX
 870 TOOLCHAIN_TYPE
 871 STATIC_BUILD
 872 IMPORT_MODULES_MAKE
 873 IMPORT_MODULES_SRC
 874 IMPORT_MODULES_CONF
 875 IMPORT_MODULES_LIBS
 876 IMPORT_MODULES_CMDS
 877 IMPORT_MODULES_CLASSES
 878 BUILD_HOTSPOT
 879 HOTSPOT_DIST
 880 BUILD_OUTPUT
 881 JDK_TOPDIR
 882 NASHORN_TOPDIR
 883 HOTSPOT_TOPDIR
 884 JAXWS_TOPDIR
 885 JAXP_TOPDIR
 886 CORBA_TOPDIR
 887 LANGTOOLS_TOPDIR
 888 EXTERNAL_BUILDJDK
 889 BUILD_JDK
 890 CREATE_BUILDJDK
 891 JLINK
 892 JMOD
 893 BOOT_JDK_BITS
 894 JAVAC_FLAGS
 895 BOOT_JDK_MODULAR
 896 BOOT_JDK_SOURCETARGET
 897 JARSIGNER
 898 JAR
 899 JAVAH
 900 JAVAC
 901 JAVA
 902 BOOT_JDK
 903 JAVA_CHECK
 904 JAVAC_CHECK
 905 VERSION_IS_GA
 906 VERSION_SHORT
 907 VERSION_STRING
 908 VERSION_NUMBER_FOUR_POSITIONS
 909 VERSION_NUMBER
 910 VERSION_OPT
 911 VERSION_BUILD
 912 VERSION_PRE
 913 VERSION_PATCH
 914 VERSION_SECURITY
 915 VERSION_MINOR
 916 VERSION_MAJOR
 917 MACOSX_BUNDLE_ID_BASE
 918 MACOSX_BUNDLE_NAME_BASE
 919 HOTSPOT_VM_DISTRO
 920 COMPANY_NAME
 921 JDK_RC_PLATFORM_NAME
 922 PRODUCT_SUFFIX
 923 PRODUCT_NAME
 924 LAUNCHER_NAME
 925 JLINK_KEEP_PACKAGED_MODULES
 926 COPYRIGHT_YEAR
 927 COMPRESS_JARS
 928 INCLUDE_SA
 929 UNLIMITED_CRYPTO
 930 CACERTS_FILE
 931 BUILD_HEADLESS
 932 SUPPORT_HEADFUL
 933 SUPPORT_HEADLESS
 934 DEFAULT_MAKE_TARGET
 935 OS_VERSION_MICRO
 936 OS_VERSION_MINOR
 937 OS_VERSION_MAJOR
 938 PKG_CONFIG
 939 BASH_ARGS
 940 SETFILE
 941 CODESIGN
 942 XATTR
 943 DSYMUTIL
 944 IS_GNU_TIME
 945 PATCH
 946 DTRACE
 947 TIME
 948 STAT
 949 HG
 950 READELF
 951 OTOOL
 952 LDD
 953 ZIP
 954 UNZIP
 955 TAR_SUPPORTS_TRANSFORM
 956 TAR_INCLUDE_PARAM
 957 TAR_CREATE_EXTRA_PARAM
 958 TAR_TYPE
 959 FIND_DELETE
 960 OUTPUT_SYNC
 961 OUTPUT_SYNC_SUPPORTED
 962 CHECK_TOOLSDIR_MAKE
 963 CHECK_TOOLSDIR_GMAKE
 964 CHECK_MAKE
 965 CHECK_GMAKE
 966 MAKE
 967 PKGHANDLER
 968 CONFIGURESUPPORT_OUTPUTDIR
 969 OUTPUT_ROOT
 970 CONF_NAME
 971 SPEC
 972 SDKROOT
 973 XCODEBUILD
 974 VALID_JVM_VARIANTS
 975 JVM_VARIANTS
 976 DEBUG_LEVEL
 977 HOTSPOT_DEBUG_LEVEL
 978 JDK_VARIANT
 979 SET_OPENJDK
 980 USERNAME
 981 CANONICAL_TOPDIR
 982 ORIGINAL_TOPDIR
 983 TOPDIR
 984 PATH_SEP
 985 ZERO_ARCHDEF
 986 HOTSPOT_BUILD_CPU_DEFINE
 987 HOTSPOT_BUILD_CPU_ARCH
 988 HOTSPOT_BUILD_CPU
 989 HOTSPOT_BUILD_OS_TYPE
 990 HOTSPOT_BUILD_OS
 991 OPENJDK_BUILD_BUNDLE_PLATFORM
 992 OPENJDK_BUILD_CPU_BUNDLE
 993 OPENJDK_BUILD_OS_BUNDLE
 994 OPENJDK_BUILD_OS_EXPORT_DIR
 995 OPENJDK_BUILD_CPU_JLI_CFLAGS
 996 OPENJDK_BUILD_CPU_OSARCH
 997 OPENJDK_BUILD_CPU_ISADIR
 998 OPENJDK_BUILD_CPU_LIBDIR
 999 OPENJDK_BUILD_CPU_LEGACY_LIB
1000 OPENJDK_BUILD_CPU_LEGACY
1001 HOTSPOT_TARGET_CPU_DEFINE
1002 HOTSPOT_TARGET_CPU_ARCH
1003 HOTSPOT_TARGET_CPU
1004 HOTSPOT_TARGET_OS_TYPE
1005 HOTSPOT_TARGET_OS
1006 DEFINE_CROSS_COMPILE_ARCH
1007 LP64
1008 OPENJDK_TARGET_BUNDLE_PLATFORM
1009 OPENJDK_TARGET_CPU_BUNDLE
1010 OPENJDK_TARGET_OS_BUNDLE
1011 OPENJDK_TARGET_OS_EXPORT_DIR
1012 OPENJDK_TARGET_CPU_JLI_CFLAGS
1013 OPENJDK_TARGET_CPU_OSARCH
1014 OPENJDK_TARGET_CPU_ISADIR
1015 OPENJDK_TARGET_CPU_LIBDIR
1016 OPENJDK_TARGET_CPU_LEGACY_LIB
1017 OPENJDK_TARGET_CPU_LEGACY
1018 REQUIRED_OS_VERSION
1019 REQUIRED_OS_NAME
1020 COMPILE_TYPE
1021 OPENJDK_TARGET_CPU_ENDIAN
1022 OPENJDK_TARGET_CPU_BITS
1023 OPENJDK_TARGET_CPU_ARCH
1024 OPENJDK_TARGET_CPU
1025 OPENJDK_TARGET_OS_ENV
1026 OPENJDK_TARGET_OS_TYPE
1027 OPENJDK_TARGET_OS
1028 OPENJDK_BUILD_CPU_ENDIAN
1029 OPENJDK_BUILD_CPU_BITS
1030 OPENJDK_BUILD_CPU_ARCH
1031 OPENJDK_BUILD_CPU
1032 OPENJDK_BUILD_OS_ENV
1033 OPENJDK_BUILD_OS_TYPE
1034 OPENJDK_BUILD_OS
1035 OPENJDK_BUILD_AUTOCONF_NAME
1036 OPENJDK_TARGET_AUTOCONF_NAME
1037 target_os
1038 target_vendor
1039 target_cpu
1040 target
1041 host_os
1042 host_vendor
1043 host_cpu
1044 host
1045 build_os
1046 build_vendor
1047 build_cpu
1048 build
1049 NICE
1050 CPIO
1051 DF
1052 READLINK
1053 CYGPATH
1054 SED
1055 FGREP
1056 EGREP
1057 GREP
1058 AWK
1059 XARGS
1060 WHICH
1061 WC
1062 UNIQ
1063 UNAME
1064 TR
1065 TOUCH
1066 TEE
1067 TAR
1068 TAIL
1069 SORT
1070 SH
1071 RMDIR
1072 RM
1073 PRINTF
1074 NAWK
1075 MV
1076 MKTEMP
1077 MKDIR
1078 LS
1079 LN
1080 GZIP
1081 GUNZIP
1082 HEAD
1083 FIND
1084 FILE
1085 EXPR
1086 ECHO
1087 DIRNAME
1088 DIFF
1089 DATE
1090 CUT
1091 CP
1092 COMM
1093 CMP
1094 CHMOD
1095 CAT
1096 BASH
1097 BASENAME
1098 DATE_WHEN_CONFIGURED
1099 ORIGINAL_PATH
1100 CONFIGURE_COMMAND_LINE
1101 target_alias
1102 host_alias
1103 build_alias
1104 LIBS
1105 ECHO_T
1106 ECHO_N
1107 ECHO_C
1108 DEFS
1109 mandir
1110 localedir
1111 libdir
1112 psdir
1113 pdfdir
1114 dvidir
1115 htmldir
1116 infodir
1117 docdir
1118 oldincludedir
1119 includedir
1120 localstatedir
1121 sharedstatedir
1122 sysconfdir
1123 datadir
1124 datarootdir
1125 libexecdir
1126 sbindir
1127 bindir
1128 program_transform_name
1129 prefix
1130 exec_prefix
1131 PACKAGE_URL
1132 PACKAGE_BUGREPORT
1133 PACKAGE_STRING
1134 PACKAGE_VERSION
1135 PACKAGE_TARNAME
1136 PACKAGE_NAME
1137 PATH_SEPARATOR
1138 SHELL'
1139 ac_subst_files=''
1140 ac_user_opts='
1141 enable_option_checking
1142 with_target_bits
1143 enable_openjdk_only
1144 with_custom_make_dir
1145 with_jdk_variant
1146 enable_debug
1147 with_debug_level
1148 with_jvm_variants
1149 with_devkit
1150 with_sys_root
1151 with_sysroot
1152 with_tools_dir
1153 with_toolchain_path
1154 with_extra_path
1155 with_sdk_name
1156 with_conf_name
1157 with_output_sync
1158 with_default_make_target
1159 enable_headful
1160 with_cacerts_file
1161 enable_unlimited_crypto
1162 with_copyright_year
1163 enable_keep_packaged_modules
1164 with_milestone
1165 with_update_version
1166 with_user_release_suffix
1167 with_build_number
1168 with_version_string
1169 with_version_pre
1170 with_version_opt
1171 with_version_build
1172 with_version_major
1173 with_version_minor
1174 with_version_security
1175 with_version_patch
1176 with_boot_jdk
1177 with_build_jdk
1178 with_add_source_root
1179 with_override_source_root
1180 with_adds_and_overrides
1181 with_override_langtools
1182 with_override_corba
1183 with_override_jaxp
1184 with_override_jaxws
1185 with_override_hotspot
1186 with_override_nashorn
1187 with_override_jdk
1188 with_import_hotspot
1189 with_import_modules
1190 enable_static_build
1191 with_toolchain_type
1192 with_extra_cflags
1193 with_extra_cxxflags
1194 with_extra_ldflags
1195 with_toolchain_version
1196 with_build_devkit
1197 with_jtreg
1198 enable_warnings_as_errors
1199 with_native_debug_symbols
1200 enable_debug_symbols
1201 enable_zip_debug_info
1202 enable_native_coverage
1203 enable_dtrace
1204 with_jvm_features
1205 with_jvm_interpreter
1206 enable_hotspot_gtest
1207 with_stdc__lib
1208 with_msvcr_dll
1209 with_msvcp_dll
1210 with_x
1211 with_cups
1212 with_cups_include
1213 with_freetype
1214 with_freetype_include
1215 with_freetype_lib
1216 with_freetype_src
1217 enable_freetype_bundling
1218 with_alsa
1219 with_alsa_include
1220 with_alsa_lib
1221 with_libffi
1222 with_libffi_include
1223 with_libffi_lib
1224 with_libjpeg
1225 with_giflib
1226 with_libpng
1227 with_zlib
1228 with_lcms
1229 with_dxsdk
1230 with_dxsdk_lib
1231 with_dxsdk_include
1232 enable_jtreg_failure_handler
1233 enable_generate_classlist
1234 with_num_cores
1235 with_memory_size
1236 with_jobs
1237 with_test_jobs
1238 with_boot_jdk_jvmargs
1239 with_sjavac_server_java
1240 enable_sjavac
1241 enable_javac_server
1242 enable_icecc
1243 enable_precompiled_headers
1244 enable_ccache
1245 with_ccache_dir
1246 '
1247       ac_precious_vars='build_alias
1248 host_alias
1249 target_alias
1250 BASENAME
1251 BASH
1252 CAT
1253 CHMOD
1254 CMP
1255 COMM
1256 CP
1257 CUT
1258 DATE
1259 DIFF
1260 DIRNAME
1261 ECHO
1262 EXPR
1263 FILE
1264 FIND
1265 HEAD
1266 GUNZIP
1267 GZIP
1268 LN
1269 LS
1270 MKDIR
1271 MKTEMP
1272 MV
1273 NAWK
1274 PRINTF
1275 RM
1276 RMDIR
1277 SH
1278 SORT
1279 TAIL
1280 TAR
1281 TEE
1282 TOUCH
1283 TR
1284 UNAME
1285 UNIQ
1286 WC
1287 WHICH
1288 XARGS
1289 AWK
1290 GREP
1291 EGREP
1292 FGREP
1293 SED
1294 CYGPATH
1295 READLINK
1296 DF
1297 CPIO
1298 NICE
1299 MAKE
1300 UNZIP
1301 ZIP
1302 LDD
1303 OTOOL
1304 READELF
1305 HG
1306 STAT
1307 TIME
1308 DTRACE
1309 PATCH
1310 DSYMUTIL
1311 XATTR
1312 CODESIGN
1313 SETFILE
1314 PKG_CONFIG
1315 JAVA
1316 JAVAC
1317 JAVAH
1318 JAR
1319 JARSIGNER
1320 CC
1321 CFLAGS
1322 LDFLAGS
1323 LIBS
1324 CPPFLAGS
1325 CXX
1326 CXXFLAGS
1327 CCC
1328 CPP
1329 CXXCPP
1330 AS
1331 AR
1332 LIPO
1333 STRIP
1334 NM
1335 GNM
1336 OBJCOPY
1337 OBJDUMP
1338 BUILD_CC
1339 BUILD_CXX
1340 BUILD_NM
1341 BUILD_AR
1342 BUILD_OBJCOPY
1343 BUILD_STRIP
1344 JTREGEXE
1345 XMKMF
1346 FREETYPE_CFLAGS
1347 FREETYPE_LIBS
1348 ALSA_CFLAGS
1349 ALSA_LIBS
1350 LIBFFI_CFLAGS
1351 LIBFFI_LIBS
1352 PNG_CFLAGS
1353 PNG_LIBS
1354 LCMS_CFLAGS
1355 LCMS_LIBS
1356 ICECC_CMD
1357 ICECC_CREATE_ENV
1358 ICECC_WRAPPER
1359 CCACHE'
1360 
1361 
1362 # Initialize some variables set by options.
1363 ac_init_help=
1364 ac_init_version=false
1365 ac_unrecognized_opts=
1366 ac_unrecognized_sep=
1367 # The variables have the same names as the options, with
1368 # dashes changed to underlines.
1369 cache_file=/dev/null
1370 exec_prefix=NONE
1371 no_create=
1372 no_recursion=
1373 prefix=NONE
1374 program_prefix=NONE
1375 program_suffix=NONE
1376 program_transform_name=s,x,x,
1377 silent=
1378 site=
1379 srcdir=
1380 verbose=
1381 x_includes=NONE
1382 x_libraries=NONE
1383 
1384 # Installation directory options.
1385 # These are left unexpanded so users can "make install exec_prefix=/foo"
1386 # and all the variables that are supposed to be based on exec_prefix
1387 # by default will actually change.
1388 # Use braces instead of parens because sh, perl, etc. also accept them.
1389 # (The list follows the same order as the GNU Coding Standards.)
1390 bindir='${exec_prefix}/bin'
1391 sbindir='${exec_prefix}/sbin'
1392 libexecdir='${exec_prefix}/libexec'
1393 datarootdir='${prefix}/share'
1394 datadir='${datarootdir}'
1395 sysconfdir='${prefix}/etc'
1396 sharedstatedir='${prefix}/com'
1397 localstatedir='${prefix}/var'
1398 includedir='${prefix}/include'
1399 oldincludedir='/usr/include'
1400 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1401 infodir='${datarootdir}/info'
1402 htmldir='${docdir}'
1403 dvidir='${docdir}'
1404 pdfdir='${docdir}'
1405 psdir='${docdir}'
1406 libdir='${exec_prefix}/lib'
1407 localedir='${datarootdir}/locale'
1408 mandir='${datarootdir}/man'
1409 
1410 ac_prev=
1411 ac_dashdash=
1412 for ac_option
1413 do
1414   # If the previous option needs an argument, assign it.
1415   if test -n "$ac_prev"; then
1416     eval $ac_prev=\$ac_option
1417     ac_prev=
1418     continue
1419   fi
1420 
1421   case $ac_option in
1422   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1423   *=)   ac_optarg= ;;
1424   *)    ac_optarg=yes ;;
1425   esac
1426 
1427   # Accept the important Cygnus configure options, so we can diagnose typos.
1428 
1429   case $ac_dashdash$ac_option in
1430   --)
1431     ac_dashdash=yes ;;
1432 
1433   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1434     ac_prev=bindir ;;
1435   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1436     bindir=$ac_optarg ;;
1437 
1438   -build | --build | --buil | --bui | --bu)
1439     ac_prev=build_alias ;;
1440   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1441     build_alias=$ac_optarg ;;
1442 
1443   -cache-file | --cache-file | --cache-fil | --cache-fi \
1444   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1445     ac_prev=cache_file ;;
1446   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1447   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1448     cache_file=$ac_optarg ;;
1449 
1450   --config-cache | -C)
1451     cache_file=config.cache ;;
1452 
1453   -datadir | --datadir | --datadi | --datad)
1454     ac_prev=datadir ;;
1455   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1456     datadir=$ac_optarg ;;
1457 
1458   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1459   | --dataroo | --dataro | --datar)
1460     ac_prev=datarootdir ;;
1461   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1462   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1463     datarootdir=$ac_optarg ;;
1464 
1465   -disable-* | --disable-*)
1466     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1467     # Reject names that are not valid shell variable names.
1468     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1469       as_fn_error $? "invalid feature name: $ac_useropt"
1470     ac_useropt_orig=$ac_useropt
1471     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1472     case $ac_user_opts in
1473       *"
1474 "enable_$ac_useropt"
1475 "*) ;;
1476       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1477          ac_unrecognized_sep=', ';;
1478     esac
1479     eval enable_$ac_useropt=no ;;
1480 
1481   -docdir | --docdir | --docdi | --doc | --do)
1482     ac_prev=docdir ;;
1483   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1484     docdir=$ac_optarg ;;
1485 
1486   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1487     ac_prev=dvidir ;;
1488   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1489     dvidir=$ac_optarg ;;
1490 
1491   -enable-* | --enable-*)
1492     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1493     # Reject names that are not valid shell variable names.
1494     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1495       as_fn_error $? "invalid feature name: $ac_useropt"
1496     ac_useropt_orig=$ac_useropt
1497     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1498     case $ac_user_opts in
1499       *"
1500 "enable_$ac_useropt"
1501 "*) ;;
1502       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1503          ac_unrecognized_sep=', ';;
1504     esac
1505     eval enable_$ac_useropt=\$ac_optarg ;;
1506 
1507   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1508   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1509   | --exec | --exe | --ex)
1510     ac_prev=exec_prefix ;;
1511   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1512   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1513   | --exec=* | --exe=* | --ex=*)
1514     exec_prefix=$ac_optarg ;;
1515 
1516   -gas | --gas | --ga | --g)
1517     # Obsolete; use --with-gas.
1518     with_gas=yes ;;
1519 
1520   -help | --help | --hel | --he | -h)
1521     ac_init_help=long ;;
1522   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1523     ac_init_help=recursive ;;
1524   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1525     ac_init_help=short ;;
1526 
1527   -host | --host | --hos | --ho)
1528     ac_prev=host_alias ;;
1529   -host=* | --host=* | --hos=* | --ho=*)
1530     host_alias=$ac_optarg ;;
1531 
1532   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1533     ac_prev=htmldir ;;
1534   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1535   | --ht=*)
1536     htmldir=$ac_optarg ;;
1537 
1538   -includedir | --includedir | --includedi | --included | --include \
1539   | --includ | --inclu | --incl | --inc)
1540     ac_prev=includedir ;;
1541   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1542   | --includ=* | --inclu=* | --incl=* | --inc=*)
1543     includedir=$ac_optarg ;;
1544 
1545   -infodir | --infodir | --infodi | --infod | --info | --inf)
1546     ac_prev=infodir ;;
1547   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1548     infodir=$ac_optarg ;;
1549 
1550   -libdir | --libdir | --libdi | --libd)
1551     ac_prev=libdir ;;
1552   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1553     libdir=$ac_optarg ;;
1554 
1555   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1556   | --libexe | --libex | --libe)
1557     ac_prev=libexecdir ;;
1558   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1559   | --libexe=* | --libex=* | --libe=*)
1560     libexecdir=$ac_optarg ;;
1561 
1562   -localedir | --localedir | --localedi | --localed | --locale)
1563     ac_prev=localedir ;;
1564   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1565     localedir=$ac_optarg ;;
1566 
1567   -localstatedir | --localstatedir | --localstatedi | --localstated \
1568   | --localstate | --localstat | --localsta | --localst | --locals)
1569     ac_prev=localstatedir ;;
1570   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1571   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1572     localstatedir=$ac_optarg ;;
1573 
1574   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1575     ac_prev=mandir ;;
1576   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1577     mandir=$ac_optarg ;;
1578 
1579   -nfp | --nfp | --nf)
1580     # Obsolete; use --without-fp.
1581     with_fp=no ;;
1582 
1583   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1584   | --no-cr | --no-c | -n)
1585     no_create=yes ;;
1586 
1587   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1588   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1589     no_recursion=yes ;;
1590 
1591   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1592   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1593   | --oldin | --oldi | --old | --ol | --o)
1594     ac_prev=oldincludedir ;;
1595   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1596   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1597   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1598     oldincludedir=$ac_optarg ;;
1599 
1600   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1601     ac_prev=prefix ;;
1602   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1603     prefix=$ac_optarg ;;
1604 
1605   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1606   | --program-pre | --program-pr | --program-p)
1607     ac_prev=program_prefix ;;
1608   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1609   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1610     program_prefix=$ac_optarg ;;
1611 
1612   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1613   | --program-suf | --program-su | --program-s)
1614     ac_prev=program_suffix ;;
1615   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1616   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1617     program_suffix=$ac_optarg ;;
1618 
1619   -program-transform-name | --program-transform-name \
1620   | --program-transform-nam | --program-transform-na \
1621   | --program-transform-n | --program-transform- \
1622   | --program-transform | --program-transfor \
1623   | --program-transfo | --program-transf \
1624   | --program-trans | --program-tran \
1625   | --progr-tra | --program-tr | --program-t)
1626     ac_prev=program_transform_name ;;
1627   -program-transform-name=* | --program-transform-name=* \
1628   | --program-transform-nam=* | --program-transform-na=* \
1629   | --program-transform-n=* | --program-transform-=* \
1630   | --program-transform=* | --program-transfor=* \
1631   | --program-transfo=* | --program-transf=* \
1632   | --program-trans=* | --program-tran=* \
1633   | --progr-tra=* | --program-tr=* | --program-t=*)
1634     program_transform_name=$ac_optarg ;;
1635 
1636   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1637     ac_prev=pdfdir ;;
1638   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1639     pdfdir=$ac_optarg ;;
1640 
1641   -psdir | --psdir | --psdi | --psd | --ps)
1642     ac_prev=psdir ;;
1643   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1644     psdir=$ac_optarg ;;
1645 
1646   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647   | -silent | --silent | --silen | --sile | --sil)
1648     silent=yes ;;
1649 
1650   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1651     ac_prev=sbindir ;;
1652   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1653   | --sbi=* | --sb=*)
1654     sbindir=$ac_optarg ;;
1655 
1656   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1657   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1658   | --sharedst | --shareds | --shared | --share | --shar \
1659   | --sha | --sh)
1660     ac_prev=sharedstatedir ;;
1661   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1662   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1663   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1664   | --sha=* | --sh=*)
1665     sharedstatedir=$ac_optarg ;;
1666 
1667   -site | --site | --sit)
1668     ac_prev=site ;;
1669   -site=* | --site=* | --sit=*)
1670     site=$ac_optarg ;;
1671 
1672   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1673     ac_prev=srcdir ;;
1674   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1675     srcdir=$ac_optarg ;;
1676 
1677   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1678   | --syscon | --sysco | --sysc | --sys | --sy)
1679     ac_prev=sysconfdir ;;
1680   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1681   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1682     sysconfdir=$ac_optarg ;;
1683 
1684   -target | --target | --targe | --targ | --tar | --ta | --t)
1685     ac_prev=target_alias ;;
1686   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1687     target_alias=$ac_optarg ;;
1688 
1689   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1690     verbose=yes ;;
1691 
1692   -version | --version | --versio | --versi | --vers | -V)
1693     ac_init_version=: ;;
1694 
1695   -with-* | --with-*)
1696     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1697     # Reject names that are not valid shell variable names.
1698     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1699       as_fn_error $? "invalid package name: $ac_useropt"
1700     ac_useropt_orig=$ac_useropt
1701     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1702     case $ac_user_opts in
1703       *"
1704 "with_$ac_useropt"
1705 "*) ;;
1706       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1707          ac_unrecognized_sep=', ';;
1708     esac
1709     eval with_$ac_useropt=\$ac_optarg ;;
1710 
1711   -without-* | --without-*)
1712     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1713     # Reject names that are not valid shell variable names.
1714     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1715       as_fn_error $? "invalid package name: $ac_useropt"
1716     ac_useropt_orig=$ac_useropt
1717     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1718     case $ac_user_opts in
1719       *"
1720 "with_$ac_useropt"
1721 "*) ;;
1722       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1723          ac_unrecognized_sep=', ';;
1724     esac
1725     eval with_$ac_useropt=no ;;
1726 
1727   --x)
1728     # Obsolete; use --with-x.
1729     with_x=yes ;;
1730 
1731   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1732   | --x-incl | --x-inc | --x-in | --x-i)
1733     ac_prev=x_includes ;;
1734   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1735   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1736     x_includes=$ac_optarg ;;
1737 
1738   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1739   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1740     ac_prev=x_libraries ;;
1741   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1742   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1743     x_libraries=$ac_optarg ;;
1744 
1745   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1746 Try \`$0 --help' for more information"
1747     ;;
1748 
1749   *=*)
1750     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1751     # Reject names that are not valid shell variable names.
1752     case $ac_envvar in #(
1753       '' | [0-9]* | *[!_$as_cr_alnum]* )
1754       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1755     esac
1756     eval $ac_envvar=\$ac_optarg
1757     export $ac_envvar ;;
1758 
1759   *)
1760     # FIXME: should be removed in autoconf 3.0.
1761     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1762     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1763       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1764     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1765     ;;
1766 
1767   esac
1768 done
1769 
1770 if test -n "$ac_prev"; then
1771   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1772   as_fn_error $? "missing argument to $ac_option"
1773 fi
1774 
1775 if test -n "$ac_unrecognized_opts"; then
1776   case $enable_option_checking in
1777     no) ;;
1778     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1779     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1780   esac
1781 fi
1782 
1783 # Check all directory arguments for consistency.
1784 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1785                 datadir sysconfdir sharedstatedir localstatedir includedir \
1786                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1787                 libdir localedir mandir
1788 do
1789   eval ac_val=\$$ac_var
1790   # Remove trailing slashes.
1791   case $ac_val in
1792     */ )
1793       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1794       eval $ac_var=\$ac_val;;
1795   esac
1796   # Be sure to have absolute directory names.
1797   case $ac_val in
1798     [\\/$]* | ?:[\\/]* )  continue;;
1799     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1800   esac
1801   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1802 done
1803 
1804 # There might be people who depend on the old broken behavior: `$host'
1805 # used to hold the argument of --host etc.
1806 # FIXME: To remove some day.
1807 build=$build_alias
1808 host=$host_alias
1809 target=$target_alias
1810 
1811 # FIXME: To remove some day.
1812 if test "x$host_alias" != x; then
1813   if test "x$build_alias" = x; then
1814     cross_compiling=maybe
1815   elif test "x$build_alias" != "x$host_alias"; then
1816     cross_compiling=yes
1817   fi
1818 fi
1819 
1820 ac_tool_prefix=
1821 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1822 
1823 test "$silent" = yes && exec 6>/dev/null
1824 
1825 
1826 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1827 ac_ls_di=`ls -di .` &&
1828 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1829   as_fn_error $? "working directory cannot be determined"
1830 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1831   as_fn_error $? "pwd does not report name of working directory"
1832 
1833 
1834 # Find the source files, if location was not specified.
1835 if test -z "$srcdir"; then
1836   ac_srcdir_defaulted=yes
1837   # Try the directory containing this script, then the parent directory.
1838   ac_confdir=`$as_dirname -- "$as_myself" ||
1839 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1840          X"$as_myself" : 'X\(//\)[^/]' \| \
1841          X"$as_myself" : 'X\(//\)$' \| \
1842          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1843 $as_echo X"$as_myself" |
1844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1845             s//\1/
1846             q
1847           }
1848           /^X\(\/\/\)[^/].*/{
1849             s//\1/
1850             q
1851           }
1852           /^X\(\/\/\)$/{
1853             s//\1/
1854             q
1855           }
1856           /^X\(\/\).*/{
1857             s//\1/
1858             q
1859           }
1860           s/.*/./; q'`
1861   srcdir=$ac_confdir
1862   if test ! -r "$srcdir/$ac_unique_file"; then
1863     srcdir=..
1864   fi
1865 else
1866   ac_srcdir_defaulted=no
1867 fi
1868 if test ! -r "$srcdir/$ac_unique_file"; then
1869   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1870   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1871 fi
1872 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1873 ac_abs_confdir=`(
1874         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1875         pwd)`
1876 # When building in place, set srcdir=.
1877 if test "$ac_abs_confdir" = "$ac_pwd"; then
1878   srcdir=.
1879 fi
1880 # Remove unnecessary trailing slashes from srcdir.
1881 # Double slashes in file names in object file debugging info
1882 # mess up M-x gdb in Emacs.
1883 case $srcdir in
1884 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1885 esac
1886 for ac_var in $ac_precious_vars; do
1887   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1888   eval ac_env_${ac_var}_value=\$${ac_var}
1889   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1890   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1891 done
1892 
1893 #
1894 # Report the --help message.
1895 #
1896 if test "$ac_init_help" = "long"; then
1897   # Omit some internal or obsolete options to make the list less imposing.
1898   # This message is too long to be a string in the A/UX 3.1 sh.
1899   cat <<_ACEOF
1900 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1901 
1902 Usage: $0 [OPTION]... [VAR=VALUE]...
1903 
1904 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1905 VAR=VALUE.  See below for descriptions of some of the useful variables.
1906 
1907 Defaults for the options are specified in brackets.
1908 
1909 Configuration:
1910   -h, --help              display this help and exit
1911       --help=short        display options specific to this package
1912       --help=recursive    display the short help of all the included packages
1913   -V, --version           display version information and exit
1914   -q, --quiet, --silent   do not print \`checking ...' messages
1915       --cache-file=FILE   cache test results in FILE [disabled]
1916   -C, --config-cache      alias for \`--cache-file=config.cache'
1917   -n, --no-create         do not create output files
1918       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1919 
1920 Installation directories:
1921   --prefix=PREFIX         install architecture-independent files in PREFIX
1922                           [$ac_default_prefix]
1923   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1924                           [PREFIX]
1925 
1926 By default, \`make install' will install all the files in
1927 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1928 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1929 for instance \`--prefix=\$HOME'.
1930 
1931 For better control, use the options below.
1932 
1933 Fine tuning of the installation directories:
1934   --bindir=DIR            user executables [EPREFIX/bin]
1935   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1936   --libexecdir=DIR        program executables [EPREFIX/libexec]
1937   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1938   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1939   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1940   --libdir=DIR            object code libraries [EPREFIX/lib]
1941   --includedir=DIR        C header files [PREFIX/include]
1942   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1943   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1944   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1945   --infodir=DIR           info documentation [DATAROOTDIR/info]
1946   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1947   --mandir=DIR            man documentation [DATAROOTDIR/man]
1948   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1949   --htmldir=DIR           html documentation [DOCDIR]
1950   --dvidir=DIR            dvi documentation [DOCDIR]
1951   --pdfdir=DIR            pdf documentation [DOCDIR]
1952   --psdir=DIR             ps documentation [DOCDIR]
1953 _ACEOF
1954 
1955   cat <<\_ACEOF
1956 
1957 X features:
1958   --x-includes=DIR    X include files are in DIR
1959   --x-libraries=DIR   X library files are in DIR
1960 
1961 System types:
1962   --build=BUILD     configure for building on BUILD [guessed]
1963   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1964   --target=TARGET   configure for building compilers for TARGET [HOST]
1965 _ACEOF
1966 fi
1967 
1968 if test -n "$ac_init_help"; then
1969   case $ac_init_help in
1970      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1971    esac
1972   cat <<\_ACEOF
1973 
1974 Optional Features:
1975   --disable-option-checking  ignore unrecognized --enable/--with options
1976   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1977   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1978   --enable-openjdk-only   suppress building custom source even if present
1979                           [disabled]
1980   --enable-debug          set the debug level to fastdebug (shorthand for
1981                           --with-debug-level=fastdebug) [disabled]
1982   --disable-headful       disable building headful support (graphical UI
1983                           support) [enabled]
1984   --enable-unlimited-crypto
1985                           Enable unlimited crypto policy [disabled]
1986   --disable-keep-packaged-modules
1987                           Do not keep packaged modules in jdk image [enable]
1988   --enable-static-build   enable static library build [disabled]
1989   --disable-warnings-as-errors
1990                           do not consider native warnings to be an error
1991                           [enabled]
1992   --enable-debug-symbols  Deprecated. Option is kept for backwards
1993                           compatibility and is ignored
1994   --enable-zip-debug-info Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --enable-native-coverage
1997                           enable native compilation with code coverage
1998                           data[disabled]
1999   --enable-dtrace[=yes/no/auto]
2000                           enable dtrace. Default is auto, where dtrace is
2001                           enabled if all dependencies are present.
2002   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2003   --disable-freetype-bundling
2004                           disable bundling of the freetype library with the
2005                           build result [enabled on Windows or when using
2006                           --with-freetype, disabled otherwise]
2007   --enable-jtreg-failure-handler
2008                           forces build of the jtreg failure handler to be
2009                           enabled, missing dependencies become fatal errors.
2010                           Default is auto, where the failure handler is built
2011                           if all dependencies are present and otherwise just
2012                           disabled.
2013   --disable-generate-classlist
2014                           forces enabling or disabling of the generation of a
2015                           CDS classlist at build time. Default is to generate
2016                           it when either the server or client JVMs are built.
2017   --enable-sjavac         use sjavac to do fast incremental compiles
2018                           [disabled]
2019   --disable-javac-server  disable javac server [enabled]
2020   --enable-icecc          enable distribted compilation of native code using
2021                           icecc/icecream [disabled]
2022   --disable-precompiled-headers
2023                           disable using precompiled headers when compiling C++
2024                           [enabled]
2025   --enable-ccache         enable using ccache to speed up recompilations
2026                           [disabled]
2027 
2028 Optional Packages:
2029   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2030   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2031   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2032                           support it), e.g. --with-target-bits=32 [guessed]
2033   --with-custom-make-dir  Deprecated. Option is kept for backwards
2034                           compatibility and is ignored
2035   --with-jdk-variant      JDK variant to build (normal) [normal]
2036   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2037                           optimized) [release]
2038   --with-jvm-variants     JVM variants (separated by commas) to build
2039                           (server,client,minimal,core,zero,zeroshark,custom)
2040                           [server]
2041   --with-devkit           use this devkit for compilers, tools and resources
2042   --with-sys-root         alias for --with-sysroot for backwards compatability
2043   --with-sysroot          use this directory as sysroot
2044   --with-tools-dir        alias for --with-toolchain-path for backwards
2045                           compatibility
2046   --with-toolchain-path   prepend these directories when searching for
2047                           toolchain binaries (compilers etc)
2048   --with-extra-path       prepend these directories to the default path
2049   --with-sdk-name         use the platform SDK of the given name. [macosx]
2050   --with-conf-name        use this as the name of the configuration [generated
2051                           from important configuration options]
2052   --with-output-sync      set make output sync type if supported by make.
2053                           [recurse]
2054   --with-default-make-target
2055                           set the default make target [exploded-image]
2056   --with-cacerts-file     specify alternative cacerts file
2057   --with-copyright-year   Set copyright year value for build [current year]
2058   --with-milestone        Deprecated. Option is kept for backwards
2059                           compatibility and is ignored
2060   --with-update-version   Deprecated. Option is kept for backwards
2061                           compatibility and is ignored
2062   --with-user-release-suffix
2063                           Deprecated. Option is kept for backwards
2064                           compatibility and is ignored
2065   --with-build-number     Deprecated. Option is kept for backwards
2066                           compatibility and is ignored
2067   --with-version-string   Set version string [calculated]
2068   --with-version-pre      Set the base part of the version 'PRE' field
2069                           (pre-release identifier) ['internal']
2070   --with-version-opt      Set version 'OPT' field (build metadata)
2071                           [<timestamp>.<user>.<dirname>]
2072   --with-version-build    Set version 'BUILD' field (build number) [not
2073                           specified]
2074   --with-version-major    Set version 'MAJOR' field (first number) [current
2075                           source value]
2076   --with-version-minor    Set version 'MINOR' field (second number) [current
2077                           source value]
2078   --with-version-security Set version 'SECURITY' field (third number) [current
2079                           source value]
2080   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2081                           specified]
2082   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2083   --with-build-jdk        path to JDK of same version as is being built[the
2084                           newly built JDK]
2085   --with-add-source-root  Deprecated. Option is kept for backwards
2086                           compatibility and is ignored
2087   --with-override-source-root
2088                           Deprecated. Option is kept for backwards
2089                           compatibility and is ignored
2090   --with-adds-and-overrides
2091                           Deprecated. Option is kept for backwards
2092                           compatibility and is ignored
2093   --with-override-langtools
2094                           Deprecated. Option is kept for backwards
2095                           compatibility and is ignored
2096   --with-override-corba   Deprecated. Option is kept for backwards
2097                           compatibility and is ignored
2098   --with-override-jaxp    Deprecated. Option is kept for backwards
2099                           compatibility and is ignored
2100   --with-override-jaxws   Deprecated. Option is kept for backwards
2101                           compatibility and is ignored
2102   --with-override-hotspot Deprecated. Option is kept for backwards
2103                           compatibility and is ignored
2104   --with-override-nashorn Deprecated. Option is kept for backwards
2105                           compatibility and is ignored
2106   --with-override-jdk     Deprecated. Option is kept for backwards
2107                           compatibility and is ignored
2108   --with-import-hotspot   import hotspot binaries from this jdk image or
2109                           hotspot build dist dir instead of building from
2110                           source
2111   --with-import-modules   import a set of prebuilt modules either as a zip
2112                           file or an exploded directory
2113   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2114                           to show possible values [platform dependent]
2115   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2116   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2117   --with-extra-ldflags    extra flags to be used when linking jdk
2118   --with-toolchain-version
2119                           the version of the toolchain to look for, use
2120                           '--help' to show possible values [platform
2121                           dependent]
2122   --with-build-devkit     Devkit to use for the build platform toolchain
2123   --with-jtreg            Regression Test Harness [probed]
2124   --with-native-debug-symbols
2125                           set the native debug symbol configuration (none,
2126                           internal, external, zipped) [varying]
2127   --with-jvm-features     additional JVM features to enable (separated by
2128                           comma), use '--help' to show possible values [none]
2129   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2130                           compatibility and is ignored
2131   --with-stdc++lib=<static>,<dynamic>,<default>
2132                           force linking of the C++ runtime on Linux to either
2133                           static or dynamic, default is static with dynamic as
2134                           fallback
2135   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2136                           (Windows only) [probed]
2137   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2138                           (Windows only) [probed]
2139   --with-x                use the X Window System
2140   --with-cups             specify prefix directory for the cups package
2141                           (expecting the headers under PATH/include)
2142   --with-cups-include     specify directory for the cups include files
2143   --with-freetype         specify prefix directory for the freetype package
2144                           (expecting the libraries under PATH/lib and the
2145                           headers under PATH/include)
2146   --with-freetype-include specify directory for the freetype include files
2147   --with-freetype-lib     specify directory for the freetype library
2148   --with-freetype-src     specify directory with freetype sources to
2149                           automatically build the library (experimental,
2150                           Windows-only)
2151   --with-alsa             specify prefix directory for the alsa package
2152                           (expecting the libraries under PATH/lib and the
2153                           headers under PATH/include)
2154   --with-alsa-include     specify directory for the alsa include files
2155   --with-alsa-lib         specify directory for the alsa library
2156   --with-libffi           specify prefix directory for the libffi package
2157                           (expecting the libraries under PATH/lib and the
2158                           headers under PATH/include)
2159   --with-libffi-include   specify directory for the libffi include files
2160   --with-libffi-lib       specify directory for the libffi library
2161   --with-libjpeg          use libjpeg from build system or OpenJDK source
2162                           (system, bundled) [bundled]
2163   --with-giflib           use giflib from build system or OpenJDK source
2164                           (system, bundled) [bundled]
2165   --with-libpng           use libpng from build system or OpenJDK source
2166                           (system, bundled) [bundled]
2167   --with-zlib             use zlib from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-lcms             use lcms2 from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-dxsdk            Deprecated. Option is kept for backwards
2172                           compatibility and is ignored
2173   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2174                           compatibility and is ignored
2175   --with-dxsdk-include    Deprecated. Option is kept for backwards
2176                           compatibility and is ignored
2177   --with-num-cores        number of cores in the build system, e.g.
2178                           --with-num-cores=8 [probed]
2179   --with-memory-size      memory (in MB) available in the build system, e.g.
2180                           --with-memory-size=1024 [probed]
2181   --with-jobs             number of parallel jobs to let make run [calculated
2182                           based on cores and memory]
2183   --with-test-jobs        number of parallel tests jobs to run [based on build
2184                           jobs]
2185   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2186                           invocations of boot JDK, overriding the default
2187                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2188                           -enableassertions"
2189   --with-sjavac-server-java
2190                           use this java binary for running the sjavac
2191                           background server [Boot JDK java]
2192   --with-ccache-dir       where to store ccache files [~/.ccache]
2193 
2194 Some influential environment variables:
2195   BASENAME    Override default value for BASENAME
2196   BASH        Override default value for BASH
2197   CAT         Override default value for CAT
2198   CHMOD       Override default value for CHMOD
2199   CMP         Override default value for CMP
2200   COMM        Override default value for COMM
2201   CP          Override default value for CP
2202   CUT         Override default value for CUT
2203   DATE        Override default value for DATE
2204   DIFF        Override default value for DIFF
2205   DIRNAME     Override default value for DIRNAME
2206   ECHO        Override default value for ECHO
2207   EXPR        Override default value for EXPR
2208   FILE        Override default value for FILE
2209   FIND        Override default value for FIND
2210   HEAD        Override default value for HEAD
2211   GUNZIP      Override default value for GUNZIP
2212   GZIP        Override default value for GZIP
2213   LN          Override default value for LN
2214   LS          Override default value for LS
2215   MKDIR       Override default value for MKDIR
2216   MKTEMP      Override default value for MKTEMP
2217   MV          Override default value for MV
2218   NAWK        Override default value for NAWK
2219   PRINTF      Override default value for PRINTF
2220   RM          Override default value for RM
2221   RMDIR       Override default value for RMDIR
2222   SH          Override default value for SH
2223   SORT        Override default value for SORT
2224   TAIL        Override default value for TAIL
2225   TAR         Override default value for TAR
2226   TEE         Override default value for TEE
2227   TOUCH       Override default value for TOUCH
2228   TR          Override default value for TR
2229   UNAME       Override default value for UNAME
2230   UNIQ        Override default value for UNIQ
2231   WC          Override default value for WC
2232   WHICH       Override default value for WHICH
2233   XARGS       Override default value for XARGS
2234   AWK         Override default value for AWK
2235   GREP        Override default value for GREP
2236   EGREP       Override default value for EGREP
2237   FGREP       Override default value for FGREP
2238   SED         Override default value for SED
2239   CYGPATH     Override default value for CYGPATH
2240   READLINK    Override default value for READLINK
2241   DF          Override default value for DF
2242   CPIO        Override default value for CPIO
2243   NICE        Override default value for NICE
2244   MAKE        Override default value for MAKE
2245   UNZIP       Override default value for UNZIP
2246   ZIP         Override default value for ZIP
2247   LDD         Override default value for LDD
2248   OTOOL       Override default value for OTOOL
2249   READELF     Override default value for READELF
2250   HG          Override default value for HG
2251   STAT        Override default value for STAT
2252   TIME        Override default value for TIME
2253   DTRACE      Override default value for DTRACE
2254   PATCH       Override default value for PATCH
2255   DSYMUTIL    Override default value for DSYMUTIL
2256   XATTR       Override default value for XATTR
2257   CODESIGN    Override default value for CODESIGN
2258   SETFILE     Override default value for SETFILE
2259   PKG_CONFIG  path to pkg-config utility
2260   JAVA        Override default value for JAVA
2261   JAVAC       Override default value for JAVAC
2262   JAVAH       Override default value for JAVAH
2263   JAR         Override default value for JAR
2264   JARSIGNER   Override default value for JARSIGNER
2265   CC          C compiler command
2266   CFLAGS      C compiler flags
2267   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2268               nonstandard directory <lib dir>
2269   LIBS        libraries to pass to the linker, e.g. -l<library>
2270   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2271               you have headers in a nonstandard directory <include dir>
2272   CXX         C++ compiler command
2273   CXXFLAGS    C++ compiler flags
2274   CPP         C preprocessor
2275   CXXCPP      C++ preprocessor
2276   AS          Override default value for AS
2277   AR          Override default value for AR
2278   LIPO        Override default value for LIPO
2279   STRIP       Override default value for STRIP
2280   NM          Override default value for NM
2281   GNM         Override default value for GNM
2282   OBJCOPY     Override default value for OBJCOPY
2283   OBJDUMP     Override default value for OBJDUMP
2284   BUILD_CC    Override default value for BUILD_CC
2285   BUILD_CXX   Override default value for BUILD_CXX
2286   BUILD_NM    Override default value for BUILD_NM
2287   BUILD_AR    Override default value for BUILD_AR
2288   BUILD_OBJCOPY
2289               Override default value for BUILD_OBJCOPY
2290   BUILD_STRIP Override default value for BUILD_STRIP
2291   JTREGEXE    Override default value for JTREGEXE
2292   XMKMF       Path to xmkmf, Makefile generator for X Window System
2293   FREETYPE_CFLAGS
2294               C compiler flags for FREETYPE, overriding pkg-config
2295   FREETYPE_LIBS
2296               linker flags for FREETYPE, overriding pkg-config
2297   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2298   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2299   LIBFFI_CFLAGS
2300               C compiler flags for LIBFFI, overriding pkg-config
2301   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2302   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2303   PNG_LIBS    linker flags for PNG, overriding pkg-config
2304   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2305   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2306   ICECC_CMD   Override default value for ICECC_CMD
2307   ICECC_CREATE_ENV
2308               Override default value for ICECC_CREATE_ENV
2309   ICECC_WRAPPER
2310               Override default value for ICECC_WRAPPER
2311   CCACHE      Override default value for CCACHE
2312 
2313 Use these variables to override the choices made by `configure' or to help
2314 it to find libraries and programs with nonstandard names/locations.
2315 
2316 Report bugs to <build-dev@openjdk.java.net>.
2317 OpenJDK home page: <http://openjdk.java.net>.
2318 _ACEOF
2319 ac_status=$?
2320 fi
2321 
2322 if test "$ac_init_help" = "recursive"; then
2323   # If there are subdirs, report their specific --help.
2324   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2325     test -d "$ac_dir" ||
2326       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2327       continue
2328     ac_builddir=.
2329 
2330 case "$ac_dir" in
2331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2332 *)
2333   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2334   # A ".." for each directory in $ac_dir_suffix.
2335   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2336   case $ac_top_builddir_sub in
2337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2339   esac ;;
2340 esac
2341 ac_abs_top_builddir=$ac_pwd
2342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2343 # for backward compatibility:
2344 ac_top_builddir=$ac_top_build_prefix
2345 
2346 case $srcdir in
2347   .)  # We are building in place.
2348     ac_srcdir=.
2349     ac_top_srcdir=$ac_top_builddir_sub
2350     ac_abs_top_srcdir=$ac_pwd ;;
2351   [\\/]* | ?:[\\/]* )  # Absolute name.
2352     ac_srcdir=$srcdir$ac_dir_suffix;
2353     ac_top_srcdir=$srcdir
2354     ac_abs_top_srcdir=$srcdir ;;
2355   *) # Relative name.
2356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2357     ac_top_srcdir=$ac_top_build_prefix$srcdir
2358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2359 esac
2360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2361 
2362     cd "$ac_dir" || { ac_status=$?; continue; }
2363     # Check for guested configure.
2364     if test -f "$ac_srcdir/configure.gnu"; then
2365       echo &&
2366       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2367     elif test -f "$ac_srcdir/configure"; then
2368       echo &&
2369       $SHELL "$ac_srcdir/configure" --help=recursive
2370     else
2371       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2372     fi || ac_status=$?
2373     cd "$ac_pwd" || { ac_status=$?; break; }
2374   done
2375 fi
2376 
2377 test -n "$ac_init_help" && exit $ac_status
2378 if $ac_init_version; then
2379   cat <<\_ACEOF
2380 OpenJDK configure jdk9
2381 generated by GNU Autoconf 2.69
2382 
2383 Copyright (C) 2012 Free Software Foundation, Inc.
2384 This configure script is free software; the Free Software Foundation
2385 gives unlimited permission to copy, distribute and modify it.
2386 _ACEOF
2387   exit
2388 fi
2389 
2390 ## ------------------------ ##
2391 ## Autoconf initialization. ##
2392 ## ------------------------ ##
2393 
2394 # ac_fn_c_try_compile LINENO
2395 # --------------------------
2396 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2397 ac_fn_c_try_compile ()
2398 {
2399   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400   rm -f conftest.$ac_objext
2401   if { { ac_try="$ac_compile"
2402 case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408   (eval "$ac_compile") 2>conftest.err
2409   ac_status=$?
2410   if test -s conftest.err; then
2411     grep -v '^ *+' conftest.err >conftest.er1
2412     cat conftest.er1 >&5
2413     mv -f conftest.er1 conftest.err
2414   fi
2415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416   test $ac_status = 0; } && {
2417          test -z "$ac_c_werror_flag" ||
2418          test ! -s conftest.err
2419        } && test -s conftest.$ac_objext; then :
2420   ac_retval=0
2421 else
2422   $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424 
2425         ac_retval=1
2426 fi
2427   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428   as_fn_set_status $ac_retval
2429 
2430 } # ac_fn_c_try_compile
2431 
2432 # ac_fn_cxx_try_compile LINENO
2433 # ----------------------------
2434 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2435 ac_fn_cxx_try_compile ()
2436 {
2437   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438   rm -f conftest.$ac_objext
2439   if { { ac_try="$ac_compile"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445 $as_echo "$ac_try_echo"; } >&5
2446   (eval "$ac_compile") 2>conftest.err
2447   ac_status=$?
2448   if test -s conftest.err; then
2449     grep -v '^ *+' conftest.err >conftest.er1
2450     cat conftest.er1 >&5
2451     mv -f conftest.er1 conftest.err
2452   fi
2453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454   test $ac_status = 0; } && {
2455          test -z "$ac_cxx_werror_flag" ||
2456          test ! -s conftest.err
2457        } && test -s conftest.$ac_objext; then :
2458   ac_retval=0
2459 else
2460   $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462 
2463         ac_retval=1
2464 fi
2465   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466   as_fn_set_status $ac_retval
2467 
2468 } # ac_fn_cxx_try_compile
2469 
2470 # ac_fn_c_try_cpp LINENO
2471 # ----------------------
2472 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2473 ac_fn_c_try_cpp ()
2474 {
2475   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476   if { { ac_try="$ac_cpp conftest.$ac_ext"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2484   ac_status=$?
2485   if test -s conftest.err; then
2486     grep -v '^ *+' conftest.err >conftest.er1
2487     cat conftest.er1 >&5
2488     mv -f conftest.er1 conftest.err
2489   fi
2490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491   test $ac_status = 0; } > conftest.i && {
2492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2493          test ! -s conftest.err
2494        }; then :
2495   ac_retval=0
2496 else
2497   $as_echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499 
2500     ac_retval=1
2501 fi
2502   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503   as_fn_set_status $ac_retval
2504 
2505 } # ac_fn_c_try_cpp
2506 
2507 # ac_fn_cxx_try_cpp LINENO
2508 # ------------------------
2509 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2510 ac_fn_cxx_try_cpp ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   if { { ac_try="$ac_cpp conftest.$ac_ext"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519 $as_echo "$ac_try_echo"; } >&5
2520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2521   ac_status=$?
2522   if test -s conftest.err; then
2523     grep -v '^ *+' conftest.err >conftest.er1
2524     cat conftest.er1 >&5
2525     mv -f conftest.er1 conftest.err
2526   fi
2527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528   test $ac_status = 0; } > conftest.i && {
2529          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2530          test ! -s conftest.err
2531        }; then :
2532   ac_retval=0
2533 else
2534   $as_echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536 
2537     ac_retval=1
2538 fi
2539   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2540   as_fn_set_status $ac_retval
2541 
2542 } # ac_fn_cxx_try_cpp
2543 
2544 # ac_fn_c_try_link LINENO
2545 # -----------------------
2546 # Try to link conftest.$ac_ext, and return whether this succeeded.
2547 ac_fn_c_try_link ()
2548 {
2549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550   rm -f conftest.$ac_objext conftest$ac_exeext
2551   if { { ac_try="$ac_link"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558   (eval "$ac_link") 2>conftest.err
2559   ac_status=$?
2560   if test -s conftest.err; then
2561     grep -v '^ *+' conftest.err >conftest.er1
2562     cat conftest.er1 >&5
2563     mv -f conftest.er1 conftest.err
2564   fi
2565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566   test $ac_status = 0; } && {
2567          test -z "$ac_c_werror_flag" ||
2568          test ! -s conftest.err
2569        } && test -s conftest$ac_exeext && {
2570          test "$cross_compiling" = yes ||
2571          test -x conftest$ac_exeext
2572        }; then :
2573   ac_retval=0
2574 else
2575   $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577 
2578         ac_retval=1
2579 fi
2580   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2581   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2582   # interfere with the next link command; also delete a directory that is
2583   # left behind by Apple's compiler.  We do this before executing the actions.
2584   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586   as_fn_set_status $ac_retval
2587 
2588 } # ac_fn_c_try_link
2589 
2590 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2591 # ---------------------------------------------------------
2592 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2593 # the include files in INCLUDES and setting the cache variable VAR
2594 # accordingly.
2595 ac_fn_cxx_check_header_mongrel ()
2596 {
2597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598   if eval \${$3+:} false; then :
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if eval \${$3+:} false; then :
2602   $as_echo_n "(cached) " >&6
2603 fi
2604 eval ac_res=\$$3
2605                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 else
2608   # Is the header compilable?
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2610 $as_echo_n "checking $2 usability... " >&6; }
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h.  */
2613 $4
2614 #include <$2>
2615 _ACEOF
2616 if ac_fn_cxx_try_compile "$LINENO"; then :
2617   ac_header_compiler=yes
2618 else
2619   ac_header_compiler=no
2620 fi
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2623 $as_echo "$ac_header_compiler" >&6; }
2624 
2625 # Is the header present?
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2627 $as_echo_n "checking $2 presence... " >&6; }
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 #include <$2>
2631 _ACEOF
2632 if ac_fn_cxx_try_cpp "$LINENO"; then :
2633   ac_header_preproc=yes
2634 else
2635   ac_header_preproc=no
2636 fi
2637 rm -f conftest.err conftest.i conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2639 $as_echo "$ac_header_preproc" >&6; }
2640 
2641 # So?  What about this header?
2642 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2643   yes:no: )
2644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2645 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2648     ;;
2649   no:yes:* )
2650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2651 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2653 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2655 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2657 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2658     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2660 ( $as_echo "## ----------------------------------------- ##
2661 ## Report this to build-dev@openjdk.java.net ##
2662 ## ----------------------------------------- ##"
2663      ) | sed "s/^/$as_me: WARNING:     /" >&2
2664     ;;
2665 esac
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if eval \${$3+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   eval "$3=\$ac_header_compiler"
2672 fi
2673 eval ac_res=\$$3
2674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 fi
2677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 
2679 } # ac_fn_cxx_check_header_mongrel
2680 
2681 # ac_fn_cxx_try_run LINENO
2682 # ------------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2684 # that executables *can* be run.
2685 ac_fn_cxx_try_run ()
2686 {
2687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688   if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695   (eval "$ac_link") 2>&5
2696   ac_status=$?
2697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2699   { { case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705   (eval "$ac_try") 2>&5
2706   ac_status=$?
2707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2708   test $ac_status = 0; }; }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: program exited with status $ac_status" >&5
2712        $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714 
2715        ac_retval=$ac_status
2716 fi
2717   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2718   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719   as_fn_set_status $ac_retval
2720 
2721 } # ac_fn_cxx_try_run
2722 
2723 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2724 # ---------------------------------------------------------
2725 # Tests whether HEADER exists and can be compiled using the include files in
2726 # INCLUDES, setting the cache variable VAR accordingly.
2727 ac_fn_cxx_check_header_compile ()
2728 {
2729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2731 $as_echo_n "checking for $2... " >&6; }
2732 if eval \${$3+:} false; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h.  */
2737 $4
2738 #include <$2>
2739 _ACEOF
2740 if ac_fn_cxx_try_compile "$LINENO"; then :
2741   eval "$3=yes"
2742 else
2743   eval "$3=no"
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 fi
2747 eval ac_res=\$$3
2748                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751 
2752 } # ac_fn_cxx_check_header_compile
2753 
2754 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2755 # ----------------------------------------------
2756 # Tries to find the compile-time value of EXPR in a program that includes
2757 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2758 # computed
2759 ac_fn_cxx_compute_int ()
2760 {
2761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762   if test "$cross_compiling" = yes; then
2763     # Depending upon the size, compute the lo and hi bounds.
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h.  */
2766 $4
2767 int
2768 main ()
2769 {
2770 static int test_array [1 - 2 * !(($2) >= 0)];
2771 test_array [0] = 0;
2772 return test_array [0];
2773 
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_cxx_try_compile "$LINENO"; then :
2779   ac_lo=0 ac_mid=0
2780   while :; do
2781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h.  */
2783 $4
2784 int
2785 main ()
2786 {
2787 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2788 test_array [0] = 0;
2789 return test_array [0];
2790 
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 if ac_fn_cxx_try_compile "$LINENO"; then :
2796   ac_hi=$ac_mid; break
2797 else
2798   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2799                         if test $ac_lo -le $ac_mid; then
2800                           ac_lo= ac_hi=
2801                           break
2802                         fi
2803                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2804 fi
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806   done
2807 else
2808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h.  */
2810 $4
2811 int
2812 main ()
2813 {
2814 static int test_array [1 - 2 * !(($2) < 0)];
2815 test_array [0] = 0;
2816 return test_array [0];
2817 
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 if ac_fn_cxx_try_compile "$LINENO"; then :
2823   ac_hi=-1 ac_mid=-1
2824   while :; do
2825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h.  */
2827 $4
2828 int
2829 main ()
2830 {
2831 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2832 test_array [0] = 0;
2833 return test_array [0];
2834 
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_cxx_try_compile "$LINENO"; then :
2840   ac_lo=$ac_mid; break
2841 else
2842   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2843                         if test $ac_mid -le $ac_hi; then
2844                           ac_lo= ac_hi=
2845                           break
2846                         fi
2847                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850   done
2851 else
2852   ac_lo= ac_hi=
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 # Binary search between lo and hi bounds.
2858 while test "x$ac_lo" != "x$ac_hi"; do
2859   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h.  */
2862 $4
2863 int
2864 main ()
2865 {
2866 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2867 test_array [0] = 0;
2868 return test_array [0];
2869 
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 if ac_fn_cxx_try_compile "$LINENO"; then :
2875   ac_hi=$ac_mid
2876 else
2877   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2878 fi
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 done
2881 case $ac_lo in #((
2882 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2883 '') ac_retval=1 ;;
2884 esac
2885   else
2886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h.  */
2888 $4
2889 static long int longval () { return $2; }
2890 static unsigned long int ulongval () { return $2; }
2891 #include <stdio.h>
2892 #include <stdlib.h>
2893 int
2894 main ()
2895 {
2896 
2897   FILE *f = fopen ("conftest.val", "w");
2898   if (! f)
2899     return 1;
2900   if (($2) < 0)
2901     {
2902       long int i = longval ();
2903       if (i != ($2))
2904         return 1;
2905       fprintf (f, "%ld", i);
2906     }
2907   else
2908     {
2909       unsigned long int i = ulongval ();
2910       if (i != ($2))
2911         return 1;
2912       fprintf (f, "%lu", i);
2913     }
2914   /* Do not output a trailing newline, as this causes \r\n confusion
2915      on some platforms.  */
2916   return ferror (f) || fclose (f) != 0;
2917 
2918   ;
2919   return 0;
2920 }
2921 _ACEOF
2922 if ac_fn_cxx_try_run "$LINENO"; then :
2923   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2924 else
2925   ac_retval=1
2926 fi
2927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2928   conftest.$ac_objext conftest.beam conftest.$ac_ext
2929 rm -f conftest.val
2930 
2931   fi
2932   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2933   as_fn_set_status $ac_retval
2934 
2935 } # ac_fn_cxx_compute_int
2936 
2937 # ac_fn_cxx_try_link LINENO
2938 # -------------------------
2939 # Try to link conftest.$ac_ext, and return whether this succeeded.
2940 ac_fn_cxx_try_link ()
2941 {
2942   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943   rm -f conftest.$ac_objext conftest$ac_exeext
2944   if { { ac_try="$ac_link"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950 $as_echo "$ac_try_echo"; } >&5
2951   (eval "$ac_link") 2>conftest.err
2952   ac_status=$?
2953   if test -s conftest.err; then
2954     grep -v '^ *+' conftest.err >conftest.er1
2955     cat conftest.er1 >&5
2956     mv -f conftest.er1 conftest.err
2957   fi
2958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959   test $ac_status = 0; } && {
2960          test -z "$ac_cxx_werror_flag" ||
2961          test ! -s conftest.err
2962        } && test -s conftest$ac_exeext && {
2963          test "$cross_compiling" = yes ||
2964          test -x conftest$ac_exeext
2965        }; then :
2966   ac_retval=0
2967 else
2968   $as_echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970 
2971         ac_retval=1
2972 fi
2973   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2974   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2975   # interfere with the next link command; also delete a directory that is
2976   # left behind by Apple's compiler.  We do this before executing the actions.
2977   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2978   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979   as_fn_set_status $ac_retval
2980 
2981 } # ac_fn_cxx_try_link
2982 
2983 # ac_fn_cxx_check_func LINENO FUNC VAR
2984 # ------------------------------------
2985 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2986 ac_fn_cxx_check_func ()
2987 {
2988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2990 $as_echo_n "checking for $2... " >&6; }
2991 if eval \${$3+:} false; then :
2992   $as_echo_n "(cached) " >&6
2993 else
2994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h.  */
2996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2998 #define $2 innocuous_$2
2999 
3000 /* System header to define __stub macros and hopefully few prototypes,
3001     which can conflict with char $2 (); below.
3002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003     <limits.h> exists even on freestanding compilers.  */
3004 
3005 #ifdef __STDC__
3006 # include <limits.h>
3007 #else
3008 # include <assert.h>
3009 #endif
3010 
3011 #undef $2
3012 
3013 /* Override any GCC internal prototype to avoid an error.
3014    Use char because int might match the return type of a GCC
3015    builtin and then its argument prototype would still apply.  */
3016 #ifdef __cplusplus
3017 extern "C"
3018 #endif
3019 char $2 ();
3020 /* The GNU C library defines this for functions which it implements
3021     to always fail with ENOSYS.  Some functions are actually named
3022     something starting with __ and the normal name is an alias.  */
3023 #if defined __stub_$2 || defined __stub___$2
3024 choke me
3025 #endif
3026 
3027 int
3028 main ()
3029 {
3030 return $2 ();
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 if ac_fn_cxx_try_link "$LINENO"; then :
3036   eval "$3=yes"
3037 else
3038   eval "$3=no"
3039 fi
3040 rm -f core conftest.err conftest.$ac_objext \
3041     conftest$ac_exeext conftest.$ac_ext
3042 fi
3043 eval ac_res=\$$3
3044                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3045 $as_echo "$ac_res" >&6; }
3046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3047 
3048 } # ac_fn_cxx_check_func
3049 
3050 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3051 # -------------------------------------------------------
3052 # Tests whether HEADER exists and can be compiled using the include files in
3053 # INCLUDES, setting the cache variable VAR accordingly.
3054 ac_fn_c_check_header_compile ()
3055 {
3056   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3058 $as_echo_n "checking for $2... " >&6; }
3059 if eval \${$3+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h.  */
3064 $4
3065 #include <$2>
3066 _ACEOF
3067 if ac_fn_c_try_compile "$LINENO"; then :
3068   eval "$3=yes"
3069 else
3070   eval "$3=no"
3071 fi
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 fi
3074 eval ac_res=\$$3
3075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3076 $as_echo "$ac_res" >&6; }
3077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3078 
3079 } # ac_fn_c_check_header_compile
3080 cat >config.log <<_ACEOF
3081 This file contains any messages produced by compilers while
3082 running configure, to aid debugging if configure makes a mistake.
3083 
3084 It was created by OpenJDK $as_me jdk9, which was
3085 generated by GNU Autoconf 2.69.  Invocation command line was
3086 
3087   $ $0 $@
3088 
3089 _ACEOF
3090 exec 5>>config.log
3091 {
3092 cat <<_ASUNAME
3093 ## --------- ##
3094 ## Platform. ##
3095 ## --------- ##
3096 
3097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3102 
3103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3104 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3105 
3106 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3107 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3109 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3110 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3111 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3112 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3113 
3114 _ASUNAME
3115 
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119   IFS=$as_save_IFS
3120   test -z "$as_dir" && as_dir=.
3121     $as_echo "PATH: $as_dir"
3122   done
3123 IFS=$as_save_IFS
3124 
3125 } >&5
3126 
3127 cat >&5 <<_ACEOF
3128 
3129 
3130 ## ----------- ##
3131 ## Core tests. ##
3132 ## ----------- ##
3133 
3134 _ACEOF
3135 
3136 
3137 # Keep a trace of the command line.
3138 # Strip out --no-create and --no-recursion so they do not pile up.
3139 # Strip out --silent because we don't want to record it for future runs.
3140 # Also quote any args containing shell meta-characters.
3141 # Make two passes to allow for proper duplicate-argument suppression.
3142 ac_configure_args=
3143 ac_configure_args0=
3144 ac_configure_args1=
3145 ac_must_keep_next=false
3146 for ac_pass in 1 2
3147 do
3148   for ac_arg
3149   do
3150     case $ac_arg in
3151     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3152     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3153     | -silent | --silent | --silen | --sile | --sil)
3154       continue ;;
3155     *\'*)
3156       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3157     esac
3158     case $ac_pass in
3159     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3160     2)
3161       as_fn_append ac_configure_args1 " '$ac_arg'"
3162       if test $ac_must_keep_next = true; then
3163         ac_must_keep_next=false # Got value, back to normal.
3164       else
3165         case $ac_arg in
3166           *=* | --config-cache | -C | -disable-* | --disable-* \
3167           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3168           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3169           | -with-* | --with-* | -without-* | --without-* | --x)
3170             case "$ac_configure_args0 " in
3171               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3172             esac
3173             ;;
3174           -* ) ac_must_keep_next=true ;;
3175         esac
3176       fi
3177       as_fn_append ac_configure_args " '$ac_arg'"
3178       ;;
3179     esac
3180   done
3181 done
3182 { ac_configure_args0=; unset ac_configure_args0;}
3183 { ac_configure_args1=; unset ac_configure_args1;}
3184 
3185 # When interrupted or exit'd, cleanup temporary files, and complete
3186 # config.log.  We remove comments because anyway the quotes in there
3187 # would cause problems or look ugly.
3188 # WARNING: Use '\'' to represent an apostrophe within the trap.
3189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3190 trap 'exit_status=$?
3191   # Save into config.log some information that might help in debugging.
3192   {
3193     echo
3194 
3195     $as_echo "## ---------------- ##
3196 ## Cache variables. ##
3197 ## ---------------- ##"
3198     echo
3199     # The following way of writing the cache mishandles newlines in values,
3200 (
3201   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3202     eval ac_val=\$$ac_var
3203     case $ac_val in #(
3204     *${as_nl}*)
3205       case $ac_var in #(
3206       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3208       esac
3209       case $ac_var in #(
3210       _ | IFS | as_nl) ;; #(
3211       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3212       *) { eval $ac_var=; unset $ac_var;} ;;
3213       esac ;;
3214     esac
3215   done
3216   (set) 2>&1 |
3217     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3218     *${as_nl}ac_space=\ *)
3219       sed -n \
3220         "s/'\''/'\''\\\\'\'''\''/g;
3221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3222       ;; #(
3223     *)
3224       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3225       ;;
3226     esac |
3227     sort
3228 )
3229     echo
3230 
3231     $as_echo "## ----------------- ##
3232 ## Output variables. ##
3233 ## ----------------- ##"
3234     echo
3235     for ac_var in $ac_subst_vars
3236     do
3237       eval ac_val=\$$ac_var
3238       case $ac_val in
3239       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3240       esac
3241       $as_echo "$ac_var='\''$ac_val'\''"
3242     done | sort
3243     echo
3244 
3245     if test -n "$ac_subst_files"; then
3246       $as_echo "## ------------------- ##
3247 ## File substitutions. ##
3248 ## ------------------- ##"
3249       echo
3250       for ac_var in $ac_subst_files
3251       do
3252         eval ac_val=\$$ac_var
3253         case $ac_val in
3254         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3255         esac
3256         $as_echo "$ac_var='\''$ac_val'\''"
3257       done | sort
3258       echo
3259     fi
3260 
3261     if test -s confdefs.h; then
3262       $as_echo "## ----------- ##
3263 ## confdefs.h. ##
3264 ## ----------- ##"
3265       echo
3266       cat confdefs.h
3267       echo
3268     fi
3269     test "$ac_signal" != 0 &&
3270       $as_echo "$as_me: caught signal $ac_signal"
3271     $as_echo "$as_me: exit $exit_status"
3272   } >&5
3273   rm -f core *.core core.conftest.* &&
3274     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3275     exit $exit_status
3276 ' 0
3277 for ac_signal in 1 2 13 15; do
3278   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3279 done
3280 ac_signal=0
3281 
3282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3283 rm -f -r conftest* confdefs.h
3284 
3285 $as_echo "/* confdefs.h */" > confdefs.h
3286 
3287 # Predefined preprocessor variables.
3288 
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE_NAME "$PACKAGE_NAME"
3291 _ACEOF
3292 
3293 cat >>confdefs.h <<_ACEOF
3294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3295 _ACEOF
3296 
3297 cat >>confdefs.h <<_ACEOF
3298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3299 _ACEOF
3300 
3301 cat >>confdefs.h <<_ACEOF
3302 #define PACKAGE_STRING "$PACKAGE_STRING"
3303 _ACEOF
3304 
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3307 _ACEOF
3308 
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE_URL "$PACKAGE_URL"
3311 _ACEOF
3312 
3313 
3314 # Let the site file select an alternate cache file if it wants to.
3315 # Prefer an explicitly selected file to automatically selected ones.
3316 ac_site_file1=NONE
3317 ac_site_file2=NONE
3318 if test -n "$CONFIG_SITE"; then
3319   # We do not want a PATH search for config.site.
3320   case $CONFIG_SITE in #((
3321     -*)  ac_site_file1=./$CONFIG_SITE;;
3322     */*) ac_site_file1=$CONFIG_SITE;;
3323     *)   ac_site_file1=./$CONFIG_SITE;;
3324   esac
3325 elif test "x$prefix" != xNONE; then
3326   ac_site_file1=$prefix/share/config.site
3327   ac_site_file2=$prefix/etc/config.site
3328 else
3329   ac_site_file1=$ac_default_prefix/share/config.site
3330   ac_site_file2=$ac_default_prefix/etc/config.site
3331 fi
3332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3333 do
3334   test "x$ac_site_file" = xNONE && continue
3335   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3336     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3338     sed 's/^/| /' "$ac_site_file" >&5
3339     . "$ac_site_file" \
3340       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "failed to load site script $ac_site_file
3343 See \`config.log' for more details" "$LINENO" 5; }
3344   fi
3345 done
3346 
3347 if test -r "$cache_file"; then
3348   # Some versions of bash will fail to source /dev/null (special files
3349   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3350   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3351     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3352 $as_echo "$as_me: loading cache $cache_file" >&6;}
3353     case $cache_file in
3354       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3355       *)                      . "./$cache_file";;
3356     esac
3357   fi
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3360 $as_echo "$as_me: creating cache $cache_file" >&6;}
3361   >$cache_file
3362 fi
3363 
3364 # Check that the precious variables saved in the cache have kept the same
3365 # value.
3366 ac_cache_corrupted=false
3367 for ac_var in $ac_precious_vars; do
3368   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3369   eval ac_new_set=\$ac_env_${ac_var}_set
3370   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3371   eval ac_new_val=\$ac_env_${ac_var}_value
3372   case $ac_old_set,$ac_new_set in
3373     set,)
3374       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3376       ac_cache_corrupted=: ;;
3377     ,set)
3378       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3380       ac_cache_corrupted=: ;;
3381     ,);;
3382     *)
3383       if test "x$ac_old_val" != "x$ac_new_val"; then
3384         # differences in whitespace do not lead to failure.
3385         ac_old_val_w=`echo x $ac_old_val`
3386         ac_new_val_w=`echo x $ac_new_val`
3387         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3388           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3390           ac_cache_corrupted=:
3391         else
3392           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3394           eval $ac_var=\$ac_old_val
3395         fi
3396         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3397 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3398         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3399 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3400       fi;;
3401   esac
3402   # Pass precious variables to config.status.
3403   if test "$ac_new_set" = set; then
3404     case $ac_new_val in
3405     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3406     *) ac_arg=$ac_var=$ac_new_val ;;
3407     esac
3408     case " $ac_configure_args " in
3409       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3410       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3411     esac
3412   fi
3413 done
3414 if $ac_cache_corrupted; then
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3419   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3420 fi
3421 ## -------------------- ##
3422 ## Main body of script. ##
3423 ## -------------------- ##
3424 
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 
3431 
3432 
3433 ac_aux_dir=
3434 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3435   if test -f "$ac_dir/install-sh"; then
3436     ac_aux_dir=$ac_dir
3437     ac_install_sh="$ac_aux_dir/install-sh -c"
3438     break
3439   elif test -f "$ac_dir/install.sh"; then
3440     ac_aux_dir=$ac_dir
3441     ac_install_sh="$ac_aux_dir/install.sh -c"
3442     break
3443   elif test -f "$ac_dir/shtool"; then
3444     ac_aux_dir=$ac_dir
3445     ac_install_sh="$ac_aux_dir/shtool install -c"
3446     break
3447   fi
3448 done
3449 if test -z "$ac_aux_dir"; then
3450   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
3451 fi
3452 
3453 # These three variables are undocumented and unsupported,
3454 # and are intended to be withdrawn in a future Autoconf release.
3455 # They can cause serious problems if a builder's source tree is in a directory
3456 # whose full name contains unusual characters.
3457 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3458 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3459 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3460 
3461 
3462 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3463 
3464 #
3465 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3466 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3467 #
3468 # This code is free software; you can redistribute it and/or modify it
3469 # under the terms of the GNU General Public License version 2 only, as
3470 # published by the Free Software Foundation.  Oracle designates this
3471 # particular file as subject to the "Classpath" exception as provided
3472 # by Oracle in the LICENSE file that accompanied this code.
3473 #
3474 # This code is distributed in the hope that it will be useful, but WITHOUT
3475 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3476 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3477 # version 2 for more details (a copy is included in the LICENSE file that
3478 # accompanied this code).
3479 #
3480 # You should have received a copy of the GNU General Public License version
3481 # 2 along with this work; if not, write to the Free Software Foundation,
3482 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3483 #
3484 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3485 # or visit www.oracle.com if you need additional information or have any
3486 # questions.
3487 #
3488 
3489 #
3490 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3491 #
3492 # This program is free software; you can redistribute it and/or modify
3493 # it under the terms of the GNU General Public License as published by
3494 # the Free Software Foundation; either version 2 of the License, or
3495 # (at your option) any later version.
3496 #
3497 # This program is distributed in the hope that it will be useful, but
3498 # WITHOUT ANY WARRANTY; without even the implied warranty of
3499 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3500 # General Public License for more details.
3501 #
3502 # You should have received a copy of the GNU General Public License
3503 # along with this program; if not, write to the Free Software
3504 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3505 #
3506 # As a special exception to the GNU General Public License, if you
3507 # distribute this file as part of a program that contains a
3508 # configuration script generated by Autoconf, you may include it under
3509 # the same distribution terms that you use for the rest of that program.
3510 
3511 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3512 # ----------------------------------
3513 # PKG_PROG_PKG_CONFIG
3514 
3515 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3516 #
3517 # Check to see whether a particular set of modules exists.  Similar
3518 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3519 #
3520 #
3521 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3522 # this or PKG_CHECK_MODULES is called, or make sure to call
3523 # PKG_CHECK_EXISTS manually
3524 # --------------------------------------------------------------
3525 
3526 
3527 
3528 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3529 # ---------------------------------------------
3530 # _PKG_CONFIG
3531 
3532 # _PKG_SHORT_ERRORS_SUPPORTED
3533 # -----------------------------
3534 # _PKG_SHORT_ERRORS_SUPPORTED
3535 
3536 
3537 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3538 # [ACTION-IF-NOT-FOUND])
3539 #
3540 #
3541 # Note that if there is a possibility the first call to
3542 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3543 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3544 #
3545 #
3546 # --------------------------------------------------------------
3547 # PKG_CHECK_MODULES
3548 
3549 
3550 # Include these first...
3551 #
3552 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3553 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3554 #
3555 # This code is free software; you can redistribute it and/or modify it
3556 # under the terms of the GNU General Public License version 2 only, as
3557 # published by the Free Software Foundation.  Oracle designates this
3558 # particular file as subject to the "Classpath" exception as provided
3559 # by Oracle in the LICENSE file that accompanied this code.
3560 #
3561 # This code is distributed in the hope that it will be useful, but WITHOUT
3562 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3563 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3564 # version 2 for more details (a copy is included in the LICENSE file that
3565 # accompanied this code).
3566 #
3567 # You should have received a copy of the GNU General Public License version
3568 # 2 along with this work; if not, write to the Free Software Foundation,
3569 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3570 #
3571 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3572 # or visit www.oracle.com if you need additional information or have any
3573 # questions.
3574 #
3575 
3576 # Create a function/macro that takes a series of named arguments. The call is
3577 # similar to AC_DEFUN, but the setup of the function looks like this:
3578 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3579 # ... do something
3580 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3581 # ])
3582 # A star (*) in front of a named argument means that it is required and it's
3583 # presence will be verified. To pass e.g. the first value as a normal indexed
3584 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3585 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3586 # "ARG_FOO".
3587 #
3588 # The generated function can be called like this:
3589 # MYFUNC(FOO: [foo-val],
3590 #     BAR: [
3591 #         $ECHO hello world
3592 #     ])
3593 # Note that the argument value must start on the same line as the argument name.
3594 #
3595 # Argument 1: Name of the function to define
3596 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3597 # Argument 3: Argument array to treat as named, typically $@
3598 # Argument 4: The main function body
3599 
3600 
3601 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3602 # If so, then append $1 to $2 \
3603 # Also set JVM_ARG_OK to true/false depending on outcome.
3604 
3605 
3606 # Appends a string to a path variable, only adding the : when needed.
3607 
3608 
3609 # Prepends a string to a path variable, only adding the : when needed.
3610 
3611 
3612 # This will make sure the given variable points to a full and proper
3613 # path. This means:
3614 # 1) There will be no spaces in the path. On unix platforms,
3615 #    spaces in the path will result in an error. On Windows,
3616 #    the path will be rewritten using short-style to be space-free.
3617 # 2) The path will be absolute, and it will be in unix-style (on
3618 #     cygwin).
3619 # $1: The name of the variable to fix
3620 
3621 
3622 # This will make sure the given variable points to a executable
3623 # with a full and proper path. This means:
3624 # 1) There will be no spaces in the path. On unix platforms,
3625 #    spaces in the path will result in an error. On Windows,
3626 #    the path will be rewritten using short-style to be space-free.
3627 # 2) The path will be absolute, and it will be in unix-style (on
3628 #     cygwin).
3629 # Any arguments given to the executable is preserved.
3630 # If the input variable does not have a directory specification, then
3631 # it need to be in the PATH.
3632 # $1: The name of the variable to fix
3633 
3634 
3635 
3636 
3637 # Register a --with argument but mark it as deprecated
3638 # $1: The name of the with argument to deprecate, not including --with-
3639 
3640 
3641 # Register a --enable argument but mark it as deprecated
3642 # $1: The name of the with argument to deprecate, not including --enable-
3643 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3644 # $3: Messages to user.
3645 
3646 
3647 
3648 
3649 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3650 # $1: variable to check
3651 
3652 
3653 # Check that there are no unprocessed overridden variables left.
3654 # If so, they are an incorrect argument and we will exit with an error.
3655 
3656 
3657 # Setup a tool for the given variable. If correctly specified by the user,
3658 # use that value, otherwise search for the tool using the supplied code snippet.
3659 # $1: variable to set
3660 # $2: code snippet to call to look for the tool
3661 # $3: code snippet to call if variable was used to find tool
3662 
3663 
3664 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3665 # $1: variable to set
3666 # $2: executable name (or list of names) to look for
3667 
3668 
3669 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3670 # $1: variable to set
3671 # $2: executable name (or list of names) to look for
3672 
3673 
3674 # Like BASIC_PATH_PROGS but fails if no tool was found.
3675 # $1: variable to set
3676 # $2: executable name (or list of names) to look for
3677 
3678 
3679 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3680 # $1: variable to set
3681 # $2: autoconf macro to call to look for the special tool
3682 
3683 
3684 # Setup the most fundamental tools that relies on not much else to set up,
3685 # but is used by much of the early bootstrap code.
3686 
3687 
3688 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3689 
3690 
3691 # Evaluates platform specific overrides for devkit variables.
3692 # $1: Name of variable
3693 
3694 
3695 
3696 
3697 
3698 
3699 #%%% Simple tools %%%
3700 
3701 # Check if we have found a usable version of make
3702 # $1: the path to a potential make binary (or empty)
3703 # $2: the description on how we found this
3704 
3705 
3706 
3707 
3708 # Goes looking for a usable version of GNU make.
3709 
3710 
3711 
3712 
3713 
3714 
3715 
3716 
3717 # Check if build directory is on local disk. If not possible to determine,
3718 # we prefer to claim it's local.
3719 # Argument 1: directory to test
3720 # Argument 2: what to do if it is on local disk
3721 # Argument 3: what to do otherwise (remote disk or failure)
3722 
3723 
3724 # Check that source files have basic read permissions set. This might
3725 # not be the case in cygwin in certain conditions.
3726 
3727 
3728 
3729 
3730 # Check for support for specific options in bash
3731 
3732 
3733 ################################################################################
3734 #
3735 # Default make target
3736 #
3737 
3738 
3739 # Code to run after AC_OUTPUT
3740 
3741 
3742 #
3743 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3744 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3745 #
3746 # This code is free software; you can redistribute it and/or modify it
3747 # under the terms of the GNU General Public License version 2 only, as
3748 # published by the Free Software Foundation.  Oracle designates this
3749 # particular file as subject to the "Classpath" exception as provided
3750 # by Oracle in the LICENSE file that accompanied this code.
3751 #
3752 # This code is distributed in the hope that it will be useful, but WITHOUT
3753 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3754 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3755 # version 2 for more details (a copy is included in the LICENSE file that
3756 # accompanied this code).
3757 #
3758 # You should have received a copy of the GNU General Public License version
3759 # 2 along with this work; if not, write to the Free Software Foundation,
3760 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3761 #
3762 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3763 # or visit www.oracle.com if you need additional information or have any
3764 # questions.
3765 #
3766 
3767 
3768 
3769 
3770 
3771 # Helper function which possibly converts a path using DOS-style short mode.
3772 # If so, the updated path is stored in $new_path.
3773 # $1: The path to check
3774 
3775 
3776 # Helper function which possibly converts a path using DOS-style short mode.
3777 # If so, the updated path is stored in $new_path.
3778 # $1: The path to check
3779 
3780 
3781 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3782 # and could probably be heavily simplified. However, all changes in this
3783 # area tend to need lot of testing in different scenarios, and in lack of
3784 # proper unit testing, cleaning this up has not been deemed worth the effort
3785 # at the moment.
3786 
3787 
3788 
3789 
3790 
3791 
3792 
3793 
3794 
3795 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3796 
3797 
3798 
3799 
3800 # ... then the rest
3801 #
3802 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3803 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3804 #
3805 # This code is free software; you can redistribute it and/or modify it
3806 # under the terms of the GNU General Public License version 2 only, as
3807 # published by the Free Software Foundation.  Oracle designates this
3808 # particular file as subject to the "Classpath" exception as provided
3809 # by Oracle in the LICENSE file that accompanied this code.
3810 #
3811 # This code is distributed in the hope that it will be useful, but WITHOUT
3812 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3813 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3814 # version 2 for more details (a copy is included in the LICENSE file that
3815 # accompanied this code).
3816 #
3817 # You should have received a copy of the GNU General Public License version
3818 # 2 along with this work; if not, write to the Free Software Foundation,
3819 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3820 #
3821 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3822 # or visit www.oracle.com if you need additional information or have any
3823 # questions.
3824 #
3825 
3826 ########################################################################
3827 # This file handles detection of the Boot JDK. The Boot JDK detection
3828 # process has been developed as a response to solve a complex real-world
3829 # problem. Initially, it was simple, but it has grown as platform after
3830 # platform, idiosyncracy after idiosyncracy has been supported.
3831 #
3832 # The basic idea is this:
3833 # 1) You need an acceptable *) JDK to use as a Boot JDK
3834 # 2) There are several ways to locate a JDK, that are mostly platform
3835 #    dependent **)
3836 # 3) You can have multiple JDKs installed
3837 # 4) If possible, configure should try to dig out an acceptable JDK
3838 #    automatically, without having to resort to command-line options
3839 #
3840 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3841 #     javac) and not a JRE, etc.
3842 #
3843 # **) On Windows we typically use a well-known path.
3844 #     On MacOSX we typically use the tool java_home.
3845 #     On Linux we typically find javac in the $PATH, and then follow a
3846 #     chain of symlinks that often ends up in a real JDK.
3847 #
3848 # This leads to the code where we check in different ways to locate a
3849 # JDK, and if one is found, check if it is acceptable. If not, we print
3850 # our reasons for rejecting it (useful when debugging non-working
3851 # configure situations) and continue checking the next one.
3852 ########################################################################
3853 
3854 # Execute the check given as argument, and verify the result
3855 # If the Boot JDK was previously found, do nothing
3856 # $1 A command line (typically autoconf macro) to execute
3857 
3858 
3859 # Test: Is bootjdk explicitely set by command line arguments?
3860 
3861 
3862 # Test: Is $JAVA_HOME set?
3863 
3864 
3865 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3866 
3867 
3868 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3869 # $1: Argument to the java_home binary (optional)
3870 
3871 
3872 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3873 
3874 
3875 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3876 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3877 # $1 = Path to directory containing jdk installations.
3878 # $2 = String to append to the found JDK directory to get the proper JDK home
3879 
3880 
3881 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3882 # environmental variable as base for where to look.
3883 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3884 
3885 
3886 # Test: Is there a JDK installed in default, well-known locations?
3887 
3888 
3889 # Check that a command-line tool in the Boot JDK is correct
3890 # $1 = name of variable to assign
3891 # $2 = name of binary
3892 
3893 
3894 ###############################################################################
3895 #
3896 # We need a Boot JDK to bootstrap the build.
3897 #
3898 
3899 
3900 
3901 
3902 
3903 # BUILD_JDK: the location of the latest JDK that can run
3904 #   on the host system and supports the target class file version
3905 #   generated in this JDK build.  This variable should only be
3906 #   used after the launchers are built.
3907 #
3908 
3909 # Execute the check given as argument, and verify the result.
3910 # If the JDK was previously found, do nothing.
3911 # $1 A command line (typically autoconf macro) to execute
3912 
3913 
3914 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3915 # is different than the host system doing the build (e.g. cross-compilation),
3916 # a special BUILD_JDK is built as part of the build process.  An external
3917 # prebuilt BUILD_JDK can also be supplied.
3918 
3919 
3920 #
3921 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3922 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3923 #
3924 # This code is free software; you can redistribute it and/or modify it
3925 # under the terms of the GNU General Public License version 2 only, as
3926 # published by the Free Software Foundation.  Oracle designates this
3927 # particular file as subject to the "Classpath" exception as provided
3928 # by Oracle in the LICENSE file that accompanied this code.
3929 #
3930 # This code is distributed in the hope that it will be useful, but WITHOUT
3931 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3932 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3933 # version 2 for more details (a copy is included in the LICENSE file that
3934 # accompanied this code).
3935 #
3936 # You should have received a copy of the GNU General Public License version
3937 # 2 along with this work; if not, write to the Free Software Foundation,
3938 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3939 #
3940 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3941 # or visit www.oracle.com if you need additional information or have any
3942 # questions.
3943 #
3944 
3945 
3946 
3947 
3948 
3949 
3950 
3951 
3952 
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 ################################################################################
3962 #
3963 # Runs icecc-create-env once and prints the error if it fails
3964 #
3965 # $1: arguments to icecc-create-env
3966 # $2: log file
3967 #
3968 
3969 
3970 ################################################################################
3971 #
3972 # Optionally enable distributed compilation of native code using icecc/icecream
3973 #
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 #
3982 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3983 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3984 #
3985 # This code is free software; you can redistribute it and/or modify it
3986 # under the terms of the GNU General Public License version 2 only, as
3987 # published by the Free Software Foundation.  Oracle designates this
3988 # particular file as subject to the "Classpath" exception as provided
3989 # by Oracle in the LICENSE file that accompanied this code.
3990 #
3991 # This code is distributed in the hope that it will be useful, but WITHOUT
3992 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3993 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3994 # version 2 for more details (a copy is included in the LICENSE file that
3995 # accompanied this code).
3996 #
3997 # You should have received a copy of the GNU General Public License version
3998 # 2 along with this work; if not, write to the Free Software Foundation,
3999 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4000 #
4001 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4002 # or visit www.oracle.com if you need additional information or have any
4003 # questions.
4004 #
4005 
4006 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4007 # corresponding configure arguments instead
4008 
4009 
4010 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4011 # that configure can use them while detecting compilers.
4012 # TOOLCHAIN_TYPE is available here.
4013 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4014 
4015 
4016 
4017 
4018 
4019 
4020 # Documentation on common flags used for solstudio in HIGHEST.
4021 #
4022 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4023 #          done with care, there are some assumptions below that need to
4024 #          be understood about the use of pointers, and IEEE behavior.
4025 #
4026 # -fns: Use non-standard floating point mode (not IEEE 754)
4027 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4028 # -fsingle: Use single precision floating point with 'float'
4029 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4030 #   (Source with excessing pointer casting and data access with mixed
4031 #    pointer types are not recommended)
4032 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4033 #   (If you expect perfect errno behavior, do not use this)
4034 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4035 # -xrestrict: Pointer parameters to functions do not overlap
4036 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4037 #    If you pass in multiple pointers to the same data, do not use this)
4038 # -xlibmil: Inline some library routines
4039 #   (If you expect perfect errno behavior, do not use this)
4040 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4041 #   (If you expect perfect errno behavior, do not use this)
4042 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4043 
4044     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4045     # Bug?
4046     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4047     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4048     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4049     #fi
4050 
4051 
4052 
4053 
4054 
4055 
4056 ################################################################################
4057 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4058 #      conditionals against.
4059 # $2 - Optional prefix for each variable defined.
4060 
4061 
4062 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4063 #                                  IF_FALSE: [RUN-IF-FALSE])
4064 # ------------------------------------------------------------
4065 # Check that the C compiler supports an argument
4066 
4067 
4068 
4069 
4070 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4071 #                                    IF_FALSE: [RUN-IF-FALSE])
4072 # ------------------------------------------------------------
4073 # Check that the C++ compiler supports an argument
4074 
4075 
4076 
4077 
4078 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4079 #                                IF_FALSE: [RUN-IF-FALSE])
4080 # ------------------------------------------------------------
4081 # Check that the C and C++ compilers support an argument
4082 
4083 
4084 
4085 
4086 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4087 #                                   IF_FALSE: [RUN-IF-FALSE])
4088 # ------------------------------------------------------------
4089 # Check that the linker support an argument
4090 
4091 
4092 
4093 
4094 
4095 
4096 
4097 
4098 #
4099 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4100 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4101 #
4102 # This code is free software; you can redistribute it and/or modify it
4103 # under the terms of the GNU General Public License version 2 only, as
4104 # published by the Free Software Foundation.  Oracle designates this
4105 # particular file as subject to the "Classpath" exception as provided
4106 # by Oracle in the LICENSE file that accompanied this code.
4107 #
4108 # This code is distributed in the hope that it will be useful, but WITHOUT
4109 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4110 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4111 # version 2 for more details (a copy is included in the LICENSE file that
4112 # accompanied this code).
4113 #
4114 # You should have received a copy of the GNU General Public License version
4115 # 2 along with this work; if not, write to the Free Software Foundation,
4116 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4117 #
4118 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4119 # or visit www.oracle.com if you need additional information or have any
4120 # questions.
4121 #
4122 
4123 
4124 
4125 
4126 
4127 cygwin_help() {
4128   case $1 in
4129     unzip)
4130       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4131       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4132       ;;
4133     zip)
4134       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4135       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4136       ;;
4137     make)
4138       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4139       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4140       ;;
4141     freetype)
4142       HELP_MSG="
4143 The freetype library can now be build during the configure process.
4144 Download the freetype sources and unpack them into an arbitrary directory:
4145 
4146 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4147 tar -xzf freetype-2.5.3.tar.gz
4148 
4149 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4150 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4151 builds or into '<freetype_src>/lib32' for 32-bit builds.
4152 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4153 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4154 
4155 Alternatively you can unpack the sources like this to use the default directory:
4156 
4157 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4158       ;;
4159   esac
4160 }
4161 
4162 msys_help() {
4163   PKGHANDLER_COMMAND=""
4164 }
4165 
4166 apt_help() {
4167   case $1 in
4168     reduced)
4169       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4170     devkit)
4171       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4172     openjdk)
4173       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4174     alsa)
4175       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4176     cups)
4177       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4178     freetype)
4179       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4180     ffi)
4181       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4182     x11)
4183       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4184     ccache)
4185       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4186     dtrace)
4187       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4188   esac
4189 }
4190 
4191 yum_help() {
4192   case $1 in
4193     devkit)
4194       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4195     openjdk)
4196       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4197     alsa)
4198       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4199     cups)
4200       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4201     freetype)
4202       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4203     x11)
4204       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4205     ccache)
4206       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4207   esac
4208 }
4209 
4210 port_help() {
4211   PKGHANDLER_COMMAND=""
4212 }
4213 
4214 pkgutil_help() {
4215   PKGHANDLER_COMMAND=""
4216 }
4217 
4218 pkgadd_help() {
4219   PKGHANDLER_COMMAND=""
4220 }
4221 
4222 # This function will check if we're called from the "configure" wrapper while
4223 # printing --help. If so, we will print out additional information that can
4224 # only be extracted within the autoconf script, and then exit. This must be
4225 # called at the very beginning in configure.ac.
4226 
4227 
4228 
4229 
4230 
4231 
4232 #
4233 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4234 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4235 #
4236 # This code is free software; you can redistribute it and/or modify it
4237 # under the terms of the GNU General Public License version 2 only, as
4238 # published by the Free Software Foundation.  Oracle designates this
4239 # particular file as subject to the "Classpath" exception as provided
4240 # by Oracle in the LICENSE file that accompanied this code.
4241 #
4242 # This code is distributed in the hope that it will be useful, but WITHOUT
4243 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4244 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4245 # version 2 for more details (a copy is included in the LICENSE file that
4246 # accompanied this code).
4247 #
4248 # You should have received a copy of the GNU General Public License version
4249 # 2 along with this work; if not, write to the Free Software Foundation,
4250 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4251 #
4252 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4253 # or visit www.oracle.com if you need additional information or have any
4254 # questions.
4255 #
4256 
4257 # All valid JVM features, regardless of platform
4258 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4259     fprof vm-structs jni-check services management all-gcs nmt cds static-build"
4260 
4261 # All valid JVM variants
4262 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4263 
4264 ###############################################################################
4265 # Check if the specified JVM variant should be built. To be used in shell if
4266 # constructs, like this:
4267 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4268 #
4269 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4270 
4271 # Definition kept in one line to allow inlining in if statements.
4272 # Additional [] needed to keep m4 from mangling shell constructs.
4273 
4274 
4275 ###############################################################################
4276 # Check if the specified JVM features are explicitly enabled. To be used in
4277 # shell if constructs, like this:
4278 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4279 #
4280 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4281 
4282 # Definition kept in one line to allow inlining in if statements.
4283 # Additional [] needed to keep m4 from mangling shell constructs.
4284 
4285 
4286 ###############################################################################
4287 # Check which variants of the JVM that we want to build. Available variants are:
4288 #   server: normal interpreter, and a tiered C1/C2 compiler
4289 #   client: normal interpreter, and C1 (no C2 compiler)
4290 #   minimal: reduced form of client with optional features stripped out
4291 #   core: normal interpreter only, no compiler
4292 #   zero: C++ based interpreter only, no compiler
4293 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4294 #   custom: baseline JVM with no default features
4295 #
4296 
4297 
4298 ###############################################################################
4299 # Check if dtrace should be enabled and has all prerequisites present.
4300 #
4301 
4302 
4303 ###############################################################################
4304 # Set up all JVM features for each JVM variant.
4305 #
4306 
4307 
4308 ###############################################################################
4309 # Validate JVM features once all setup is complete, including custom setup.
4310 #
4311 
4312 
4313 ################################################################################
4314 # Check if gtest should be built
4315 #
4316 
4317 
4318 #
4319 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4320 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4321 #
4322 # This code is free software; you can redistribute it and/or modify it
4323 # under the terms of the GNU General Public License version 2 only, as
4324 # published by the Free Software Foundation.  Oracle designates this
4325 # particular file as subject to the "Classpath" exception as provided
4326 # by Oracle in the LICENSE file that accompanied this code.
4327 #
4328 # This code is distributed in the hope that it will be useful, but WITHOUT
4329 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4330 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4331 # version 2 for more details (a copy is included in the LICENSE file that
4332 # accompanied this code).
4333 #
4334 # You should have received a copy of the GNU General Public License version
4335 # 2 along with this work; if not, write to the Free Software Foundation,
4336 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4337 #
4338 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4339 # or visit www.oracle.com if you need additional information or have any
4340 # questions.
4341 #
4342 
4343 ###############################################################################
4344 # Check which variant of the JDK that we want to build.
4345 # Currently we have:
4346 #    normal:   standard edition
4347 # but the custom make system may add other variants
4348 #
4349 # Effectively the JDK variant gives a name to a specific set of
4350 # modules to compile into the JDK.
4351 
4352 
4353 ###############################################################################
4354 # Set the debug level
4355 #    release: no debug information, all optimizations, no asserts.
4356 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4357 #    fastdebug: debug information (-g), all optimizations, all asserts
4358 #    slowdebug: debug information (-g), no optimizations, all asserts
4359 
4360 
4361 ###############################################################################
4362 #
4363 # Should we build only OpenJDK even if closed sources are present?
4364 #
4365 
4366 
4367 
4368 
4369 ###############################################################################
4370 #
4371 # Enable or disable the elliptic curve crypto implementation
4372 #
4373 
4374 
4375 
4376 
4377 ################################################################################
4378 #
4379 # Gcov coverage data for hotspot
4380 #
4381 
4382 
4383 ################################################################################
4384 #
4385 # Static build support.  When enabled will generate static
4386 # libraries instead of shared libraries for all JDK libs.
4387 #
4388 
4389 
4390 ################################################################################
4391 #
4392 # jlink options.
4393 # We always keep packaged modules in JDK image.
4394 #
4395 
4396 
4397 ################################################################################
4398 #
4399 # Check if building of the jtreg failure handler should be enabled.
4400 #
4401 
4402 
4403 ################################################################################
4404 #
4405 # Enable or disable generation of the classlist at build time
4406 #
4407 
4408 
4409 #
4410 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4411 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4412 #
4413 # This code is free software; you can redistribute it and/or modify it
4414 # under the terms of the GNU General Public License version 2 only, as
4415 # published by the Free Software Foundation.  Oracle designates this
4416 # particular file as subject to the "Classpath" exception as provided
4417 # by Oracle in the LICENSE file that accompanied this code.
4418 #
4419 # This code is distributed in the hope that it will be useful, but WITHOUT
4420 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4421 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4422 # version 2 for more details (a copy is included in the LICENSE file that
4423 # accompanied this code).
4424 #
4425 # You should have received a copy of the GNU General Public License version
4426 # 2 along with this work; if not, write to the Free Software Foundation,
4427 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4428 #
4429 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4430 # or visit www.oracle.com if you need additional information or have any
4431 # questions.
4432 #
4433 
4434 ###############################################################################
4435 #
4436 # Setup version numbers
4437 #
4438 
4439 # Verify that a given string represents a valid version number, and assign it
4440 # to a variable.
4441 
4442 # Argument 1: the variable to assign to
4443 # Argument 2: the value given by the user
4444 
4445 
4446 
4447 
4448 #
4449 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4450 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4451 #
4452 # This code is free software; you can redistribute it and/or modify it
4453 # under the terms of the GNU General Public License version 2 only, as
4454 # published by the Free Software Foundation.  Oracle designates this
4455 # particular file as subject to the "Classpath" exception as provided
4456 # by Oracle in the LICENSE file that accompanied this code.
4457 #
4458 # This code is distributed in the hope that it will be useful, but WITHOUT
4459 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4460 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4461 # version 2 for more details (a copy is included in the LICENSE file that
4462 # accompanied this code).
4463 #
4464 # You should have received a copy of the GNU General Public License version
4465 # 2 along with this work; if not, write to the Free Software Foundation,
4466 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4467 #
4468 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4469 # or visit www.oracle.com if you need additional information or have any
4470 # questions.
4471 #
4472 
4473 # Major library component reside in separate files.
4474 #
4475 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4476 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4477 #
4478 # This code is free software; you can redistribute it and/or modify it
4479 # under the terms of the GNU General Public License version 2 only, as
4480 # published by the Free Software Foundation.  Oracle designates this
4481 # particular file as subject to the "Classpath" exception as provided
4482 # by Oracle in the LICENSE file that accompanied this code.
4483 #
4484 # This code is distributed in the hope that it will be useful, but WITHOUT
4485 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4486 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4487 # version 2 for more details (a copy is included in the LICENSE file that
4488 # accompanied this code).
4489 #
4490 # You should have received a copy of the GNU General Public License version
4491 # 2 along with this work; if not, write to the Free Software Foundation,
4492 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4493 #
4494 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4495 # or visit www.oracle.com if you need additional information or have any
4496 # questions.
4497 #
4498 
4499 ################################################################################
4500 # Setup alsa (Advanced Linux Sound Architecture)
4501 ################################################################################
4502 
4503 
4504 #
4505 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4506 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4507 #
4508 # This code is free software; you can redistribute it and/or modify it
4509 # under the terms of the GNU General Public License version 2 only, as
4510 # published by the Free Software Foundation.  Oracle designates this
4511 # particular file as subject to the "Classpath" exception as provided
4512 # by Oracle in the LICENSE file that accompanied this code.
4513 #
4514 # This code is distributed in the hope that it will be useful, but WITHOUT
4515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4516 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4517 # version 2 for more details (a copy is included in the LICENSE file that
4518 # accompanied this code).
4519 #
4520 # You should have received a copy of the GNU General Public License version
4521 # 2 along with this work; if not, write to the Free Software Foundation,
4522 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4523 #
4524 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4525 # or visit www.oracle.com if you need additional information or have any
4526 # questions.
4527 #
4528 
4529 ################################################################################
4530 # Setup bundled libraries.
4531 #
4532 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4533 # OpenJDK repository. Default is to use these libraries as bundled, but they
4534 # might be replaced by en external version by the user.
4535 ################################################################################
4536 
4537 
4538 ################################################################################
4539 # Setup libjpeg
4540 ################################################################################
4541 
4542 
4543 ################################################################################
4544 # Setup giflib
4545 ################################################################################
4546 
4547 
4548 ################################################################################
4549 # Setup libpng
4550 ################################################################################
4551 
4552 
4553 ################################################################################
4554 # Setup zlib
4555 ################################################################################
4556 
4557 
4558 ################################################################################
4559 # Setup lcms (Little CMS)
4560 ################################################################################
4561 
4562 
4563 #
4564 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4565 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4566 #
4567 # This code is free software; you can redistribute it and/or modify it
4568 # under the terms of the GNU General Public License version 2 only, as
4569 # published by the Free Software Foundation.  Oracle designates this
4570 # particular file as subject to the "Classpath" exception as provided
4571 # by Oracle in the LICENSE file that accompanied this code.
4572 #
4573 # This code is distributed in the hope that it will be useful, but WITHOUT
4574 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4575 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4576 # version 2 for more details (a copy is included in the LICENSE file that
4577 # accompanied this code).
4578 #
4579 # You should have received a copy of the GNU General Public License version
4580 # 2 along with this work; if not, write to the Free Software Foundation,
4581 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4582 #
4583 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4584 # or visit www.oracle.com if you need additional information or have any
4585 # questions.
4586 #
4587 
4588 ################################################################################
4589 # Setup cups (Common Unix Printing System)
4590 ################################################################################
4591 
4592 
4593 #
4594 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4595 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4596 #
4597 # This code is free software; you can redistribute it and/or modify it
4598 # under the terms of the GNU General Public License version 2 only, as
4599 # published by the Free Software Foundation.  Oracle designates this
4600 # particular file as subject to the "Classpath" exception as provided
4601 # by Oracle in the LICENSE file that accompanied this code.
4602 #
4603 # This code is distributed in the hope that it will be useful, but WITHOUT
4604 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4605 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4606 # version 2 for more details (a copy is included in the LICENSE file that
4607 # accompanied this code).
4608 #
4609 # You should have received a copy of the GNU General Public License version
4610 # 2 along with this work; if not, write to the Free Software Foundation,
4611 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4612 #
4613 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4614 # or visit www.oracle.com if you need additional information or have any
4615 # questions.
4616 #
4617 
4618 ################################################################################
4619 # Setup libffi (Foreign Function Interface)
4620 ################################################################################
4621 
4622 
4623 #
4624 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4625 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4626 #
4627 # This code is free software; you can redistribute it and/or modify it
4628 # under the terms of the GNU General Public License version 2 only, as
4629 # published by the Free Software Foundation.  Oracle designates this
4630 # particular file as subject to the "Classpath" exception as provided
4631 # by Oracle in the LICENSE file that accompanied this code.
4632 #
4633 # This code is distributed in the hope that it will be useful, but WITHOUT
4634 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4635 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4636 # version 2 for more details (a copy is included in the LICENSE file that
4637 # accompanied this code).
4638 #
4639 # You should have received a copy of the GNU General Public License version
4640 # 2 along with this work; if not, write to the Free Software Foundation,
4641 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4642 #
4643 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4644 # or visit www.oracle.com if you need additional information or have any
4645 # questions.
4646 #
4647 
4648 ################################################################################
4649 # Build the freetype lib from source
4650 ################################################################################
4651 
4652 
4653 ################################################################################
4654 # Check if a potential freeype library match is correct and usable
4655 ################################################################################
4656 
4657 
4658 ################################################################################
4659 # Setup freetype (The FreeType2 font rendering library)
4660 ################################################################################
4661 
4662 
4663 #
4664 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4665 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4666 #
4667 # This code is free software; you can redistribute it and/or modify it
4668 # under the terms of the GNU General Public License version 2 only, as
4669 # published by the Free Software Foundation.  Oracle designates this
4670 # particular file as subject to the "Classpath" exception as provided
4671 # by Oracle in the LICENSE file that accompanied this code.
4672 #
4673 # This code is distributed in the hope that it will be useful, but WITHOUT
4674 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4675 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4676 # version 2 for more details (a copy is included in the LICENSE file that
4677 # accompanied this code).
4678 #
4679 # You should have received a copy of the GNU General Public License version
4680 # 2 along with this work; if not, write to the Free Software Foundation,
4681 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4682 #
4683 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4684 # or visit www.oracle.com if you need additional information or have any
4685 # questions.
4686 #
4687 
4688 ################################################################################
4689 # Setup the standard C/C++ runtime libraries.
4690 #
4691 # Most importantly, determine if stdc++ should be linked statically or
4692 # dynamically.
4693 ################################################################################
4694 
4695 
4696 #
4697 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4698 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4699 #
4700 # This code is free software; you can redistribute it and/or modify it
4701 # under the terms of the GNU General Public License version 2 only, as
4702 # published by the Free Software Foundation.  Oracle designates this
4703 # particular file as subject to the "Classpath" exception as provided
4704 # by Oracle in the LICENSE file that accompanied this code.
4705 #
4706 # This code is distributed in the hope that it will be useful, but WITHOUT
4707 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4708 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4709 # version 2 for more details (a copy is included in the LICENSE file that
4710 # accompanied this code).
4711 #
4712 # You should have received a copy of the GNU General Public License version
4713 # 2 along with this work; if not, write to the Free Software Foundation,
4714 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4715 #
4716 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4717 # or visit www.oracle.com if you need additional information or have any
4718 # questions.
4719 #
4720 
4721 ################################################################################
4722 # Setup X11 Windows system
4723 ################################################################################
4724 
4725 
4726 
4727 ################################################################################
4728 # Determine which libraries are needed for this configuration
4729 ################################################################################
4730 
4731 
4732 ################################################################################
4733 # Parse library options, and setup needed libraries
4734 ################################################################################
4735 
4736 
4737 ################################################################################
4738 # Setup llvm (Low-Level VM)
4739 ################################################################################
4740 
4741 
4742 ################################################################################
4743 # Setup various libraries, typically small system libraries
4744 ################################################################################
4745 
4746 
4747 ################################################################################
4748 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4749 # redistribute it in the test image.
4750 ################################################################################
4751 
4752 
4753 
4754 #
4755 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4756 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4757 #
4758 # This code is free software; you can redistribute it and/or modify it
4759 # under the terms of the GNU General Public License version 2 only, as
4760 # published by the Free Software Foundation.  Oracle designates this
4761 # particular file as subject to the "Classpath" exception as provided
4762 # by Oracle in the LICENSE file that accompanied this code.
4763 #
4764 # This code is distributed in the hope that it will be useful, but WITHOUT
4765 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4766 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4767 # version 2 for more details (a copy is included in the LICENSE file that
4768 # accompanied this code).
4769 #
4770 # You should have received a copy of the GNU General Public License version
4771 # 2 along with this work; if not, write to the Free Software Foundation,
4772 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4773 #
4774 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4775 # or visit www.oracle.com if you need additional information or have any
4776 # questions.
4777 #
4778 
4779 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4780 # Converts autoconf style CPU name to OpenJDK style, into
4781 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4782 
4783 
4784 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4785 # Converts autoconf style OS name to OpenJDK style, into
4786 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4787 
4788 
4789 # Expects $host_os $host_cpu $build_os and $build_cpu
4790 # and $with_target_bits to have been setup!
4791 #
4792 # Translate the standard triplet(quadruplet) definition
4793 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4794 # OPENJDK_BUILD_OS, etc.
4795 
4796 
4797 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4798 # accordingly. Must be done after setting up build and target system, but before
4799 # doing anything else with these values.
4800 
4801 
4802 # Setup the legacy variables, for controlling the old makefiles.
4803 #
4804 
4805 
4806 # $1 - Either TARGET or BUILD to setup the variables for.
4807 
4808 
4809 
4810 
4811 #%%% Build and target systems %%%
4812 
4813 
4814 
4815 
4816 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4817 # Add -mX to various FLAGS variables.
4818 
4819 
4820 
4821 
4822 
4823 
4824 #
4825 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4826 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4827 #
4828 # This code is free software; you can redistribute it and/or modify it
4829 # under the terms of the GNU General Public License version 2 only, as
4830 # published by the Free Software Foundation.  Oracle designates this
4831 # particular file as subject to the "Classpath" exception as provided
4832 # by Oracle in the LICENSE file that accompanied this code.
4833 #
4834 # This code is distributed in the hope that it will be useful, but WITHOUT
4835 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4836 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4837 # version 2 for more details (a copy is included in the LICENSE file that
4838 # accompanied this code).
4839 #
4840 # You should have received a copy of the GNU General Public License version
4841 # 2 along with this work; if not, write to the Free Software Foundation,
4842 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4843 #
4844 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4845 # or visit www.oracle.com if you need additional information or have any
4846 # questions.
4847 #
4848 
4849 
4850 
4851 
4852 
4853 
4854 
4855 ################################################################################
4856 # Define a mechanism for importing extra prebuilt modules
4857 #
4858 
4859 
4860 
4861 #
4862 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4863 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4864 #
4865 # This code is free software; you can redistribute it and/or modify it
4866 # under the terms of the GNU General Public License version 2 only, as
4867 # published by the Free Software Foundation.  Oracle designates this
4868 # particular file as subject to the "Classpath" exception as provided
4869 # by Oracle in the LICENSE file that accompanied this code.
4870 #
4871 # This code is distributed in the hope that it will be useful, but WITHOUT
4872 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4873 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4874 # version 2 for more details (a copy is included in the LICENSE file that
4875 # accompanied this code).
4876 #
4877 # You should have received a copy of the GNU General Public License version
4878 # 2 along with this work; if not, write to the Free Software Foundation,
4879 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4880 #
4881 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4882 # or visit www.oracle.com if you need additional information or have any
4883 # questions.
4884 #
4885 
4886 ########################################################################
4887 # This file is responsible for detecting, verifying and setting up the
4888 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4889 # proper paths to the binaries, but it will not setup any flags.
4890 #
4891 # The binaries used is determined by the toolchain type, which is the family of
4892 # compilers and related tools that are used.
4893 ########################################################################
4894 
4895 
4896 # All valid toolchains, regardless of platform (used by help.m4)
4897 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4898 
4899 # These toolchains are valid on different platforms
4900 VALID_TOOLCHAINS_linux="gcc clang"
4901 VALID_TOOLCHAINS_solaris="solstudio"
4902 VALID_TOOLCHAINS_macosx="gcc clang"
4903 VALID_TOOLCHAINS_aix="xlc"
4904 VALID_TOOLCHAINS_windows="microsoft"
4905 
4906 # Toolchain descriptions
4907 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4908 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4909 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4910 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4911 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4912 
4913 # Minimum supported versions, empty means unspecified
4914 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4915 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4916 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4917 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12"
4918 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4919 
4920 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4921 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4922 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4923 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4924 
4925 
4926 # Check if the configured compiler (C and C++) is of a specific version or
4927 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4928 #
4929 # Arguments:
4930 #   VERSION:   The version string to check against the found version
4931 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4932 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4933 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
4934 
4935 
4936 
4937 
4938 # Setup a number of variables describing how native output files are
4939 # named on this platform/toolchain.
4940 
4941 
4942 # Determine which toolchain type to use, and make sure it is valid for this
4943 # platform. Setup various information about the selected toolchain.
4944 
4945 
4946 # Before we start detecting the toolchain executables, we might need some
4947 # special setup, e.g. additional paths etc.
4948 
4949 
4950 # Restore path, etc
4951 
4952 
4953 # Check if a compiler is of the toolchain type we expect, and save the version
4954 # information from it. If the compiler does not match the expected type,
4955 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4956 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4957 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4958 #
4959 # $1 = compiler to test (CC or CXX)
4960 # $2 = human readable name of compiler (C or C++)
4961 
4962 
4963 # Try to locate the given C or C++ compiler in the path, or otherwise.
4964 #
4965 # $1 = compiler to test (CC or CXX)
4966 # $2 = human readable name of compiler (C or C++)
4967 # $3 = list of compiler names to search for
4968 
4969 
4970 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4971 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4972 # archiver (AR). Verify that the compilers are correct according to the
4973 # toolchain type.
4974 
4975 
4976 # Setup additional tools that is considered a part of the toolchain, but not the
4977 # core part. Many of these are highly platform-specific and do not exist,
4978 # and/or are not needed on all platforms.
4979 
4980 
4981 # Setup the build tools (i.e, the compiler and linker used to build programs
4982 # that should be run on the build platform, not the target platform, as a build
4983 # helper). Since the non-cross-compile case uses the normal, target compilers
4984 # for this, we can only do this after these have been setup.
4985 
4986 
4987 # Setup legacy variables that are still needed as alternative ways to refer to
4988 # parts of the toolchain.
4989 
4990 
4991 # Do some additional checks on the detected tools.
4992 
4993 
4994 # Setup the JTReg Regression Test Harness.
4995 
4996 
4997 #
4998 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4999 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5000 #
5001 # This code is free software; you can redistribute it and/or modify it
5002 # under the terms of the GNU General Public License version 2 only, as
5003 # published by the Free Software Foundation.  Oracle designates this
5004 # particular file as subject to the "Classpath" exception as provided
5005 # by Oracle in the LICENSE file that accompanied this code.
5006 #
5007 # This code is distributed in the hope that it will be useful, but WITHOUT
5008 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5009 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5010 # version 2 for more details (a copy is included in the LICENSE file that
5011 # accompanied this code).
5012 #
5013 # You should have received a copy of the GNU General Public License version
5014 # 2 along with this work; if not, write to the Free Software Foundation,
5015 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5016 #
5017 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5018 # or visit www.oracle.com if you need additional information or have any
5019 # questions.
5020 #
5021 
5022 ################################################################################
5023 # The order of these defines the priority by which we try to find them.
5024 VALID_VS_VERSIONS="2013 2012 2010"
5025 
5026 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5027 VS_VERSION_INTERNAL_2010=100
5028 VS_MSVCR_2010=msvcr100.dll
5029 # We don't use msvcp on Visual Studio 2010
5030 #VS_MSVCP_2010=msvcp100.dll
5031 VS_ENVVAR_2010="VS100COMNTOOLS"
5032 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5033 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5034 VS_VS_PLATFORM_NAME_2010="v100"
5035 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5036 
5037 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5038 VS_VERSION_INTERNAL_2012=110
5039 VS_MSVCR_2012=msvcr110.dll
5040 VS_MSVCP_2012=msvcp110.dll
5041 VS_ENVVAR_2012="VS110COMNTOOLS"
5042 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5043 VS_SDK_INSTALLDIR_2012=
5044 VS_VS_PLATFORM_NAME_2012="v110"
5045 VS_SDK_PLATFORM_NAME_2012=
5046 
5047 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5048 VS_VERSION_INTERNAL_2013=120
5049 VS_MSVCR_2013=msvcr120.dll
5050 VS_MSVCP_2013=msvcp120.dll
5051 VS_ENVVAR_2013="VS120COMNTOOLS"
5052 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5053 VS_SDK_INSTALLDIR_2013=
5054 VS_VS_PLATFORM_NAME_2013="v120"
5055 VS_SDK_PLATFORM_NAME_2013=
5056 
5057 ################################################################################
5058 
5059 
5060 
5061 ################################################################################
5062 
5063 
5064 
5065 ################################################################################
5066 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5067 # build environment and assigns it to VS_ENV_CMD
5068 
5069 
5070 ################################################################################
5071 
5072 
5073 
5074 ################################################################################
5075 # Check if the VS env variables were setup prior to running configure.
5076 # If not, then find vcvarsall.bat and run it automatically, and integrate
5077 # the set env variables into the spec file.
5078 
5079 
5080 
5081 
5082 
5083 
5084 
5085 
5086 
5087 
5088 
5089 
5090 
5091 
5092 # This line needs to be here, verbatim, after all includes and the dummy hook
5093 # definitions. It is replaced with custom functionality when building
5094 # custom sources.
5095 #CUSTOM_AUTOCONF_INCLUDE
5096 
5097 # Do not change or remove the following line, it is needed for consistency checks:
5098 DATE_WHEN_GENERATED=1467223237
5099 
5100 ###############################################################################
5101 #
5102 # Initialization / Boot-strapping
5103 #
5104 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5105 # thus it jumps back and forth, each time gaining something needed later on.
5106 #
5107 ###############################################################################
5108 
5109 # If we are requested to print additional help, do that and then exit.
5110 # This must be the very first call.
5111 
5112   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5113 
5114     # Print available toolchains
5115     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5116     $PRINTF "Which are valid to use depends on the build platform.\n"
5117     for toolchain in $VALID_TOOLCHAINS_all; do
5118       # Use indirect variable referencing
5119       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5120       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5121       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5122     done
5123     $PRINTF "\n"
5124 
5125     # Print available jvm features
5126     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5127     $PRINTF "Which are valid to use depends on the target platform.\n  "
5128     $PRINTF "%s " $VALID_JVM_FEATURES
5129     $PRINTF "\n"
5130 
5131     # And now exit directly
5132     exit 0
5133   fi
5134 
5135 
5136 # Basic initialization that must happen first of all in the normal process.
5137 
5138   # Save the original command line. This is passed to us by the wrapper configure script.
5139 
5140   # Save the path variable before it gets changed
5141   ORIGINAL_PATH="$PATH"
5142 
5143   DATE_WHEN_CONFIGURED=`LANG=C date`
5144 
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5146 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5148 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5149 
5150 
5151   # Start with tools that do not need have cross compilation support
5152   # and can be expected to be found in the default PATH. These tools are
5153   # used by configure.
5154 
5155   # First are all the simple required tools.
5156 
5157 
5158 
5159   # Publish this variable in the help.
5160 
5161 
5162   if [ -z "${BASENAME+x}" ]; then
5163     # The variable is not set by user, try to locate tool using the code snippet
5164     for ac_prog in basename
5165 do
5166   # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy $ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_path_BASENAME+:} false; then :
5171   $as_echo_n "(cached) " >&6
5172 else
5173   case $BASENAME in
5174   [\\/]* | ?:[\\/]*)
5175   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5176   ;;
5177   *)
5178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183     for ac_exec_ext in '' $ac_executable_extensions; do
5184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187     break 2
5188   fi
5189 done
5190   done
5191 IFS=$as_save_IFS
5192 
5193   ;;
5194 esac
5195 fi
5196 BASENAME=$ac_cv_path_BASENAME
5197 if test -n "$BASENAME"; then
5198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5199 $as_echo "$BASENAME" >&6; }
5200 else
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204 
5205 
5206   test -n "$BASENAME" && break
5207 done
5208 
5209   else
5210     # The variable is set, but is it from the command line or the environment?
5211 
5212     # Try to remove the string !BASENAME! from our list.
5213     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5214     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5215       # If it failed, the variable was not from the command line. Ignore it,
5216       # but warn the user (except for BASH, which is always set by the calling BASH).
5217       if test "xBASENAME" != xBASH; then
5218         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5219 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5220       fi
5221       # Try to locate tool using the code snippet
5222       for ac_prog in basename
5223 do
5224   # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_path_BASENAME+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   case $BASENAME in
5232   [\\/]* | ?:[\\/]*)
5233   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5234   ;;
5235   *)
5236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250 
5251   ;;
5252 esac
5253 fi
5254 BASENAME=$ac_cv_path_BASENAME
5255 if test -n "$BASENAME"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5257 $as_echo "$BASENAME" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5261 fi
5262 
5263 
5264   test -n "$BASENAME" && break
5265 done
5266 
5267     else
5268       # If it succeeded, then it was overridden by the user. We will use it
5269       # for the tool.
5270 
5271       # First remove it from the list of overridden variables, so we can test
5272       # for unknown variables in the end.
5273       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5274 
5275       # Check if we try to supply an empty value
5276       if test "x$BASENAME" = x; then
5277         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5278 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5280 $as_echo_n "checking for BASENAME... " >&6; }
5281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5282 $as_echo "disabled" >&6; }
5283       else
5284         # Check if the provided tool contains a complete path.
5285         tool_specified="$BASENAME"
5286         tool_basename="${tool_specified##*/}"
5287         if test "x$tool_basename" = "x$tool_specified"; then
5288           # A command without a complete path is provided, search $PATH.
5289           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5290 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5291           # Extract the first word of "$tool_basename", so it can be a program name with args.
5292 set dummy $tool_basename; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_path_BASENAME+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   case $BASENAME in
5299   [\\/]* | ?:[\\/]*)
5300   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5301   ;;
5302   *)
5303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308     for ac_exec_ext in '' $ac_executable_extensions; do
5309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315   done
5316 IFS=$as_save_IFS
5317 
5318   ;;
5319 esac
5320 fi
5321 BASENAME=$ac_cv_path_BASENAME
5322 if test -n "$BASENAME"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5324 $as_echo "$BASENAME" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329 
5330 
5331           if test "x$BASENAME" = x; then
5332             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5333           fi
5334         else
5335           # Otherwise we believe it is a complete path. Use it as it is.
5336           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5337 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5338           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5339 $as_echo_n "checking for BASENAME... " >&6; }
5340           if test ! -x "$tool_specified"; then
5341             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5342 $as_echo "not found" >&6; }
5343             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5344           fi
5345           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5346 $as_echo "$tool_specified" >&6; }
5347         fi
5348       fi
5349     fi
5350 
5351   fi
5352 
5353 
5354 
5355   if test "x$BASENAME" = x; then
5356     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5357   fi
5358 
5359 
5360 
5361 
5362 
5363   # Publish this variable in the help.
5364 
5365 
5366   if [ -z "${BASH+x}" ]; then
5367     # The variable is not set by user, try to locate tool using the code snippet
5368     for ac_prog in bash
5369 do
5370   # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if ${ac_cv_path_BASH+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   case $BASH in
5378   [\\/]* | ?:[\\/]*)
5379   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5380   ;;
5381   *)
5382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387     for ac_exec_ext in '' $ac_executable_extensions; do
5388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391     break 2
5392   fi
5393 done
5394   done
5395 IFS=$as_save_IFS
5396 
5397   ;;
5398 esac
5399 fi
5400 BASH=$ac_cv_path_BASH
5401 if test -n "$BASH"; then
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5403 $as_echo "$BASH" >&6; }
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408 
5409 
5410   test -n "$BASH" && break
5411 done
5412 
5413   else
5414     # The variable is set, but is it from the command line or the environment?
5415 
5416     # Try to remove the string !BASH! from our list.
5417     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5418     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5419       # If it failed, the variable was not from the command line. Ignore it,
5420       # but warn the user (except for BASH, which is always set by the calling BASH).
5421       if test "xBASH" != xBASH; then
5422         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5423 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5424       fi
5425       # Try to locate tool using the code snippet
5426       for ac_prog in bash
5427 do
5428   # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy $ac_prog; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_path_BASH+:} false; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   case $BASH in
5436   [\\/]* | ?:[\\/]*)
5437   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5438   ;;
5439   *)
5440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443   IFS=$as_save_IFS
5444   test -z "$as_dir" && as_dir=.
5445     for ac_exec_ext in '' $ac_executable_extensions; do
5446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450   fi
5451 done
5452   done
5453 IFS=$as_save_IFS
5454 
5455   ;;
5456 esac
5457 fi
5458 BASH=$ac_cv_path_BASH
5459 if test -n "$BASH"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5461 $as_echo "$BASH" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466 
5467 
5468   test -n "$BASH" && break
5469 done
5470 
5471     else
5472       # If it succeeded, then it was overridden by the user. We will use it
5473       # for the tool.
5474 
5475       # First remove it from the list of overridden variables, so we can test
5476       # for unknown variables in the end.
5477       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5478 
5479       # Check if we try to supply an empty value
5480       if test "x$BASH" = x; then
5481         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5482 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5484 $as_echo_n "checking for BASH... " >&6; }
5485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5486 $as_echo "disabled" >&6; }
5487       else
5488         # Check if the provided tool contains a complete path.
5489         tool_specified="$BASH"
5490         tool_basename="${tool_specified##*/}"
5491         if test "x$tool_basename" = "x$tool_specified"; then
5492           # A command without a complete path is provided, search $PATH.
5493           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5494 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5495           # Extract the first word of "$tool_basename", so it can be a program name with args.
5496 set dummy $tool_basename; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_path_BASH+:} false; then :
5500   $as_echo_n "(cached) " >&6
5501 else
5502   case $BASH in
5503   [\\/]* | ?:[\\/]*)
5504   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5505   ;;
5506   *)
5507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519   done
5520 IFS=$as_save_IFS
5521 
5522   ;;
5523 esac
5524 fi
5525 BASH=$ac_cv_path_BASH
5526 if test -n "$BASH"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5528 $as_echo "$BASH" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533 
5534 
5535           if test "x$BASH" = x; then
5536             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5537           fi
5538         else
5539           # Otherwise we believe it is a complete path. Use it as it is.
5540           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5541 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5542           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5543 $as_echo_n "checking for BASH... " >&6; }
5544           if test ! -x "$tool_specified"; then
5545             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5546 $as_echo "not found" >&6; }
5547             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5548           fi
5549           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5550 $as_echo "$tool_specified" >&6; }
5551         fi
5552       fi
5553     fi
5554 
5555   fi
5556 
5557 
5558 
5559   if test "x$BASH" = x; then
5560     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5561   fi
5562 
5563 
5564 
5565 
5566 
5567   # Publish this variable in the help.
5568 
5569 
5570   if [ -z "${CAT+x}" ]; then
5571     # The variable is not set by user, try to locate tool using the code snippet
5572     for ac_prog in cat
5573 do
5574   # Extract the first word of "$ac_prog", so it can be a program name with args.
5575 set dummy $ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_path_CAT+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   case $CAT in
5582   [\\/]* | ?:[\\/]*)
5583   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5584   ;;
5585   *)
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600 
5601   ;;
5602 esac
5603 fi
5604 CAT=$ac_cv_path_CAT
5605 if test -n "$CAT"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5607 $as_echo "$CAT" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612 
5613 
5614   test -n "$CAT" && break
5615 done
5616 
5617   else
5618     # The variable is set, but is it from the command line or the environment?
5619 
5620     # Try to remove the string !CAT! from our list.
5621     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5622     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5623       # If it failed, the variable was not from the command line. Ignore it,
5624       # but warn the user (except for BASH, which is always set by the calling BASH).
5625       if test "xCAT" != xBASH; then
5626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5627 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5628       fi
5629       # Try to locate tool using the code snippet
5630       for ac_prog in cat
5631 do
5632   # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_path_CAT+:} false; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   case $CAT in
5640   [\\/]* | ?:[\\/]*)
5641   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5642   ;;
5643   *)
5644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     for ac_exec_ext in '' $ac_executable_extensions; do
5650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658 
5659   ;;
5660 esac
5661 fi
5662 CAT=$ac_cv_path_CAT
5663 if test -n "$CAT"; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5665 $as_echo "$CAT" >&6; }
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670 
5671 
5672   test -n "$CAT" && break
5673 done
5674 
5675     else
5676       # If it succeeded, then it was overridden by the user. We will use it
5677       # for the tool.
5678 
5679       # First remove it from the list of overridden variables, so we can test
5680       # for unknown variables in the end.
5681       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5682 
5683       # Check if we try to supply an empty value
5684       if test "x$CAT" = x; then
5685         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5686 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5688 $as_echo_n "checking for CAT... " >&6; }
5689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5690 $as_echo "disabled" >&6; }
5691       else
5692         # Check if the provided tool contains a complete path.
5693         tool_specified="$CAT"
5694         tool_basename="${tool_specified##*/}"
5695         if test "x$tool_basename" = "x$tool_specified"; then
5696           # A command without a complete path is provided, search $PATH.
5697           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5698 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5699           # Extract the first word of "$tool_basename", so it can be a program name with args.
5700 set dummy $tool_basename; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_path_CAT+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   case $CAT in
5707   [\\/]* | ?:[\\/]*)
5708   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5709   ;;
5710   *)
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725 
5726   ;;
5727 esac
5728 fi
5729 CAT=$ac_cv_path_CAT
5730 if test -n "$CAT"; then
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5732 $as_echo "$CAT" >&6; }
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737 
5738 
5739           if test "x$CAT" = x; then
5740             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5741           fi
5742         else
5743           # Otherwise we believe it is a complete path. Use it as it is.
5744           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5745 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5746           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5747 $as_echo_n "checking for CAT... " >&6; }
5748           if test ! -x "$tool_specified"; then
5749             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5750 $as_echo "not found" >&6; }
5751             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5752           fi
5753           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5754 $as_echo "$tool_specified" >&6; }
5755         fi
5756       fi
5757     fi
5758 
5759   fi
5760 
5761 
5762 
5763   if test "x$CAT" = x; then
5764     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5765   fi
5766 
5767 
5768 
5769 
5770 
5771   # Publish this variable in the help.
5772 
5773 
5774   if [ -z "${CHMOD+x}" ]; then
5775     # The variable is not set by user, try to locate tool using the code snippet
5776     for ac_prog in chmod
5777 do
5778   # Extract the first word of "$ac_prog", so it can be a program name with args.
5779 set dummy $ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_path_CHMOD+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $CHMOD in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804 
5805   ;;
5806 esac
5807 fi
5808 CHMOD=$ac_cv_path_CHMOD
5809 if test -n "$CHMOD"; then
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5811 $as_echo "$CHMOD" >&6; }
5812 else
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816 
5817 
5818   test -n "$CHMOD" && break
5819 done
5820 
5821   else
5822     # The variable is set, but is it from the command line or the environment?
5823 
5824     # Try to remove the string !CHMOD! from our list.
5825     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5826     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5827       # If it failed, the variable was not from the command line. Ignore it,
5828       # but warn the user (except for BASH, which is always set by the calling BASH).
5829       if test "xCHMOD" != xBASH; then
5830         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5831 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5832       fi
5833       # Try to locate tool using the code snippet
5834       for ac_prog in chmod
5835 do
5836   # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_path_CHMOD+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   case $CHMOD in
5844   [\\/]* | ?:[\\/]*)
5845   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5846   ;;
5847   *)
5848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860   done
5861 IFS=$as_save_IFS
5862 
5863   ;;
5864 esac
5865 fi
5866 CHMOD=$ac_cv_path_CHMOD
5867 if test -n "$CHMOD"; then
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5869 $as_echo "$CHMOD" >&6; }
5870 else
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874 
5875 
5876   test -n "$CHMOD" && break
5877 done
5878 
5879     else
5880       # If it succeeded, then it was overridden by the user. We will use it
5881       # for the tool.
5882 
5883       # First remove it from the list of overridden variables, so we can test
5884       # for unknown variables in the end.
5885       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5886 
5887       # Check if we try to supply an empty value
5888       if test "x$CHMOD" = x; then
5889         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5890 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5891         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5892 $as_echo_n "checking for CHMOD... " >&6; }
5893         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5894 $as_echo "disabled" >&6; }
5895       else
5896         # Check if the provided tool contains a complete path.
5897         tool_specified="$CHMOD"
5898         tool_basename="${tool_specified##*/}"
5899         if test "x$tool_basename" = "x$tool_specified"; then
5900           # A command without a complete path is provided, search $PATH.
5901           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5902 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5903           # Extract the first word of "$tool_basename", so it can be a program name with args.
5904 set dummy $tool_basename; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_path_CHMOD+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   case $CHMOD in
5911   [\\/]* | ?:[\\/]*)
5912   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5913   ;;
5914   *)
5915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929 
5930   ;;
5931 esac
5932 fi
5933 CHMOD=$ac_cv_path_CHMOD
5934 if test -n "$CHMOD"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5936 $as_echo "$CHMOD" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941 
5942 
5943           if test "x$CHMOD" = x; then
5944             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5945           fi
5946         else
5947           # Otherwise we believe it is a complete path. Use it as it is.
5948           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5949 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5950           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5951 $as_echo_n "checking for CHMOD... " >&6; }
5952           if test ! -x "$tool_specified"; then
5953             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5954 $as_echo "not found" >&6; }
5955             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5956           fi
5957           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5958 $as_echo "$tool_specified" >&6; }
5959         fi
5960       fi
5961     fi
5962 
5963   fi
5964 
5965 
5966 
5967   if test "x$CHMOD" = x; then
5968     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5969   fi
5970 
5971 
5972 
5973 
5974 
5975   # Publish this variable in the help.
5976 
5977 
5978   if [ -z "${CMP+x}" ]; then
5979     # The variable is not set by user, try to locate tool using the code snippet
5980     for ac_prog in cmp
5981 do
5982   # Extract the first word of "$ac_prog", so it can be a program name with args.
5983 set dummy $ac_prog; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_path_CMP+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   case $CMP in
5990   [\\/]* | ?:[\\/]*)
5991   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5992   ;;
5993   *)
5994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008 
6009   ;;
6010 esac
6011 fi
6012 CMP=$ac_cv_path_CMP
6013 if test -n "$CMP"; then
6014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6015 $as_echo "$CMP" >&6; }
6016 else
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020 
6021 
6022   test -n "$CMP" && break
6023 done
6024 
6025   else
6026     # The variable is set, but is it from the command line or the environment?
6027 
6028     # Try to remove the string !CMP! from our list.
6029     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6030     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6031       # If it failed, the variable was not from the command line. Ignore it,
6032       # but warn the user (except for BASH, which is always set by the calling BASH).
6033       if test "xCMP" != xBASH; then
6034         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6035 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6036       fi
6037       # Try to locate tool using the code snippet
6038       for ac_prog in cmp
6039 do
6040   # Extract the first word of "$ac_prog", so it can be a program name with args.
6041 set dummy $ac_prog; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_path_CMP+:} false; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   case $CMP in
6048   [\\/]* | ?:[\\/]*)
6049   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6050   ;;
6051   *)
6052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055   IFS=$as_save_IFS
6056   test -z "$as_dir" && as_dir=.
6057     for ac_exec_ext in '' $ac_executable_extensions; do
6058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061     break 2
6062   fi
6063 done
6064   done
6065 IFS=$as_save_IFS
6066 
6067   ;;
6068 esac
6069 fi
6070 CMP=$ac_cv_path_CMP
6071 if test -n "$CMP"; then
6072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6073 $as_echo "$CMP" >&6; }
6074 else
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078 
6079 
6080   test -n "$CMP" && break
6081 done
6082 
6083     else
6084       # If it succeeded, then it was overridden by the user. We will use it
6085       # for the tool.
6086 
6087       # First remove it from the list of overridden variables, so we can test
6088       # for unknown variables in the end.
6089       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6090 
6091       # Check if we try to supply an empty value
6092       if test "x$CMP" = x; then
6093         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6094 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6096 $as_echo_n "checking for CMP... " >&6; }
6097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6098 $as_echo "disabled" >&6; }
6099       else
6100         # Check if the provided tool contains a complete path.
6101         tool_specified="$CMP"
6102         tool_basename="${tool_specified##*/}"
6103         if test "x$tool_basename" = "x$tool_specified"; then
6104           # A command without a complete path is provided, search $PATH.
6105           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6106 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6107           # Extract the first word of "$tool_basename", so it can be a program name with args.
6108 set dummy $tool_basename; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_path_CMP+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   case $CMP in
6115   [\\/]* | ?:[\\/]*)
6116   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6117   ;;
6118   *)
6119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133 
6134   ;;
6135 esac
6136 fi
6137 CMP=$ac_cv_path_CMP
6138 if test -n "$CMP"; then
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6140 $as_echo "$CMP" >&6; }
6141 else
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145 
6146 
6147           if test "x$CMP" = x; then
6148             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6149           fi
6150         else
6151           # Otherwise we believe it is a complete path. Use it as it is.
6152           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6153 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6154           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6155 $as_echo_n "checking for CMP... " >&6; }
6156           if test ! -x "$tool_specified"; then
6157             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6158 $as_echo "not found" >&6; }
6159             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6160           fi
6161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6162 $as_echo "$tool_specified" >&6; }
6163         fi
6164       fi
6165     fi
6166 
6167   fi
6168 
6169 
6170 
6171   if test "x$CMP" = x; then
6172     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6173   fi
6174 
6175 
6176 
6177 
6178 
6179   # Publish this variable in the help.
6180 
6181 
6182   if [ -z "${COMM+x}" ]; then
6183     # The variable is not set by user, try to locate tool using the code snippet
6184     for ac_prog in comm
6185 do
6186   # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_path_COMM+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   case $COMM in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203     for ac_exec_ext in '' $ac_executable_extensions; do
6204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210   done
6211 IFS=$as_save_IFS
6212 
6213   ;;
6214 esac
6215 fi
6216 COMM=$ac_cv_path_COMM
6217 if test -n "$COMM"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6219 $as_echo "$COMM" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224 
6225 
6226   test -n "$COMM" && break
6227 done
6228 
6229   else
6230     # The variable is set, but is it from the command line or the environment?
6231 
6232     # Try to remove the string !COMM! from our list.
6233     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6234     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6235       # If it failed, the variable was not from the command line. Ignore it,
6236       # but warn the user (except for BASH, which is always set by the calling BASH).
6237       if test "xCOMM" != xBASH; then
6238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6239 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6240       fi
6241       # Try to locate tool using the code snippet
6242       for ac_prog in comm
6243 do
6244   # Extract the first word of "$ac_prog", so it can be a program name with args.
6245 set dummy $ac_prog; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_path_COMM+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   case $COMM in
6252   [\\/]* | ?:[\\/]*)
6253   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6254   ;;
6255   *)
6256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270 
6271   ;;
6272 esac
6273 fi
6274 COMM=$ac_cv_path_COMM
6275 if test -n "$COMM"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6277 $as_echo "$COMM" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282 
6283 
6284   test -n "$COMM" && break
6285 done
6286 
6287     else
6288       # If it succeeded, then it was overridden by the user. We will use it
6289       # for the tool.
6290 
6291       # First remove it from the list of overridden variables, so we can test
6292       # for unknown variables in the end.
6293       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6294 
6295       # Check if we try to supply an empty value
6296       if test "x$COMM" = x; then
6297         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6298 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6300 $as_echo_n "checking for COMM... " >&6; }
6301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6302 $as_echo "disabled" >&6; }
6303       else
6304         # Check if the provided tool contains a complete path.
6305         tool_specified="$COMM"
6306         tool_basename="${tool_specified##*/}"
6307         if test "x$tool_basename" = "x$tool_specified"; then
6308           # A command without a complete path is provided, search $PATH.
6309           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6310 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6311           # Extract the first word of "$tool_basename", so it can be a program name with args.
6312 set dummy $tool_basename; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_path_COMM+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   case $COMM in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328     for ac_exec_ext in '' $ac_executable_extensions; do
6329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335   done
6336 IFS=$as_save_IFS
6337 
6338   ;;
6339 esac
6340 fi
6341 COMM=$ac_cv_path_COMM
6342 if test -n "$COMM"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6344 $as_echo "$COMM" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349 
6350 
6351           if test "x$COMM" = x; then
6352             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6353           fi
6354         else
6355           # Otherwise we believe it is a complete path. Use it as it is.
6356           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6357 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6359 $as_echo_n "checking for COMM... " >&6; }
6360           if test ! -x "$tool_specified"; then
6361             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6362 $as_echo "not found" >&6; }
6363             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6364           fi
6365           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6366 $as_echo "$tool_specified" >&6; }
6367         fi
6368       fi
6369     fi
6370 
6371   fi
6372 
6373 
6374 
6375   if test "x$COMM" = x; then
6376     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6377   fi
6378 
6379 
6380 
6381 
6382 
6383   # Publish this variable in the help.
6384 
6385 
6386   if [ -z "${CP+x}" ]; then
6387     # The variable is not set by user, try to locate tool using the code snippet
6388     for ac_prog in cp
6389 do
6390   # Extract the first word of "$ac_prog", so it can be a program name with args.
6391 set dummy $ac_prog; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_path_CP+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   case $CP in
6398   [\\/]* | ?:[\\/]*)
6399   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6400   ;;
6401   *)
6402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407     for ac_exec_ext in '' $ac_executable_extensions; do
6408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414   done
6415 IFS=$as_save_IFS
6416 
6417   ;;
6418 esac
6419 fi
6420 CP=$ac_cv_path_CP
6421 if test -n "$CP"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6423 $as_echo "$CP" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428 
6429 
6430   test -n "$CP" && break
6431 done
6432 
6433   else
6434     # The variable is set, but is it from the command line or the environment?
6435 
6436     # Try to remove the string !CP! from our list.
6437     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6438     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6439       # If it failed, the variable was not from the command line. Ignore it,
6440       # but warn the user (except for BASH, which is always set by the calling BASH).
6441       if test "xCP" != xBASH; then
6442         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6443 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6444       fi
6445       # Try to locate tool using the code snippet
6446       for ac_prog in cp
6447 do
6448   # Extract the first word of "$ac_prog", so it can be a program name with args.
6449 set dummy $ac_prog; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_path_CP+:} false; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   case $CP in
6456   [\\/]* | ?:[\\/]*)
6457   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6458   ;;
6459   *)
6460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463   IFS=$as_save_IFS
6464   test -z "$as_dir" && as_dir=.
6465     for ac_exec_ext in '' $ac_executable_extensions; do
6466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469     break 2
6470   fi
6471 done
6472   done
6473 IFS=$as_save_IFS
6474 
6475   ;;
6476 esac
6477 fi
6478 CP=$ac_cv_path_CP
6479 if test -n "$CP"; then
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6481 $as_echo "$CP" >&6; }
6482 else
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486 
6487 
6488   test -n "$CP" && break
6489 done
6490 
6491     else
6492       # If it succeeded, then it was overridden by the user. We will use it
6493       # for the tool.
6494 
6495       # First remove it from the list of overridden variables, so we can test
6496       # for unknown variables in the end.
6497       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6498 
6499       # Check if we try to supply an empty value
6500       if test "x$CP" = x; then
6501         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6502 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6504 $as_echo_n "checking for CP... " >&6; }
6505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6506 $as_echo "disabled" >&6; }
6507       else
6508         # Check if the provided tool contains a complete path.
6509         tool_specified="$CP"
6510         tool_basename="${tool_specified##*/}"
6511         if test "x$tool_basename" = "x$tool_specified"; then
6512           # A command without a complete path is provided, search $PATH.
6513           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6514 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6515           # Extract the first word of "$tool_basename", so it can be a program name with args.
6516 set dummy $tool_basename; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_path_CP+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   case $CP in
6523   [\\/]* | ?:[\\/]*)
6524   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6525   ;;
6526   *)
6527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541 
6542   ;;
6543 esac
6544 fi
6545 CP=$ac_cv_path_CP
6546 if test -n "$CP"; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6548 $as_echo "$CP" >&6; }
6549 else
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553 
6554 
6555           if test "x$CP" = x; then
6556             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6557           fi
6558         else
6559           # Otherwise we believe it is a complete path. Use it as it is.
6560           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6561 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6562           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6563 $as_echo_n "checking for CP... " >&6; }
6564           if test ! -x "$tool_specified"; then
6565             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6566 $as_echo "not found" >&6; }
6567             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6568           fi
6569           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6570 $as_echo "$tool_specified" >&6; }
6571         fi
6572       fi
6573     fi
6574 
6575   fi
6576 
6577 
6578 
6579   if test "x$CP" = x; then
6580     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6581   fi
6582 
6583 
6584 
6585 
6586 
6587   # Publish this variable in the help.
6588 
6589 
6590   if [ -z "${CUT+x}" ]; then
6591     # The variable is not set by user, try to locate tool using the code snippet
6592     for ac_prog in cut
6593 do
6594   # Extract the first word of "$ac_prog", so it can be a program name with args.
6595 set dummy $ac_prog; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_path_CUT+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   case $CUT in
6602   [\\/]* | ?:[\\/]*)
6603   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6604   ;;
6605   *)
6606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611     for ac_exec_ext in '' $ac_executable_extensions; do
6612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618   done
6619 IFS=$as_save_IFS
6620 
6621   ;;
6622 esac
6623 fi
6624 CUT=$ac_cv_path_CUT
6625 if test -n "$CUT"; then
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6627 $as_echo "$CUT" >&6; }
6628 else
6629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632 
6633 
6634   test -n "$CUT" && break
6635 done
6636 
6637   else
6638     # The variable is set, but is it from the command line or the environment?
6639 
6640     # Try to remove the string !CUT! from our list.
6641     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6642     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6643       # If it failed, the variable was not from the command line. Ignore it,
6644       # but warn the user (except for BASH, which is always set by the calling BASH).
6645       if test "xCUT" != xBASH; then
6646         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6647 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6648       fi
6649       # Try to locate tool using the code snippet
6650       for ac_prog in cut
6651 do
6652   # Extract the first word of "$ac_prog", so it can be a program name with args.
6653 set dummy $ac_prog; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_path_CUT+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   case $CUT in
6660   [\\/]* | ?:[\\/]*)
6661   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6662   ;;
6663   *)
6664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678 
6679   ;;
6680 esac
6681 fi
6682 CUT=$ac_cv_path_CUT
6683 if test -n "$CUT"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6685 $as_echo "$CUT" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690 
6691 
6692   test -n "$CUT" && break
6693 done
6694 
6695     else
6696       # If it succeeded, then it was overridden by the user. We will use it
6697       # for the tool.
6698 
6699       # First remove it from the list of overridden variables, so we can test
6700       # for unknown variables in the end.
6701       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6702 
6703       # Check if we try to supply an empty value
6704       if test "x$CUT" = x; then
6705         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6706 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6708 $as_echo_n "checking for CUT... " >&6; }
6709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6710 $as_echo "disabled" >&6; }
6711       else
6712         # Check if the provided tool contains a complete path.
6713         tool_specified="$CUT"
6714         tool_basename="${tool_specified##*/}"
6715         if test "x$tool_basename" = "x$tool_specified"; then
6716           # A command without a complete path is provided, search $PATH.
6717           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6718 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6719           # Extract the first word of "$tool_basename", so it can be a program name with args.
6720 set dummy $tool_basename; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_path_CUT+:} false; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   case $CUT in
6727   [\\/]* | ?:[\\/]*)
6728   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6729   ;;
6730   *)
6731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736     for ac_exec_ext in '' $ac_executable_extensions; do
6737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743   done
6744 IFS=$as_save_IFS
6745 
6746   ;;
6747 esac
6748 fi
6749 CUT=$ac_cv_path_CUT
6750 if test -n "$CUT"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6752 $as_echo "$CUT" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757 
6758 
6759           if test "x$CUT" = x; then
6760             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6761           fi
6762         else
6763           # Otherwise we believe it is a complete path. Use it as it is.
6764           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6765 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6766           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6767 $as_echo_n "checking for CUT... " >&6; }
6768           if test ! -x "$tool_specified"; then
6769             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6770 $as_echo "not found" >&6; }
6771             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6772           fi
6773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6774 $as_echo "$tool_specified" >&6; }
6775         fi
6776       fi
6777     fi
6778 
6779   fi
6780 
6781 
6782 
6783   if test "x$CUT" = x; then
6784     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6785   fi
6786 
6787 
6788 
6789 
6790 
6791   # Publish this variable in the help.
6792 
6793 
6794   if [ -z "${DATE+x}" ]; then
6795     # The variable is not set by user, try to locate tool using the code snippet
6796     for ac_prog in date
6797 do
6798   # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_path_DATE+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   case $DATE in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824 
6825   ;;
6826 esac
6827 fi
6828 DATE=$ac_cv_path_DATE
6829 if test -n "$DATE"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6831 $as_echo "$DATE" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836 
6837 
6838   test -n "$DATE" && break
6839 done
6840 
6841   else
6842     # The variable is set, but is it from the command line or the environment?
6843 
6844     # Try to remove the string !DATE! from our list.
6845     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6846     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6847       # If it failed, the variable was not from the command line. Ignore it,
6848       # but warn the user (except for BASH, which is always set by the calling BASH).
6849       if test "xDATE" != xBASH; then
6850         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6851 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6852       fi
6853       # Try to locate tool using the code snippet
6854       for ac_prog in date
6855 do
6856   # Extract the first word of "$ac_prog", so it can be a program name with args.
6857 set dummy $ac_prog; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_path_DATE+:} false; then :
6861   $as_echo_n "(cached) " >&6
6862 else
6863   case $DATE in
6864   [\\/]* | ?:[\\/]*)
6865   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6866   ;;
6867   *)
6868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871   IFS=$as_save_IFS
6872   test -z "$as_dir" && as_dir=.
6873     for ac_exec_ext in '' $ac_executable_extensions; do
6874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877     break 2
6878   fi
6879 done
6880   done
6881 IFS=$as_save_IFS
6882 
6883   ;;
6884 esac
6885 fi
6886 DATE=$ac_cv_path_DATE
6887 if test -n "$DATE"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6889 $as_echo "$DATE" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894 
6895 
6896   test -n "$DATE" && break
6897 done
6898 
6899     else
6900       # If it succeeded, then it was overridden by the user. We will use it
6901       # for the tool.
6902 
6903       # First remove it from the list of overridden variables, so we can test
6904       # for unknown variables in the end.
6905       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6906 
6907       # Check if we try to supply an empty value
6908       if test "x$DATE" = x; then
6909         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6910 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6912 $as_echo_n "checking for DATE... " >&6; }
6913         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6914 $as_echo "disabled" >&6; }
6915       else
6916         # Check if the provided tool contains a complete path.
6917         tool_specified="$DATE"
6918         tool_basename="${tool_specified##*/}"
6919         if test "x$tool_basename" = "x$tool_specified"; then
6920           # A command without a complete path is provided, search $PATH.
6921           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6922 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6923           # Extract the first word of "$tool_basename", so it can be a program name with args.
6924 set dummy $tool_basename; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_path_DATE+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   case $DATE in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949 
6950   ;;
6951 esac
6952 fi
6953 DATE=$ac_cv_path_DATE
6954 if test -n "$DATE"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6956 $as_echo "$DATE" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961 
6962 
6963           if test "x$DATE" = x; then
6964             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6965           fi
6966         else
6967           # Otherwise we believe it is a complete path. Use it as it is.
6968           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6969 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6970           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6971 $as_echo_n "checking for DATE... " >&6; }
6972           if test ! -x "$tool_specified"; then
6973             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6974 $as_echo "not found" >&6; }
6975             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6976           fi
6977           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6978 $as_echo "$tool_specified" >&6; }
6979         fi
6980       fi
6981     fi
6982 
6983   fi
6984 
6985 
6986 
6987   if test "x$DATE" = x; then
6988     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6989   fi
6990 
6991 
6992 
6993 
6994 
6995   # Publish this variable in the help.
6996 
6997 
6998   if [ -z "${DIFF+x}" ]; then
6999     # The variable is not set by user, try to locate tool using the code snippet
7000     for ac_prog in gdiff diff
7001 do
7002   # Extract the first word of "$ac_prog", so it can be a program name with args.
7003 set dummy $ac_prog; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_path_DIFF+:} false; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   case $DIFF in
7010   [\\/]* | ?:[\\/]*)
7011   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7012   ;;
7013   *)
7014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028 
7029   ;;
7030 esac
7031 fi
7032 DIFF=$ac_cv_path_DIFF
7033 if test -n "$DIFF"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7035 $as_echo "$DIFF" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040 
7041 
7042   test -n "$DIFF" && break
7043 done
7044 
7045   else
7046     # The variable is set, but is it from the command line or the environment?
7047 
7048     # Try to remove the string !DIFF! from our list.
7049     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7050     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7051       # If it failed, the variable was not from the command line. Ignore it,
7052       # but warn the user (except for BASH, which is always set by the calling BASH).
7053       if test "xDIFF" != xBASH; then
7054         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7055 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7056       fi
7057       # Try to locate tool using the code snippet
7058       for ac_prog in gdiff diff
7059 do
7060   # Extract the first word of "$ac_prog", so it can be a program name with args.
7061 set dummy $ac_prog; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_path_DIFF+:} false; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067   case $DIFF in
7068   [\\/]* | ?:[\\/]*)
7069   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7070   ;;
7071   *)
7072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077     for ac_exec_ext in '' $ac_executable_extensions; do
7078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084   done
7085 IFS=$as_save_IFS
7086 
7087   ;;
7088 esac
7089 fi
7090 DIFF=$ac_cv_path_DIFF
7091 if test -n "$DIFF"; then
7092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7093 $as_echo "$DIFF" >&6; }
7094 else
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098 
7099 
7100   test -n "$DIFF" && break
7101 done
7102 
7103     else
7104       # If it succeeded, then it was overridden by the user. We will use it
7105       # for the tool.
7106 
7107       # First remove it from the list of overridden variables, so we can test
7108       # for unknown variables in the end.
7109       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7110 
7111       # Check if we try to supply an empty value
7112       if test "x$DIFF" = x; then
7113         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7114 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7116 $as_echo_n "checking for DIFF... " >&6; }
7117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7118 $as_echo "disabled" >&6; }
7119       else
7120         # Check if the provided tool contains a complete path.
7121         tool_specified="$DIFF"
7122         tool_basename="${tool_specified##*/}"
7123         if test "x$tool_basename" = "x$tool_specified"; then
7124           # A command without a complete path is provided, search $PATH.
7125           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7126 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7127           # Extract the first word of "$tool_basename", so it can be a program name with args.
7128 set dummy $tool_basename; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_path_DIFF+:} false; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   case $DIFF in
7135   [\\/]* | ?:[\\/]*)
7136   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7137   ;;
7138   *)
7139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144     for ac_exec_ext in '' $ac_executable_extensions; do
7145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151   done
7152 IFS=$as_save_IFS
7153 
7154   ;;
7155 esac
7156 fi
7157 DIFF=$ac_cv_path_DIFF
7158 if test -n "$DIFF"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7160 $as_echo "$DIFF" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165 
7166 
7167           if test "x$DIFF" = x; then
7168             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7169           fi
7170         else
7171           # Otherwise we believe it is a complete path. Use it as it is.
7172           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7173 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7174           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7175 $as_echo_n "checking for DIFF... " >&6; }
7176           if test ! -x "$tool_specified"; then
7177             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7178 $as_echo "not found" >&6; }
7179             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7180           fi
7181           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7182 $as_echo "$tool_specified" >&6; }
7183         fi
7184       fi
7185     fi
7186 
7187   fi
7188 
7189 
7190 
7191   if test "x$DIFF" = x; then
7192     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7193   fi
7194 
7195 
7196 
7197 
7198 
7199   # Publish this variable in the help.
7200 
7201 
7202   if [ -z "${DIRNAME+x}" ]; then
7203     # The variable is not set by user, try to locate tool using the code snippet
7204     for ac_prog in dirname
7205 do
7206   # Extract the first word of "$ac_prog", so it can be a program name with args.
7207 set dummy $ac_prog; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_path_DIRNAME+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   case $DIRNAME in
7214   [\\/]* | ?:[\\/]*)
7215   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7216   ;;
7217   *)
7218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221   IFS=$as_save_IFS
7222   test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228   fi
7229 done
7230   done
7231 IFS=$as_save_IFS
7232 
7233   ;;
7234 esac
7235 fi
7236 DIRNAME=$ac_cv_path_DIRNAME
7237 if test -n "$DIRNAME"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7239 $as_echo "$DIRNAME" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244 
7245 
7246   test -n "$DIRNAME" && break
7247 done
7248 
7249   else
7250     # The variable is set, but is it from the command line or the environment?
7251 
7252     # Try to remove the string !DIRNAME! from our list.
7253     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7254     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7255       # If it failed, the variable was not from the command line. Ignore it,
7256       # but warn the user (except for BASH, which is always set by the calling BASH).
7257       if test "xDIRNAME" != xBASH; then
7258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7259 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7260       fi
7261       # Try to locate tool using the code snippet
7262       for ac_prog in dirname
7263 do
7264   # Extract the first word of "$ac_prog", so it can be a program name with args.
7265 set dummy $ac_prog; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_path_DIRNAME+:} false; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271   case $DIRNAME in
7272   [\\/]* | ?:[\\/]*)
7273   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7274   ;;
7275   *)
7276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281     for ac_exec_ext in '' $ac_executable_extensions; do
7282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288   done
7289 IFS=$as_save_IFS
7290 
7291   ;;
7292 esac
7293 fi
7294 DIRNAME=$ac_cv_path_DIRNAME
7295 if test -n "$DIRNAME"; then
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7297 $as_echo "$DIRNAME" >&6; }
7298 else
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 fi
7302 
7303 
7304   test -n "$DIRNAME" && break
7305 done
7306 
7307     else
7308       # If it succeeded, then it was overridden by the user. We will use it
7309       # for the tool.
7310 
7311       # First remove it from the list of overridden variables, so we can test
7312       # for unknown variables in the end.
7313       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7314 
7315       # Check if we try to supply an empty value
7316       if test "x$DIRNAME" = x; then
7317         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7318 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7320 $as_echo_n "checking for DIRNAME... " >&6; }
7321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7322 $as_echo "disabled" >&6; }
7323       else
7324         # Check if the provided tool contains a complete path.
7325         tool_specified="$DIRNAME"
7326         tool_basename="${tool_specified##*/}"
7327         if test "x$tool_basename" = "x$tool_specified"; then
7328           # A command without a complete path is provided, search $PATH.
7329           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7330 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7331           # Extract the first word of "$tool_basename", so it can be a program name with args.
7332 set dummy $tool_basename; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_path_DIRNAME+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   case $DIRNAME in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7341   ;;
7342   *)
7343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357 
7358   ;;
7359 esac
7360 fi
7361 DIRNAME=$ac_cv_path_DIRNAME
7362 if test -n "$DIRNAME"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7364 $as_echo "$DIRNAME" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369 
7370 
7371           if test "x$DIRNAME" = x; then
7372             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7373           fi
7374         else
7375           # Otherwise we believe it is a complete path. Use it as it is.
7376           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7377 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7378           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7379 $as_echo_n "checking for DIRNAME... " >&6; }
7380           if test ! -x "$tool_specified"; then
7381             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7382 $as_echo "not found" >&6; }
7383             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7384           fi
7385           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7386 $as_echo "$tool_specified" >&6; }
7387         fi
7388       fi
7389     fi
7390 
7391   fi
7392 
7393 
7394 
7395   if test "x$DIRNAME" = x; then
7396     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7397   fi
7398 
7399 
7400 
7401 
7402 
7403   # Publish this variable in the help.
7404 
7405 
7406   if [ -z "${ECHO+x}" ]; then
7407     # The variable is not set by user, try to locate tool using the code snippet
7408     for ac_prog in echo
7409 do
7410   # Extract the first word of "$ac_prog", so it can be a program name with args.
7411 set dummy $ac_prog; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_path_ECHO+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   case $ECHO in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427     for ac_exec_ext in '' $ac_executable_extensions; do
7428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434   done
7435 IFS=$as_save_IFS
7436 
7437   ;;
7438 esac
7439 fi
7440 ECHO=$ac_cv_path_ECHO
7441 if test -n "$ECHO"; then
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7443 $as_echo "$ECHO" >&6; }
7444 else
7445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448 
7449 
7450   test -n "$ECHO" && break
7451 done
7452 
7453   else
7454     # The variable is set, but is it from the command line or the environment?
7455 
7456     # Try to remove the string !ECHO! from our list.
7457     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7458     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7459       # If it failed, the variable was not from the command line. Ignore it,
7460       # but warn the user (except for BASH, which is always set by the calling BASH).
7461       if test "xECHO" != xBASH; then
7462         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7463 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7464       fi
7465       # Try to locate tool using the code snippet
7466       for ac_prog in echo
7467 do
7468   # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy $ac_prog; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_path_ECHO+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   case $ECHO in
7476   [\\/]* | ?:[\\/]*)
7477   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7478   ;;
7479   *)
7480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485     for ac_exec_ext in '' $ac_executable_extensions; do
7486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492   done
7493 IFS=$as_save_IFS
7494 
7495   ;;
7496 esac
7497 fi
7498 ECHO=$ac_cv_path_ECHO
7499 if test -n "$ECHO"; then
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7501 $as_echo "$ECHO" >&6; }
7502 else
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506 
7507 
7508   test -n "$ECHO" && break
7509 done
7510 
7511     else
7512       # If it succeeded, then it was overridden by the user. We will use it
7513       # for the tool.
7514 
7515       # First remove it from the list of overridden variables, so we can test
7516       # for unknown variables in the end.
7517       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7518 
7519       # Check if we try to supply an empty value
7520       if test "x$ECHO" = x; then
7521         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7522 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7524 $as_echo_n "checking for ECHO... " >&6; }
7525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7526 $as_echo "disabled" >&6; }
7527       else
7528         # Check if the provided tool contains a complete path.
7529         tool_specified="$ECHO"
7530         tool_basename="${tool_specified##*/}"
7531         if test "x$tool_basename" = "x$tool_specified"; then
7532           # A command without a complete path is provided, search $PATH.
7533           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7534 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7535           # Extract the first word of "$tool_basename", so it can be a program name with args.
7536 set dummy $tool_basename; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_path_ECHO+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   case $ECHO in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561 
7562   ;;
7563 esac
7564 fi
7565 ECHO=$ac_cv_path_ECHO
7566 if test -n "$ECHO"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7568 $as_echo "$ECHO" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573 
7574 
7575           if test "x$ECHO" = x; then
7576             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7577           fi
7578         else
7579           # Otherwise we believe it is a complete path. Use it as it is.
7580           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7581 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7582           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7583 $as_echo_n "checking for ECHO... " >&6; }
7584           if test ! -x "$tool_specified"; then
7585             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7586 $as_echo "not found" >&6; }
7587             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7588           fi
7589           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7590 $as_echo "$tool_specified" >&6; }
7591         fi
7592       fi
7593     fi
7594 
7595   fi
7596 
7597 
7598 
7599   if test "x$ECHO" = x; then
7600     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7601   fi
7602 
7603 
7604 
7605 
7606 
7607   # Publish this variable in the help.
7608 
7609 
7610   if [ -z "${EXPR+x}" ]; then
7611     # The variable is not set by user, try to locate tool using the code snippet
7612     for ac_prog in expr
7613 do
7614   # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_path_EXPR+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   case $EXPR in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640 
7641   ;;
7642 esac
7643 fi
7644 EXPR=$ac_cv_path_EXPR
7645 if test -n "$EXPR"; then
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7647 $as_echo "$EXPR" >&6; }
7648 else
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652 
7653 
7654   test -n "$EXPR" && break
7655 done
7656 
7657   else
7658     # The variable is set, but is it from the command line or the environment?
7659 
7660     # Try to remove the string !EXPR! from our list.
7661     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7662     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7663       # If it failed, the variable was not from the command line. Ignore it,
7664       # but warn the user (except for BASH, which is always set by the calling BASH).
7665       if test "xEXPR" != xBASH; then
7666         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7667 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7668       fi
7669       # Try to locate tool using the code snippet
7670       for ac_prog in expr
7671 do
7672   # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_path_EXPR+:} false; then :
7677   $as_echo_n "(cached) " >&6
7678 else
7679   case $EXPR in
7680   [\\/]* | ?:[\\/]*)
7681   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7682   ;;
7683   *)
7684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689     for ac_exec_ext in '' $ac_executable_extensions; do
7690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696   done
7697 IFS=$as_save_IFS
7698 
7699   ;;
7700 esac
7701 fi
7702 EXPR=$ac_cv_path_EXPR
7703 if test -n "$EXPR"; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7705 $as_echo "$EXPR" >&6; }
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710 
7711 
7712   test -n "$EXPR" && break
7713 done
7714 
7715     else
7716       # If it succeeded, then it was overridden by the user. We will use it
7717       # for the tool.
7718 
7719       # First remove it from the list of overridden variables, so we can test
7720       # for unknown variables in the end.
7721       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7722 
7723       # Check if we try to supply an empty value
7724       if test "x$EXPR" = x; then
7725         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7726 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7728 $as_echo_n "checking for EXPR... " >&6; }
7729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7730 $as_echo "disabled" >&6; }
7731       else
7732         # Check if the provided tool contains a complete path.
7733         tool_specified="$EXPR"
7734         tool_basename="${tool_specified##*/}"
7735         if test "x$tool_basename" = "x$tool_specified"; then
7736           # A command without a complete path is provided, search $PATH.
7737           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7738 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7739           # Extract the first word of "$tool_basename", so it can be a program name with args.
7740 set dummy $tool_basename; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_path_EXPR+:} false; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   case $EXPR in
7747   [\\/]* | ?:[\\/]*)
7748   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7749   ;;
7750   *)
7751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756     for ac_exec_ext in '' $ac_executable_extensions; do
7757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763   done
7764 IFS=$as_save_IFS
7765 
7766   ;;
7767 esac
7768 fi
7769 EXPR=$ac_cv_path_EXPR
7770 if test -n "$EXPR"; then
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7772 $as_echo "$EXPR" >&6; }
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777 
7778 
7779           if test "x$EXPR" = x; then
7780             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7781           fi
7782         else
7783           # Otherwise we believe it is a complete path. Use it as it is.
7784           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7785 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7786           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7787 $as_echo_n "checking for EXPR... " >&6; }
7788           if test ! -x "$tool_specified"; then
7789             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7790 $as_echo "not found" >&6; }
7791             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7792           fi
7793           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7794 $as_echo "$tool_specified" >&6; }
7795         fi
7796       fi
7797     fi
7798 
7799   fi
7800 
7801 
7802 
7803   if test "x$EXPR" = x; then
7804     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7805   fi
7806 
7807 
7808 
7809 
7810 
7811   # Publish this variable in the help.
7812 
7813 
7814   if [ -z "${FILE+x}" ]; then
7815     # The variable is not set by user, try to locate tool using the code snippet
7816     for ac_prog in file
7817 do
7818   # Extract the first word of "$ac_prog", so it can be a program name with args.
7819 set dummy $ac_prog; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_path_FILE+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   case $FILE in
7826   [\\/]* | ?:[\\/]*)
7827   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7828   ;;
7829   *)
7830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835     for ac_exec_ext in '' $ac_executable_extensions; do
7836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842   done
7843 IFS=$as_save_IFS
7844 
7845   ;;
7846 esac
7847 fi
7848 FILE=$ac_cv_path_FILE
7849 if test -n "$FILE"; then
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7851 $as_echo "$FILE" >&6; }
7852 else
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856 
7857 
7858   test -n "$FILE" && break
7859 done
7860 
7861   else
7862     # The variable is set, but is it from the command line or the environment?
7863 
7864     # Try to remove the string !FILE! from our list.
7865     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7866     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7867       # If it failed, the variable was not from the command line. Ignore it,
7868       # but warn the user (except for BASH, which is always set by the calling BASH).
7869       if test "xFILE" != xBASH; then
7870         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7871 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7872       fi
7873       # Try to locate tool using the code snippet
7874       for ac_prog in file
7875 do
7876   # Extract the first word of "$ac_prog", so it can be a program name with args.
7877 set dummy $ac_prog; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_path_FILE+:} false; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   case $FILE in
7884   [\\/]* | ?:[\\/]*)
7885   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7886   ;;
7887   *)
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893     for ac_exec_ext in '' $ac_executable_extensions; do
7894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900   done
7901 IFS=$as_save_IFS
7902 
7903   ;;
7904 esac
7905 fi
7906 FILE=$ac_cv_path_FILE
7907 if test -n "$FILE"; then
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7909 $as_echo "$FILE" >&6; }
7910 else
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914 
7915 
7916   test -n "$FILE" && break
7917 done
7918 
7919     else
7920       # If it succeeded, then it was overridden by the user. We will use it
7921       # for the tool.
7922 
7923       # First remove it from the list of overridden variables, so we can test
7924       # for unknown variables in the end.
7925       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7926 
7927       # Check if we try to supply an empty value
7928       if test "x$FILE" = x; then
7929         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7930 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7932 $as_echo_n "checking for FILE... " >&6; }
7933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7934 $as_echo "disabled" >&6; }
7935       else
7936         # Check if the provided tool contains a complete path.
7937         tool_specified="$FILE"
7938         tool_basename="${tool_specified##*/}"
7939         if test "x$tool_basename" = "x$tool_specified"; then
7940           # A command without a complete path is provided, search $PATH.
7941           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7942 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7943           # Extract the first word of "$tool_basename", so it can be a program name with args.
7944 set dummy $tool_basename; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_path_FILE+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   case $FILE in
7951   [\\/]* | ?:[\\/]*)
7952   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7953   ;;
7954   *)
7955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960     for ac_exec_ext in '' $ac_executable_extensions; do
7961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967   done
7968 IFS=$as_save_IFS
7969 
7970   ;;
7971 esac
7972 fi
7973 FILE=$ac_cv_path_FILE
7974 if test -n "$FILE"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7976 $as_echo "$FILE" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981 
7982 
7983           if test "x$FILE" = x; then
7984             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7985           fi
7986         else
7987           # Otherwise we believe it is a complete path. Use it as it is.
7988           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7989 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7990           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7991 $as_echo_n "checking for FILE... " >&6; }
7992           if test ! -x "$tool_specified"; then
7993             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7994 $as_echo "not found" >&6; }
7995             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7996           fi
7997           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7998 $as_echo "$tool_specified" >&6; }
7999         fi
8000       fi
8001     fi
8002 
8003   fi
8004 
8005 
8006 
8007   if test "x$FILE" = x; then
8008     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8009   fi
8010 
8011 
8012 
8013 
8014 
8015   # Publish this variable in the help.
8016 
8017 
8018   if [ -z "${FIND+x}" ]; then
8019     # The variable is not set by user, try to locate tool using the code snippet
8020     for ac_prog in find
8021 do
8022   # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if ${ac_cv_path_FIND+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   case $FIND in
8030   [\\/]* | ?:[\\/]*)
8031   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8032   ;;
8033   *)
8034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8036 do
8037   IFS=$as_save_IFS
8038   test -z "$as_dir" && as_dir=.
8039     for ac_exec_ext in '' $ac_executable_extensions; do
8040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8041     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043     break 2
8044   fi
8045 done
8046   done
8047 IFS=$as_save_IFS
8048 
8049   ;;
8050 esac
8051 fi
8052 FIND=$ac_cv_path_FIND
8053 if test -n "$FIND"; then
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8055 $as_echo "$FIND" >&6; }
8056 else
8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060 
8061 
8062   test -n "$FIND" && break
8063 done
8064 
8065   else
8066     # The variable is set, but is it from the command line or the environment?
8067 
8068     # Try to remove the string !FIND! from our list.
8069     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8070     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8071       # If it failed, the variable was not from the command line. Ignore it,
8072       # but warn the user (except for BASH, which is always set by the calling BASH).
8073       if test "xFIND" != xBASH; then
8074         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8075 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8076       fi
8077       # Try to locate tool using the code snippet
8078       for ac_prog in find
8079 do
8080   # Extract the first word of "$ac_prog", so it can be a program name with args.
8081 set dummy $ac_prog; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_path_FIND+:} false; then :
8085   $as_echo_n "(cached) " >&6
8086 else
8087   case $FIND in
8088   [\\/]* | ?:[\\/]*)
8089   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8090   ;;
8091   *)
8092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 for as_dir in $PATH
8094 do
8095   IFS=$as_save_IFS
8096   test -z "$as_dir" && as_dir=.
8097     for ac_exec_ext in '' $ac_executable_extensions; do
8098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8099     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101     break 2
8102   fi
8103 done
8104   done
8105 IFS=$as_save_IFS
8106 
8107   ;;
8108 esac
8109 fi
8110 FIND=$ac_cv_path_FIND
8111 if test -n "$FIND"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8113 $as_echo "$FIND" >&6; }
8114 else
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118 
8119 
8120   test -n "$FIND" && break
8121 done
8122 
8123     else
8124       # If it succeeded, then it was overridden by the user. We will use it
8125       # for the tool.
8126 
8127       # First remove it from the list of overridden variables, so we can test
8128       # for unknown variables in the end.
8129       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8130 
8131       # Check if we try to supply an empty value
8132       if test "x$FIND" = x; then
8133         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8134 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8136 $as_echo_n "checking for FIND... " >&6; }
8137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8138 $as_echo "disabled" >&6; }
8139       else
8140         # Check if the provided tool contains a complete path.
8141         tool_specified="$FIND"
8142         tool_basename="${tool_specified##*/}"
8143         if test "x$tool_basename" = "x$tool_specified"; then
8144           # A command without a complete path is provided, search $PATH.
8145           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8146 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8147           # Extract the first word of "$tool_basename", so it can be a program name with args.
8148 set dummy $tool_basename; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_path_FIND+:} false; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   case $FIND in
8155   [\\/]* | ?:[\\/]*)
8156   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8157   ;;
8158   *)
8159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173 
8174   ;;
8175 esac
8176 fi
8177 FIND=$ac_cv_path_FIND
8178 if test -n "$FIND"; then
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8180 $as_echo "$FIND" >&6; }
8181 else
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8184 fi
8185 
8186 
8187           if test "x$FIND" = x; then
8188             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8189           fi
8190         else
8191           # Otherwise we believe it is a complete path. Use it as it is.
8192           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8193 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8194           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8195 $as_echo_n "checking for FIND... " >&6; }
8196           if test ! -x "$tool_specified"; then
8197             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8198 $as_echo "not found" >&6; }
8199             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8200           fi
8201           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8202 $as_echo "$tool_specified" >&6; }
8203         fi
8204       fi
8205     fi
8206 
8207   fi
8208 
8209 
8210 
8211   if test "x$FIND" = x; then
8212     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8213   fi
8214 
8215 
8216 
8217 
8218 
8219   # Publish this variable in the help.
8220 
8221 
8222   if [ -z "${HEAD+x}" ]; then
8223     # The variable is not set by user, try to locate tool using the code snippet
8224     for ac_prog in head
8225 do
8226   # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_path_HEAD+:} false; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   case $HEAD in
8234   [\\/]* | ?:[\\/]*)
8235   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8236   ;;
8237   *)
8238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243     for ac_exec_ext in '' $ac_executable_extensions; do
8244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250   done
8251 IFS=$as_save_IFS
8252 
8253   ;;
8254 esac
8255 fi
8256 HEAD=$ac_cv_path_HEAD
8257 if test -n "$HEAD"; then
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8259 $as_echo "$HEAD" >&6; }
8260 else
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264 
8265 
8266   test -n "$HEAD" && break
8267 done
8268 
8269   else
8270     # The variable is set, but is it from the command line or the environment?
8271 
8272     # Try to remove the string !HEAD! from our list.
8273     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8274     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8275       # If it failed, the variable was not from the command line. Ignore it,
8276       # but warn the user (except for BASH, which is always set by the calling BASH).
8277       if test "xHEAD" != xBASH; then
8278         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8279 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8280       fi
8281       # Try to locate tool using the code snippet
8282       for ac_prog in head
8283 do
8284   # Extract the first word of "$ac_prog", so it can be a program name with args.
8285 set dummy $ac_prog; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if ${ac_cv_path_HEAD+:} false; then :
8289   $as_echo_n "(cached) " >&6
8290 else
8291   case $HEAD in
8292   [\\/]* | ?:[\\/]*)
8293   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8294   ;;
8295   *)
8296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299   IFS=$as_save_IFS
8300   test -z "$as_dir" && as_dir=.
8301     for ac_exec_ext in '' $ac_executable_extensions; do
8302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305     break 2
8306   fi
8307 done
8308   done
8309 IFS=$as_save_IFS
8310 
8311   ;;
8312 esac
8313 fi
8314 HEAD=$ac_cv_path_HEAD
8315 if test -n "$HEAD"; then
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8317 $as_echo "$HEAD" >&6; }
8318 else
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322 
8323 
8324   test -n "$HEAD" && break
8325 done
8326 
8327     else
8328       # If it succeeded, then it was overridden by the user. We will use it
8329       # for the tool.
8330 
8331       # First remove it from the list of overridden variables, so we can test
8332       # for unknown variables in the end.
8333       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8334 
8335       # Check if we try to supply an empty value
8336       if test "x$HEAD" = x; then
8337         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8338 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8340 $as_echo_n "checking for HEAD... " >&6; }
8341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8342 $as_echo "disabled" >&6; }
8343       else
8344         # Check if the provided tool contains a complete path.
8345         tool_specified="$HEAD"
8346         tool_basename="${tool_specified##*/}"
8347         if test "x$tool_basename" = "x$tool_specified"; then
8348           # A command without a complete path is provided, search $PATH.
8349           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8350 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8351           # Extract the first word of "$tool_basename", so it can be a program name with args.
8352 set dummy $tool_basename; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_path_HEAD+:} false; then :
8356   $as_echo_n "(cached) " >&6
8357 else
8358   case $HEAD in
8359   [\\/]* | ?:[\\/]*)
8360   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8361   ;;
8362   *)
8363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368     for ac_exec_ext in '' $ac_executable_extensions; do
8369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375   done
8376 IFS=$as_save_IFS
8377 
8378   ;;
8379 esac
8380 fi
8381 HEAD=$ac_cv_path_HEAD
8382 if test -n "$HEAD"; then
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8384 $as_echo "$HEAD" >&6; }
8385 else
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389 
8390 
8391           if test "x$HEAD" = x; then
8392             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8393           fi
8394         else
8395           # Otherwise we believe it is a complete path. Use it as it is.
8396           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8397 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8398           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8399 $as_echo_n "checking for HEAD... " >&6; }
8400           if test ! -x "$tool_specified"; then
8401             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8402 $as_echo "not found" >&6; }
8403             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8404           fi
8405           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8406 $as_echo "$tool_specified" >&6; }
8407         fi
8408       fi
8409     fi
8410 
8411   fi
8412 
8413 
8414 
8415   if test "x$HEAD" = x; then
8416     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8417   fi
8418 
8419 
8420 
8421 
8422 
8423   # Publish this variable in the help.
8424 
8425 
8426   if [ -z "${GUNZIP+x}" ]; then
8427     # The variable is not set by user, try to locate tool using the code snippet
8428     for ac_prog in gunzip
8429 do
8430   # Extract the first word of "$ac_prog", so it can be a program name with args.
8431 set dummy $ac_prog; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_path_GUNZIP+:} false; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   case $GUNZIP in
8438   [\\/]* | ?:[\\/]*)
8439   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8440   ;;
8441   *)
8442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8444 do
8445   IFS=$as_save_IFS
8446   test -z "$as_dir" && as_dir=.
8447     for ac_exec_ext in '' $ac_executable_extensions; do
8448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451     break 2
8452   fi
8453 done
8454   done
8455 IFS=$as_save_IFS
8456 
8457   ;;
8458 esac
8459 fi
8460 GUNZIP=$ac_cv_path_GUNZIP
8461 if test -n "$GUNZIP"; then
8462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8463 $as_echo "$GUNZIP" >&6; }
8464 else
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8467 fi
8468 
8469 
8470   test -n "$GUNZIP" && break
8471 done
8472 
8473   else
8474     # The variable is set, but is it from the command line or the environment?
8475 
8476     # Try to remove the string !GUNZIP! from our list.
8477     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8478     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8479       # If it failed, the variable was not from the command line. Ignore it,
8480       # but warn the user (except for BASH, which is always set by the calling BASH).
8481       if test "xGUNZIP" != xBASH; then
8482         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8483 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8484       fi
8485       # Try to locate tool using the code snippet
8486       for ac_prog in gunzip
8487 do
8488   # Extract the first word of "$ac_prog", so it can be a program name with args.
8489 set dummy $ac_prog; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if ${ac_cv_path_GUNZIP+:} false; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495   case $GUNZIP in
8496   [\\/]* | ?:[\\/]*)
8497   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8498   ;;
8499   *)
8500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503   IFS=$as_save_IFS
8504   test -z "$as_dir" && as_dir=.
8505     for ac_exec_ext in '' $ac_executable_extensions; do
8506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509     break 2
8510   fi
8511 done
8512   done
8513 IFS=$as_save_IFS
8514 
8515   ;;
8516 esac
8517 fi
8518 GUNZIP=$ac_cv_path_GUNZIP
8519 if test -n "$GUNZIP"; then
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8521 $as_echo "$GUNZIP" >&6; }
8522 else
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526 
8527 
8528   test -n "$GUNZIP" && break
8529 done
8530 
8531     else
8532       # If it succeeded, then it was overridden by the user. We will use it
8533       # for the tool.
8534 
8535       # First remove it from the list of overridden variables, so we can test
8536       # for unknown variables in the end.
8537       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8538 
8539       # Check if we try to supply an empty value
8540       if test "x$GUNZIP" = x; then
8541         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8542 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8544 $as_echo_n "checking for GUNZIP... " >&6; }
8545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8546 $as_echo "disabled" >&6; }
8547       else
8548         # Check if the provided tool contains a complete path.
8549         tool_specified="$GUNZIP"
8550         tool_basename="${tool_specified##*/}"
8551         if test "x$tool_basename" = "x$tool_specified"; then
8552           # A command without a complete path is provided, search $PATH.
8553           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8554 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8555           # Extract the first word of "$tool_basename", so it can be a program name with args.
8556 set dummy $tool_basename; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_path_GUNZIP+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   case $GUNZIP in
8563   [\\/]* | ?:[\\/]*)
8564   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8565   ;;
8566   *)
8567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572     for ac_exec_ext in '' $ac_executable_extensions; do
8573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579   done
8580 IFS=$as_save_IFS
8581 
8582   ;;
8583 esac
8584 fi
8585 GUNZIP=$ac_cv_path_GUNZIP
8586 if test -n "$GUNZIP"; then
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8588 $as_echo "$GUNZIP" >&6; }
8589 else
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 fi
8593 
8594 
8595           if test "x$GUNZIP" = x; then
8596             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8597           fi
8598         else
8599           # Otherwise we believe it is a complete path. Use it as it is.
8600           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8601 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8602           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8603 $as_echo_n "checking for GUNZIP... " >&6; }
8604           if test ! -x "$tool_specified"; then
8605             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8606 $as_echo "not found" >&6; }
8607             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8608           fi
8609           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8610 $as_echo "$tool_specified" >&6; }
8611         fi
8612       fi
8613     fi
8614 
8615   fi
8616 
8617 
8618 
8619   if test "x$GUNZIP" = x; then
8620     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8621   fi
8622 
8623 
8624 
8625 
8626 
8627   # Publish this variable in the help.
8628 
8629 
8630   if [ -z "${GZIP+x}" ]; then
8631     # The variable is not set by user, try to locate tool using the code snippet
8632     for ac_prog in pigz gzip
8633 do
8634   # Extract the first word of "$ac_prog", so it can be a program name with args.
8635 set dummy $ac_prog; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_path_GZIP+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   case $GZIP in
8642   [\\/]* | ?:[\\/]*)
8643   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8644   ;;
8645   *)
8646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649   IFS=$as_save_IFS
8650   test -z "$as_dir" && as_dir=.
8651     for ac_exec_ext in '' $ac_executable_extensions; do
8652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655     break 2
8656   fi
8657 done
8658   done
8659 IFS=$as_save_IFS
8660 
8661   ;;
8662 esac
8663 fi
8664 GZIP=$ac_cv_path_GZIP
8665 if test -n "$GZIP"; then
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8667 $as_echo "$GZIP" >&6; }
8668 else
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8671 fi
8672 
8673 
8674   test -n "$GZIP" && break
8675 done
8676 
8677   else
8678     # The variable is set, but is it from the command line or the environment?
8679 
8680     # Try to remove the string !GZIP! from our list.
8681     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8682     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8683       # If it failed, the variable was not from the command line. Ignore it,
8684       # but warn the user (except for BASH, which is always set by the calling BASH).
8685       if test "xGZIP" != xBASH; then
8686         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8687 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8688       fi
8689       # Try to locate tool using the code snippet
8690       for ac_prog in pigz gzip
8691 do
8692   # Extract the first word of "$ac_prog", so it can be a program name with args.
8693 set dummy $ac_prog; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_path_GZIP+:} false; then :
8697   $as_echo_n "(cached) " >&6
8698 else
8699   case $GZIP in
8700   [\\/]* | ?:[\\/]*)
8701   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8702   ;;
8703   *)
8704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707   IFS=$as_save_IFS
8708   test -z "$as_dir" && as_dir=.
8709     for ac_exec_ext in '' $ac_executable_extensions; do
8710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713     break 2
8714   fi
8715 done
8716   done
8717 IFS=$as_save_IFS
8718 
8719   ;;
8720 esac
8721 fi
8722 GZIP=$ac_cv_path_GZIP
8723 if test -n "$GZIP"; then
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8725 $as_echo "$GZIP" >&6; }
8726 else
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8729 fi
8730 
8731 
8732   test -n "$GZIP" && break
8733 done
8734 
8735     else
8736       # If it succeeded, then it was overridden by the user. We will use it
8737       # for the tool.
8738 
8739       # First remove it from the list of overridden variables, so we can test
8740       # for unknown variables in the end.
8741       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8742 
8743       # Check if we try to supply an empty value
8744       if test "x$GZIP" = x; then
8745         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8746 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8748 $as_echo_n "checking for GZIP... " >&6; }
8749         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8750 $as_echo "disabled" >&6; }
8751       else
8752         # Check if the provided tool contains a complete path.
8753         tool_specified="$GZIP"
8754         tool_basename="${tool_specified##*/}"
8755         if test "x$tool_basename" = "x$tool_specified"; then
8756           # A command without a complete path is provided, search $PATH.
8757           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8758 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8759           # Extract the first word of "$tool_basename", so it can be a program name with args.
8760 set dummy $tool_basename; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_GZIP+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   case $GZIP in
8767   [\\/]* | ?:[\\/]*)
8768   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8769   ;;
8770   *)
8771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785 
8786   ;;
8787 esac
8788 fi
8789 GZIP=$ac_cv_path_GZIP
8790 if test -n "$GZIP"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8792 $as_echo "$GZIP" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797 
8798 
8799           if test "x$GZIP" = x; then
8800             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8801           fi
8802         else
8803           # Otherwise we believe it is a complete path. Use it as it is.
8804           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8805 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8806           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8807 $as_echo_n "checking for GZIP... " >&6; }
8808           if test ! -x "$tool_specified"; then
8809             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8810 $as_echo "not found" >&6; }
8811             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8812           fi
8813           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8814 $as_echo "$tool_specified" >&6; }
8815         fi
8816       fi
8817     fi
8818 
8819   fi
8820 
8821 
8822 
8823   if test "x$GZIP" = x; then
8824     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8825   fi
8826 
8827 
8828 
8829 
8830 
8831   # Publish this variable in the help.
8832 
8833 
8834   if [ -z "${LN+x}" ]; then
8835     # The variable is not set by user, try to locate tool using the code snippet
8836     for ac_prog in ln
8837 do
8838   # Extract the first word of "$ac_prog", so it can be a program name with args.
8839 set dummy $ac_prog; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_path_LN+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   case $LN in
8846   [\\/]* | ?:[\\/]*)
8847   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8848   ;;
8849   *)
8850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8852 do
8853   IFS=$as_save_IFS
8854   test -z "$as_dir" && as_dir=.
8855     for ac_exec_ext in '' $ac_executable_extensions; do
8856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859     break 2
8860   fi
8861 done
8862   done
8863 IFS=$as_save_IFS
8864 
8865   ;;
8866 esac
8867 fi
8868 LN=$ac_cv_path_LN
8869 if test -n "$LN"; then
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8871 $as_echo "$LN" >&6; }
8872 else
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8875 fi
8876 
8877 
8878   test -n "$LN" && break
8879 done
8880 
8881   else
8882     # The variable is set, but is it from the command line or the environment?
8883 
8884     # Try to remove the string !LN! from our list.
8885     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8886     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8887       # If it failed, the variable was not from the command line. Ignore it,
8888       # but warn the user (except for BASH, which is always set by the calling BASH).
8889       if test "xLN" != xBASH; then
8890         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8891 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8892       fi
8893       # Try to locate tool using the code snippet
8894       for ac_prog in ln
8895 do
8896   # Extract the first word of "$ac_prog", so it can be a program name with args.
8897 set dummy $ac_prog; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_path_LN+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   case $LN in
8904   [\\/]* | ?:[\\/]*)
8905   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8906   ;;
8907   *)
8908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911   IFS=$as_save_IFS
8912   test -z "$as_dir" && as_dir=.
8913     for ac_exec_ext in '' $ac_executable_extensions; do
8914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917     break 2
8918   fi
8919 done
8920   done
8921 IFS=$as_save_IFS
8922 
8923   ;;
8924 esac
8925 fi
8926 LN=$ac_cv_path_LN
8927 if test -n "$LN"; then
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8929 $as_echo "$LN" >&6; }
8930 else
8931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8933 fi
8934 
8935 
8936   test -n "$LN" && break
8937 done
8938 
8939     else
8940       # If it succeeded, then it was overridden by the user. We will use it
8941       # for the tool.
8942 
8943       # First remove it from the list of overridden variables, so we can test
8944       # for unknown variables in the end.
8945       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8946 
8947       # Check if we try to supply an empty value
8948       if test "x$LN" = x; then
8949         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8950 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8952 $as_echo_n "checking for LN... " >&6; }
8953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8954 $as_echo "disabled" >&6; }
8955       else
8956         # Check if the provided tool contains a complete path.
8957         tool_specified="$LN"
8958         tool_basename="${tool_specified##*/}"
8959         if test "x$tool_basename" = "x$tool_specified"; then
8960           # A command without a complete path is provided, search $PATH.
8961           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8962 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8963           # Extract the first word of "$tool_basename", so it can be a program name with args.
8964 set dummy $tool_basename; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_path_LN+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   case $LN in
8971   [\\/]* | ?:[\\/]*)
8972   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8973   ;;
8974   *)
8975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978   IFS=$as_save_IFS
8979   test -z "$as_dir" && as_dir=.
8980     for ac_exec_ext in '' $ac_executable_extensions; do
8981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984     break 2
8985   fi
8986 done
8987   done
8988 IFS=$as_save_IFS
8989 
8990   ;;
8991 esac
8992 fi
8993 LN=$ac_cv_path_LN
8994 if test -n "$LN"; then
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8996 $as_echo "$LN" >&6; }
8997 else
8998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001 
9002 
9003           if test "x$LN" = x; then
9004             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9005           fi
9006         else
9007           # Otherwise we believe it is a complete path. Use it as it is.
9008           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9009 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9010           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9011 $as_echo_n "checking for LN... " >&6; }
9012           if test ! -x "$tool_specified"; then
9013             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9014 $as_echo "not found" >&6; }
9015             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9016           fi
9017           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9018 $as_echo "$tool_specified" >&6; }
9019         fi
9020       fi
9021     fi
9022 
9023   fi
9024 
9025 
9026 
9027   if test "x$LN" = x; then
9028     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9029   fi
9030 
9031 
9032 
9033 
9034 
9035   # Publish this variable in the help.
9036 
9037 
9038   if [ -z "${LS+x}" ]; then
9039     # The variable is not set by user, try to locate tool using the code snippet
9040     for ac_prog in ls
9041 do
9042   # Extract the first word of "$ac_prog", so it can be a program name with args.
9043 set dummy $ac_prog; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_path_LS+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   case $LS in
9050   [\\/]* | ?:[\\/]*)
9051   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9052   ;;
9053   *)
9054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 for as_dir in $PATH
9056 do
9057   IFS=$as_save_IFS
9058   test -z "$as_dir" && as_dir=.
9059     for ac_exec_ext in '' $ac_executable_extensions; do
9060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9061     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9063     break 2
9064   fi
9065 done
9066   done
9067 IFS=$as_save_IFS
9068 
9069   ;;
9070 esac
9071 fi
9072 LS=$ac_cv_path_LS
9073 if test -n "$LS"; then
9074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9075 $as_echo "$LS" >&6; }
9076 else
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9079 fi
9080 
9081 
9082   test -n "$LS" && break
9083 done
9084 
9085   else
9086     # The variable is set, but is it from the command line or the environment?
9087 
9088     # Try to remove the string !LS! from our list.
9089     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9090     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9091       # If it failed, the variable was not from the command line. Ignore it,
9092       # but warn the user (except for BASH, which is always set by the calling BASH).
9093       if test "xLS" != xBASH; then
9094         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9095 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9096       fi
9097       # Try to locate tool using the code snippet
9098       for ac_prog in ls
9099 do
9100   # Extract the first word of "$ac_prog", so it can be a program name with args.
9101 set dummy $ac_prog; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if ${ac_cv_path_LS+:} false; then :
9105   $as_echo_n "(cached) " >&6
9106 else
9107   case $LS in
9108   [\\/]* | ?:[\\/]*)
9109   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9110   ;;
9111   *)
9112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115   IFS=$as_save_IFS
9116   test -z "$as_dir" && as_dir=.
9117     for ac_exec_ext in '' $ac_executable_extensions; do
9118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121     break 2
9122   fi
9123 done
9124   done
9125 IFS=$as_save_IFS
9126 
9127   ;;
9128 esac
9129 fi
9130 LS=$ac_cv_path_LS
9131 if test -n "$LS"; then
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9133 $as_echo "$LS" >&6; }
9134 else
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9137 fi
9138 
9139 
9140   test -n "$LS" && break
9141 done
9142 
9143     else
9144       # If it succeeded, then it was overridden by the user. We will use it
9145       # for the tool.
9146 
9147       # First remove it from the list of overridden variables, so we can test
9148       # for unknown variables in the end.
9149       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9150 
9151       # Check if we try to supply an empty value
9152       if test "x$LS" = x; then
9153         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9154 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9156 $as_echo_n "checking for LS... " >&6; }
9157         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9158 $as_echo "disabled" >&6; }
9159       else
9160         # Check if the provided tool contains a complete path.
9161         tool_specified="$LS"
9162         tool_basename="${tool_specified##*/}"
9163         if test "x$tool_basename" = "x$tool_specified"; then
9164           # A command without a complete path is provided, search $PATH.
9165           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9166 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9167           # Extract the first word of "$tool_basename", so it can be a program name with args.
9168 set dummy $tool_basename; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_path_LS+:} false; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   case $LS in
9175   [\\/]* | ?:[\\/]*)
9176   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9177   ;;
9178   *)
9179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9181 do
9182   IFS=$as_save_IFS
9183   test -z "$as_dir" && as_dir=.
9184     for ac_exec_ext in '' $ac_executable_extensions; do
9185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9186     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188     break 2
9189   fi
9190 done
9191   done
9192 IFS=$as_save_IFS
9193 
9194   ;;
9195 esac
9196 fi
9197 LS=$ac_cv_path_LS
9198 if test -n "$LS"; then
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9200 $as_echo "$LS" >&6; }
9201 else
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9204 fi
9205 
9206 
9207           if test "x$LS" = x; then
9208             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9209           fi
9210         else
9211           # Otherwise we believe it is a complete path. Use it as it is.
9212           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9213 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9214           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9215 $as_echo_n "checking for LS... " >&6; }
9216           if test ! -x "$tool_specified"; then
9217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9218 $as_echo "not found" >&6; }
9219             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9220           fi
9221           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9222 $as_echo "$tool_specified" >&6; }
9223         fi
9224       fi
9225     fi
9226 
9227   fi
9228 
9229 
9230 
9231   if test "x$LS" = x; then
9232     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9233   fi
9234 
9235 
9236 
9237 
9238 
9239   # Publish this variable in the help.
9240 
9241 
9242   if [ -z "${MKDIR+x}" ]; then
9243     # The variable is not set by user, try to locate tool using the code snippet
9244     for ac_prog in mkdir
9245 do
9246   # Extract the first word of "$ac_prog", so it can be a program name with args.
9247 set dummy $ac_prog; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_MKDIR+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   case $MKDIR in
9254   [\\/]* | ?:[\\/]*)
9255   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9256   ;;
9257   *)
9258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261   IFS=$as_save_IFS
9262   test -z "$as_dir" && as_dir=.
9263     for ac_exec_ext in '' $ac_executable_extensions; do
9264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267     break 2
9268   fi
9269 done
9270   done
9271 IFS=$as_save_IFS
9272 
9273   ;;
9274 esac
9275 fi
9276 MKDIR=$ac_cv_path_MKDIR
9277 if test -n "$MKDIR"; then
9278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9279 $as_echo "$MKDIR" >&6; }
9280 else
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9283 fi
9284 
9285 
9286   test -n "$MKDIR" && break
9287 done
9288 
9289   else
9290     # The variable is set, but is it from the command line or the environment?
9291 
9292     # Try to remove the string !MKDIR! from our list.
9293     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9294     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9295       # If it failed, the variable was not from the command line. Ignore it,
9296       # but warn the user (except for BASH, which is always set by the calling BASH).
9297       if test "xMKDIR" != xBASH; then
9298         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9299 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9300       fi
9301       # Try to locate tool using the code snippet
9302       for ac_prog in mkdir
9303 do
9304   # Extract the first word of "$ac_prog", so it can be a program name with args.
9305 set dummy $ac_prog; ac_word=$2
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if ${ac_cv_path_MKDIR+:} false; then :
9309   $as_echo_n "(cached) " >&6
9310 else
9311   case $MKDIR in
9312   [\\/]* | ?:[\\/]*)
9313   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9314   ;;
9315   *)
9316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319   IFS=$as_save_IFS
9320   test -z "$as_dir" && as_dir=.
9321     for ac_exec_ext in '' $ac_executable_extensions; do
9322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325     break 2
9326   fi
9327 done
9328   done
9329 IFS=$as_save_IFS
9330 
9331   ;;
9332 esac
9333 fi
9334 MKDIR=$ac_cv_path_MKDIR
9335 if test -n "$MKDIR"; then
9336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9337 $as_echo "$MKDIR" >&6; }
9338 else
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340 $as_echo "no" >&6; }
9341 fi
9342 
9343 
9344   test -n "$MKDIR" && break
9345 done
9346 
9347     else
9348       # If it succeeded, then it was overridden by the user. We will use it
9349       # for the tool.
9350 
9351       # First remove it from the list of overridden variables, so we can test
9352       # for unknown variables in the end.
9353       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9354 
9355       # Check if we try to supply an empty value
9356       if test "x$MKDIR" = x; then
9357         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9358 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9359         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9360 $as_echo_n "checking for MKDIR... " >&6; }
9361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9362 $as_echo "disabled" >&6; }
9363       else
9364         # Check if the provided tool contains a complete path.
9365         tool_specified="$MKDIR"
9366         tool_basename="${tool_specified##*/}"
9367         if test "x$tool_basename" = "x$tool_specified"; then
9368           # A command without a complete path is provided, search $PATH.
9369           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9370 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9371           # Extract the first word of "$tool_basename", so it can be a program name with args.
9372 set dummy $tool_basename; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_path_MKDIR+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   case $MKDIR in
9379   [\\/]* | ?:[\\/]*)
9380   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9381   ;;
9382   *)
9383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9385 do
9386   IFS=$as_save_IFS
9387   test -z "$as_dir" && as_dir=.
9388     for ac_exec_ext in '' $ac_executable_extensions; do
9389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392     break 2
9393   fi
9394 done
9395   done
9396 IFS=$as_save_IFS
9397 
9398   ;;
9399 esac
9400 fi
9401 MKDIR=$ac_cv_path_MKDIR
9402 if test -n "$MKDIR"; then
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9404 $as_echo "$MKDIR" >&6; }
9405 else
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9408 fi
9409 
9410 
9411           if test "x$MKDIR" = x; then
9412             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9413           fi
9414         else
9415           # Otherwise we believe it is a complete path. Use it as it is.
9416           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9417 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9418           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9419 $as_echo_n "checking for MKDIR... " >&6; }
9420           if test ! -x "$tool_specified"; then
9421             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9422 $as_echo "not found" >&6; }
9423             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9424           fi
9425           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9426 $as_echo "$tool_specified" >&6; }
9427         fi
9428       fi
9429     fi
9430 
9431   fi
9432 
9433 
9434 
9435   if test "x$MKDIR" = x; then
9436     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9437   fi
9438 
9439 
9440 
9441 
9442 
9443   # Publish this variable in the help.
9444 
9445 
9446   if [ -z "${MKTEMP+x}" ]; then
9447     # The variable is not set by user, try to locate tool using the code snippet
9448     for ac_prog in mktemp
9449 do
9450   # Extract the first word of "$ac_prog", so it can be a program name with args.
9451 set dummy $ac_prog; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_path_MKTEMP+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   case $MKTEMP in
9458   [\\/]* | ?:[\\/]*)
9459   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9460   ;;
9461   *)
9462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9464 do
9465   IFS=$as_save_IFS
9466   test -z "$as_dir" && as_dir=.
9467     for ac_exec_ext in '' $ac_executable_extensions; do
9468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471     break 2
9472   fi
9473 done
9474   done
9475 IFS=$as_save_IFS
9476 
9477   ;;
9478 esac
9479 fi
9480 MKTEMP=$ac_cv_path_MKTEMP
9481 if test -n "$MKTEMP"; then
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9483 $as_echo "$MKTEMP" >&6; }
9484 else
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 fi
9488 
9489 
9490   test -n "$MKTEMP" && break
9491 done
9492 
9493   else
9494     # The variable is set, but is it from the command line or the environment?
9495 
9496     # Try to remove the string !MKTEMP! from our list.
9497     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9498     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9499       # If it failed, the variable was not from the command line. Ignore it,
9500       # but warn the user (except for BASH, which is always set by the calling BASH).
9501       if test "xMKTEMP" != xBASH; then
9502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9503 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9504       fi
9505       # Try to locate tool using the code snippet
9506       for ac_prog in mktemp
9507 do
9508   # Extract the first word of "$ac_prog", so it can be a program name with args.
9509 set dummy $ac_prog; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if ${ac_cv_path_MKTEMP+:} false; then :
9513   $as_echo_n "(cached) " >&6
9514 else
9515   case $MKTEMP in
9516   [\\/]* | ?:[\\/]*)
9517   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9518   ;;
9519   *)
9520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 for as_dir in $PATH
9522 do
9523   IFS=$as_save_IFS
9524   test -z "$as_dir" && as_dir=.
9525     for ac_exec_ext in '' $ac_executable_extensions; do
9526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9527     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529     break 2
9530   fi
9531 done
9532   done
9533 IFS=$as_save_IFS
9534 
9535   ;;
9536 esac
9537 fi
9538 MKTEMP=$ac_cv_path_MKTEMP
9539 if test -n "$MKTEMP"; then
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9541 $as_echo "$MKTEMP" >&6; }
9542 else
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 fi
9546 
9547 
9548   test -n "$MKTEMP" && break
9549 done
9550 
9551     else
9552       # If it succeeded, then it was overridden by the user. We will use it
9553       # for the tool.
9554 
9555       # First remove it from the list of overridden variables, so we can test
9556       # for unknown variables in the end.
9557       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9558 
9559       # Check if we try to supply an empty value
9560       if test "x$MKTEMP" = x; then
9561         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9562 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9564 $as_echo_n "checking for MKTEMP... " >&6; }
9565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9566 $as_echo "disabled" >&6; }
9567       else
9568         # Check if the provided tool contains a complete path.
9569         tool_specified="$MKTEMP"
9570         tool_basename="${tool_specified##*/}"
9571         if test "x$tool_basename" = "x$tool_specified"; then
9572           # A command without a complete path is provided, search $PATH.
9573           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9574 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9575           # Extract the first word of "$tool_basename", so it can be a program name with args.
9576 set dummy $tool_basename; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_path_MKTEMP+:} false; then :
9580   $as_echo_n "(cached) " >&6
9581 else
9582   case $MKTEMP in
9583   [\\/]* | ?:[\\/]*)
9584   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9585   ;;
9586   *)
9587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $PATH
9589 do
9590   IFS=$as_save_IFS
9591   test -z "$as_dir" && as_dir=.
9592     for ac_exec_ext in '' $ac_executable_extensions; do
9593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596     break 2
9597   fi
9598 done
9599   done
9600 IFS=$as_save_IFS
9601 
9602   ;;
9603 esac
9604 fi
9605 MKTEMP=$ac_cv_path_MKTEMP
9606 if test -n "$MKTEMP"; then
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9608 $as_echo "$MKTEMP" >&6; }
9609 else
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 fi
9613 
9614 
9615           if test "x$MKTEMP" = x; then
9616             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9617           fi
9618         else
9619           # Otherwise we believe it is a complete path. Use it as it is.
9620           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9621 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9622           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9623 $as_echo_n "checking for MKTEMP... " >&6; }
9624           if test ! -x "$tool_specified"; then
9625             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9626 $as_echo "not found" >&6; }
9627             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9628           fi
9629           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9630 $as_echo "$tool_specified" >&6; }
9631         fi
9632       fi
9633     fi
9634 
9635   fi
9636 
9637 
9638 
9639   if test "x$MKTEMP" = x; then
9640     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9641   fi
9642 
9643 
9644 
9645 
9646 
9647   # Publish this variable in the help.
9648 
9649 
9650   if [ -z "${MV+x}" ]; then
9651     # The variable is not set by user, try to locate tool using the code snippet
9652     for ac_prog in mv
9653 do
9654   # Extract the first word of "$ac_prog", so it can be a program name with args.
9655 set dummy $ac_prog; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_MV+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   case $MV in
9662   [\\/]* | ?:[\\/]*)
9663   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9664   ;;
9665   *)
9666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680 
9681   ;;
9682 esac
9683 fi
9684 MV=$ac_cv_path_MV
9685 if test -n "$MV"; then
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9687 $as_echo "$MV" >&6; }
9688 else
9689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9691 fi
9692 
9693 
9694   test -n "$MV" && break
9695 done
9696 
9697   else
9698     # The variable is set, but is it from the command line or the environment?
9699 
9700     # Try to remove the string !MV! from our list.
9701     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9702     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9703       # If it failed, the variable was not from the command line. Ignore it,
9704       # but warn the user (except for BASH, which is always set by the calling BASH).
9705       if test "xMV" != xBASH; then
9706         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9707 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9708       fi
9709       # Try to locate tool using the code snippet
9710       for ac_prog in mv
9711 do
9712   # Extract the first word of "$ac_prog", so it can be a program name with args.
9713 set dummy $ac_prog; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_path_MV+:} false; then :
9717   $as_echo_n "(cached) " >&6
9718 else
9719   case $MV in
9720   [\\/]* | ?:[\\/]*)
9721   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9722   ;;
9723   *)
9724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9726 do
9727   IFS=$as_save_IFS
9728   test -z "$as_dir" && as_dir=.
9729     for ac_exec_ext in '' $ac_executable_extensions; do
9730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9731     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733     break 2
9734   fi
9735 done
9736   done
9737 IFS=$as_save_IFS
9738 
9739   ;;
9740 esac
9741 fi
9742 MV=$ac_cv_path_MV
9743 if test -n "$MV"; then
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9745 $as_echo "$MV" >&6; }
9746 else
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9749 fi
9750 
9751 
9752   test -n "$MV" && break
9753 done
9754 
9755     else
9756       # If it succeeded, then it was overridden by the user. We will use it
9757       # for the tool.
9758 
9759       # First remove it from the list of overridden variables, so we can test
9760       # for unknown variables in the end.
9761       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9762 
9763       # Check if we try to supply an empty value
9764       if test "x$MV" = x; then
9765         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9766 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9767         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9768 $as_echo_n "checking for MV... " >&6; }
9769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9770 $as_echo "disabled" >&6; }
9771       else
9772         # Check if the provided tool contains a complete path.
9773         tool_specified="$MV"
9774         tool_basename="${tool_specified##*/}"
9775         if test "x$tool_basename" = "x$tool_specified"; then
9776           # A command without a complete path is provided, search $PATH.
9777           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9778 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9779           # Extract the first word of "$tool_basename", so it can be a program name with args.
9780 set dummy $tool_basename; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_path_MV+:} false; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   case $MV in
9787   [\\/]* | ?:[\\/]*)
9788   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9789   ;;
9790   *)
9791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9793 do
9794   IFS=$as_save_IFS
9795   test -z "$as_dir" && as_dir=.
9796     for ac_exec_ext in '' $ac_executable_extensions; do
9797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800     break 2
9801   fi
9802 done
9803   done
9804 IFS=$as_save_IFS
9805 
9806   ;;
9807 esac
9808 fi
9809 MV=$ac_cv_path_MV
9810 if test -n "$MV"; then
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9812 $as_echo "$MV" >&6; }
9813 else
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816 fi
9817 
9818 
9819           if test "x$MV" = x; then
9820             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9821           fi
9822         else
9823           # Otherwise we believe it is a complete path. Use it as it is.
9824           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9825 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9826           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9827 $as_echo_n "checking for MV... " >&6; }
9828           if test ! -x "$tool_specified"; then
9829             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9830 $as_echo "not found" >&6; }
9831             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9832           fi
9833           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9834 $as_echo "$tool_specified" >&6; }
9835         fi
9836       fi
9837     fi
9838 
9839   fi
9840 
9841 
9842 
9843   if test "x$MV" = x; then
9844     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9845   fi
9846 
9847 
9848 
9849 
9850 
9851   # Publish this variable in the help.
9852 
9853 
9854   if [ -z "${NAWK+x}" ]; then
9855     # The variable is not set by user, try to locate tool using the code snippet
9856     for ac_prog in nawk gawk awk
9857 do
9858   # Extract the first word of "$ac_prog", so it can be a program name with args.
9859 set dummy $ac_prog; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_NAWK+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   case $NAWK in
9866   [\\/]* | ?:[\\/]*)
9867   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9868   ;;
9869   *)
9870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882   done
9883 IFS=$as_save_IFS
9884 
9885   ;;
9886 esac
9887 fi
9888 NAWK=$ac_cv_path_NAWK
9889 if test -n "$NAWK"; then
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9891 $as_echo "$NAWK" >&6; }
9892 else
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896 
9897 
9898   test -n "$NAWK" && break
9899 done
9900 
9901   else
9902     # The variable is set, but is it from the command line or the environment?
9903 
9904     # Try to remove the string !NAWK! from our list.
9905     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9906     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9907       # If it failed, the variable was not from the command line. Ignore it,
9908       # but warn the user (except for BASH, which is always set by the calling BASH).
9909       if test "xNAWK" != xBASH; then
9910         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9911 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9912       fi
9913       # Try to locate tool using the code snippet
9914       for ac_prog in nawk gawk awk
9915 do
9916   # Extract the first word of "$ac_prog", so it can be a program name with args.
9917 set dummy $ac_prog; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if ${ac_cv_path_NAWK+:} false; then :
9921   $as_echo_n "(cached) " >&6
9922 else
9923   case $NAWK in
9924   [\\/]* | ?:[\\/]*)
9925   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9926   ;;
9927   *)
9928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931   IFS=$as_save_IFS
9932   test -z "$as_dir" && as_dir=.
9933     for ac_exec_ext in '' $ac_executable_extensions; do
9934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937     break 2
9938   fi
9939 done
9940   done
9941 IFS=$as_save_IFS
9942 
9943   ;;
9944 esac
9945 fi
9946 NAWK=$ac_cv_path_NAWK
9947 if test -n "$NAWK"; then
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9949 $as_echo "$NAWK" >&6; }
9950 else
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9953 fi
9954 
9955 
9956   test -n "$NAWK" && break
9957 done
9958 
9959     else
9960       # If it succeeded, then it was overridden by the user. We will use it
9961       # for the tool.
9962 
9963       # First remove it from the list of overridden variables, so we can test
9964       # for unknown variables in the end.
9965       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9966 
9967       # Check if we try to supply an empty value
9968       if test "x$NAWK" = x; then
9969         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9970 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9972 $as_echo_n "checking for NAWK... " >&6; }
9973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9974 $as_echo "disabled" >&6; }
9975       else
9976         # Check if the provided tool contains a complete path.
9977         tool_specified="$NAWK"
9978         tool_basename="${tool_specified##*/}"
9979         if test "x$tool_basename" = "x$tool_specified"; then
9980           # A command without a complete path is provided, search $PATH.
9981           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9982 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9983           # Extract the first word of "$tool_basename", so it can be a program name with args.
9984 set dummy $tool_basename; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_NAWK+:} false; then :
9988   $as_echo_n "(cached) " >&6
9989 else
9990   case $NAWK in
9991   [\\/]* | ?:[\\/]*)
9992   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9993   ;;
9994   *)
9995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9997 do
9998   IFS=$as_save_IFS
9999   test -z "$as_dir" && as_dir=.
10000     for ac_exec_ext in '' $ac_executable_extensions; do
10001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004     break 2
10005   fi
10006 done
10007   done
10008 IFS=$as_save_IFS
10009 
10010   ;;
10011 esac
10012 fi
10013 NAWK=$ac_cv_path_NAWK
10014 if test -n "$NAWK"; then
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10016 $as_echo "$NAWK" >&6; }
10017 else
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021 
10022 
10023           if test "x$NAWK" = x; then
10024             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10025           fi
10026         else
10027           # Otherwise we believe it is a complete path. Use it as it is.
10028           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10029 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10030           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10031 $as_echo_n "checking for NAWK... " >&6; }
10032           if test ! -x "$tool_specified"; then
10033             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10034 $as_echo "not found" >&6; }
10035             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10036           fi
10037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10038 $as_echo "$tool_specified" >&6; }
10039         fi
10040       fi
10041     fi
10042 
10043   fi
10044 
10045 
10046 
10047   if test "x$NAWK" = x; then
10048     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10049   fi
10050 
10051 
10052 
10053 
10054 
10055   # Publish this variable in the help.
10056 
10057 
10058   if [ -z "${PRINTF+x}" ]; then
10059     # The variable is not set by user, try to locate tool using the code snippet
10060     for ac_prog in printf
10061 do
10062   # Extract the first word of "$ac_prog", so it can be a program name with args.
10063 set dummy $ac_prog; ac_word=$2
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 $as_echo_n "checking for $ac_word... " >&6; }
10066 if ${ac_cv_path_PRINTF+:} false; then :
10067   $as_echo_n "(cached) " >&6
10068 else
10069   case $PRINTF in
10070   [\\/]* | ?:[\\/]*)
10071   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10072   ;;
10073   *)
10074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077   IFS=$as_save_IFS
10078   test -z "$as_dir" && as_dir=.
10079     for ac_exec_ext in '' $ac_executable_extensions; do
10080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083     break 2
10084   fi
10085 done
10086   done
10087 IFS=$as_save_IFS
10088 
10089   ;;
10090 esac
10091 fi
10092 PRINTF=$ac_cv_path_PRINTF
10093 if test -n "$PRINTF"; then
10094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10095 $as_echo "$PRINTF" >&6; }
10096 else
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 fi
10100 
10101 
10102   test -n "$PRINTF" && break
10103 done
10104 
10105   else
10106     # The variable is set, but is it from the command line or the environment?
10107 
10108     # Try to remove the string !PRINTF! from our list.
10109     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10110     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10111       # If it failed, the variable was not from the command line. Ignore it,
10112       # but warn the user (except for BASH, which is always set by the calling BASH).
10113       if test "xPRINTF" != xBASH; then
10114         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10115 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10116       fi
10117       # Try to locate tool using the code snippet
10118       for ac_prog in printf
10119 do
10120   # Extract the first word of "$ac_prog", so it can be a program name with args.
10121 set dummy $ac_prog; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if ${ac_cv_path_PRINTF+:} false; then :
10125   $as_echo_n "(cached) " >&6
10126 else
10127   case $PRINTF in
10128   [\\/]* | ?:[\\/]*)
10129   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10130   ;;
10131   *)
10132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10134 do
10135   IFS=$as_save_IFS
10136   test -z "$as_dir" && as_dir=.
10137     for ac_exec_ext in '' $ac_executable_extensions; do
10138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10139     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141     break 2
10142   fi
10143 done
10144   done
10145 IFS=$as_save_IFS
10146 
10147   ;;
10148 esac
10149 fi
10150 PRINTF=$ac_cv_path_PRINTF
10151 if test -n "$PRINTF"; then
10152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10153 $as_echo "$PRINTF" >&6; }
10154 else
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10157 fi
10158 
10159 
10160   test -n "$PRINTF" && break
10161 done
10162 
10163     else
10164       # If it succeeded, then it was overridden by the user. We will use it
10165       # for the tool.
10166 
10167       # First remove it from the list of overridden variables, so we can test
10168       # for unknown variables in the end.
10169       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10170 
10171       # Check if we try to supply an empty value
10172       if test "x$PRINTF" = x; then
10173         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10174 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10175         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10176 $as_echo_n "checking for PRINTF... " >&6; }
10177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10178 $as_echo "disabled" >&6; }
10179       else
10180         # Check if the provided tool contains a complete path.
10181         tool_specified="$PRINTF"
10182         tool_basename="${tool_specified##*/}"
10183         if test "x$tool_basename" = "x$tool_specified"; then
10184           # A command without a complete path is provided, search $PATH.
10185           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10186 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10187           # Extract the first word of "$tool_basename", so it can be a program name with args.
10188 set dummy $tool_basename; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_PRINTF+:} false; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   case $PRINTF in
10195   [\\/]* | ?:[\\/]*)
10196   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10197   ;;
10198   *)
10199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202   IFS=$as_save_IFS
10203   test -z "$as_dir" && as_dir=.
10204     for ac_exec_ext in '' $ac_executable_extensions; do
10205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208     break 2
10209   fi
10210 done
10211   done
10212 IFS=$as_save_IFS
10213 
10214   ;;
10215 esac
10216 fi
10217 PRINTF=$ac_cv_path_PRINTF
10218 if test -n "$PRINTF"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10220 $as_echo "$PRINTF" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225 
10226 
10227           if test "x$PRINTF" = x; then
10228             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10229           fi
10230         else
10231           # Otherwise we believe it is a complete path. Use it as it is.
10232           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10233 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10234           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10235 $as_echo_n "checking for PRINTF... " >&6; }
10236           if test ! -x "$tool_specified"; then
10237             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10238 $as_echo "not found" >&6; }
10239             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10240           fi
10241           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10242 $as_echo "$tool_specified" >&6; }
10243         fi
10244       fi
10245     fi
10246 
10247   fi
10248 
10249 
10250 
10251   if test "x$PRINTF" = x; then
10252     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10253   fi
10254 
10255 
10256 
10257 
10258 
10259   # Publish this variable in the help.
10260 
10261 
10262   if [ -z "${RM+x}" ]; then
10263     # The variable is not set by user, try to locate tool using the code snippet
10264     for ac_prog in rm
10265 do
10266   # Extract the first word of "$ac_prog", so it can be a program name with args.
10267 set dummy $ac_prog; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_path_RM+:} false; then :
10271   $as_echo_n "(cached) " >&6
10272 else
10273   case $RM in
10274   [\\/]* | ?:[\\/]*)
10275   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10276   ;;
10277   *)
10278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10280 do
10281   IFS=$as_save_IFS
10282   test -z "$as_dir" && as_dir=.
10283     for ac_exec_ext in '' $ac_executable_extensions; do
10284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287     break 2
10288   fi
10289 done
10290   done
10291 IFS=$as_save_IFS
10292 
10293   ;;
10294 esac
10295 fi
10296 RM=$ac_cv_path_RM
10297 if test -n "$RM"; then
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10299 $as_echo "$RM" >&6; }
10300 else
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10303 fi
10304 
10305 
10306   test -n "$RM" && break
10307 done
10308 
10309   else
10310     # The variable is set, but is it from the command line or the environment?
10311 
10312     # Try to remove the string !RM! from our list.
10313     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10314     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10315       # If it failed, the variable was not from the command line. Ignore it,
10316       # but warn the user (except for BASH, which is always set by the calling BASH).
10317       if test "xRM" != xBASH; then
10318         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10319 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10320       fi
10321       # Try to locate tool using the code snippet
10322       for ac_prog in rm
10323 do
10324   # Extract the first word of "$ac_prog", so it can be a program name with args.
10325 set dummy $ac_prog; ac_word=$2
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327 $as_echo_n "checking for $ac_word... " >&6; }
10328 if ${ac_cv_path_RM+:} false; then :
10329   $as_echo_n "(cached) " >&6
10330 else
10331   case $RM in
10332   [\\/]* | ?:[\\/]*)
10333   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10334   ;;
10335   *)
10336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10338 do
10339   IFS=$as_save_IFS
10340   test -z "$as_dir" && as_dir=.
10341     for ac_exec_ext in '' $ac_executable_extensions; do
10342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10343     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345     break 2
10346   fi
10347 done
10348   done
10349 IFS=$as_save_IFS
10350 
10351   ;;
10352 esac
10353 fi
10354 RM=$ac_cv_path_RM
10355 if test -n "$RM"; then
10356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10357 $as_echo "$RM" >&6; }
10358 else
10359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10361 fi
10362 
10363 
10364   test -n "$RM" && break
10365 done
10366 
10367     else
10368       # If it succeeded, then it was overridden by the user. We will use it
10369       # for the tool.
10370 
10371       # First remove it from the list of overridden variables, so we can test
10372       # for unknown variables in the end.
10373       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10374 
10375       # Check if we try to supply an empty value
10376       if test "x$RM" = x; then
10377         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10378 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10379         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10380 $as_echo_n "checking for RM... " >&6; }
10381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10382 $as_echo "disabled" >&6; }
10383       else
10384         # Check if the provided tool contains a complete path.
10385         tool_specified="$RM"
10386         tool_basename="${tool_specified##*/}"
10387         if test "x$tool_basename" = "x$tool_specified"; then
10388           # A command without a complete path is provided, search $PATH.
10389           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10390 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10391           # Extract the first word of "$tool_basename", so it can be a program name with args.
10392 set dummy $tool_basename; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_path_RM+:} false; then :
10396   $as_echo_n "(cached) " >&6
10397 else
10398   case $RM in
10399   [\\/]* | ?:[\\/]*)
10400   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10401   ;;
10402   *)
10403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10405 do
10406   IFS=$as_save_IFS
10407   test -z "$as_dir" && as_dir=.
10408     for ac_exec_ext in '' $ac_executable_extensions; do
10409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412     break 2
10413   fi
10414 done
10415   done
10416 IFS=$as_save_IFS
10417 
10418   ;;
10419 esac
10420 fi
10421 RM=$ac_cv_path_RM
10422 if test -n "$RM"; then
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10424 $as_echo "$RM" >&6; }
10425 else
10426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10428 fi
10429 
10430 
10431           if test "x$RM" = x; then
10432             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10433           fi
10434         else
10435           # Otherwise we believe it is a complete path. Use it as it is.
10436           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10437 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10438           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10439 $as_echo_n "checking for RM... " >&6; }
10440           if test ! -x "$tool_specified"; then
10441             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10442 $as_echo "not found" >&6; }
10443             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10444           fi
10445           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10446 $as_echo "$tool_specified" >&6; }
10447         fi
10448       fi
10449     fi
10450 
10451   fi
10452 
10453 
10454 
10455   if test "x$RM" = x; then
10456     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10457   fi
10458 
10459 
10460 
10461 
10462 
10463   # Publish this variable in the help.
10464 
10465 
10466   if [ -z "${RMDIR+x}" ]; then
10467     # The variable is not set by user, try to locate tool using the code snippet
10468     for ac_prog in rmdir
10469 do
10470   # Extract the first word of "$ac_prog", so it can be a program name with args.
10471 set dummy $ac_prog; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if ${ac_cv_path_RMDIR+:} false; then :
10475   $as_echo_n "(cached) " >&6
10476 else
10477   case $RMDIR in
10478   [\\/]* | ?:[\\/]*)
10479   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10480   ;;
10481   *)
10482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485   IFS=$as_save_IFS
10486   test -z "$as_dir" && as_dir=.
10487     for ac_exec_ext in '' $ac_executable_extensions; do
10488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10489     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492   fi
10493 done
10494   done
10495 IFS=$as_save_IFS
10496 
10497   ;;
10498 esac
10499 fi
10500 RMDIR=$ac_cv_path_RMDIR
10501 if test -n "$RMDIR"; then
10502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10503 $as_echo "$RMDIR" >&6; }
10504 else
10505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10507 fi
10508 
10509 
10510   test -n "$RMDIR" && break
10511 done
10512 
10513   else
10514     # The variable is set, but is it from the command line or the environment?
10515 
10516     # Try to remove the string !RMDIR! from our list.
10517     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10518     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10519       # If it failed, the variable was not from the command line. Ignore it,
10520       # but warn the user (except for BASH, which is always set by the calling BASH).
10521       if test "xRMDIR" != xBASH; then
10522         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10523 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10524       fi
10525       # Try to locate tool using the code snippet
10526       for ac_prog in rmdir
10527 do
10528   # Extract the first word of "$ac_prog", so it can be a program name with args.
10529 set dummy $ac_prog; ac_word=$2
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10531 $as_echo_n "checking for $ac_word... " >&6; }
10532 if ${ac_cv_path_RMDIR+:} false; then :
10533   $as_echo_n "(cached) " >&6
10534 else
10535   case $RMDIR in
10536   [\\/]* | ?:[\\/]*)
10537   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10538   ;;
10539   *)
10540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10542 do
10543   IFS=$as_save_IFS
10544   test -z "$as_dir" && as_dir=.
10545     for ac_exec_ext in '' $ac_executable_extensions; do
10546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549     break 2
10550   fi
10551 done
10552   done
10553 IFS=$as_save_IFS
10554 
10555   ;;
10556 esac
10557 fi
10558 RMDIR=$ac_cv_path_RMDIR
10559 if test -n "$RMDIR"; then
10560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10561 $as_echo "$RMDIR" >&6; }
10562 else
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10565 fi
10566 
10567 
10568   test -n "$RMDIR" && break
10569 done
10570 
10571     else
10572       # If it succeeded, then it was overridden by the user. We will use it
10573       # for the tool.
10574 
10575       # First remove it from the list of overridden variables, so we can test
10576       # for unknown variables in the end.
10577       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10578 
10579       # Check if we try to supply an empty value
10580       if test "x$RMDIR" = x; then
10581         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10582 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10584 $as_echo_n "checking for RMDIR... " >&6; }
10585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10586 $as_echo "disabled" >&6; }
10587       else
10588         # Check if the provided tool contains a complete path.
10589         tool_specified="$RMDIR"
10590         tool_basename="${tool_specified##*/}"
10591         if test "x$tool_basename" = "x$tool_specified"; then
10592           # A command without a complete path is provided, search $PATH.
10593           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10594 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10595           # Extract the first word of "$tool_basename", so it can be a program name with args.
10596 set dummy $tool_basename; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_RMDIR+:} false; then :
10600   $as_echo_n "(cached) " >&6
10601 else
10602   case $RMDIR in
10603   [\\/]* | ?:[\\/]*)
10604   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10605   ;;
10606   *)
10607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10609 do
10610   IFS=$as_save_IFS
10611   test -z "$as_dir" && as_dir=.
10612     for ac_exec_ext in '' $ac_executable_extensions; do
10613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616     break 2
10617   fi
10618 done
10619   done
10620 IFS=$as_save_IFS
10621 
10622   ;;
10623 esac
10624 fi
10625 RMDIR=$ac_cv_path_RMDIR
10626 if test -n "$RMDIR"; then
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10628 $as_echo "$RMDIR" >&6; }
10629 else
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 fi
10633 
10634 
10635           if test "x$RMDIR" = x; then
10636             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10637           fi
10638         else
10639           # Otherwise we believe it is a complete path. Use it as it is.
10640           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10641 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10642           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10643 $as_echo_n "checking for RMDIR... " >&6; }
10644           if test ! -x "$tool_specified"; then
10645             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10646 $as_echo "not found" >&6; }
10647             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10648           fi
10649           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10650 $as_echo "$tool_specified" >&6; }
10651         fi
10652       fi
10653     fi
10654 
10655   fi
10656 
10657 
10658 
10659   if test "x$RMDIR" = x; then
10660     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10661   fi
10662 
10663 
10664 
10665 
10666 
10667   # Publish this variable in the help.
10668 
10669 
10670   if [ -z "${SH+x}" ]; then
10671     # The variable is not set by user, try to locate tool using the code snippet
10672     for ac_prog in sh
10673 do
10674   # Extract the first word of "$ac_prog", so it can be a program name with args.
10675 set dummy $ac_prog; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_path_SH+:} false; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   case $SH in
10682   [\\/]* | ?:[\\/]*)
10683   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10684   ;;
10685   *)
10686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689   IFS=$as_save_IFS
10690   test -z "$as_dir" && as_dir=.
10691     for ac_exec_ext in '' $ac_executable_extensions; do
10692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695     break 2
10696   fi
10697 done
10698   done
10699 IFS=$as_save_IFS
10700 
10701   ;;
10702 esac
10703 fi
10704 SH=$ac_cv_path_SH
10705 if test -n "$SH"; then
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10707 $as_echo "$SH" >&6; }
10708 else
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10711 fi
10712 
10713 
10714   test -n "$SH" && break
10715 done
10716 
10717   else
10718     # The variable is set, but is it from the command line or the environment?
10719 
10720     # Try to remove the string !SH! from our list.
10721     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10722     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10723       # If it failed, the variable was not from the command line. Ignore it,
10724       # but warn the user (except for BASH, which is always set by the calling BASH).
10725       if test "xSH" != xBASH; then
10726         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10727 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10728       fi
10729       # Try to locate tool using the code snippet
10730       for ac_prog in sh
10731 do
10732   # Extract the first word of "$ac_prog", so it can be a program name with args.
10733 set dummy $ac_prog; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if ${ac_cv_path_SH+:} false; then :
10737   $as_echo_n "(cached) " >&6
10738 else
10739   case $SH in
10740   [\\/]* | ?:[\\/]*)
10741   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10742   ;;
10743   *)
10744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745 for as_dir in $PATH
10746 do
10747   IFS=$as_save_IFS
10748   test -z "$as_dir" && as_dir=.
10749     for ac_exec_ext in '' $ac_executable_extensions; do
10750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10751     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753     break 2
10754   fi
10755 done
10756   done
10757 IFS=$as_save_IFS
10758 
10759   ;;
10760 esac
10761 fi
10762 SH=$ac_cv_path_SH
10763 if test -n "$SH"; then
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10765 $as_echo "$SH" >&6; }
10766 else
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 fi
10770 
10771 
10772   test -n "$SH" && break
10773 done
10774 
10775     else
10776       # If it succeeded, then it was overridden by the user. We will use it
10777       # for the tool.
10778 
10779       # First remove it from the list of overridden variables, so we can test
10780       # for unknown variables in the end.
10781       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10782 
10783       # Check if we try to supply an empty value
10784       if test "x$SH" = x; then
10785         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10786 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10788 $as_echo_n "checking for SH... " >&6; }
10789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10790 $as_echo "disabled" >&6; }
10791       else
10792         # Check if the provided tool contains a complete path.
10793         tool_specified="$SH"
10794         tool_basename="${tool_specified##*/}"
10795         if test "x$tool_basename" = "x$tool_specified"; then
10796           # A command without a complete path is provided, search $PATH.
10797           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10798 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10799           # Extract the first word of "$tool_basename", so it can be a program name with args.
10800 set dummy $tool_basename; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_path_SH+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   case $SH in
10807   [\\/]* | ?:[\\/]*)
10808   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10809   ;;
10810   *)
10811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10813 do
10814   IFS=$as_save_IFS
10815   test -z "$as_dir" && as_dir=.
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825 
10826   ;;
10827 esac
10828 fi
10829 SH=$ac_cv_path_SH
10830 if test -n "$SH"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10832 $as_echo "$SH" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837 
10838 
10839           if test "x$SH" = x; then
10840             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10841           fi
10842         else
10843           # Otherwise we believe it is a complete path. Use it as it is.
10844           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10845 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10846           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10847 $as_echo_n "checking for SH... " >&6; }
10848           if test ! -x "$tool_specified"; then
10849             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10850 $as_echo "not found" >&6; }
10851             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10852           fi
10853           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10854 $as_echo "$tool_specified" >&6; }
10855         fi
10856       fi
10857     fi
10858 
10859   fi
10860 
10861 
10862 
10863   if test "x$SH" = x; then
10864     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10865   fi
10866 
10867 
10868 
10869 
10870 
10871   # Publish this variable in the help.
10872 
10873 
10874   if [ -z "${SORT+x}" ]; then
10875     # The variable is not set by user, try to locate tool using the code snippet
10876     for ac_prog in sort
10877 do
10878   # Extract the first word of "$ac_prog", so it can be a program name with args.
10879 set dummy $ac_prog; ac_word=$2
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881 $as_echo_n "checking for $ac_word... " >&6; }
10882 if ${ac_cv_path_SORT+:} false; then :
10883   $as_echo_n "(cached) " >&6
10884 else
10885   case $SORT in
10886   [\\/]* | ?:[\\/]*)
10887   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10888   ;;
10889   *)
10890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891 for as_dir in $PATH
10892 do
10893   IFS=$as_save_IFS
10894   test -z "$as_dir" && as_dir=.
10895     for ac_exec_ext in '' $ac_executable_extensions; do
10896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10897     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10899     break 2
10900   fi
10901 done
10902   done
10903 IFS=$as_save_IFS
10904 
10905   ;;
10906 esac
10907 fi
10908 SORT=$ac_cv_path_SORT
10909 if test -n "$SORT"; then
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10911 $as_echo "$SORT" >&6; }
10912 else
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915 fi
10916 
10917 
10918   test -n "$SORT" && break
10919 done
10920 
10921   else
10922     # The variable is set, but is it from the command line or the environment?
10923 
10924     # Try to remove the string !SORT! from our list.
10925     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10926     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10927       # If it failed, the variable was not from the command line. Ignore it,
10928       # but warn the user (except for BASH, which is always set by the calling BASH).
10929       if test "xSORT" != xBASH; then
10930         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10931 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10932       fi
10933       # Try to locate tool using the code snippet
10934       for ac_prog in sort
10935 do
10936   # Extract the first word of "$ac_prog", so it can be a program name with args.
10937 set dummy $ac_prog; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_path_SORT+:} false; then :
10941   $as_echo_n "(cached) " >&6
10942 else
10943   case $SORT in
10944   [\\/]* | ?:[\\/]*)
10945   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10946   ;;
10947   *)
10948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10950 do
10951   IFS=$as_save_IFS
10952   test -z "$as_dir" && as_dir=.
10953     for ac_exec_ext in '' $ac_executable_extensions; do
10954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10955     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957     break 2
10958   fi
10959 done
10960   done
10961 IFS=$as_save_IFS
10962 
10963   ;;
10964 esac
10965 fi
10966 SORT=$ac_cv_path_SORT
10967 if test -n "$SORT"; then
10968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10969 $as_echo "$SORT" >&6; }
10970 else
10971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 fi
10974 
10975 
10976   test -n "$SORT" && break
10977 done
10978 
10979     else
10980       # If it succeeded, then it was overridden by the user. We will use it
10981       # for the tool.
10982 
10983       # First remove it from the list of overridden variables, so we can test
10984       # for unknown variables in the end.
10985       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10986 
10987       # Check if we try to supply an empty value
10988       if test "x$SORT" = x; then
10989         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10990 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10992 $as_echo_n "checking for SORT... " >&6; }
10993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10994 $as_echo "disabled" >&6; }
10995       else
10996         # Check if the provided tool contains a complete path.
10997         tool_specified="$SORT"
10998         tool_basename="${tool_specified##*/}"
10999         if test "x$tool_basename" = "x$tool_specified"; then
11000           # A command without a complete path is provided, search $PATH.
11001           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11002 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11003           # Extract the first word of "$tool_basename", so it can be a program name with args.
11004 set dummy $tool_basename; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_path_SORT+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010   case $SORT in
11011   [\\/]* | ?:[\\/]*)
11012   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11013   ;;
11014   *)
11015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11017 do
11018   IFS=$as_save_IFS
11019   test -z "$as_dir" && as_dir=.
11020     for ac_exec_ext in '' $ac_executable_extensions; do
11021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024     break 2
11025   fi
11026 done
11027   done
11028 IFS=$as_save_IFS
11029 
11030   ;;
11031 esac
11032 fi
11033 SORT=$ac_cv_path_SORT
11034 if test -n "$SORT"; then
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11036 $as_echo "$SORT" >&6; }
11037 else
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 fi
11041 
11042 
11043           if test "x$SORT" = x; then
11044             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11045           fi
11046         else
11047           # Otherwise we believe it is a complete path. Use it as it is.
11048           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11049 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11051 $as_echo_n "checking for SORT... " >&6; }
11052           if test ! -x "$tool_specified"; then
11053             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11054 $as_echo "not found" >&6; }
11055             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11056           fi
11057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11058 $as_echo "$tool_specified" >&6; }
11059         fi
11060       fi
11061     fi
11062 
11063   fi
11064 
11065 
11066 
11067   if test "x$SORT" = x; then
11068     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11069   fi
11070 
11071 
11072 
11073 
11074 
11075   # Publish this variable in the help.
11076 
11077 
11078   if [ -z "${TAIL+x}" ]; then
11079     # The variable is not set by user, try to locate tool using the code snippet
11080     for ac_prog in tail
11081 do
11082   # Extract the first word of "$ac_prog", so it can be a program name with args.
11083 set dummy $ac_prog; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_TAIL+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   case $TAIL in
11090   [\\/]* | ?:[\\/]*)
11091   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11092   ;;
11093   *)
11094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097   IFS=$as_save_IFS
11098   test -z "$as_dir" && as_dir=.
11099     for ac_exec_ext in '' $ac_executable_extensions; do
11100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11101     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103     break 2
11104   fi
11105 done
11106   done
11107 IFS=$as_save_IFS
11108 
11109   ;;
11110 esac
11111 fi
11112 TAIL=$ac_cv_path_TAIL
11113 if test -n "$TAIL"; then
11114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11115 $as_echo "$TAIL" >&6; }
11116 else
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11119 fi
11120 
11121 
11122   test -n "$TAIL" && break
11123 done
11124 
11125   else
11126     # The variable is set, but is it from the command line or the environment?
11127 
11128     # Try to remove the string !TAIL! from our list.
11129     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11130     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11131       # If it failed, the variable was not from the command line. Ignore it,
11132       # but warn the user (except for BASH, which is always set by the calling BASH).
11133       if test "xTAIL" != xBASH; then
11134         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11135 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11136       fi
11137       # Try to locate tool using the code snippet
11138       for ac_prog in tail
11139 do
11140   # Extract the first word of "$ac_prog", so it can be a program name with args.
11141 set dummy $ac_prog; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if ${ac_cv_path_TAIL+:} false; then :
11145   $as_echo_n "(cached) " >&6
11146 else
11147   case $TAIL in
11148   [\\/]* | ?:[\\/]*)
11149   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11150   ;;
11151   *)
11152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11154 do
11155   IFS=$as_save_IFS
11156   test -z "$as_dir" && as_dir=.
11157     for ac_exec_ext in '' $ac_executable_extensions; do
11158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161     break 2
11162   fi
11163 done
11164   done
11165 IFS=$as_save_IFS
11166 
11167   ;;
11168 esac
11169 fi
11170 TAIL=$ac_cv_path_TAIL
11171 if test -n "$TAIL"; then
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11173 $as_echo "$TAIL" >&6; }
11174 else
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178 
11179 
11180   test -n "$TAIL" && break
11181 done
11182 
11183     else
11184       # If it succeeded, then it was overridden by the user. We will use it
11185       # for the tool.
11186 
11187       # First remove it from the list of overridden variables, so we can test
11188       # for unknown variables in the end.
11189       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11190 
11191       # Check if we try to supply an empty value
11192       if test "x$TAIL" = x; then
11193         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11194 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11196 $as_echo_n "checking for TAIL... " >&6; }
11197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11198 $as_echo "disabled" >&6; }
11199       else
11200         # Check if the provided tool contains a complete path.
11201         tool_specified="$TAIL"
11202         tool_basename="${tool_specified##*/}"
11203         if test "x$tool_basename" = "x$tool_specified"; then
11204           # A command without a complete path is provided, search $PATH.
11205           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11206 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11207           # Extract the first word of "$tool_basename", so it can be a program name with args.
11208 set dummy $tool_basename; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_path_TAIL+:} false; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   case $TAIL in
11215   [\\/]* | ?:[\\/]*)
11216   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11217   ;;
11218   *)
11219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224     for ac_exec_ext in '' $ac_executable_extensions; do
11225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231   done
11232 IFS=$as_save_IFS
11233 
11234   ;;
11235 esac
11236 fi
11237 TAIL=$ac_cv_path_TAIL
11238 if test -n "$TAIL"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11240 $as_echo "$TAIL" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245 
11246 
11247           if test "x$TAIL" = x; then
11248             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11249           fi
11250         else
11251           # Otherwise we believe it is a complete path. Use it as it is.
11252           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11253 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11254           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11255 $as_echo_n "checking for TAIL... " >&6; }
11256           if test ! -x "$tool_specified"; then
11257             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11258 $as_echo "not found" >&6; }
11259             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11260           fi
11261           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11262 $as_echo "$tool_specified" >&6; }
11263         fi
11264       fi
11265     fi
11266 
11267   fi
11268 
11269 
11270 
11271   if test "x$TAIL" = x; then
11272     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11273   fi
11274 
11275 
11276 
11277 
11278 
11279   # Publish this variable in the help.
11280 
11281 
11282   if [ -z "${TAR+x}" ]; then
11283     # The variable is not set by user, try to locate tool using the code snippet
11284     for ac_prog in gtar tar
11285 do
11286   # Extract the first word of "$ac_prog", so it can be a program name with args.
11287 set dummy $ac_prog; ac_word=$2
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289 $as_echo_n "checking for $ac_word... " >&6; }
11290 if ${ac_cv_path_TAR+:} false; then :
11291   $as_echo_n "(cached) " >&6
11292 else
11293   case $TAR in
11294   [\\/]* | ?:[\\/]*)
11295   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11296   ;;
11297   *)
11298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11299 for as_dir in $PATH
11300 do
11301   IFS=$as_save_IFS
11302   test -z "$as_dir" && as_dir=.
11303     for ac_exec_ext in '' $ac_executable_extensions; do
11304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11305     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307     break 2
11308   fi
11309 done
11310   done
11311 IFS=$as_save_IFS
11312 
11313   ;;
11314 esac
11315 fi
11316 TAR=$ac_cv_path_TAR
11317 if test -n "$TAR"; then
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11319 $as_echo "$TAR" >&6; }
11320 else
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324 
11325 
11326   test -n "$TAR" && break
11327 done
11328 
11329   else
11330     # The variable is set, but is it from the command line or the environment?
11331 
11332     # Try to remove the string !TAR! from our list.
11333     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11334     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11335       # If it failed, the variable was not from the command line. Ignore it,
11336       # but warn the user (except for BASH, which is always set by the calling BASH).
11337       if test "xTAR" != xBASH; then
11338         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11339 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11340       fi
11341       # Try to locate tool using the code snippet
11342       for ac_prog in gtar tar
11343 do
11344   # Extract the first word of "$ac_prog", so it can be a program name with args.
11345 set dummy $ac_prog; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_path_TAR+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   case $TAR in
11352   [\\/]* | ?:[\\/]*)
11353   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11354   ;;
11355   *)
11356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359   IFS=$as_save_IFS
11360   test -z "$as_dir" && as_dir=.
11361     for ac_exec_ext in '' $ac_executable_extensions; do
11362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365     break 2
11366   fi
11367 done
11368   done
11369 IFS=$as_save_IFS
11370 
11371   ;;
11372 esac
11373 fi
11374 TAR=$ac_cv_path_TAR
11375 if test -n "$TAR"; then
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11377 $as_echo "$TAR" >&6; }
11378 else
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11381 fi
11382 
11383 
11384   test -n "$TAR" && break
11385 done
11386 
11387     else
11388       # If it succeeded, then it was overridden by the user. We will use it
11389       # for the tool.
11390 
11391       # First remove it from the list of overridden variables, so we can test
11392       # for unknown variables in the end.
11393       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11394 
11395       # Check if we try to supply an empty value
11396       if test "x$TAR" = x; then
11397         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11398 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11399         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11400 $as_echo_n "checking for TAR... " >&6; }
11401         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11402 $as_echo "disabled" >&6; }
11403       else
11404         # Check if the provided tool contains a complete path.
11405         tool_specified="$TAR"
11406         tool_basename="${tool_specified##*/}"
11407         if test "x$tool_basename" = "x$tool_specified"; then
11408           # A command without a complete path is provided, search $PATH.
11409           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11410 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11411           # Extract the first word of "$tool_basename", so it can be a program name with args.
11412 set dummy $tool_basename; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_path_TAR+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   case $TAR in
11419   [\\/]* | ?:[\\/]*)
11420   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11421   ;;
11422   *)
11423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11425 do
11426   IFS=$as_save_IFS
11427   test -z "$as_dir" && as_dir=.
11428     for ac_exec_ext in '' $ac_executable_extensions; do
11429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432     break 2
11433   fi
11434 done
11435   done
11436 IFS=$as_save_IFS
11437 
11438   ;;
11439 esac
11440 fi
11441 TAR=$ac_cv_path_TAR
11442 if test -n "$TAR"; then
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11444 $as_echo "$TAR" >&6; }
11445 else
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11448 fi
11449 
11450 
11451           if test "x$TAR" = x; then
11452             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11453           fi
11454         else
11455           # Otherwise we believe it is a complete path. Use it as it is.
11456           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11457 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11458           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11459 $as_echo_n "checking for TAR... " >&6; }
11460           if test ! -x "$tool_specified"; then
11461             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11462 $as_echo "not found" >&6; }
11463             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11464           fi
11465           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11466 $as_echo "$tool_specified" >&6; }
11467         fi
11468       fi
11469     fi
11470 
11471   fi
11472 
11473 
11474 
11475   if test "x$TAR" = x; then
11476     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11477   fi
11478 
11479 
11480 
11481 
11482 
11483   # Publish this variable in the help.
11484 
11485 
11486   if [ -z "${TEE+x}" ]; then
11487     # The variable is not set by user, try to locate tool using the code snippet
11488     for ac_prog in tee
11489 do
11490   # Extract the first word of "$ac_prog", so it can be a program name with args.
11491 set dummy $ac_prog; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if ${ac_cv_path_TEE+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   case $TEE in
11498   [\\/]* | ?:[\\/]*)
11499   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11500   ;;
11501   *)
11502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505   IFS=$as_save_IFS
11506   test -z "$as_dir" && as_dir=.
11507     for ac_exec_ext in '' $ac_executable_extensions; do
11508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511     break 2
11512   fi
11513 done
11514   done
11515 IFS=$as_save_IFS
11516 
11517   ;;
11518 esac
11519 fi
11520 TEE=$ac_cv_path_TEE
11521 if test -n "$TEE"; then
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11523 $as_echo "$TEE" >&6; }
11524 else
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528 
11529 
11530   test -n "$TEE" && break
11531 done
11532 
11533   else
11534     # The variable is set, but is it from the command line or the environment?
11535 
11536     # Try to remove the string !TEE! from our list.
11537     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11538     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11539       # If it failed, the variable was not from the command line. Ignore it,
11540       # but warn the user (except for BASH, which is always set by the calling BASH).
11541       if test "xTEE" != xBASH; then
11542         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11543 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11544       fi
11545       # Try to locate tool using the code snippet
11546       for ac_prog in tee
11547 do
11548   # Extract the first word of "$ac_prog", so it can be a program name with args.
11549 set dummy $ac_prog; ac_word=$2
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if ${ac_cv_path_TEE+:} false; then :
11553   $as_echo_n "(cached) " >&6
11554 else
11555   case $TEE in
11556   [\\/]* | ?:[\\/]*)
11557   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11558   ;;
11559   *)
11560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11562 do
11563   IFS=$as_save_IFS
11564   test -z "$as_dir" && as_dir=.
11565     for ac_exec_ext in '' $ac_executable_extensions; do
11566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569     break 2
11570   fi
11571 done
11572   done
11573 IFS=$as_save_IFS
11574 
11575   ;;
11576 esac
11577 fi
11578 TEE=$ac_cv_path_TEE
11579 if test -n "$TEE"; then
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11581 $as_echo "$TEE" >&6; }
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584 $as_echo "no" >&6; }
11585 fi
11586 
11587 
11588   test -n "$TEE" && break
11589 done
11590 
11591     else
11592       # If it succeeded, then it was overridden by the user. We will use it
11593       # for the tool.
11594 
11595       # First remove it from the list of overridden variables, so we can test
11596       # for unknown variables in the end.
11597       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11598 
11599       # Check if we try to supply an empty value
11600       if test "x$TEE" = x; then
11601         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11602 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11604 $as_echo_n "checking for TEE... " >&6; }
11605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11606 $as_echo "disabled" >&6; }
11607       else
11608         # Check if the provided tool contains a complete path.
11609         tool_specified="$TEE"
11610         tool_basename="${tool_specified##*/}"
11611         if test "x$tool_basename" = "x$tool_specified"; then
11612           # A command without a complete path is provided, search $PATH.
11613           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11614 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11615           # Extract the first word of "$tool_basename", so it can be a program name with args.
11616 set dummy $tool_basename; ac_word=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if ${ac_cv_path_TEE+:} false; then :
11620   $as_echo_n "(cached) " >&6
11621 else
11622   case $TEE in
11623   [\\/]* | ?:[\\/]*)
11624   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11625   ;;
11626   *)
11627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630   IFS=$as_save_IFS
11631   test -z "$as_dir" && as_dir=.
11632     for ac_exec_ext in '' $ac_executable_extensions; do
11633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636     break 2
11637   fi
11638 done
11639   done
11640 IFS=$as_save_IFS
11641 
11642   ;;
11643 esac
11644 fi
11645 TEE=$ac_cv_path_TEE
11646 if test -n "$TEE"; then
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11648 $as_echo "$TEE" >&6; }
11649 else
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11652 fi
11653 
11654 
11655           if test "x$TEE" = x; then
11656             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11657           fi
11658         else
11659           # Otherwise we believe it is a complete path. Use it as it is.
11660           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11661 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11662           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11663 $as_echo_n "checking for TEE... " >&6; }
11664           if test ! -x "$tool_specified"; then
11665             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11666 $as_echo "not found" >&6; }
11667             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11668           fi
11669           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11670 $as_echo "$tool_specified" >&6; }
11671         fi
11672       fi
11673     fi
11674 
11675   fi
11676 
11677 
11678 
11679   if test "x$TEE" = x; then
11680     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11681   fi
11682 
11683 
11684 
11685 
11686 
11687   # Publish this variable in the help.
11688 
11689 
11690   if [ -z "${TOUCH+x}" ]; then
11691     # The variable is not set by user, try to locate tool using the code snippet
11692     for ac_prog in touch
11693 do
11694   # Extract the first word of "$ac_prog", so it can be a program name with args.
11695 set dummy $ac_prog; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_path_TOUCH+:} false; then :
11699   $as_echo_n "(cached) " >&6
11700 else
11701   case $TOUCH in
11702   [\\/]* | ?:[\\/]*)
11703   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11704   ;;
11705   *)
11706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709   IFS=$as_save_IFS
11710   test -z "$as_dir" && as_dir=.
11711     for ac_exec_ext in '' $ac_executable_extensions; do
11712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715     break 2
11716   fi
11717 done
11718   done
11719 IFS=$as_save_IFS
11720 
11721   ;;
11722 esac
11723 fi
11724 TOUCH=$ac_cv_path_TOUCH
11725 if test -n "$TOUCH"; then
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11727 $as_echo "$TOUCH" >&6; }
11728 else
11729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731 fi
11732 
11733 
11734   test -n "$TOUCH" && break
11735 done
11736 
11737   else
11738     # The variable is set, but is it from the command line or the environment?
11739 
11740     # Try to remove the string !TOUCH! from our list.
11741     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11742     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11743       # If it failed, the variable was not from the command line. Ignore it,
11744       # but warn the user (except for BASH, which is always set by the calling BASH).
11745       if test "xTOUCH" != xBASH; then
11746         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11747 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11748       fi
11749       # Try to locate tool using the code snippet
11750       for ac_prog in touch
11751 do
11752   # Extract the first word of "$ac_prog", so it can be a program name with args.
11753 set dummy $ac_prog; ac_word=$2
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11755 $as_echo_n "checking for $ac_word... " >&6; }
11756 if ${ac_cv_path_TOUCH+:} false; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   case $TOUCH in
11760   [\\/]* | ?:[\\/]*)
11761   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11762   ;;
11763   *)
11764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765 for as_dir in $PATH
11766 do
11767   IFS=$as_save_IFS
11768   test -z "$as_dir" && as_dir=.
11769     for ac_exec_ext in '' $ac_executable_extensions; do
11770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11773     break 2
11774   fi
11775 done
11776   done
11777 IFS=$as_save_IFS
11778 
11779   ;;
11780 esac
11781 fi
11782 TOUCH=$ac_cv_path_TOUCH
11783 if test -n "$TOUCH"; then
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11785 $as_echo "$TOUCH" >&6; }
11786 else
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11789 fi
11790 
11791 
11792   test -n "$TOUCH" && break
11793 done
11794 
11795     else
11796       # If it succeeded, then it was overridden by the user. We will use it
11797       # for the tool.
11798 
11799       # First remove it from the list of overridden variables, so we can test
11800       # for unknown variables in the end.
11801       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11802 
11803       # Check if we try to supply an empty value
11804       if test "x$TOUCH" = x; then
11805         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11806 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11808 $as_echo_n "checking for TOUCH... " >&6; }
11809         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11810 $as_echo "disabled" >&6; }
11811       else
11812         # Check if the provided tool contains a complete path.
11813         tool_specified="$TOUCH"
11814         tool_basename="${tool_specified##*/}"
11815         if test "x$tool_basename" = "x$tool_specified"; then
11816           # A command without a complete path is provided, search $PATH.
11817           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11818 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11819           # Extract the first word of "$tool_basename", so it can be a program name with args.
11820 set dummy $tool_basename; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_path_TOUCH+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   case $TOUCH in
11827   [\\/]* | ?:[\\/]*)
11828   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11829   ;;
11830   *)
11831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834   IFS=$as_save_IFS
11835   test -z "$as_dir" && as_dir=.
11836     for ac_exec_ext in '' $ac_executable_extensions; do
11837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840     break 2
11841   fi
11842 done
11843   done
11844 IFS=$as_save_IFS
11845 
11846   ;;
11847 esac
11848 fi
11849 TOUCH=$ac_cv_path_TOUCH
11850 if test -n "$TOUCH"; then
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11852 $as_echo "$TOUCH" >&6; }
11853 else
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857 
11858 
11859           if test "x$TOUCH" = x; then
11860             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11861           fi
11862         else
11863           # Otherwise we believe it is a complete path. Use it as it is.
11864           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11865 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11866           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11867 $as_echo_n "checking for TOUCH... " >&6; }
11868           if test ! -x "$tool_specified"; then
11869             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11870 $as_echo "not found" >&6; }
11871             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11872           fi
11873           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11874 $as_echo "$tool_specified" >&6; }
11875         fi
11876       fi
11877     fi
11878 
11879   fi
11880 
11881 
11882 
11883   if test "x$TOUCH" = x; then
11884     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11885   fi
11886 
11887 
11888 
11889 
11890 
11891   # Publish this variable in the help.
11892 
11893 
11894   if [ -z "${TR+x}" ]; then
11895     # The variable is not set by user, try to locate tool using the code snippet
11896     for ac_prog in tr
11897 do
11898   # Extract the first word of "$ac_prog", so it can be a program name with args.
11899 set dummy $ac_prog; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_path_TR+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   case $TR in
11906   [\\/]* | ?:[\\/]*)
11907   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11908   ;;
11909   *)
11910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924 
11925   ;;
11926 esac
11927 fi
11928 TR=$ac_cv_path_TR
11929 if test -n "$TR"; then
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11931 $as_echo "$TR" >&6; }
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936 
11937 
11938   test -n "$TR" && break
11939 done
11940 
11941   else
11942     # The variable is set, but is it from the command line or the environment?
11943 
11944     # Try to remove the string !TR! from our list.
11945     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11946     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11947       # If it failed, the variable was not from the command line. Ignore it,
11948       # but warn the user (except for BASH, which is always set by the calling BASH).
11949       if test "xTR" != xBASH; then
11950         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11951 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11952       fi
11953       # Try to locate tool using the code snippet
11954       for ac_prog in tr
11955 do
11956   # Extract the first word of "$ac_prog", so it can be a program name with args.
11957 set dummy $ac_prog; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_path_TR+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   case $TR in
11964   [\\/]* | ?:[\\/]*)
11965   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11966   ;;
11967   *)
11968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971   IFS=$as_save_IFS
11972   test -z "$as_dir" && as_dir=.
11973     for ac_exec_ext in '' $ac_executable_extensions; do
11974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11975     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977     break 2
11978   fi
11979 done
11980   done
11981 IFS=$as_save_IFS
11982 
11983   ;;
11984 esac
11985 fi
11986 TR=$ac_cv_path_TR
11987 if test -n "$TR"; then
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11989 $as_echo "$TR" >&6; }
11990 else
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994 
11995 
11996   test -n "$TR" && break
11997 done
11998 
11999     else
12000       # If it succeeded, then it was overridden by the user. We will use it
12001       # for the tool.
12002 
12003       # First remove it from the list of overridden variables, so we can test
12004       # for unknown variables in the end.
12005       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12006 
12007       # Check if we try to supply an empty value
12008       if test "x$TR" = x; then
12009         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12010 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12012 $as_echo_n "checking for TR... " >&6; }
12013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12014 $as_echo "disabled" >&6; }
12015       else
12016         # Check if the provided tool contains a complete path.
12017         tool_specified="$TR"
12018         tool_basename="${tool_specified##*/}"
12019         if test "x$tool_basename" = "x$tool_specified"; then
12020           # A command without a complete path is provided, search $PATH.
12021           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12022 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12023           # Extract the first word of "$tool_basename", so it can be a program name with args.
12024 set dummy $tool_basename; ac_word=$2
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026 $as_echo_n "checking for $ac_word... " >&6; }
12027 if ${ac_cv_path_TR+:} false; then :
12028   $as_echo_n "(cached) " >&6
12029 else
12030   case $TR in
12031   [\\/]* | ?:[\\/]*)
12032   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12033   ;;
12034   *)
12035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038   IFS=$as_save_IFS
12039   test -z "$as_dir" && as_dir=.
12040     for ac_exec_ext in '' $ac_executable_extensions; do
12041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044     break 2
12045   fi
12046 done
12047   done
12048 IFS=$as_save_IFS
12049 
12050   ;;
12051 esac
12052 fi
12053 TR=$ac_cv_path_TR
12054 if test -n "$TR"; then
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12056 $as_echo "$TR" >&6; }
12057 else
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12060 fi
12061 
12062 
12063           if test "x$TR" = x; then
12064             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12065           fi
12066         else
12067           # Otherwise we believe it is a complete path. Use it as it is.
12068           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12069 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12070           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12071 $as_echo_n "checking for TR... " >&6; }
12072           if test ! -x "$tool_specified"; then
12073             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12074 $as_echo "not found" >&6; }
12075             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12076           fi
12077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12078 $as_echo "$tool_specified" >&6; }
12079         fi
12080       fi
12081     fi
12082 
12083   fi
12084 
12085 
12086 
12087   if test "x$TR" = x; then
12088     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12089   fi
12090 
12091 
12092 
12093 
12094 
12095   # Publish this variable in the help.
12096 
12097 
12098   if [ -z "${UNAME+x}" ]; then
12099     # The variable is not set by user, try to locate tool using the code snippet
12100     for ac_prog in uname
12101 do
12102   # Extract the first word of "$ac_prog", so it can be a program name with args.
12103 set dummy $ac_prog; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if ${ac_cv_path_UNAME+:} false; then :
12107   $as_echo_n "(cached) " >&6
12108 else
12109   case $UNAME in
12110   [\\/]* | ?:[\\/]*)
12111   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12112   ;;
12113   *)
12114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12116 do
12117   IFS=$as_save_IFS
12118   test -z "$as_dir" && as_dir=.
12119     for ac_exec_ext in '' $ac_executable_extensions; do
12120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123     break 2
12124   fi
12125 done
12126   done
12127 IFS=$as_save_IFS
12128 
12129   ;;
12130 esac
12131 fi
12132 UNAME=$ac_cv_path_UNAME
12133 if test -n "$UNAME"; then
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12135 $as_echo "$UNAME" >&6; }
12136 else
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12139 fi
12140 
12141 
12142   test -n "$UNAME" && break
12143 done
12144 
12145   else
12146     # The variable is set, but is it from the command line or the environment?
12147 
12148     # Try to remove the string !UNAME! from our list.
12149     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12150     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12151       # If it failed, the variable was not from the command line. Ignore it,
12152       # but warn the user (except for BASH, which is always set by the calling BASH).
12153       if test "xUNAME" != xBASH; then
12154         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12155 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12156       fi
12157       # Try to locate tool using the code snippet
12158       for ac_prog in uname
12159 do
12160   # Extract the first word of "$ac_prog", so it can be a program name with args.
12161 set dummy $ac_prog; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_path_UNAME+:} false; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   case $UNAME in
12168   [\\/]* | ?:[\\/]*)
12169   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12170   ;;
12171   *)
12172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12174 do
12175   IFS=$as_save_IFS
12176   test -z "$as_dir" && as_dir=.
12177     for ac_exec_ext in '' $ac_executable_extensions; do
12178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181     break 2
12182   fi
12183 done
12184   done
12185 IFS=$as_save_IFS
12186 
12187   ;;
12188 esac
12189 fi
12190 UNAME=$ac_cv_path_UNAME
12191 if test -n "$UNAME"; then
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12193 $as_echo "$UNAME" >&6; }
12194 else
12195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12197 fi
12198 
12199 
12200   test -n "$UNAME" && break
12201 done
12202 
12203     else
12204       # If it succeeded, then it was overridden by the user. We will use it
12205       # for the tool.
12206 
12207       # First remove it from the list of overridden variables, so we can test
12208       # for unknown variables in the end.
12209       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12210 
12211       # Check if we try to supply an empty value
12212       if test "x$UNAME" = x; then
12213         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12214 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12216 $as_echo_n "checking for UNAME... " >&6; }
12217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12218 $as_echo "disabled" >&6; }
12219       else
12220         # Check if the provided tool contains a complete path.
12221         tool_specified="$UNAME"
12222         tool_basename="${tool_specified##*/}"
12223         if test "x$tool_basename" = "x$tool_specified"; then
12224           # A command without a complete path is provided, search $PATH.
12225           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12226 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12227           # Extract the first word of "$tool_basename", so it can be a program name with args.
12228 set dummy $tool_basename; ac_word=$2
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230 $as_echo_n "checking for $ac_word... " >&6; }
12231 if ${ac_cv_path_UNAME+:} false; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   case $UNAME in
12235   [\\/]* | ?:[\\/]*)
12236   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12237   ;;
12238   *)
12239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244     for ac_exec_ext in '' $ac_executable_extensions; do
12245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248     break 2
12249   fi
12250 done
12251   done
12252 IFS=$as_save_IFS
12253 
12254   ;;
12255 esac
12256 fi
12257 UNAME=$ac_cv_path_UNAME
12258 if test -n "$UNAME"; then
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12260 $as_echo "$UNAME" >&6; }
12261 else
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265 
12266 
12267           if test "x$UNAME" = x; then
12268             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12269           fi
12270         else
12271           # Otherwise we believe it is a complete path. Use it as it is.
12272           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12273 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12274           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12275 $as_echo_n "checking for UNAME... " >&6; }
12276           if test ! -x "$tool_specified"; then
12277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12278 $as_echo "not found" >&6; }
12279             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12280           fi
12281           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12282 $as_echo "$tool_specified" >&6; }
12283         fi
12284       fi
12285     fi
12286 
12287   fi
12288 
12289 
12290 
12291   if test "x$UNAME" = x; then
12292     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12293   fi
12294 
12295 
12296 
12297 
12298 
12299   # Publish this variable in the help.
12300 
12301 
12302   if [ -z "${UNIQ+x}" ]; then
12303     # The variable is not set by user, try to locate tool using the code snippet
12304     for ac_prog in uniq
12305 do
12306   # Extract the first word of "$ac_prog", so it can be a program name with args.
12307 set dummy $ac_prog; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_path_UNIQ+:} false; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   case $UNIQ in
12314   [\\/]* | ?:[\\/]*)
12315   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12316   ;;
12317   *)
12318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321   IFS=$as_save_IFS
12322   test -z "$as_dir" && as_dir=.
12323     for ac_exec_ext in '' $ac_executable_extensions; do
12324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327     break 2
12328   fi
12329 done
12330   done
12331 IFS=$as_save_IFS
12332 
12333   ;;
12334 esac
12335 fi
12336 UNIQ=$ac_cv_path_UNIQ
12337 if test -n "$UNIQ"; then
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12339 $as_echo "$UNIQ" >&6; }
12340 else
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343 fi
12344 
12345 
12346   test -n "$UNIQ" && break
12347 done
12348 
12349   else
12350     # The variable is set, but is it from the command line or the environment?
12351 
12352     # Try to remove the string !UNIQ! from our list.
12353     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12354     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12355       # If it failed, the variable was not from the command line. Ignore it,
12356       # but warn the user (except for BASH, which is always set by the calling BASH).
12357       if test "xUNIQ" != xBASH; then
12358         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12359 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12360       fi
12361       # Try to locate tool using the code snippet
12362       for ac_prog in uniq
12363 do
12364   # Extract the first word of "$ac_prog", so it can be a program name with args.
12365 set dummy $ac_prog; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367 $as_echo_n "checking for $ac_word... " >&6; }
12368 if ${ac_cv_path_UNIQ+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   case $UNIQ in
12372   [\\/]* | ?:[\\/]*)
12373   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12374   ;;
12375   *)
12376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12378 do
12379   IFS=$as_save_IFS
12380   test -z "$as_dir" && as_dir=.
12381     for ac_exec_ext in '' $ac_executable_extensions; do
12382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385     break 2
12386   fi
12387 done
12388   done
12389 IFS=$as_save_IFS
12390 
12391   ;;
12392 esac
12393 fi
12394 UNIQ=$ac_cv_path_UNIQ
12395 if test -n "$UNIQ"; then
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12397 $as_echo "$UNIQ" >&6; }
12398 else
12399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 fi
12402 
12403 
12404   test -n "$UNIQ" && break
12405 done
12406 
12407     else
12408       # If it succeeded, then it was overridden by the user. We will use it
12409       # for the tool.
12410 
12411       # First remove it from the list of overridden variables, so we can test
12412       # for unknown variables in the end.
12413       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12414 
12415       # Check if we try to supply an empty value
12416       if test "x$UNIQ" = x; then
12417         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12418 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12420 $as_echo_n "checking for UNIQ... " >&6; }
12421         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12422 $as_echo "disabled" >&6; }
12423       else
12424         # Check if the provided tool contains a complete path.
12425         tool_specified="$UNIQ"
12426         tool_basename="${tool_specified##*/}"
12427         if test "x$tool_basename" = "x$tool_specified"; then
12428           # A command without a complete path is provided, search $PATH.
12429           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12430 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12431           # Extract the first word of "$tool_basename", so it can be a program name with args.
12432 set dummy $tool_basename; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_path_UNIQ+:} false; then :
12436   $as_echo_n "(cached) " >&6
12437 else
12438   case $UNIQ in
12439   [\\/]* | ?:[\\/]*)
12440   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12441   ;;
12442   *)
12443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12445 do
12446   IFS=$as_save_IFS
12447   test -z "$as_dir" && as_dir=.
12448     for ac_exec_ext in '' $ac_executable_extensions; do
12449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452     break 2
12453   fi
12454 done
12455   done
12456 IFS=$as_save_IFS
12457 
12458   ;;
12459 esac
12460 fi
12461 UNIQ=$ac_cv_path_UNIQ
12462 if test -n "$UNIQ"; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12464 $as_echo "$UNIQ" >&6; }
12465 else
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469 
12470 
12471           if test "x$UNIQ" = x; then
12472             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12473           fi
12474         else
12475           # Otherwise we believe it is a complete path. Use it as it is.
12476           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12477 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12478           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12479 $as_echo_n "checking for UNIQ... " >&6; }
12480           if test ! -x "$tool_specified"; then
12481             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12482 $as_echo "not found" >&6; }
12483             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12484           fi
12485           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12486 $as_echo "$tool_specified" >&6; }
12487         fi
12488       fi
12489     fi
12490 
12491   fi
12492 
12493 
12494 
12495   if test "x$UNIQ" = x; then
12496     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12497   fi
12498 
12499 
12500 
12501 
12502 
12503   # Publish this variable in the help.
12504 
12505 
12506   if [ -z "${WC+x}" ]; then
12507     # The variable is not set by user, try to locate tool using the code snippet
12508     for ac_prog in wc
12509 do
12510   # Extract the first word of "$ac_prog", so it can be a program name with args.
12511 set dummy $ac_prog; ac_word=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if ${ac_cv_path_WC+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517   case $WC in
12518   [\\/]* | ?:[\\/]*)
12519   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12520   ;;
12521   *)
12522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525   IFS=$as_save_IFS
12526   test -z "$as_dir" && as_dir=.
12527     for ac_exec_ext in '' $ac_executable_extensions; do
12528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531     break 2
12532   fi
12533 done
12534   done
12535 IFS=$as_save_IFS
12536 
12537   ;;
12538 esac
12539 fi
12540 WC=$ac_cv_path_WC
12541 if test -n "$WC"; then
12542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12543 $as_echo "$WC" >&6; }
12544 else
12545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 fi
12548 
12549 
12550   test -n "$WC" && break
12551 done
12552 
12553   else
12554     # The variable is set, but is it from the command line or the environment?
12555 
12556     # Try to remove the string !WC! from our list.
12557     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12558     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12559       # If it failed, the variable was not from the command line. Ignore it,
12560       # but warn the user (except for BASH, which is always set by the calling BASH).
12561       if test "xWC" != xBASH; then
12562         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12563 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12564       fi
12565       # Try to locate tool using the code snippet
12566       for ac_prog in wc
12567 do
12568   # Extract the first word of "$ac_prog", so it can be a program name with args.
12569 set dummy $ac_prog; ac_word=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if ${ac_cv_path_WC+:} false; then :
12573   $as_echo_n "(cached) " >&6
12574 else
12575   case $WC in
12576   [\\/]* | ?:[\\/]*)
12577   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12578   ;;
12579   *)
12580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12582 do
12583   IFS=$as_save_IFS
12584   test -z "$as_dir" && as_dir=.
12585     for ac_exec_ext in '' $ac_executable_extensions; do
12586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12587     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12589     break 2
12590   fi
12591 done
12592   done
12593 IFS=$as_save_IFS
12594 
12595   ;;
12596 esac
12597 fi
12598 WC=$ac_cv_path_WC
12599 if test -n "$WC"; then
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12601 $as_echo "$WC" >&6; }
12602 else
12603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605 fi
12606 
12607 
12608   test -n "$WC" && break
12609 done
12610 
12611     else
12612       # If it succeeded, then it was overridden by the user. We will use it
12613       # for the tool.
12614 
12615       # First remove it from the list of overridden variables, so we can test
12616       # for unknown variables in the end.
12617       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12618 
12619       # Check if we try to supply an empty value
12620       if test "x$WC" = x; then
12621         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12622 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12624 $as_echo_n "checking for WC... " >&6; }
12625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12626 $as_echo "disabled" >&6; }
12627       else
12628         # Check if the provided tool contains a complete path.
12629         tool_specified="$WC"
12630         tool_basename="${tool_specified##*/}"
12631         if test "x$tool_basename" = "x$tool_specified"; then
12632           # A command without a complete path is provided, search $PATH.
12633           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12634 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12635           # Extract the first word of "$tool_basename", so it can be a program name with args.
12636 set dummy $tool_basename; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_path_WC+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   case $WC in
12643   [\\/]* | ?:[\\/]*)
12644   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12645   ;;
12646   *)
12647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12649 do
12650   IFS=$as_save_IFS
12651   test -z "$as_dir" && as_dir=.
12652     for ac_exec_ext in '' $ac_executable_extensions; do
12653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656     break 2
12657   fi
12658 done
12659   done
12660 IFS=$as_save_IFS
12661 
12662   ;;
12663 esac
12664 fi
12665 WC=$ac_cv_path_WC
12666 if test -n "$WC"; then
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12668 $as_echo "$WC" >&6; }
12669 else
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 fi
12673 
12674 
12675           if test "x$WC" = x; then
12676             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12677           fi
12678         else
12679           # Otherwise we believe it is a complete path. Use it as it is.
12680           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12681 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12682           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12683 $as_echo_n "checking for WC... " >&6; }
12684           if test ! -x "$tool_specified"; then
12685             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12686 $as_echo "not found" >&6; }
12687             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12688           fi
12689           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12690 $as_echo "$tool_specified" >&6; }
12691         fi
12692       fi
12693     fi
12694 
12695   fi
12696 
12697 
12698 
12699   if test "x$WC" = x; then
12700     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12701   fi
12702 
12703 
12704 
12705 
12706 
12707   # Publish this variable in the help.
12708 
12709 
12710   if [ -z "${WHICH+x}" ]; then
12711     # The variable is not set by user, try to locate tool using the code snippet
12712     for ac_prog in which
12713 do
12714   # Extract the first word of "$ac_prog", so it can be a program name with args.
12715 set dummy $ac_prog; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_path_WHICH+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721   case $WHICH in
12722   [\\/]* | ?:[\\/]*)
12723   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12724   ;;
12725   *)
12726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729   IFS=$as_save_IFS
12730   test -z "$as_dir" && as_dir=.
12731     for ac_exec_ext in '' $ac_executable_extensions; do
12732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735     break 2
12736   fi
12737 done
12738   done
12739 IFS=$as_save_IFS
12740 
12741   ;;
12742 esac
12743 fi
12744 WHICH=$ac_cv_path_WHICH
12745 if test -n "$WHICH"; then
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12747 $as_echo "$WHICH" >&6; }
12748 else
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752 
12753 
12754   test -n "$WHICH" && break
12755 done
12756 
12757   else
12758     # The variable is set, but is it from the command line or the environment?
12759 
12760     # Try to remove the string !WHICH! from our list.
12761     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12762     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12763       # If it failed, the variable was not from the command line. Ignore it,
12764       # but warn the user (except for BASH, which is always set by the calling BASH).
12765       if test "xWHICH" != xBASH; then
12766         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12767 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12768       fi
12769       # Try to locate tool using the code snippet
12770       for ac_prog in which
12771 do
12772   # Extract the first word of "$ac_prog", so it can be a program name with args.
12773 set dummy $ac_prog; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_WHICH+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   case $WHICH in
12780   [\\/]* | ?:[\\/]*)
12781   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12782   ;;
12783   *)
12784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793     break 2
12794   fi
12795 done
12796   done
12797 IFS=$as_save_IFS
12798 
12799   ;;
12800 esac
12801 fi
12802 WHICH=$ac_cv_path_WHICH
12803 if test -n "$WHICH"; then
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12805 $as_echo "$WHICH" >&6; }
12806 else
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810 
12811 
12812   test -n "$WHICH" && break
12813 done
12814 
12815     else
12816       # If it succeeded, then it was overridden by the user. We will use it
12817       # for the tool.
12818 
12819       # First remove it from the list of overridden variables, so we can test
12820       # for unknown variables in the end.
12821       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12822 
12823       # Check if we try to supply an empty value
12824       if test "x$WHICH" = x; then
12825         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12826 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12827         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12828 $as_echo_n "checking for WHICH... " >&6; }
12829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12830 $as_echo "disabled" >&6; }
12831       else
12832         # Check if the provided tool contains a complete path.
12833         tool_specified="$WHICH"
12834         tool_basename="${tool_specified##*/}"
12835         if test "x$tool_basename" = "x$tool_specified"; then
12836           # A command without a complete path is provided, search $PATH.
12837           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12838 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12839           # Extract the first word of "$tool_basename", so it can be a program name with args.
12840 set dummy $tool_basename; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_path_WHICH+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   case $WHICH in
12847   [\\/]* | ?:[\\/]*)
12848   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12849   ;;
12850   *)
12851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12853 do
12854   IFS=$as_save_IFS
12855   test -z "$as_dir" && as_dir=.
12856     for ac_exec_ext in '' $ac_executable_extensions; do
12857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12858     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860     break 2
12861   fi
12862 done
12863   done
12864 IFS=$as_save_IFS
12865 
12866   ;;
12867 esac
12868 fi
12869 WHICH=$ac_cv_path_WHICH
12870 if test -n "$WHICH"; then
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12872 $as_echo "$WHICH" >&6; }
12873 else
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877 
12878 
12879           if test "x$WHICH" = x; then
12880             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12881           fi
12882         else
12883           # Otherwise we believe it is a complete path. Use it as it is.
12884           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12885 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12886           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12887 $as_echo_n "checking for WHICH... " >&6; }
12888           if test ! -x "$tool_specified"; then
12889             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12890 $as_echo "not found" >&6; }
12891             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12892           fi
12893           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12894 $as_echo "$tool_specified" >&6; }
12895         fi
12896       fi
12897     fi
12898 
12899   fi
12900 
12901 
12902 
12903   if test "x$WHICH" = x; then
12904     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12905   fi
12906 
12907 
12908 
12909 
12910 
12911   # Publish this variable in the help.
12912 
12913 
12914   if [ -z "${XARGS+x}" ]; then
12915     # The variable is not set by user, try to locate tool using the code snippet
12916     for ac_prog in xargs
12917 do
12918   # Extract the first word of "$ac_prog", so it can be a program name with args.
12919 set dummy $ac_prog; ac_word=$2
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921 $as_echo_n "checking for $ac_word... " >&6; }
12922 if ${ac_cv_path_XARGS+:} false; then :
12923   $as_echo_n "(cached) " >&6
12924 else
12925   case $XARGS in
12926   [\\/]* | ?:[\\/]*)
12927   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12928   ;;
12929   *)
12930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12932 do
12933   IFS=$as_save_IFS
12934   test -z "$as_dir" && as_dir=.
12935     for ac_exec_ext in '' $ac_executable_extensions; do
12936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12937     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939     break 2
12940   fi
12941 done
12942   done
12943 IFS=$as_save_IFS
12944 
12945   ;;
12946 esac
12947 fi
12948 XARGS=$ac_cv_path_XARGS
12949 if test -n "$XARGS"; then
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12951 $as_echo "$XARGS" >&6; }
12952 else
12953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955 fi
12956 
12957 
12958   test -n "$XARGS" && break
12959 done
12960 
12961   else
12962     # The variable is set, but is it from the command line or the environment?
12963 
12964     # Try to remove the string !XARGS! from our list.
12965     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12966     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12967       # If it failed, the variable was not from the command line. Ignore it,
12968       # but warn the user (except for BASH, which is always set by the calling BASH).
12969       if test "xXARGS" != xBASH; then
12970         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12971 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12972       fi
12973       # Try to locate tool using the code snippet
12974       for ac_prog in xargs
12975 do
12976   # Extract the first word of "$ac_prog", so it can be a program name with args.
12977 set dummy $ac_prog; ac_word=$2
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12979 $as_echo_n "checking for $ac_word... " >&6; }
12980 if ${ac_cv_path_XARGS+:} false; then :
12981   $as_echo_n "(cached) " >&6
12982 else
12983   case $XARGS in
12984   [\\/]* | ?:[\\/]*)
12985   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12986   ;;
12987   *)
12988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12990 do
12991   IFS=$as_save_IFS
12992   test -z "$as_dir" && as_dir=.
12993     for ac_exec_ext in '' $ac_executable_extensions; do
12994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997     break 2
12998   fi
12999 done
13000   done
13001 IFS=$as_save_IFS
13002 
13003   ;;
13004 esac
13005 fi
13006 XARGS=$ac_cv_path_XARGS
13007 if test -n "$XARGS"; then
13008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13009 $as_echo "$XARGS" >&6; }
13010 else
13011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13013 fi
13014 
13015 
13016   test -n "$XARGS" && break
13017 done
13018 
13019     else
13020       # If it succeeded, then it was overridden by the user. We will use it
13021       # for the tool.
13022 
13023       # First remove it from the list of overridden variables, so we can test
13024       # for unknown variables in the end.
13025       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13026 
13027       # Check if we try to supply an empty value
13028       if test "x$XARGS" = x; then
13029         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13030 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13032 $as_echo_n "checking for XARGS... " >&6; }
13033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13034 $as_echo "disabled" >&6; }
13035       else
13036         # Check if the provided tool contains a complete path.
13037         tool_specified="$XARGS"
13038         tool_basename="${tool_specified##*/}"
13039         if test "x$tool_basename" = "x$tool_specified"; then
13040           # A command without a complete path is provided, search $PATH.
13041           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13042 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13043           # Extract the first word of "$tool_basename", so it can be a program name with args.
13044 set dummy $tool_basename; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if ${ac_cv_path_XARGS+:} false; then :
13048   $as_echo_n "(cached) " >&6
13049 else
13050   case $XARGS in
13051   [\\/]* | ?:[\\/]*)
13052   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13053   ;;
13054   *)
13055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058   IFS=$as_save_IFS
13059   test -z "$as_dir" && as_dir=.
13060     for ac_exec_ext in '' $ac_executable_extensions; do
13061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064     break 2
13065   fi
13066 done
13067   done
13068 IFS=$as_save_IFS
13069 
13070   ;;
13071 esac
13072 fi
13073 XARGS=$ac_cv_path_XARGS
13074 if test -n "$XARGS"; then
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13076 $as_echo "$XARGS" >&6; }
13077 else
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081 
13082 
13083           if test "x$XARGS" = x; then
13084             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13085           fi
13086         else
13087           # Otherwise we believe it is a complete path. Use it as it is.
13088           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13089 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13090           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13091 $as_echo_n "checking for XARGS... " >&6; }
13092           if test ! -x "$tool_specified"; then
13093             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13094 $as_echo "not found" >&6; }
13095             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13096           fi
13097           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13098 $as_echo "$tool_specified" >&6; }
13099         fi
13100       fi
13101     fi
13102 
13103   fi
13104 
13105 
13106 
13107   if test "x$XARGS" = x; then
13108     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13109   fi
13110 
13111 
13112 
13113   # Then required tools that require some special treatment.
13114 
13115 
13116   # Publish this variable in the help.
13117 
13118 
13119   if [ -z "${AWK+x}" ]; then
13120     # The variable is not set by user, try to locate tool using the code snippet
13121     for ac_prog in gawk mawk nawk awk
13122 do
13123   # Extract the first word of "$ac_prog", so it can be a program name with args.
13124 set dummy $ac_prog; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_prog_AWK+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   if test -n "$AWK"; then
13131   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13132 else
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13135 do
13136   IFS=$as_save_IFS
13137   test -z "$as_dir" && as_dir=.
13138     for ac_exec_ext in '' $ac_executable_extensions; do
13139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140     ac_cv_prog_AWK="$ac_prog"
13141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142     break 2
13143   fi
13144 done
13145   done
13146 IFS=$as_save_IFS
13147 
13148 fi
13149 fi
13150 AWK=$ac_cv_prog_AWK
13151 if test -n "$AWK"; then
13152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13153 $as_echo "$AWK" >&6; }
13154 else
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158 
13159 
13160   test -n "$AWK" && break
13161 done
13162 
13163   else
13164     # The variable is set, but is it from the command line or the environment?
13165 
13166     # Try to remove the string !AWK! from our list.
13167     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13168     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13169       # If it failed, the variable was not from the command line. Ignore it,
13170       # but warn the user (except for BASH, which is always set by the calling BASH).
13171       if test "xAWK" != xBASH; then
13172         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13173 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13174       fi
13175       # Try to locate tool using the code snippet
13176       for ac_prog in gawk mawk nawk awk
13177 do
13178   # Extract the first word of "$ac_prog", so it can be a program name with args.
13179 set dummy $ac_prog; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_prog_AWK+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   if test -n "$AWK"; then
13186   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191   IFS=$as_save_IFS
13192   test -z "$as_dir" && as_dir=.
13193     for ac_exec_ext in '' $ac_executable_extensions; do
13194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195     ac_cv_prog_AWK="$ac_prog"
13196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197     break 2
13198   fi
13199 done
13200   done
13201 IFS=$as_save_IFS
13202 
13203 fi
13204 fi
13205 AWK=$ac_cv_prog_AWK
13206 if test -n "$AWK"; then
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13208 $as_echo "$AWK" >&6; }
13209 else
13210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213 
13214 
13215   test -n "$AWK" && break
13216 done
13217 
13218     else
13219       # If it succeeded, then it was overridden by the user. We will use it
13220       # for the tool.
13221 
13222       # First remove it from the list of overridden variables, so we can test
13223       # for unknown variables in the end.
13224       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13225 
13226       # Check if we try to supply an empty value
13227       if test "x$AWK" = x; then
13228         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13229 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13230         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13231 $as_echo_n "checking for AWK... " >&6; }
13232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13233 $as_echo "disabled" >&6; }
13234       else
13235         # Check if the provided tool contains a complete path.
13236         tool_specified="$AWK"
13237         tool_basename="${tool_specified##*/}"
13238         if test "x$tool_basename" = "x$tool_specified"; then
13239           # A command without a complete path is provided, search $PATH.
13240           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13241 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13242           # Extract the first word of "$tool_basename", so it can be a program name with args.
13243 set dummy $tool_basename; ac_word=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245 $as_echo_n "checking for $ac_word... " >&6; }
13246 if ${ac_cv_path_AWK+:} false; then :
13247   $as_echo_n "(cached) " >&6
13248 else
13249   case $AWK in
13250   [\\/]* | ?:[\\/]*)
13251   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13252   ;;
13253   *)
13254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13256 do
13257   IFS=$as_save_IFS
13258   test -z "$as_dir" && as_dir=.
13259     for ac_exec_ext in '' $ac_executable_extensions; do
13260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263     break 2
13264   fi
13265 done
13266   done
13267 IFS=$as_save_IFS
13268 
13269   ;;
13270 esac
13271 fi
13272 AWK=$ac_cv_path_AWK
13273 if test -n "$AWK"; then
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13275 $as_echo "$AWK" >&6; }
13276 else
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13279 fi
13280 
13281 
13282           if test "x$AWK" = x; then
13283             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13284           fi
13285         else
13286           # Otherwise we believe it is a complete path. Use it as it is.
13287           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13288 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13289           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13290 $as_echo_n "checking for AWK... " >&6; }
13291           if test ! -x "$tool_specified"; then
13292             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13293 $as_echo "not found" >&6; }
13294             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13295           fi
13296           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13297 $as_echo "$tool_specified" >&6; }
13298         fi
13299       fi
13300     fi
13301 
13302   fi
13303 
13304 
13305   if test "x$AWK" = x; then
13306     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13307   fi
13308 
13309 
13310 
13311 
13312   # Publish this variable in the help.
13313 
13314 
13315   if [ -z "${GREP+x}" ]; then
13316     # The variable is not set by user, try to locate tool using the code snippet
13317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13319 if ${ac_cv_path_GREP+:} false; then :
13320   $as_echo_n "(cached) " >&6
13321 else
13322   if test -z "$GREP"; then
13323   ac_path_GREP_found=false
13324   # Loop through the user's path and test for each of PROGNAME-LIST
13325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13327 do
13328   IFS=$as_save_IFS
13329   test -z "$as_dir" && as_dir=.
13330     for ac_prog in grep ggrep; do
13331     for ac_exec_ext in '' $ac_executable_extensions; do
13332       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13333       as_fn_executable_p "$ac_path_GREP" || continue
13334 # Check for GNU ac_path_GREP and select it if it is found.
13335   # Check for GNU $ac_path_GREP
13336 case `"$ac_path_GREP" --version 2>&1` in
13337 *GNU*)
13338   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13339 *)
13340   ac_count=0
13341   $as_echo_n 0123456789 >"conftest.in"
13342   while :
13343   do
13344     cat "conftest.in" "conftest.in" >"conftest.tmp"
13345     mv "conftest.tmp" "conftest.in"
13346     cp "conftest.in" "conftest.nl"
13347     $as_echo 'GREP' >> "conftest.nl"
13348     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13350     as_fn_arith $ac_count + 1 && ac_count=$as_val
13351     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13352       # Best one so far, save it but keep looking for a better one
13353       ac_cv_path_GREP="$ac_path_GREP"
13354       ac_path_GREP_max=$ac_count
13355     fi
13356     # 10*(2^10) chars as input seems more than enough
13357     test $ac_count -gt 10 && break
13358   done
13359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13360 esac
13361 
13362       $ac_path_GREP_found && break 3
13363     done
13364   done
13365   done
13366 IFS=$as_save_IFS
13367   if test -z "$ac_cv_path_GREP"; then
13368     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13369   fi
13370 else
13371   ac_cv_path_GREP=$GREP
13372 fi
13373 
13374 fi
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13376 $as_echo "$ac_cv_path_GREP" >&6; }
13377  GREP="$ac_cv_path_GREP"
13378 
13379 
13380   else
13381     # The variable is set, but is it from the command line or the environment?
13382 
13383     # Try to remove the string !GREP! from our list.
13384     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13385     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13386       # If it failed, the variable was not from the command line. Ignore it,
13387       # but warn the user (except for BASH, which is always set by the calling BASH).
13388       if test "xGREP" != xBASH; then
13389         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13390 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13391       fi
13392       # Try to locate tool using the code snippet
13393       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13394 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13395 if ${ac_cv_path_GREP+:} false; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   if test -z "$GREP"; then
13399   ac_path_GREP_found=false
13400   # Loop through the user's path and test for each of PROGNAME-LIST
13401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13403 do
13404   IFS=$as_save_IFS
13405   test -z "$as_dir" && as_dir=.
13406     for ac_prog in grep ggrep; do
13407     for ac_exec_ext in '' $ac_executable_extensions; do
13408       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13409       as_fn_executable_p "$ac_path_GREP" || continue
13410 # Check for GNU ac_path_GREP and select it if it is found.
13411   # Check for GNU $ac_path_GREP
13412 case `"$ac_path_GREP" --version 2>&1` in
13413 *GNU*)
13414   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13415 *)
13416   ac_count=0
13417   $as_echo_n 0123456789 >"conftest.in"
13418   while :
13419   do
13420     cat "conftest.in" "conftest.in" >"conftest.tmp"
13421     mv "conftest.tmp" "conftest.in"
13422     cp "conftest.in" "conftest.nl"
13423     $as_echo 'GREP' >> "conftest.nl"
13424     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13425     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13426     as_fn_arith $ac_count + 1 && ac_count=$as_val
13427     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13428       # Best one so far, save it but keep looking for a better one
13429       ac_cv_path_GREP="$ac_path_GREP"
13430       ac_path_GREP_max=$ac_count
13431     fi
13432     # 10*(2^10) chars as input seems more than enough
13433     test $ac_count -gt 10 && break
13434   done
13435   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13436 esac
13437 
13438       $ac_path_GREP_found && break 3
13439     done
13440   done
13441   done
13442 IFS=$as_save_IFS
13443   if test -z "$ac_cv_path_GREP"; then
13444     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13445   fi
13446 else
13447   ac_cv_path_GREP=$GREP
13448 fi
13449 
13450 fi
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13452 $as_echo "$ac_cv_path_GREP" >&6; }
13453  GREP="$ac_cv_path_GREP"
13454 
13455 
13456     else
13457       # If it succeeded, then it was overridden by the user. We will use it
13458       # for the tool.
13459 
13460       # First remove it from the list of overridden variables, so we can test
13461       # for unknown variables in the end.
13462       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13463 
13464       # Check if we try to supply an empty value
13465       if test "x$GREP" = x; then
13466         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13467 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13469 $as_echo_n "checking for GREP... " >&6; }
13470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13471 $as_echo "disabled" >&6; }
13472       else
13473         # Check if the provided tool contains a complete path.
13474         tool_specified="$GREP"
13475         tool_basename="${tool_specified##*/}"
13476         if test "x$tool_basename" = "x$tool_specified"; then
13477           # A command without a complete path is provided, search $PATH.
13478           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13479 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13480           # Extract the first word of "$tool_basename", so it can be a program name with args.
13481 set dummy $tool_basename; ac_word=$2
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483 $as_echo_n "checking for $ac_word... " >&6; }
13484 if ${ac_cv_path_GREP+:} false; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   case $GREP in
13488   [\\/]* | ?:[\\/]*)
13489   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13490   ;;
13491   *)
13492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13494 do
13495   IFS=$as_save_IFS
13496   test -z "$as_dir" && as_dir=.
13497     for ac_exec_ext in '' $ac_executable_extensions; do
13498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13499     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13501     break 2
13502   fi
13503 done
13504   done
13505 IFS=$as_save_IFS
13506 
13507   ;;
13508 esac
13509 fi
13510 GREP=$ac_cv_path_GREP
13511 if test -n "$GREP"; then
13512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13513 $as_echo "$GREP" >&6; }
13514 else
13515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 fi
13518 
13519 
13520           if test "x$GREP" = x; then
13521             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13522           fi
13523         else
13524           # Otherwise we believe it is a complete path. Use it as it is.
13525           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13526 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13527           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13528 $as_echo_n "checking for GREP... " >&6; }
13529           if test ! -x "$tool_specified"; then
13530             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13531 $as_echo "not found" >&6; }
13532             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13533           fi
13534           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13535 $as_echo "$tool_specified" >&6; }
13536         fi
13537       fi
13538     fi
13539 
13540   fi
13541 
13542 
13543   if test "x$GREP" = x; then
13544     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13545   fi
13546 
13547 
13548 
13549 
13550   # Publish this variable in the help.
13551 
13552 
13553   if [ -z "${EGREP+x}" ]; then
13554     # The variable is not set by user, try to locate tool using the code snippet
13555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13556 $as_echo_n "checking for egrep... " >&6; }
13557 if ${ac_cv_path_EGREP+:} false; then :
13558   $as_echo_n "(cached) " >&6
13559 else
13560   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13561    then ac_cv_path_EGREP="$GREP -E"
13562    else
13563      if test -z "$EGREP"; then
13564   ac_path_EGREP_found=false
13565   # Loop through the user's path and test for each of PROGNAME-LIST
13566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13568 do
13569   IFS=$as_save_IFS
13570   test -z "$as_dir" && as_dir=.
13571     for ac_prog in egrep; do
13572     for ac_exec_ext in '' $ac_executable_extensions; do
13573       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13574       as_fn_executable_p "$ac_path_EGREP" || continue
13575 # Check for GNU ac_path_EGREP and select it if it is found.
13576   # Check for GNU $ac_path_EGREP
13577 case `"$ac_path_EGREP" --version 2>&1` in
13578 *GNU*)
13579   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13580 *)
13581   ac_count=0
13582   $as_echo_n 0123456789 >"conftest.in"
13583   while :
13584   do
13585     cat "conftest.in" "conftest.in" >"conftest.tmp"
13586     mv "conftest.tmp" "conftest.in"
13587     cp "conftest.in" "conftest.nl"
13588     $as_echo 'EGREP' >> "conftest.nl"
13589     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13591     as_fn_arith $ac_count + 1 && ac_count=$as_val
13592     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13593       # Best one so far, save it but keep looking for a better one
13594       ac_cv_path_EGREP="$ac_path_EGREP"
13595       ac_path_EGREP_max=$ac_count
13596     fi
13597     # 10*(2^10) chars as input seems more than enough
13598     test $ac_count -gt 10 && break
13599   done
13600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13601 esac
13602 
13603       $ac_path_EGREP_found && break 3
13604     done
13605   done
13606   done
13607 IFS=$as_save_IFS
13608   if test -z "$ac_cv_path_EGREP"; then
13609     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13610   fi
13611 else
13612   ac_cv_path_EGREP=$EGREP
13613 fi
13614 
13615    fi
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13618 $as_echo "$ac_cv_path_EGREP" >&6; }
13619  EGREP="$ac_cv_path_EGREP"
13620 
13621 
13622   else
13623     # The variable is set, but is it from the command line or the environment?
13624 
13625     # Try to remove the string !EGREP! from our list.
13626     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13627     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13628       # If it failed, the variable was not from the command line. Ignore it,
13629       # but warn the user (except for BASH, which is always set by the calling BASH).
13630       if test "xEGREP" != xBASH; then
13631         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13632 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13633       fi
13634       # Try to locate tool using the code snippet
13635       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13636 $as_echo_n "checking for egrep... " >&6; }
13637 if ${ac_cv_path_EGREP+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13641    then ac_cv_path_EGREP="$GREP -E"
13642    else
13643      if test -z "$EGREP"; then
13644   ac_path_EGREP_found=false
13645   # Loop through the user's path and test for each of PROGNAME-LIST
13646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13648 do
13649   IFS=$as_save_IFS
13650   test -z "$as_dir" && as_dir=.
13651     for ac_prog in egrep; do
13652     for ac_exec_ext in '' $ac_executable_extensions; do
13653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13654       as_fn_executable_p "$ac_path_EGREP" || continue
13655 # Check for GNU ac_path_EGREP and select it if it is found.
13656   # Check for GNU $ac_path_EGREP
13657 case `"$ac_path_EGREP" --version 2>&1` in
13658 *GNU*)
13659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13660 *)
13661   ac_count=0
13662   $as_echo_n 0123456789 >"conftest.in"
13663   while :
13664   do
13665     cat "conftest.in" "conftest.in" >"conftest.tmp"
13666     mv "conftest.tmp" "conftest.in"
13667     cp "conftest.in" "conftest.nl"
13668     $as_echo 'EGREP' >> "conftest.nl"
13669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13671     as_fn_arith $ac_count + 1 && ac_count=$as_val
13672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13673       # Best one so far, save it but keep looking for a better one
13674       ac_cv_path_EGREP="$ac_path_EGREP"
13675       ac_path_EGREP_max=$ac_count
13676     fi
13677     # 10*(2^10) chars as input seems more than enough
13678     test $ac_count -gt 10 && break
13679   done
13680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13681 esac
13682 
13683       $ac_path_EGREP_found && break 3
13684     done
13685   done
13686   done
13687 IFS=$as_save_IFS
13688   if test -z "$ac_cv_path_EGREP"; then
13689     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13690   fi
13691 else
13692   ac_cv_path_EGREP=$EGREP
13693 fi
13694 
13695    fi
13696 fi
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13698 $as_echo "$ac_cv_path_EGREP" >&6; }
13699  EGREP="$ac_cv_path_EGREP"
13700 
13701 
13702     else
13703       # If it succeeded, then it was overridden by the user. We will use it
13704       # for the tool.
13705 
13706       # First remove it from the list of overridden variables, so we can test
13707       # for unknown variables in the end.
13708       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13709 
13710       # Check if we try to supply an empty value
13711       if test "x$EGREP" = x; then
13712         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13713 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13715 $as_echo_n "checking for EGREP... " >&6; }
13716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13717 $as_echo "disabled" >&6; }
13718       else
13719         # Check if the provided tool contains a complete path.
13720         tool_specified="$EGREP"
13721         tool_basename="${tool_specified##*/}"
13722         if test "x$tool_basename" = "x$tool_specified"; then
13723           # A command without a complete path is provided, search $PATH.
13724           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13725 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13726           # Extract the first word of "$tool_basename", so it can be a program name with args.
13727 set dummy $tool_basename; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if ${ac_cv_path_EGREP+:} false; then :
13731   $as_echo_n "(cached) " >&6
13732 else
13733   case $EGREP in
13734   [\\/]* | ?:[\\/]*)
13735   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13736   ;;
13737   *)
13738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13740 do
13741   IFS=$as_save_IFS
13742   test -z "$as_dir" && as_dir=.
13743     for ac_exec_ext in '' $ac_executable_extensions; do
13744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13745     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747     break 2
13748   fi
13749 done
13750   done
13751 IFS=$as_save_IFS
13752 
13753   ;;
13754 esac
13755 fi
13756 EGREP=$ac_cv_path_EGREP
13757 if test -n "$EGREP"; then
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13759 $as_echo "$EGREP" >&6; }
13760 else
13761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762 $as_echo "no" >&6; }
13763 fi
13764 
13765 
13766           if test "x$EGREP" = x; then
13767             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13768           fi
13769         else
13770           # Otherwise we believe it is a complete path. Use it as it is.
13771           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13772 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13773           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13774 $as_echo_n "checking for EGREP... " >&6; }
13775           if test ! -x "$tool_specified"; then
13776             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13777 $as_echo "not found" >&6; }
13778             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13779           fi
13780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13781 $as_echo "$tool_specified" >&6; }
13782         fi
13783       fi
13784     fi
13785 
13786   fi
13787 
13788 
13789   if test "x$EGREP" = x; then
13790     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13791   fi
13792 
13793 
13794 
13795 
13796   # Publish this variable in the help.
13797 
13798 
13799   if [ -z "${FGREP+x}" ]; then
13800     # The variable is not set by user, try to locate tool using the code snippet
13801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13802 $as_echo_n "checking for fgrep... " >&6; }
13803 if ${ac_cv_path_FGREP+:} false; then :
13804   $as_echo_n "(cached) " >&6
13805 else
13806   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13807    then ac_cv_path_FGREP="$GREP -F"
13808    else
13809      if test -z "$FGREP"; then
13810   ac_path_FGREP_found=false
13811   # Loop through the user's path and test for each of PROGNAME-LIST
13812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13814 do
13815   IFS=$as_save_IFS
13816   test -z "$as_dir" && as_dir=.
13817     for ac_prog in fgrep; do
13818     for ac_exec_ext in '' $ac_executable_extensions; do
13819       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13820       as_fn_executable_p "$ac_path_FGREP" || continue
13821 # Check for GNU ac_path_FGREP and select it if it is found.
13822   # Check for GNU $ac_path_FGREP
13823 case `"$ac_path_FGREP" --version 2>&1` in
13824 *GNU*)
13825   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13826 *)
13827   ac_count=0
13828   $as_echo_n 0123456789 >"conftest.in"
13829   while :
13830   do
13831     cat "conftest.in" "conftest.in" >"conftest.tmp"
13832     mv "conftest.tmp" "conftest.in"
13833     cp "conftest.in" "conftest.nl"
13834     $as_echo 'FGREP' >> "conftest.nl"
13835     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13836     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13837     as_fn_arith $ac_count + 1 && ac_count=$as_val
13838     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13839       # Best one so far, save it but keep looking for a better one
13840       ac_cv_path_FGREP="$ac_path_FGREP"
13841       ac_path_FGREP_max=$ac_count
13842     fi
13843     # 10*(2^10) chars as input seems more than enough
13844     test $ac_count -gt 10 && break
13845   done
13846   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13847 esac
13848 
13849       $ac_path_FGREP_found && break 3
13850     done
13851   done
13852   done
13853 IFS=$as_save_IFS
13854   if test -z "$ac_cv_path_FGREP"; then
13855     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13856   fi
13857 else
13858   ac_cv_path_FGREP=$FGREP
13859 fi
13860 
13861    fi
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13864 $as_echo "$ac_cv_path_FGREP" >&6; }
13865  FGREP="$ac_cv_path_FGREP"
13866 
13867 
13868   else
13869     # The variable is set, but is it from the command line or the environment?
13870 
13871     # Try to remove the string !FGREP! from our list.
13872     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13873     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13874       # If it failed, the variable was not from the command line. Ignore it,
13875       # but warn the user (except for BASH, which is always set by the calling BASH).
13876       if test "xFGREP" != xBASH; then
13877         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13878 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13879       fi
13880       # Try to locate tool using the code snippet
13881       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13882 $as_echo_n "checking for fgrep... " >&6; }
13883 if ${ac_cv_path_FGREP+:} false; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13887    then ac_cv_path_FGREP="$GREP -F"
13888    else
13889      if test -z "$FGREP"; then
13890   ac_path_FGREP_found=false
13891   # Loop through the user's path and test for each of PROGNAME-LIST
13892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13894 do
13895   IFS=$as_save_IFS
13896   test -z "$as_dir" && as_dir=.
13897     for ac_prog in fgrep; do
13898     for ac_exec_ext in '' $ac_executable_extensions; do
13899       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13900       as_fn_executable_p "$ac_path_FGREP" || continue
13901 # Check for GNU ac_path_FGREP and select it if it is found.
13902   # Check for GNU $ac_path_FGREP
13903 case `"$ac_path_FGREP" --version 2>&1` in
13904 *GNU*)
13905   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13906 *)
13907   ac_count=0
13908   $as_echo_n 0123456789 >"conftest.in"
13909   while :
13910   do
13911     cat "conftest.in" "conftest.in" >"conftest.tmp"
13912     mv "conftest.tmp" "conftest.in"
13913     cp "conftest.in" "conftest.nl"
13914     $as_echo 'FGREP' >> "conftest.nl"
13915     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13916     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13917     as_fn_arith $ac_count + 1 && ac_count=$as_val
13918     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13919       # Best one so far, save it but keep looking for a better one
13920       ac_cv_path_FGREP="$ac_path_FGREP"
13921       ac_path_FGREP_max=$ac_count
13922     fi
13923     # 10*(2^10) chars as input seems more than enough
13924     test $ac_count -gt 10 && break
13925   done
13926   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13927 esac
13928 
13929       $ac_path_FGREP_found && break 3
13930     done
13931   done
13932   done
13933 IFS=$as_save_IFS
13934   if test -z "$ac_cv_path_FGREP"; then
13935     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13936   fi
13937 else
13938   ac_cv_path_FGREP=$FGREP
13939 fi
13940 
13941    fi
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13944 $as_echo "$ac_cv_path_FGREP" >&6; }
13945  FGREP="$ac_cv_path_FGREP"
13946 
13947 
13948     else
13949       # If it succeeded, then it was overridden by the user. We will use it
13950       # for the tool.
13951 
13952       # First remove it from the list of overridden variables, so we can test
13953       # for unknown variables in the end.
13954       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13955 
13956       # Check if we try to supply an empty value
13957       if test "x$FGREP" = x; then
13958         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13959 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13960         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13961 $as_echo_n "checking for FGREP... " >&6; }
13962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13963 $as_echo "disabled" >&6; }
13964       else
13965         # Check if the provided tool contains a complete path.
13966         tool_specified="$FGREP"
13967         tool_basename="${tool_specified##*/}"
13968         if test "x$tool_basename" = "x$tool_specified"; then
13969           # A command without a complete path is provided, search $PATH.
13970           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13971 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13972           # Extract the first word of "$tool_basename", so it can be a program name with args.
13973 set dummy $tool_basename; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975 $as_echo_n "checking for $ac_word... " >&6; }
13976 if ${ac_cv_path_FGREP+:} false; then :
13977   $as_echo_n "(cached) " >&6
13978 else
13979   case $FGREP in
13980   [\\/]* | ?:[\\/]*)
13981   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13982   ;;
13983   *)
13984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13986 do
13987   IFS=$as_save_IFS
13988   test -z "$as_dir" && as_dir=.
13989     for ac_exec_ext in '' $ac_executable_extensions; do
13990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993     break 2
13994   fi
13995 done
13996   done
13997 IFS=$as_save_IFS
13998 
13999   ;;
14000 esac
14001 fi
14002 FGREP=$ac_cv_path_FGREP
14003 if test -n "$FGREP"; then
14004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14005 $as_echo "$FGREP" >&6; }
14006 else
14007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 fi
14010 
14011 
14012           if test "x$FGREP" = x; then
14013             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14014           fi
14015         else
14016           # Otherwise we believe it is a complete path. Use it as it is.
14017           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14018 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14019           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14020 $as_echo_n "checking for FGREP... " >&6; }
14021           if test ! -x "$tool_specified"; then
14022             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14023 $as_echo "not found" >&6; }
14024             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14025           fi
14026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14027 $as_echo "$tool_specified" >&6; }
14028         fi
14029       fi
14030     fi
14031 
14032   fi
14033 
14034 
14035   if test "x$FGREP" = x; then
14036     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14037   fi
14038 
14039 
14040 
14041 
14042   # Publish this variable in the help.
14043 
14044 
14045   if [ -z "${SED+x}" ]; then
14046     # The variable is not set by user, try to locate tool using the code snippet
14047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14049 if ${ac_cv_path_SED+:} false; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14053      for ac_i in 1 2 3 4 5 6 7; do
14054        ac_script="$ac_script$as_nl$ac_script"
14055      done
14056      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14057      { ac_script=; unset ac_script;}
14058      if test -z "$SED"; then
14059   ac_path_SED_found=false
14060   # Loop through the user's path and test for each of PROGNAME-LIST
14061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062 for as_dir in $PATH
14063 do
14064   IFS=$as_save_IFS
14065   test -z "$as_dir" && as_dir=.
14066     for ac_prog in sed gsed; do
14067     for ac_exec_ext in '' $ac_executable_extensions; do
14068       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14069       as_fn_executable_p "$ac_path_SED" || continue
14070 # Check for GNU ac_path_SED and select it if it is found.
14071   # Check for GNU $ac_path_SED
14072 case `"$ac_path_SED" --version 2>&1` in
14073 *GNU*)
14074   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14075 *)
14076   ac_count=0
14077   $as_echo_n 0123456789 >"conftest.in"
14078   while :
14079   do
14080     cat "conftest.in" "conftest.in" >"conftest.tmp"
14081     mv "conftest.tmp" "conftest.in"
14082     cp "conftest.in" "conftest.nl"
14083     $as_echo '' >> "conftest.nl"
14084     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14085     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14086     as_fn_arith $ac_count + 1 && ac_count=$as_val
14087     if test $ac_count -gt ${ac_path_SED_max-0}; then
14088       # Best one so far, save it but keep looking for a better one
14089       ac_cv_path_SED="$ac_path_SED"
14090       ac_path_SED_max=$ac_count
14091     fi
14092     # 10*(2^10) chars as input seems more than enough
14093     test $ac_count -gt 10 && break
14094   done
14095   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14096 esac
14097 
14098       $ac_path_SED_found && break 3
14099     done
14100   done
14101   done
14102 IFS=$as_save_IFS
14103   if test -z "$ac_cv_path_SED"; then
14104     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14105   fi
14106 else
14107   ac_cv_path_SED=$SED
14108 fi
14109 
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14112 $as_echo "$ac_cv_path_SED" >&6; }
14113  SED="$ac_cv_path_SED"
14114   rm -f conftest.sed
14115 
14116   else
14117     # The variable is set, but is it from the command line or the environment?
14118 
14119     # Try to remove the string !SED! from our list.
14120     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14121     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14122       # If it failed, the variable was not from the command line. Ignore it,
14123       # but warn the user (except for BASH, which is always set by the calling BASH).
14124       if test "xSED" != xBASH; then
14125         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14126 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14127       fi
14128       # Try to locate tool using the code snippet
14129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14130 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14131 if ${ac_cv_path_SED+:} false; then :
14132   $as_echo_n "(cached) " >&6
14133 else
14134             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14135      for ac_i in 1 2 3 4 5 6 7; do
14136        ac_script="$ac_script$as_nl$ac_script"
14137      done
14138      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14139      { ac_script=; unset ac_script;}
14140      if test -z "$SED"; then
14141   ac_path_SED_found=false
14142   # Loop through the user's path and test for each of PROGNAME-LIST
14143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146   IFS=$as_save_IFS
14147   test -z "$as_dir" && as_dir=.
14148     for ac_prog in sed gsed; do
14149     for ac_exec_ext in '' $ac_executable_extensions; do
14150       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14151       as_fn_executable_p "$ac_path_SED" || continue
14152 # Check for GNU ac_path_SED and select it if it is found.
14153   # Check for GNU $ac_path_SED
14154 case `"$ac_path_SED" --version 2>&1` in
14155 *GNU*)
14156   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14157 *)
14158   ac_count=0
14159   $as_echo_n 0123456789 >"conftest.in"
14160   while :
14161   do
14162     cat "conftest.in" "conftest.in" >"conftest.tmp"
14163     mv "conftest.tmp" "conftest.in"
14164     cp "conftest.in" "conftest.nl"
14165     $as_echo '' >> "conftest.nl"
14166     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14167     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14168     as_fn_arith $ac_count + 1 && ac_count=$as_val
14169     if test $ac_count -gt ${ac_path_SED_max-0}; then
14170       # Best one so far, save it but keep looking for a better one
14171       ac_cv_path_SED="$ac_path_SED"
14172       ac_path_SED_max=$ac_count
14173     fi
14174     # 10*(2^10) chars as input seems more than enough
14175     test $ac_count -gt 10 && break
14176   done
14177   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14178 esac
14179 
14180       $ac_path_SED_found && break 3
14181     done
14182   done
14183   done
14184 IFS=$as_save_IFS
14185   if test -z "$ac_cv_path_SED"; then
14186     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14187   fi
14188 else
14189   ac_cv_path_SED=$SED
14190 fi
14191 
14192 fi
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14194 $as_echo "$ac_cv_path_SED" >&6; }
14195  SED="$ac_cv_path_SED"
14196   rm -f conftest.sed
14197 
14198     else
14199       # If it succeeded, then it was overridden by the user. We will use it
14200       # for the tool.
14201 
14202       # First remove it from the list of overridden variables, so we can test
14203       # for unknown variables in the end.
14204       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14205 
14206       # Check if we try to supply an empty value
14207       if test "x$SED" = x; then
14208         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14209 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14211 $as_echo_n "checking for SED... " >&6; }
14212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14213 $as_echo "disabled" >&6; }
14214       else
14215         # Check if the provided tool contains a complete path.
14216         tool_specified="$SED"
14217         tool_basename="${tool_specified##*/}"
14218         if test "x$tool_basename" = "x$tool_specified"; then
14219           # A command without a complete path is provided, search $PATH.
14220           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14221 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14222           # Extract the first word of "$tool_basename", so it can be a program name with args.
14223 set dummy $tool_basename; ac_word=$2
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14225 $as_echo_n "checking for $ac_word... " >&6; }
14226 if ${ac_cv_path_SED+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   case $SED in
14230   [\\/]* | ?:[\\/]*)
14231   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14232   ;;
14233   *)
14234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14236 do
14237   IFS=$as_save_IFS
14238   test -z "$as_dir" && as_dir=.
14239     for ac_exec_ext in '' $ac_executable_extensions; do
14240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243     break 2
14244   fi
14245 done
14246   done
14247 IFS=$as_save_IFS
14248 
14249   ;;
14250 esac
14251 fi
14252 SED=$ac_cv_path_SED
14253 if test -n "$SED"; then
14254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14255 $as_echo "$SED" >&6; }
14256 else
14257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260 
14261 
14262           if test "x$SED" = x; then
14263             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14264           fi
14265         else
14266           # Otherwise we believe it is a complete path. Use it as it is.
14267           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14268 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14269           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14270 $as_echo_n "checking for SED... " >&6; }
14271           if test ! -x "$tool_specified"; then
14272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14273 $as_echo "not found" >&6; }
14274             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14275           fi
14276           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14277 $as_echo "$tool_specified" >&6; }
14278         fi
14279       fi
14280     fi
14281 
14282   fi
14283 
14284 
14285   if test "x$SED" = x; then
14286     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14287   fi
14288 
14289 
14290 
14291   # Always force rm.
14292   RM="$RM -f"
14293 
14294   # pwd behaves differently on various platforms and some don't support the -L flag.
14295   # Always use the bash builtin pwd to get uniform behavior.
14296   THEPWDCMD=pwd
14297 
14298   # These are not required on all platforms
14299 
14300 
14301   # Publish this variable in the help.
14302 
14303 
14304   if [ -z "${CYGPATH+x}" ]; then
14305     # The variable is not set by user, try to locate tool using the code snippet
14306     for ac_prog in cygpath
14307 do
14308   # Extract the first word of "$ac_prog", so it can be a program name with args.
14309 set dummy $ac_prog; ac_word=$2
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14311 $as_echo_n "checking for $ac_word... " >&6; }
14312 if ${ac_cv_path_CYGPATH+:} false; then :
14313   $as_echo_n "(cached) " >&6
14314 else
14315   case $CYGPATH in
14316   [\\/]* | ?:[\\/]*)
14317   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14318   ;;
14319   *)
14320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14321 for as_dir in $PATH
14322 do
14323   IFS=$as_save_IFS
14324   test -z "$as_dir" && as_dir=.
14325     for ac_exec_ext in '' $ac_executable_extensions; do
14326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14327     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14329     break 2
14330   fi
14331 done
14332   done
14333 IFS=$as_save_IFS
14334 
14335   ;;
14336 esac
14337 fi
14338 CYGPATH=$ac_cv_path_CYGPATH
14339 if test -n "$CYGPATH"; then
14340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14341 $as_echo "$CYGPATH" >&6; }
14342 else
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344 $as_echo "no" >&6; }
14345 fi
14346 
14347 
14348   test -n "$CYGPATH" && break
14349 done
14350 
14351   else
14352     # The variable is set, but is it from the command line or the environment?
14353 
14354     # Try to remove the string !CYGPATH! from our list.
14355     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14356     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14357       # If it failed, the variable was not from the command line. Ignore it,
14358       # but warn the user (except for BASH, which is always set by the calling BASH).
14359       if test "xCYGPATH" != xBASH; then
14360         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14361 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14362       fi
14363       # Try to locate tool using the code snippet
14364       for ac_prog in cygpath
14365 do
14366   # Extract the first word of "$ac_prog", so it can be a program name with args.
14367 set dummy $ac_prog; ac_word=$2
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14369 $as_echo_n "checking for $ac_word... " >&6; }
14370 if ${ac_cv_path_CYGPATH+:} false; then :
14371   $as_echo_n "(cached) " >&6
14372 else
14373   case $CYGPATH in
14374   [\\/]* | ?:[\\/]*)
14375   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14376   ;;
14377   *)
14378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14380 do
14381   IFS=$as_save_IFS
14382   test -z "$as_dir" && as_dir=.
14383     for ac_exec_ext in '' $ac_executable_extensions; do
14384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14385     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14387     break 2
14388   fi
14389 done
14390   done
14391 IFS=$as_save_IFS
14392 
14393   ;;
14394 esac
14395 fi
14396 CYGPATH=$ac_cv_path_CYGPATH
14397 if test -n "$CYGPATH"; then
14398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14399 $as_echo "$CYGPATH" >&6; }
14400 else
14401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 $as_echo "no" >&6; }
14403 fi
14404 
14405 
14406   test -n "$CYGPATH" && break
14407 done
14408 
14409     else
14410       # If it succeeded, then it was overridden by the user. We will use it
14411       # for the tool.
14412 
14413       # First remove it from the list of overridden variables, so we can test
14414       # for unknown variables in the end.
14415       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14416 
14417       # Check if we try to supply an empty value
14418       if test "x$CYGPATH" = x; then
14419         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14420 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14422 $as_echo_n "checking for CYGPATH... " >&6; }
14423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14424 $as_echo "disabled" >&6; }
14425       else
14426         # Check if the provided tool contains a complete path.
14427         tool_specified="$CYGPATH"
14428         tool_basename="${tool_specified##*/}"
14429         if test "x$tool_basename" = "x$tool_specified"; then
14430           # A command without a complete path is provided, search $PATH.
14431           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14432 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14433           # Extract the first word of "$tool_basename", so it can be a program name with args.
14434 set dummy $tool_basename; ac_word=$2
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 $as_echo_n "checking for $ac_word... " >&6; }
14437 if ${ac_cv_path_CYGPATH+:} false; then :
14438   $as_echo_n "(cached) " >&6
14439 else
14440   case $CYGPATH in
14441   [\\/]* | ?:[\\/]*)
14442   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14443   ;;
14444   *)
14445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14447 do
14448   IFS=$as_save_IFS
14449   test -z "$as_dir" && as_dir=.
14450     for ac_exec_ext in '' $ac_executable_extensions; do
14451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14452     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14454     break 2
14455   fi
14456 done
14457   done
14458 IFS=$as_save_IFS
14459 
14460   ;;
14461 esac
14462 fi
14463 CYGPATH=$ac_cv_path_CYGPATH
14464 if test -n "$CYGPATH"; then
14465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14466 $as_echo "$CYGPATH" >&6; }
14467 else
14468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 fi
14471 
14472 
14473           if test "x$CYGPATH" = x; then
14474             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14475           fi
14476         else
14477           # Otherwise we believe it is a complete path. Use it as it is.
14478           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14479 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14480           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14481 $as_echo_n "checking for CYGPATH... " >&6; }
14482           if test ! -x "$tool_specified"; then
14483             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14484 $as_echo "not found" >&6; }
14485             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14486           fi
14487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14488 $as_echo "$tool_specified" >&6; }
14489         fi
14490       fi
14491     fi
14492 
14493   fi
14494 
14495 
14496 
14497 
14498   # Publish this variable in the help.
14499 
14500 
14501   if [ -z "${READLINK+x}" ]; then
14502     # The variable is not set by user, try to locate tool using the code snippet
14503     for ac_prog in greadlink readlink
14504 do
14505   # Extract the first word of "$ac_prog", so it can be a program name with args.
14506 set dummy $ac_prog; ac_word=$2
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14508 $as_echo_n "checking for $ac_word... " >&6; }
14509 if ${ac_cv_path_READLINK+:} false; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   case $READLINK in
14513   [\\/]* | ?:[\\/]*)
14514   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14515   ;;
14516   *)
14517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518 for as_dir in $PATH
14519 do
14520   IFS=$as_save_IFS
14521   test -z "$as_dir" && as_dir=.
14522     for ac_exec_ext in '' $ac_executable_extensions; do
14523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14524     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14526     break 2
14527   fi
14528 done
14529   done
14530 IFS=$as_save_IFS
14531 
14532   ;;
14533 esac
14534 fi
14535 READLINK=$ac_cv_path_READLINK
14536 if test -n "$READLINK"; then
14537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14538 $as_echo "$READLINK" >&6; }
14539 else
14540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14542 fi
14543 
14544 
14545   test -n "$READLINK" && break
14546 done
14547 
14548   else
14549     # The variable is set, but is it from the command line or the environment?
14550 
14551     # Try to remove the string !READLINK! from our list.
14552     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14553     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14554       # If it failed, the variable was not from the command line. Ignore it,
14555       # but warn the user (except for BASH, which is always set by the calling BASH).
14556       if test "xREADLINK" != xBASH; then
14557         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14558 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14559       fi
14560       # Try to locate tool using the code snippet
14561       for ac_prog in greadlink readlink
14562 do
14563   # Extract the first word of "$ac_prog", so it can be a program name with args.
14564 set dummy $ac_prog; ac_word=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14566 $as_echo_n "checking for $ac_word... " >&6; }
14567 if ${ac_cv_path_READLINK+:} false; then :
14568   $as_echo_n "(cached) " >&6
14569 else
14570   case $READLINK in
14571   [\\/]* | ?:[\\/]*)
14572   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14573   ;;
14574   *)
14575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14577 do
14578   IFS=$as_save_IFS
14579   test -z "$as_dir" && as_dir=.
14580     for ac_exec_ext in '' $ac_executable_extensions; do
14581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14582     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584     break 2
14585   fi
14586 done
14587   done
14588 IFS=$as_save_IFS
14589 
14590   ;;
14591 esac
14592 fi
14593 READLINK=$ac_cv_path_READLINK
14594 if test -n "$READLINK"; then
14595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14596 $as_echo "$READLINK" >&6; }
14597 else
14598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14600 fi
14601 
14602 
14603   test -n "$READLINK" && break
14604 done
14605 
14606     else
14607       # If it succeeded, then it was overridden by the user. We will use it
14608       # for the tool.
14609 
14610       # First remove it from the list of overridden variables, so we can test
14611       # for unknown variables in the end.
14612       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14613 
14614       # Check if we try to supply an empty value
14615       if test "x$READLINK" = x; then
14616         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14617 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14619 $as_echo_n "checking for READLINK... " >&6; }
14620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14621 $as_echo "disabled" >&6; }
14622       else
14623         # Check if the provided tool contains a complete path.
14624         tool_specified="$READLINK"
14625         tool_basename="${tool_specified##*/}"
14626         if test "x$tool_basename" = "x$tool_specified"; then
14627           # A command without a complete path is provided, search $PATH.
14628           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14629 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14630           # Extract the first word of "$tool_basename", so it can be a program name with args.
14631 set dummy $tool_basename; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_path_READLINK+:} false; then :
14635   $as_echo_n "(cached) " >&6
14636 else
14637   case $READLINK in
14638   [\\/]* | ?:[\\/]*)
14639   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14640   ;;
14641   *)
14642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH
14644 do
14645   IFS=$as_save_IFS
14646   test -z "$as_dir" && as_dir=.
14647     for ac_exec_ext in '' $ac_executable_extensions; do
14648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14649     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14651     break 2
14652   fi
14653 done
14654   done
14655 IFS=$as_save_IFS
14656 
14657   ;;
14658 esac
14659 fi
14660 READLINK=$ac_cv_path_READLINK
14661 if test -n "$READLINK"; then
14662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14663 $as_echo "$READLINK" >&6; }
14664 else
14665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14667 fi
14668 
14669 
14670           if test "x$READLINK" = x; then
14671             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14672           fi
14673         else
14674           # Otherwise we believe it is a complete path. Use it as it is.
14675           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14676 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14677           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14678 $as_echo_n "checking for READLINK... " >&6; }
14679           if test ! -x "$tool_specified"; then
14680             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14681 $as_echo "not found" >&6; }
14682             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14683           fi
14684           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14685 $as_echo "$tool_specified" >&6; }
14686         fi
14687       fi
14688     fi
14689 
14690   fi
14691 
14692 
14693 
14694 
14695   # Publish this variable in the help.
14696 
14697 
14698   if [ -z "${DF+x}" ]; then
14699     # The variable is not set by user, try to locate tool using the code snippet
14700     for ac_prog in df
14701 do
14702   # Extract the first word of "$ac_prog", so it can be a program name with args.
14703 set dummy $ac_prog; ac_word=$2
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705 $as_echo_n "checking for $ac_word... " >&6; }
14706 if ${ac_cv_path_DF+:} false; then :
14707   $as_echo_n "(cached) " >&6
14708 else
14709   case $DF in
14710   [\\/]* | ?:[\\/]*)
14711   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14712   ;;
14713   *)
14714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14715 for as_dir in $PATH
14716 do
14717   IFS=$as_save_IFS
14718   test -z "$as_dir" && as_dir=.
14719     for ac_exec_ext in '' $ac_executable_extensions; do
14720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14721     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14723     break 2
14724   fi
14725 done
14726   done
14727 IFS=$as_save_IFS
14728 
14729   ;;
14730 esac
14731 fi
14732 DF=$ac_cv_path_DF
14733 if test -n "$DF"; then
14734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14735 $as_echo "$DF" >&6; }
14736 else
14737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738 $as_echo "no" >&6; }
14739 fi
14740 
14741 
14742   test -n "$DF" && break
14743 done
14744 
14745   else
14746     # The variable is set, but is it from the command line or the environment?
14747 
14748     # Try to remove the string !DF! from our list.
14749     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14750     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14751       # If it failed, the variable was not from the command line. Ignore it,
14752       # but warn the user (except for BASH, which is always set by the calling BASH).
14753       if test "xDF" != xBASH; then
14754         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14755 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14756       fi
14757       # Try to locate tool using the code snippet
14758       for ac_prog in df
14759 do
14760   # Extract the first word of "$ac_prog", so it can be a program name with args.
14761 set dummy $ac_prog; ac_word=$2
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14763 $as_echo_n "checking for $ac_word... " >&6; }
14764 if ${ac_cv_path_DF+:} false; then :
14765   $as_echo_n "(cached) " >&6
14766 else
14767   case $DF in
14768   [\\/]* | ?:[\\/]*)
14769   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14770   ;;
14771   *)
14772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14773 for as_dir in $PATH
14774 do
14775   IFS=$as_save_IFS
14776   test -z "$as_dir" && as_dir=.
14777     for ac_exec_ext in '' $ac_executable_extensions; do
14778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14779     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14781     break 2
14782   fi
14783 done
14784   done
14785 IFS=$as_save_IFS
14786 
14787   ;;
14788 esac
14789 fi
14790 DF=$ac_cv_path_DF
14791 if test -n "$DF"; then
14792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14793 $as_echo "$DF" >&6; }
14794 else
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14797 fi
14798 
14799 
14800   test -n "$DF" && break
14801 done
14802 
14803     else
14804       # If it succeeded, then it was overridden by the user. We will use it
14805       # for the tool.
14806 
14807       # First remove it from the list of overridden variables, so we can test
14808       # for unknown variables in the end.
14809       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14810 
14811       # Check if we try to supply an empty value
14812       if test "x$DF" = x; then
14813         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14814 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14815         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14816 $as_echo_n "checking for DF... " >&6; }
14817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14818 $as_echo "disabled" >&6; }
14819       else
14820         # Check if the provided tool contains a complete path.
14821         tool_specified="$DF"
14822         tool_basename="${tool_specified##*/}"
14823         if test "x$tool_basename" = "x$tool_specified"; then
14824           # A command without a complete path is provided, search $PATH.
14825           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14826 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14827           # Extract the first word of "$tool_basename", so it can be a program name with args.
14828 set dummy $tool_basename; ac_word=$2
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14830 $as_echo_n "checking for $ac_word... " >&6; }
14831 if ${ac_cv_path_DF+:} false; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834   case $DF in
14835   [\\/]* | ?:[\\/]*)
14836   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14837   ;;
14838   *)
14839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14840 for as_dir in $PATH
14841 do
14842   IFS=$as_save_IFS
14843   test -z "$as_dir" && as_dir=.
14844     for ac_exec_ext in '' $ac_executable_extensions; do
14845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14846     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14848     break 2
14849   fi
14850 done
14851   done
14852 IFS=$as_save_IFS
14853 
14854   ;;
14855 esac
14856 fi
14857 DF=$ac_cv_path_DF
14858 if test -n "$DF"; then
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14860 $as_echo "$DF" >&6; }
14861 else
14862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14863 $as_echo "no" >&6; }
14864 fi
14865 
14866 
14867           if test "x$DF" = x; then
14868             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14869           fi
14870         else
14871           # Otherwise we believe it is a complete path. Use it as it is.
14872           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14873 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14874           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14875 $as_echo_n "checking for DF... " >&6; }
14876           if test ! -x "$tool_specified"; then
14877             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14878 $as_echo "not found" >&6; }
14879             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14880           fi
14881           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14882 $as_echo "$tool_specified" >&6; }
14883         fi
14884       fi
14885     fi
14886 
14887   fi
14888 
14889 
14890 
14891 
14892   # Publish this variable in the help.
14893 
14894 
14895   if [ -z "${CPIO+x}" ]; then
14896     # The variable is not set by user, try to locate tool using the code snippet
14897     for ac_prog in cpio bsdcpio
14898 do
14899   # Extract the first word of "$ac_prog", so it can be a program name with args.
14900 set dummy $ac_prog; ac_word=$2
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14902 $as_echo_n "checking for $ac_word... " >&6; }
14903 if ${ac_cv_path_CPIO+:} false; then :
14904   $as_echo_n "(cached) " >&6
14905 else
14906   case $CPIO in
14907   [\\/]* | ?:[\\/]*)
14908   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14909   ;;
14910   *)
14911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14912 for as_dir in $PATH
14913 do
14914   IFS=$as_save_IFS
14915   test -z "$as_dir" && as_dir=.
14916     for ac_exec_ext in '' $ac_executable_extensions; do
14917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14918     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14920     break 2
14921   fi
14922 done
14923   done
14924 IFS=$as_save_IFS
14925 
14926   ;;
14927 esac
14928 fi
14929 CPIO=$ac_cv_path_CPIO
14930 if test -n "$CPIO"; then
14931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14932 $as_echo "$CPIO" >&6; }
14933 else
14934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935 $as_echo "no" >&6; }
14936 fi
14937 
14938 
14939   test -n "$CPIO" && break
14940 done
14941 
14942   else
14943     # The variable is set, but is it from the command line or the environment?
14944 
14945     # Try to remove the string !CPIO! from our list.
14946     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14947     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14948       # If it failed, the variable was not from the command line. Ignore it,
14949       # but warn the user (except for BASH, which is always set by the calling BASH).
14950       if test "xCPIO" != xBASH; then
14951         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14952 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14953       fi
14954       # Try to locate tool using the code snippet
14955       for ac_prog in cpio bsdcpio
14956 do
14957   # Extract the first word of "$ac_prog", so it can be a program name with args.
14958 set dummy $ac_prog; ac_word=$2
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960 $as_echo_n "checking for $ac_word... " >&6; }
14961 if ${ac_cv_path_CPIO+:} false; then :
14962   $as_echo_n "(cached) " >&6
14963 else
14964   case $CPIO in
14965   [\\/]* | ?:[\\/]*)
14966   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14967   ;;
14968   *)
14969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970 for as_dir in $PATH
14971 do
14972   IFS=$as_save_IFS
14973   test -z "$as_dir" && as_dir=.
14974     for ac_exec_ext in '' $ac_executable_extensions; do
14975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14978     break 2
14979   fi
14980 done
14981   done
14982 IFS=$as_save_IFS
14983 
14984   ;;
14985 esac
14986 fi
14987 CPIO=$ac_cv_path_CPIO
14988 if test -n "$CPIO"; then
14989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14990 $as_echo "$CPIO" >&6; }
14991 else
14992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14994 fi
14995 
14996 
14997   test -n "$CPIO" && break
14998 done
14999 
15000     else
15001       # If it succeeded, then it was overridden by the user. We will use it
15002       # for the tool.
15003 
15004       # First remove it from the list of overridden variables, so we can test
15005       # for unknown variables in the end.
15006       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15007 
15008       # Check if we try to supply an empty value
15009       if test "x$CPIO" = x; then
15010         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15011 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15012         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15013 $as_echo_n "checking for CPIO... " >&6; }
15014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15015 $as_echo "disabled" >&6; }
15016       else
15017         # Check if the provided tool contains a complete path.
15018         tool_specified="$CPIO"
15019         tool_basename="${tool_specified##*/}"
15020         if test "x$tool_basename" = "x$tool_specified"; then
15021           # A command without a complete path is provided, search $PATH.
15022           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15023 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15024           # Extract the first word of "$tool_basename", so it can be a program name with args.
15025 set dummy $tool_basename; ac_word=$2
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15027 $as_echo_n "checking for $ac_word... " >&6; }
15028 if ${ac_cv_path_CPIO+:} false; then :
15029   $as_echo_n "(cached) " >&6
15030 else
15031   case $CPIO in
15032   [\\/]* | ?:[\\/]*)
15033   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15034   ;;
15035   *)
15036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037 for as_dir in $PATH
15038 do
15039   IFS=$as_save_IFS
15040   test -z "$as_dir" && as_dir=.
15041     for ac_exec_ext in '' $ac_executable_extensions; do
15042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15045     break 2
15046   fi
15047 done
15048   done
15049 IFS=$as_save_IFS
15050 
15051   ;;
15052 esac
15053 fi
15054 CPIO=$ac_cv_path_CPIO
15055 if test -n "$CPIO"; then
15056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15057 $as_echo "$CPIO" >&6; }
15058 else
15059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15061 fi
15062 
15063 
15064           if test "x$CPIO" = x; then
15065             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15066           fi
15067         else
15068           # Otherwise we believe it is a complete path. Use it as it is.
15069           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15070 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15071           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15072 $as_echo_n "checking for CPIO... " >&6; }
15073           if test ! -x "$tool_specified"; then
15074             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15075 $as_echo "not found" >&6; }
15076             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15077           fi
15078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15079 $as_echo "$tool_specified" >&6; }
15080         fi
15081       fi
15082     fi
15083 
15084   fi
15085 
15086 
15087 
15088 
15089   # Publish this variable in the help.
15090 
15091 
15092   if [ -z "${NICE+x}" ]; then
15093     # The variable is not set by user, try to locate tool using the code snippet
15094     for ac_prog in nice
15095 do
15096   # Extract the first word of "$ac_prog", so it can be a program name with args.
15097 set dummy $ac_prog; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if ${ac_cv_path_NICE+:} false; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103   case $NICE in
15104   [\\/]* | ?:[\\/]*)
15105   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15106   ;;
15107   *)
15108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15109 for as_dir in $PATH
15110 do
15111   IFS=$as_save_IFS
15112   test -z "$as_dir" && as_dir=.
15113     for ac_exec_ext in '' $ac_executable_extensions; do
15114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15115     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15117     break 2
15118   fi
15119 done
15120   done
15121 IFS=$as_save_IFS
15122 
15123   ;;
15124 esac
15125 fi
15126 NICE=$ac_cv_path_NICE
15127 if test -n "$NICE"; then
15128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15129 $as_echo "$NICE" >&6; }
15130 else
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 $as_echo "no" >&6; }
15133 fi
15134 
15135 
15136   test -n "$NICE" && break
15137 done
15138 
15139   else
15140     # The variable is set, but is it from the command line or the environment?
15141 
15142     # Try to remove the string !NICE! from our list.
15143     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15144     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15145       # If it failed, the variable was not from the command line. Ignore it,
15146       # but warn the user (except for BASH, which is always set by the calling BASH).
15147       if test "xNICE" != xBASH; then
15148         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15149 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15150       fi
15151       # Try to locate tool using the code snippet
15152       for ac_prog in nice
15153 do
15154   # Extract the first word of "$ac_prog", so it can be a program name with args.
15155 set dummy $ac_prog; ac_word=$2
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15157 $as_echo_n "checking for $ac_word... " >&6; }
15158 if ${ac_cv_path_NICE+:} false; then :
15159   $as_echo_n "(cached) " >&6
15160 else
15161   case $NICE in
15162   [\\/]* | ?:[\\/]*)
15163   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15164   ;;
15165   *)
15166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167 for as_dir in $PATH
15168 do
15169   IFS=$as_save_IFS
15170   test -z "$as_dir" && as_dir=.
15171     for ac_exec_ext in '' $ac_executable_extensions; do
15172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15173     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15175     break 2
15176   fi
15177 done
15178   done
15179 IFS=$as_save_IFS
15180 
15181   ;;
15182 esac
15183 fi
15184 NICE=$ac_cv_path_NICE
15185 if test -n "$NICE"; then
15186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15187 $as_echo "$NICE" >&6; }
15188 else
15189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15191 fi
15192 
15193 
15194   test -n "$NICE" && break
15195 done
15196 
15197     else
15198       # If it succeeded, then it was overridden by the user. We will use it
15199       # for the tool.
15200 
15201       # First remove it from the list of overridden variables, so we can test
15202       # for unknown variables in the end.
15203       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15204 
15205       # Check if we try to supply an empty value
15206       if test "x$NICE" = x; then
15207         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15208 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15210 $as_echo_n "checking for NICE... " >&6; }
15211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15212 $as_echo "disabled" >&6; }
15213       else
15214         # Check if the provided tool contains a complete path.
15215         tool_specified="$NICE"
15216         tool_basename="${tool_specified##*/}"
15217         if test "x$tool_basename" = "x$tool_specified"; then
15218           # A command without a complete path is provided, search $PATH.
15219           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15220 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15221           # Extract the first word of "$tool_basename", so it can be a program name with args.
15222 set dummy $tool_basename; ac_word=$2
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15224 $as_echo_n "checking for $ac_word... " >&6; }
15225 if ${ac_cv_path_NICE+:} false; then :
15226   $as_echo_n "(cached) " >&6
15227 else
15228   case $NICE in
15229   [\\/]* | ?:[\\/]*)
15230   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15231   ;;
15232   *)
15233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236   IFS=$as_save_IFS
15237   test -z "$as_dir" && as_dir=.
15238     for ac_exec_ext in '' $ac_executable_extensions; do
15239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15242     break 2
15243   fi
15244 done
15245   done
15246 IFS=$as_save_IFS
15247 
15248   ;;
15249 esac
15250 fi
15251 NICE=$ac_cv_path_NICE
15252 if test -n "$NICE"; then
15253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15254 $as_echo "$NICE" >&6; }
15255 else
15256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257 $as_echo "no" >&6; }
15258 fi
15259 
15260 
15261           if test "x$NICE" = x; then
15262             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15263           fi
15264         else
15265           # Otherwise we believe it is a complete path. Use it as it is.
15266           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15267 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15268           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15269 $as_echo_n "checking for NICE... " >&6; }
15270           if test ! -x "$tool_specified"; then
15271             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15272 $as_echo "not found" >&6; }
15273             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15274           fi
15275           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15276 $as_echo "$tool_specified" >&6; }
15277         fi
15278       fi
15279     fi
15280 
15281   fi
15282 
15283 
15284 
15285 
15286 # Now we can determine OpenJDK build and target platforms. This is required to
15287 # have early on.
15288 # Make sure we can run config.sub.
15289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15290   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15291 
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15293 $as_echo_n "checking build system type... " >&6; }
15294 if ${ac_cv_build+:} false; then :
15295   $as_echo_n "(cached) " >&6
15296 else
15297   ac_build_alias=$build_alias
15298 test "x$ac_build_alias" = x &&
15299   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15300 test "x$ac_build_alias" = x &&
15301   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15303   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15304 
15305 fi
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15307 $as_echo "$ac_cv_build" >&6; }
15308 case $ac_cv_build in
15309 *-*-*) ;;
15310 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15311 esac
15312 build=$ac_cv_build
15313 ac_save_IFS=$IFS; IFS='-'
15314 set x $ac_cv_build
15315 shift
15316 build_cpu=$1
15317 build_vendor=$2
15318 shift; shift
15319 # Remember, the first character of IFS is used to create $*,
15320 # except with old shells:
15321 build_os=$*
15322 IFS=$ac_save_IFS
15323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15324 
15325 
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15327 $as_echo_n "checking host system type... " >&6; }
15328 if ${ac_cv_host+:} false; then :
15329   $as_echo_n "(cached) " >&6
15330 else
15331   if test "x$host_alias" = x; then
15332   ac_cv_host=$ac_cv_build
15333 else
15334   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15335     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15336 fi
15337 
15338 fi
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15340 $as_echo "$ac_cv_host" >&6; }
15341 case $ac_cv_host in
15342 *-*-*) ;;
15343 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15344 esac
15345 host=$ac_cv_host
15346 ac_save_IFS=$IFS; IFS='-'
15347 set x $ac_cv_host
15348 shift
15349 host_cpu=$1
15350 host_vendor=$2
15351 shift; shift
15352 # Remember, the first character of IFS is used to create $*,
15353 # except with old shells:
15354 host_os=$*
15355 IFS=$ac_save_IFS
15356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15357 
15358 
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15360 $as_echo_n "checking target system type... " >&6; }
15361 if ${ac_cv_target+:} false; then :
15362   $as_echo_n "(cached) " >&6
15363 else
15364   if test "x$target_alias" = x; then
15365   ac_cv_target=$ac_cv_host
15366 else
15367   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15368     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15369 fi
15370 
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15373 $as_echo "$ac_cv_target" >&6; }
15374 case $ac_cv_target in
15375 *-*-*) ;;
15376 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15377 esac
15378 target=$ac_cv_target
15379 ac_save_IFS=$IFS; IFS='-'
15380 set x $ac_cv_target
15381 shift
15382 target_cpu=$1
15383 target_vendor=$2
15384 shift; shift
15385 # Remember, the first character of IFS is used to create $*,
15386 # except with old shells:
15387 target_os=$*
15388 IFS=$ac_save_IFS
15389 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15390 
15391 
15392 # The aliases save the names the user supplied, while $host etc.
15393 # will get canonicalized.
15394 test -n "$target_alias" &&
15395   test "$program_prefix$program_suffix$program_transform_name" = \
15396     NONENONEs,x,x, &&
15397   program_prefix=${target_alias}-
15398 
15399   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15400   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15401   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15402   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15403   # to use the configure naming style.
15404 
15405 
15406 
15407 
15408 
15409   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15410   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15411   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15412   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15413   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15414   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15415 
15416 
15417 
15418   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15419 
15420   case "$build_os" in
15421     *linux*)
15422       VAR_OS=linux
15423       VAR_OS_TYPE=unix
15424       ;;
15425     *solaris*)
15426       VAR_OS=solaris
15427       VAR_OS_TYPE=unix
15428       ;;
15429     *darwin*)
15430       VAR_OS=macosx
15431       VAR_OS_TYPE=unix
15432       ;;
15433     *bsd*)
15434       VAR_OS=bsd
15435       VAR_OS_TYPE=unix
15436       ;;
15437     *cygwin*)
15438       VAR_OS=windows
15439       VAR_OS_ENV=windows.cygwin
15440       ;;
15441     *mingw*)
15442       VAR_OS=windows
15443       VAR_OS_ENV=windows.msys
15444       ;;
15445     *aix*)
15446       VAR_OS=aix
15447       VAR_OS_TYPE=unix
15448       ;;
15449     *)
15450       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15451       ;;
15452   esac
15453 
15454 
15455   # First argument is the cpu name from the trip/quad
15456   case "$build_cpu" in
15457     x86_64)
15458       VAR_CPU=x86_64
15459       VAR_CPU_ARCH=x86
15460       VAR_CPU_BITS=64
15461       VAR_CPU_ENDIAN=little
15462       ;;
15463     i?86)
15464       VAR_CPU=x86
15465       VAR_CPU_ARCH=x86
15466       VAR_CPU_BITS=32
15467       VAR_CPU_ENDIAN=little
15468       ;;
15469     arm*)
15470       VAR_CPU=arm
15471       VAR_CPU_ARCH=arm
15472       VAR_CPU_BITS=32
15473       VAR_CPU_ENDIAN=little
15474       ;;
15475     aarch64)
15476       VAR_CPU=aarch64
15477       VAR_CPU_ARCH=aarch64
15478       VAR_CPU_BITS=64
15479       VAR_CPU_ENDIAN=little
15480       ;;
15481     powerpc)
15482       VAR_CPU=ppc
15483       VAR_CPU_ARCH=ppc
15484       VAR_CPU_BITS=32
15485       VAR_CPU_ENDIAN=big
15486       ;;
15487     powerpc64)
15488       VAR_CPU=ppc64
15489       VAR_CPU_ARCH=ppc
15490       VAR_CPU_BITS=64
15491       VAR_CPU_ENDIAN=big
15492       ;;
15493     powerpc64le)
15494       VAR_CPU=ppc64le
15495       VAR_CPU_ARCH=ppc
15496       VAR_CPU_BITS=64
15497       VAR_CPU_ENDIAN=little
15498       ;;
15499     s390)
15500       VAR_CPU=s390
15501       VAR_CPU_ARCH=s390
15502       VAR_CPU_BITS=32
15503       VAR_CPU_ENDIAN=big
15504       ;;
15505     s390x)
15506       VAR_CPU=s390x
15507       VAR_CPU_ARCH=s390
15508       VAR_CPU_BITS=64
15509       VAR_CPU_ENDIAN=big
15510       ;;
15511     sparc)
15512       VAR_CPU=sparc
15513       VAR_CPU_ARCH=sparc
15514       VAR_CPU_BITS=32
15515       VAR_CPU_ENDIAN=big
15516       ;;
15517     sparcv9|sparc64)
15518       VAR_CPU=sparcv9
15519       VAR_CPU_ARCH=sparc
15520       VAR_CPU_BITS=64
15521       VAR_CPU_ENDIAN=big
15522       ;;
15523     *)
15524       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15525       ;;
15526   esac
15527 
15528   # ..and setup our own variables. (Do this explicitely to facilitate searching)
15529   OPENJDK_BUILD_OS="$VAR_OS"
15530   if test "x$VAR_OS_TYPE" != x; then
15531     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15532   else
15533     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15534   fi
15535   if test "x$VAR_OS_ENV" != x; then
15536     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15537   else
15538     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15539   fi
15540   OPENJDK_BUILD_CPU="$VAR_CPU"
15541   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15542   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15543   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15544 
15545 
15546 
15547 
15548 
15549 
15550 
15551 
15552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15553 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15555 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15556 
15557   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15558 
15559   case "$host_os" in
15560     *linux*)
15561       VAR_OS=linux
15562       VAR_OS_TYPE=unix
15563       ;;
15564     *solaris*)
15565       VAR_OS=solaris
15566       VAR_OS_TYPE=unix
15567       ;;
15568     *darwin*)
15569       VAR_OS=macosx
15570       VAR_OS_TYPE=unix
15571       ;;
15572     *bsd*)
15573       VAR_OS=bsd
15574       VAR_OS_TYPE=unix
15575       ;;
15576     *cygwin*)
15577       VAR_OS=windows
15578       VAR_OS_ENV=windows.cygwin
15579       ;;
15580     *mingw*)
15581       VAR_OS=windows
15582       VAR_OS_ENV=windows.msys
15583       ;;
15584     *aix*)
15585       VAR_OS=aix
15586       VAR_OS_TYPE=unix
15587       ;;
15588     *)
15589       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15590       ;;
15591   esac
15592 
15593 
15594   # First argument is the cpu name from the trip/quad
15595   case "$host_cpu" in
15596     x86_64)
15597       VAR_CPU=x86_64
15598       VAR_CPU_ARCH=x86
15599       VAR_CPU_BITS=64
15600       VAR_CPU_ENDIAN=little
15601       ;;
15602     i?86)
15603       VAR_CPU=x86
15604       VAR_CPU_ARCH=x86
15605       VAR_CPU_BITS=32
15606       VAR_CPU_ENDIAN=little
15607       ;;
15608     arm*)
15609       VAR_CPU=arm
15610       VAR_CPU_ARCH=arm
15611       VAR_CPU_BITS=32
15612       VAR_CPU_ENDIAN=little
15613       ;;
15614     aarch64)
15615       VAR_CPU=aarch64
15616       VAR_CPU_ARCH=aarch64
15617       VAR_CPU_BITS=64
15618       VAR_CPU_ENDIAN=little
15619       ;;
15620     powerpc)
15621       VAR_CPU=ppc
15622       VAR_CPU_ARCH=ppc
15623       VAR_CPU_BITS=32
15624       VAR_CPU_ENDIAN=big
15625       ;;
15626     powerpc64)
15627       VAR_CPU=ppc64
15628       VAR_CPU_ARCH=ppc
15629       VAR_CPU_BITS=64
15630       VAR_CPU_ENDIAN=big
15631       ;;
15632     powerpc64le)
15633       VAR_CPU=ppc64le
15634       VAR_CPU_ARCH=ppc
15635       VAR_CPU_BITS=64
15636       VAR_CPU_ENDIAN=little
15637       ;;
15638     s390)
15639       VAR_CPU=s390
15640       VAR_CPU_ARCH=s390
15641       VAR_CPU_BITS=32
15642       VAR_CPU_ENDIAN=big
15643       ;;
15644     s390x)
15645       VAR_CPU=s390x
15646       VAR_CPU_ARCH=s390
15647       VAR_CPU_BITS=64
15648       VAR_CPU_ENDIAN=big
15649       ;;
15650     sparc)
15651       VAR_CPU=sparc
15652       VAR_CPU_ARCH=sparc
15653       VAR_CPU_BITS=32
15654       VAR_CPU_ENDIAN=big
15655       ;;
15656     sparcv9|sparc64)
15657       VAR_CPU=sparcv9
15658       VAR_CPU_ARCH=sparc
15659       VAR_CPU_BITS=64
15660       VAR_CPU_ENDIAN=big
15661       ;;
15662     *)
15663       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15664       ;;
15665   esac
15666 
15667   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15668   OPENJDK_TARGET_OS="$VAR_OS"
15669   if test "x$VAR_OS_TYPE" != x; then
15670     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15671   else
15672     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15673   fi
15674   if test "x$VAR_OS_ENV" != x; then
15675     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15676   else
15677     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15678   fi
15679   OPENJDK_TARGET_CPU="$VAR_CPU"
15680   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15681   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15682   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15683 
15684 
15685 
15686 
15687 
15688 
15689 
15690 
15691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15692 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15694 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15695 
15696 
15697 
15698 # Check whether --with-target-bits was given.
15699 if test "${with_target_bits+set}" = set; then :
15700   withval=$with_target_bits;
15701 fi
15702 
15703 
15704   # We have three types of compiles:
15705   # native  == normal compilation, target system == build system
15706   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15707   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15708   #
15709   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15710     # We're doing a proper cross-compilation
15711     COMPILE_TYPE="cross"
15712   else
15713     COMPILE_TYPE="native"
15714   fi
15715 
15716   if test "x$with_target_bits" != x; then
15717     if test "x$COMPILE_TYPE" = "xcross"; then
15718       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15719     fi
15720 
15721     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15722       # A reduced build is requested
15723       COMPILE_TYPE="reduced"
15724       OPENJDK_TARGET_CPU_BITS=32
15725       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15726         OPENJDK_TARGET_CPU=x86
15727       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15728         OPENJDK_TARGET_CPU=sparc
15729       else
15730         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15731       fi
15732     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15733       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
15734     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15735       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15736 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15737     else
15738       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15739     fi
15740   fi
15741 
15742 
15743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15744 $as_echo_n "checking compilation type... " >&6; }
15745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15746 $as_echo "$COMPILE_TYPE" >&6; }
15747 
15748 
15749   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15750     REQUIRED_OS_NAME=SunOS
15751     REQUIRED_OS_VERSION=5.10
15752   fi
15753   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15754     REQUIRED_OS_NAME=Linux
15755     REQUIRED_OS_VERSION=2.6
15756   fi
15757   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15758     REQUIRED_OS_NAME=Windows
15759     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15760       REQUIRED_OS_VERSION=5.2
15761     else
15762       REQUIRED_OS_VERSION=5.1
15763     fi
15764   fi
15765   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15766     REQUIRED_OS_NAME=Darwin
15767     REQUIRED_OS_VERSION=11.2
15768   fi
15769   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15770     REQUIRED_OS_NAME=AIX
15771     REQUIRED_OS_VERSION=7.1
15772   fi
15773 
15774 
15775 
15776 
15777 
15778 
15779   # Also store the legacy naming of the cpu.
15780   # Ie i586 and amd64 instead of x86 and x86_64
15781   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15782   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15783     OPENJDK_TARGET_CPU_LEGACY="i586"
15784   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15785     # On all platforms except MacOSX replace x86_64 with amd64.
15786     OPENJDK_TARGET_CPU_LEGACY="amd64"
15787   fi
15788 
15789 
15790   # And the second legacy naming of the cpu.
15791   # Ie i386 and amd64 instead of x86 and x86_64.
15792   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15793   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15794     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15795   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15796     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15797   fi
15798 
15799 
15800   # This is the name of the cpu (but using i386 and amd64 instead of
15801   # x86 and x86_64, respectively), preceeded by a /, to be used when
15802   # locating libraries. On macosx, it's empty, though.
15803   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15804   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15805     OPENJDK_TARGET_CPU_LIBDIR=""
15806   fi
15807 
15808 
15809   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15810   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15811   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15812   OPENJDK_TARGET_CPU_ISADIR=""
15813   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15814     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15815       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15816     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15817       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15818     fi
15819   fi
15820 
15821 
15822   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15823   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15824   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15825     # On linux only, we replace x86 with i386.
15826     OPENJDK_TARGET_CPU_OSARCH="i386"
15827   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15828     # On all platforms except macosx, we replace x86_64 with amd64.
15829     OPENJDK_TARGET_CPU_OSARCH="amd64"
15830   fi
15831 
15832 
15833   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15834   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15835     OPENJDK_TARGET_CPU_JLI="i386"
15836   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15837     # On all platforms except macosx, we replace x86_64 with amd64.
15838     OPENJDK_TARGET_CPU_JLI="amd64"
15839   fi
15840   # Now setup the -D flags for building libjli.
15841   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15842   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15843     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15844       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15845     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15846       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15847     fi
15848   fi
15849 
15850 
15851   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15852       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15853   else
15854       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15855   fi
15856 
15857 
15858   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
15859   # Macosx is osx and x86_64 is x64
15860   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15861     OPENJDK_TARGET_OS_BUNDLE="osx"
15862   else
15863     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
15864   fi
15865   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15866     OPENJDK_TARGET_CPU_BUNDLE="x64"
15867   else
15868     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
15869   fi
15870   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
15871 
15872 
15873 
15874 
15875   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15876     A_LP64="LP64:="
15877     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15878     # unpack200.exe
15879     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15880       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15881     fi
15882   fi
15883   LP64=$A_LP64
15884 
15885 
15886   if test "x$COMPILE_TYPE" = "xcross"; then
15887     # FIXME: ... or should this include reduced builds..?
15888     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15889   else
15890     DEFINE_CROSS_COMPILE_ARCH=""
15891   fi
15892 
15893 
15894   # Convert openjdk platform names to hotspot names
15895 
15896   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15897   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15898     HOTSPOT_TARGET_OS=bsd
15899   fi
15900 
15901 
15902   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15903   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15904     HOTSPOT_TARGET_OS_TYPE=posix
15905   fi
15906 
15907 
15908   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15909   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15910     HOTSPOT_TARGET_CPU=x86_32
15911   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15912     HOTSPOT_TARGET_CPU=sparc
15913   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15914     HOTSPOT_TARGET_CPU=ppc_64
15915   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15916     HOTSPOT_TARGET_CPU=ppc_64
15917   fi
15918 
15919 
15920   # This is identical with OPENJDK_*, but define anyway for consistency.
15921   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15922 
15923 
15924   # Setup HOTSPOT_TARGET_CPU_DEFINE
15925   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15926     HOTSPOT_TARGET_CPU_DEFINE=IA32
15927   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15928     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15929   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15930     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15931   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15932     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15933   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15934     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15935   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15936     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15937 
15938   # The cpu defines below are for zero, we don't support them directly.
15939   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15940     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15941   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15942     HOTSPOT_TARGET_CPU_DEFINE=PPC32
15943   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15944     HOTSPOT_TARGET_CPU_DEFINE=S390
15945   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
15946     HOTSPOT_TARGET_CPU_DEFINE=S390
15947   fi
15948 
15949 
15950 
15951 
15952   # Also store the legacy naming of the cpu.
15953   # Ie i586 and amd64 instead of x86 and x86_64
15954   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15955   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15956     OPENJDK_BUILD_CPU_LEGACY="i586"
15957   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15958     # On all platforms except MacOSX replace x86_64 with amd64.
15959     OPENJDK_BUILD_CPU_LEGACY="amd64"
15960   fi
15961 
15962 
15963   # And the second legacy naming of the cpu.
15964   # Ie i386 and amd64 instead of x86 and x86_64.
15965   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15966   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15967     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15968   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15969     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15970   fi
15971 
15972 
15973   # This is the name of the cpu (but using i386 and amd64 instead of
15974   # x86 and x86_64, respectively), preceeded by a /, to be used when
15975   # locating libraries. On macosx, it's empty, though.
15976   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
15977   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15978     OPENJDK_BUILD_CPU_LIBDIR=""
15979   fi
15980 
15981 
15982   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15983   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15984   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
15985   OPENJDK_BUILD_CPU_ISADIR=""
15986   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15987     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15988       OPENJDK_BUILD_CPU_ISADIR="/amd64"
15989     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15990       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
15991     fi
15992   fi
15993 
15994 
15995   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
15996   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
15997   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
15998     # On linux only, we replace x86 with i386.
15999     OPENJDK_BUILD_CPU_OSARCH="i386"
16000   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16001     # On all platforms except macosx, we replace x86_64 with amd64.
16002     OPENJDK_BUILD_CPU_OSARCH="amd64"
16003   fi
16004 
16005 
16006   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16007   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16008     OPENJDK_BUILD_CPU_JLI="i386"
16009   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16010     # On all platforms except macosx, we replace x86_64 with amd64.
16011     OPENJDK_BUILD_CPU_JLI="amd64"
16012   fi
16013   # Now setup the -D flags for building libjli.
16014   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
16015   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16016     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
16017       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
16018     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
16019       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
16020     fi
16021   fi
16022 
16023 
16024   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16025       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
16026   else
16027       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
16028   fi
16029 
16030 
16031   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16032   # Macosx is osx and x86_64 is x64
16033   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16034     OPENJDK_BUILD_OS_BUNDLE="osx"
16035   else
16036     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16037   fi
16038   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16039     OPENJDK_BUILD_CPU_BUNDLE="x64"
16040   else
16041     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16042   fi
16043   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16044 
16045 
16046 
16047 
16048   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16049     A_LP64="LP64:="
16050     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16051     # unpack200.exe
16052     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16053       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16054     fi
16055   fi
16056   LP64=$A_LP64
16057 
16058 
16059   if test "x$COMPILE_TYPE" = "xcross"; then
16060     # FIXME: ... or should this include reduced builds..?
16061     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16062   else
16063     DEFINE_CROSS_COMPILE_ARCH=""
16064   fi
16065 
16066 
16067   # Convert openjdk platform names to hotspot names
16068 
16069   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16070   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16071     HOTSPOT_BUILD_OS=bsd
16072   fi
16073 
16074 
16075   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16076   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16077     HOTSPOT_BUILD_OS_TYPE=posix
16078   fi
16079 
16080 
16081   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16082   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16083     HOTSPOT_BUILD_CPU=x86_32
16084   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16085     HOTSPOT_BUILD_CPU=sparc
16086   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16087     HOTSPOT_BUILD_CPU=ppc_64
16088   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16089     HOTSPOT_BUILD_CPU=ppc_64
16090   fi
16091 
16092 
16093   # This is identical with OPENJDK_*, but define anyway for consistency.
16094   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16095 
16096 
16097   # Setup HOTSPOT_BUILD_CPU_DEFINE
16098   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16099     HOTSPOT_BUILD_CPU_DEFINE=IA32
16100   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16101     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16102   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16103     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16104   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16105     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16106   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16107     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16108   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16109     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16110 
16111   # The cpu defines below are for zero, we don't support them directly.
16112   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16113     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16114   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16115     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16116   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16117     HOTSPOT_BUILD_CPU_DEFINE=S390
16118   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16119     HOTSPOT_BUILD_CPU_DEFINE=S390
16120   fi
16121 
16122 
16123 
16124 
16125   # ZERO_ARCHDEF is used to enable architecture-specific code.
16126   # This is used in legacy hotspot build.
16127   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
16128 
16129 
16130 
16131 
16132 
16133 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16134 
16135   # Save the current directory this script was started from
16136   CURDIR="$PWD"
16137 
16138   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16139   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16140   # was not available at that time.
16141   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16142   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16143     ORIGINAL_PATH="$REWRITTEN_PATH"
16144     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16145 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16146   fi
16147 
16148   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16149     PATH_SEP=";"
16150 
16151   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16152   if test $SRC_ROOT_LENGTH -gt 100; then
16153     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16154   fi
16155 
16156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16158 $as_echo_n "checking cygwin release... " >&6; }
16159     CYGWIN_VERSION=`$UNAME -r`
16160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16161 $as_echo "$CYGWIN_VERSION" >&6; }
16162     WINDOWS_ENV_VENDOR='cygwin'
16163     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16164 
16165     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16166     if test "x$CYGWIN_VERSION_OLD" != x; then
16167       { $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
16168 $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;}
16169       as_fn_error $? "Cannot continue" "$LINENO" 5
16170     fi
16171     if test "x$CYGPATH" = x; then
16172       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16173     fi
16174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16175 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16176     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16177     cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`
16178     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16179     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16181 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16182     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16183     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16184     if test "x$test_cygdrive_prefix" = x; then
16185       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16186     fi
16187   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16189 $as_echo_n "checking msys release... " >&6; }
16190     MSYS_VERSION=`$UNAME -r`
16191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16192 $as_echo "$MSYS_VERSION" >&6; }
16193 
16194     WINDOWS_ENV_VENDOR='msys'
16195     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16196 
16197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16198 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16199     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16200     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16201 
16202   windows_path="$MSYS_ROOT_PATH"
16203   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16204     unix_path=`$CYGPATH -u "$windows_path"`
16205     MSYS_ROOT_PATH="$unix_path"
16206   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16207     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16208     MSYS_ROOT_PATH="$unix_path"
16209   fi
16210 
16211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16212 $as_echo "$MSYS_ROOT_PATH" >&6; }
16213     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16214   else
16215     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16216   fi
16217 
16218   # Test if windows or unix (cygwin/msys) find is first in path.
16219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16220 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16221   FIND_BINARY_OUTPUT=`find --version 2>&1`
16222   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16224 $as_echo "unix style" >&6; }
16225   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16227 $as_echo "Windows" >&6; }
16228     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16229 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16230     { $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
16231 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16232     as_fn_error $? "Cannot continue" "$LINENO" 5
16233   else
16234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16235 $as_echo "unknown" >&6; }
16236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16237 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16238   fi
16239 
16240   else
16241     PATH_SEP=":"
16242   fi
16243 
16244 
16245   # We get the top-level directory from the supporting wrappers.
16246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16247 $as_echo_n "checking for top-level directory... " >&6; }
16248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16249 $as_echo "$TOPDIR" >&6; }
16250 
16251 
16252   # Save the original version of TOPDIR for string comparisons
16253   ORIGINAL_TOPDIR="$TOPDIR"
16254 
16255 
16256   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16257 
16258   # Only process if variable expands to non-empty
16259 
16260   if test "x$CURDIR" != x; then
16261     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16262 
16263   # Input might be given as Windows format, start by converting to
16264   # unix format.
16265   path="$CURDIR"
16266   new_path=`$CYGPATH -u "$path"`
16267 
16268   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16269   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16270   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16271   # "foo.exe" is OK but "foo" is an error.
16272   #
16273   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16274   # It is also a way to make sure we got the proper file name for the real test later on.
16275   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16276   if test "x$test_shortpath" = x; then
16277     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16278 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16279     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16280   fi
16281 
16282   # Call helper function which possibly converts this using DOS-style short mode.
16283   # If so, the updated path is stored in $new_path.
16284 
16285   input_path="$new_path"
16286   # Check if we need to convert this using DOS-style short mode. If the path
16287   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16288   # take no chances and rewrite it.
16289   # Note: m4 eats our [], so we need to use [ and ] instead.
16290   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16291   if test "x$has_forbidden_chars" != x; then
16292     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16293     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16294     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16295     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16296       # Going to short mode and back again did indeed matter. Since short mode is
16297       # case insensitive, let's make it lowercase to improve readability.
16298       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16299       # Now convert it back to Unix-style (cygpath)
16300       input_path=`$CYGPATH -u "$shortmode_path"`
16301       new_path="$input_path"
16302     fi
16303   fi
16304 
16305   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16306   if test "x$test_cygdrive_prefix" = x; then
16307     # As a simple fix, exclude /usr/bin since it's not a real path.
16308     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16309       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16310       # a path prefixed by /cygdrive for fixpath to work.
16311       new_path="$CYGWIN_ROOT_PATH$input_path"
16312     fi
16313   fi
16314 
16315 
16316   if test "x$path" != "x$new_path"; then
16317     CURDIR="$new_path"
16318     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16319 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16320   fi
16321 
16322     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16323 
16324   path="$CURDIR"
16325   has_colon=`$ECHO $path | $GREP ^.:`
16326   new_path="$path"
16327   if test "x$has_colon" = x; then
16328     # Not in mixed or Windows style, start by that.
16329     new_path=`cmd //c echo $path`
16330   fi
16331 
16332 
16333   input_path="$new_path"
16334   # Check if we need to convert this using DOS-style short mode. If the path
16335   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16336   # take no chances and rewrite it.
16337   # Note: m4 eats our [], so we need to use [ and ] instead.
16338   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16339   if test "x$has_forbidden_chars" != x; then
16340     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16341     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16342   fi
16343 
16344 
16345   windows_path="$new_path"
16346   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16347     unix_path=`$CYGPATH -u "$windows_path"`
16348     new_path="$unix_path"
16349   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16350     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16351     new_path="$unix_path"
16352   fi
16353 
16354   if test "x$path" != "x$new_path"; then
16355     CURDIR="$new_path"
16356     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16357 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16358   fi
16359 
16360   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16361   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16362 
16363     else
16364       # We're on a unix platform. Hooray! :)
16365       path="$CURDIR"
16366       has_space=`$ECHO "$path" | $GREP " "`
16367       if test "x$has_space" != x; then
16368         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16369 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16370         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16371       fi
16372 
16373       # Use eval to expand a potential ~
16374       eval path="$path"
16375       if test ! -f "$path" && test ! -d "$path"; then
16376         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16377       fi
16378 
16379       if test -d "$path"; then
16380         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16381       else
16382         dir="`$DIRNAME "$path"`"
16383         base="`$BASENAME "$path"`"
16384         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16385       fi
16386     fi
16387   fi
16388 
16389 
16390   # Only process if variable expands to non-empty
16391 
16392   if test "x$TOPDIR" != x; then
16393     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16394 
16395   # Input might be given as Windows format, start by converting to
16396   # unix format.
16397   path="$TOPDIR"
16398   new_path=`$CYGPATH -u "$path"`
16399 
16400   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16401   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16402   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16403   # "foo.exe" is OK but "foo" is an error.
16404   #
16405   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16406   # It is also a way to make sure we got the proper file name for the real test later on.
16407   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16408   if test "x$test_shortpath" = x; then
16409     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16410 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16411     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16412   fi
16413 
16414   # Call helper function which possibly converts this using DOS-style short mode.
16415   # If so, the updated path is stored in $new_path.
16416 
16417   input_path="$new_path"
16418   # Check if we need to convert this using DOS-style short mode. If the path
16419   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16420   # take no chances and rewrite it.
16421   # Note: m4 eats our [], so we need to use [ and ] instead.
16422   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16423   if test "x$has_forbidden_chars" != x; then
16424     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16425     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16426     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16427     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16428       # Going to short mode and back again did indeed matter. Since short mode is
16429       # case insensitive, let's make it lowercase to improve readability.
16430       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16431       # Now convert it back to Unix-style (cygpath)
16432       input_path=`$CYGPATH -u "$shortmode_path"`
16433       new_path="$input_path"
16434     fi
16435   fi
16436 
16437   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16438   if test "x$test_cygdrive_prefix" = x; then
16439     # As a simple fix, exclude /usr/bin since it's not a real path.
16440     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16441       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16442       # a path prefixed by /cygdrive for fixpath to work.
16443       new_path="$CYGWIN_ROOT_PATH$input_path"
16444     fi
16445   fi
16446 
16447 
16448   if test "x$path" != "x$new_path"; then
16449     TOPDIR="$new_path"
16450     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16451 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16452   fi
16453 
16454     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16455 
16456   path="$TOPDIR"
16457   has_colon=`$ECHO $path | $GREP ^.:`
16458   new_path="$path"
16459   if test "x$has_colon" = x; then
16460     # Not in mixed or Windows style, start by that.
16461     new_path=`cmd //c echo $path`
16462   fi
16463 
16464 
16465   input_path="$new_path"
16466   # Check if we need to convert this using DOS-style short mode. If the path
16467   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16468   # take no chances and rewrite it.
16469   # Note: m4 eats our [], so we need to use [ and ] instead.
16470   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16471   if test "x$has_forbidden_chars" != x; then
16472     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16473     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16474   fi
16475 
16476 
16477   windows_path="$new_path"
16478   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16479     unix_path=`$CYGPATH -u "$windows_path"`
16480     new_path="$unix_path"
16481   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16482     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16483     new_path="$unix_path"
16484   fi
16485 
16486   if test "x$path" != "x$new_path"; then
16487     TOPDIR="$new_path"
16488     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16489 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16490   fi
16491 
16492   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16493   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16494 
16495     else
16496       # We're on a unix platform. Hooray! :)
16497       path="$TOPDIR"
16498       has_space=`$ECHO "$path" | $GREP " "`
16499       if test "x$has_space" != x; then
16500         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16501 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16502         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16503       fi
16504 
16505       # Use eval to expand a potential ~
16506       eval path="$path"
16507       if test ! -f "$path" && test ! -d "$path"; then
16508         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16509       fi
16510 
16511       if test -d "$path"; then
16512         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16513       else
16514         dir="`$DIRNAME "$path"`"
16515         base="`$BASENAME "$path"`"
16516         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16517       fi
16518     fi
16519   fi
16520 
16521   # SRC_ROOT is a traditional alias for TOPDIR.
16522   SRC_ROOT=$TOPDIR
16523 
16524   # Calculate a canonical version of TOPDIR for string comparisons
16525   CANONICAL_TOPDIR=$TOPDIR
16526 
16527   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16528     # Follow a chain of symbolic links. Use readlink
16529     # where it exists, else fall back to horribly
16530     # complicated shell code.
16531     if test "x$READLINK_TESTED" != yes; then
16532       # On MacOSX there is a readlink tool with a different
16533       # purpose than the GNU readlink tool. Check the found readlink.
16534       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16535       if test "x$ISGNU" = x; then
16536         # A readlink that we do not know how to use.
16537         # Are there other non-GNU readlinks out there?
16538         READLINK_TESTED=yes
16539         READLINK=
16540       fi
16541     fi
16542 
16543     if test "x$READLINK" != x; then
16544       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16545     else
16546       # Save the current directory for restoring afterwards
16547       STARTDIR=$PWD
16548       COUNTER=0
16549       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16550       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16551       cd $sym_link_dir
16552       # Use -P flag to resolve symlinks in directories.
16553       cd `$THEPWDCMD -P`
16554       sym_link_dir=`$THEPWDCMD -P`
16555       # Resolve file symlinks
16556       while test $COUNTER -lt 20; do
16557         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16558         if test "x$ISLINK" == x; then
16559           # This is not a symbolic link! We are done!
16560           break
16561         fi
16562         # Again resolve directory symlinks since the target of the just found
16563         # link could be in a different directory
16564         cd `$DIRNAME $ISLINK`
16565         sym_link_dir=`$THEPWDCMD -P`
16566         sym_link_file=`$BASENAME $ISLINK`
16567         let COUNTER=COUNTER+1
16568       done
16569       cd $STARTDIR
16570       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16571     fi
16572   fi
16573 
16574 
16575 
16576   # Locate the directory of this script.
16577   AUTOCONF_DIR=$TOPDIR/common/autoconf
16578 
16579   # Setup username (for use in adhoc version strings etc)
16580   # Outer [ ] to quote m4.
16581    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16582 
16583 
16584 
16585 # Check if it's a pure open build or if custom sources are to be used.
16586 
16587   # Check whether --enable-openjdk-only was given.
16588 if test "${enable_openjdk_only+set}" = set; then :
16589   enableval=$enable_openjdk_only;
16590 else
16591   enable_openjdk_only="no"
16592 fi
16593 
16594 
16595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
16596 $as_echo_n "checking for presence of closed sources... " >&6; }
16597   if test -d "$SRC_ROOT/jdk/src/closed"; then
16598     CLOSED_SOURCE_PRESENT=yes
16599   else
16600     CLOSED_SOURCE_PRESENT=no
16601   fi
16602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
16603 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
16604 
16605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
16606 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
16607   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
16608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
16609 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
16610 
16611   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
16612     OPENJDK=true
16613     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16614       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
16615 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
16616     fi
16617   else
16618     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16619       OPENJDK=true
16620     else
16621       OPENJDK=false
16622     fi
16623   fi
16624 
16625   if test "x$OPENJDK" = "xtrue"; then
16626     SET_OPENJDK="OPENJDK=true"
16627   fi
16628 
16629 
16630 
16631   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16632   # the IncludeCustomExtension macro.
16633 
16634 
16635 # Check whether --with-custom-make-dir was given.
16636 if test "${with_custom_make_dir+set}" = set; then :
16637   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
16638 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16639 fi
16640 
16641 
16642 
16643 
16644 # These are needed to be able to create a configuration name (and thus the output directory)
16645 
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16647 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16648 
16649 # Check whether --with-jdk-variant was given.
16650 if test "${with_jdk_variant+set}" = set; then :
16651   withval=$with_jdk_variant;
16652 fi
16653 
16654 
16655   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16656     JDK_VARIANT="normal"
16657   else
16658     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16659   fi
16660 
16661 
16662 
16663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16664 $as_echo "$JDK_VARIANT" >&6; }
16665 
16666 
16667   DEBUG_LEVEL="release"
16668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16669 $as_echo_n "checking which debug level to use... " >&6; }
16670   # Check whether --enable-debug was given.
16671 if test "${enable_debug+set}" = set; then :
16672   enableval=$enable_debug;
16673         ENABLE_DEBUG="${enableval}"
16674         DEBUG_LEVEL="fastdebug"
16675 
16676 else
16677   ENABLE_DEBUG="no"
16678 fi
16679 
16680 
16681 
16682 # Check whether --with-debug-level was given.
16683 if test "${with_debug_level+set}" = set; then :
16684   withval=$with_debug_level;
16685         DEBUG_LEVEL="${withval}"
16686         if test "x$ENABLE_DEBUG" = xyes; then
16687           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16688         fi
16689 
16690 fi
16691 
16692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16693 $as_echo "$DEBUG_LEVEL" >&6; }
16694 
16695   if test "x$DEBUG_LEVEL" != xrelease && \
16696       test "x$DEBUG_LEVEL" != xoptimized && \
16697       test "x$DEBUG_LEVEL" != xfastdebug && \
16698       test "x$DEBUG_LEVEL" != xslowdebug; then
16699     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16700   fi
16701 
16702   # Translate DEBUG_LEVEL to debug level used by Hotspot
16703   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16704   if test "x$DEBUG_LEVEL" = xrelease; then
16705     HOTSPOT_DEBUG_LEVEL="product"
16706   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16707     HOTSPOT_DEBUG_LEVEL="debug"
16708   fi
16709 
16710   if test "x$DEBUG_LEVEL" = xoptimized; then
16711     # The debug level 'optimized' is a little special because it is currently only
16712     # applicable to the HotSpot build where it means to build a completely
16713     # optimized version of the VM without any debugging code (like for the
16714     # 'release' debug level which is called 'product' in the HotSpot build) but
16715     # with the exception that it can contain additional code which is otherwise
16716     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16717     # test new and/or experimental features which are not intended for customer
16718     # shipment. Because these new features need to be tested and benchmarked in
16719     # real world scenarios, we want to build the containing JDK at the 'release'
16720     # debug level.
16721     DEBUG_LEVEL="release"
16722   fi
16723 
16724 
16725 
16726 
16727 
16728 
16729 # Check whether --with-jvm-variants was given.
16730 if test "${with_jvm_variants+set}" = set; then :
16731   withval=$with_jvm_variants;
16732 fi
16733 
16734 
16735   if test "x$with_jvm_variants" = x; then
16736     with_jvm_variants="server"
16737   fi
16738   JVM_VARIANTS_OPT="$with_jvm_variants"
16739 
16740   # Has the user listed more than one variant?
16741   # Additional [] needed to keep m4 from mangling shell constructs.
16742   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16743     BUILDING_MULTIPLE_JVM_VARIANTS=true
16744   else
16745     BUILDING_MULTIPLE_JVM_VARIANTS=false
16746   fi
16747   # Replace the commas with AND for use in the build directory name.
16748   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16749 
16750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16751 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16752   # JVM_VARIANTS is a space-separated list.
16753   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16754   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16756 $as_echo "$JVM_VARIANTS" >&6; }
16757 
16758   # Check that the selected variants are valid
16759 
16760   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16761   # Notice that the original variant failes on SLES 10 and 11
16762   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16763   STACK=${JVM_VARIANTS// /$'\n'}
16764   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16765   if test "x$INVALID_VARIANTS" != x; then
16766     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16767 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16768     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16769   fi
16770 
16771   # All "special" variants share the same output directory ("server")
16772   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16773   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16774   STACK=${JVM_VARIANTS// /$'\n'}
16775   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16776   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16777     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16778   fi
16779 
16780 
16781 
16782 
16783   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16784     # zero behaves as a platform and rewrites these values. This is really weird. :(
16785     # We are guaranteed that we do not build any other variants when building zero.
16786     HOTSPOT_TARGET_CPU=zero
16787     HOTSPOT_TARGET_CPU_ARCH=zero
16788   fi
16789 
16790 
16791 # With basic setup done, call the custom early hook.
16792 
16793 
16794 # Check if we have devkits, extra paths or sysroot set.
16795 
16796 
16797 # Check whether --with-devkit was given.
16798 if test "${with_devkit+set}" = set; then :
16799   withval=$with_devkit;
16800 
16801   # Only process if variable expands to non-empty
16802 
16803   if test "x$with_devkit" != x; then
16804     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16805 
16806   # Input might be given as Windows format, start by converting to
16807   # unix format.
16808   path="$with_devkit"
16809   new_path=`$CYGPATH -u "$path"`
16810 
16811   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16812   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16813   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16814   # "foo.exe" is OK but "foo" is an error.
16815   #
16816   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16817   # It is also a way to make sure we got the proper file name for the real test later on.
16818   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16819   if test "x$test_shortpath" = x; then
16820     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16821 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16822     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16823   fi
16824 
16825   # Call helper function which possibly converts this using DOS-style short mode.
16826   # If so, the updated path is stored in $new_path.
16827 
16828   input_path="$new_path"
16829   # Check if we need to convert this using DOS-style short mode. If the path
16830   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16831   # take no chances and rewrite it.
16832   # Note: m4 eats our [], so we need to use [ and ] instead.
16833   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16834   if test "x$has_forbidden_chars" != x; then
16835     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16836     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16837     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16838     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16839       # Going to short mode and back again did indeed matter. Since short mode is
16840       # case insensitive, let's make it lowercase to improve readability.
16841       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16842       # Now convert it back to Unix-style (cygpath)
16843       input_path=`$CYGPATH -u "$shortmode_path"`
16844       new_path="$input_path"
16845     fi
16846   fi
16847 
16848   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16849   if test "x$test_cygdrive_prefix" = x; then
16850     # As a simple fix, exclude /usr/bin since it's not a real path.
16851     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16852       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16853       # a path prefixed by /cygdrive for fixpath to work.
16854       new_path="$CYGWIN_ROOT_PATH$input_path"
16855     fi
16856   fi
16857 
16858 
16859   if test "x$path" != "x$new_path"; then
16860     with_devkit="$new_path"
16861     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16862 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16863   fi
16864 
16865     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16866 
16867   path="$with_devkit"
16868   has_colon=`$ECHO $path | $GREP ^.:`
16869   new_path="$path"
16870   if test "x$has_colon" = x; then
16871     # Not in mixed or Windows style, start by that.
16872     new_path=`cmd //c echo $path`
16873   fi
16874 
16875 
16876   input_path="$new_path"
16877   # Check if we need to convert this using DOS-style short mode. If the path
16878   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16879   # take no chances and rewrite it.
16880   # Note: m4 eats our [], so we need to use [ and ] instead.
16881   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16882   if test "x$has_forbidden_chars" != x; then
16883     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16884     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16885   fi
16886 
16887 
16888   windows_path="$new_path"
16889   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16890     unix_path=`$CYGPATH -u "$windows_path"`
16891     new_path="$unix_path"
16892   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16893     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16894     new_path="$unix_path"
16895   fi
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   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16904   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16905 
16906     else
16907       # We're on a unix platform. Hooray! :)
16908       path="$with_devkit"
16909       has_space=`$ECHO "$path" | $GREP " "`
16910       if test "x$has_space" != x; then
16911         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16912 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16913         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16914       fi
16915 
16916       # Use eval to expand a potential ~
16917       eval path="$path"
16918       if test ! -f "$path" && test ! -d "$path"; then
16919         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16920       fi
16921 
16922       if test -d "$path"; then
16923         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16924       else
16925         dir="`$DIRNAME "$path"`"
16926         base="`$BASENAME "$path"`"
16927         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16928       fi
16929     fi
16930   fi
16931 
16932         DEVKIT_ROOT="$with_devkit"
16933         # Check for a meta data info file in the root of the devkit
16934         if test -f "$DEVKIT_ROOT/devkit.info"; then
16935           . $DEVKIT_ROOT/devkit.info
16936           # This potentially sets the following:
16937           # A descriptive name of the devkit
16938 
16939   if test "x$DEVKIT_NAME" = x; then
16940     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16941   fi
16942 
16943           # Corresponds to --with-extra-path
16944 
16945   if test "x$DEVKIT_EXTRA_PATH" = x; then
16946     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16947   fi
16948 
16949           # Corresponds to --with-toolchain-path
16950 
16951   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16952     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16953   fi
16954 
16955           # Corresponds to --with-sysroot
16956 
16957   if test "x$DEVKIT_SYSROOT" = x; then
16958     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16959   fi
16960 
16961 
16962           # Identifies the Visual Studio version in the devkit
16963 
16964   if test "x$DEVKIT_VS_VERSION" = x; then
16965     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16966   fi
16967 
16968           # The Visual Studio include environment variable
16969 
16970   if test "x$DEVKIT_VS_INCLUDE" = x; then
16971     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16972   fi
16973 
16974           # The Visual Studio lib environment variable
16975 
16976   if test "x$DEVKIT_VS_LIB" = x; then
16977     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16978   fi
16979 
16980           # Corresponds to --with-msvcr-dll
16981 
16982   if test "x$DEVKIT_MSVCR_DLL" = x; then
16983     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16984   fi
16985 
16986           # Corresponds to --with-msvcp-dll
16987 
16988   if test "x$DEVKIT_MSVCP_DLL" = x; then
16989     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16990   fi
16991 
16992         fi
16993 
16994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16995 $as_echo_n "checking for devkit... " >&6; }
16996         if test "x$DEVKIT_NAME" != x; then
16997           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16998 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16999         else
17000           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17001 $as_echo "$DEVKIT_ROOT" >&6; }
17002         fi
17003 
17004 
17005   if test "x$DEVKIT_EXTRA_PATH" != x; then
17006     if test "x$EXTRA_PATH" = x; then
17007       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17008     else
17009       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17010     fi
17011   fi
17012 
17013 
17014         # Fallback default of just /bin if DEVKIT_PATH is not defined
17015         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17016           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17017         fi
17018 
17019   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17020     if test "x$TOOLCHAIN_PATH" = x; then
17021       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17022     else
17023       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17024     fi
17025   fi
17026 
17027 
17028         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17029         # places for backwards compatiblity.
17030         if test "x$DEVKIT_SYSROOT" != x; then
17031           SYSROOT="$DEVKIT_SYSROOT"
17032         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17033           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17034         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17035           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17036         fi
17037 
17038 
17039 fi
17040 
17041 
17042   # You can force the sysroot if the sysroot encoded into the compiler tools
17043   # is not correct.
17044 
17045 # Check whether --with-sys-root was given.
17046 if test "${with_sys_root+set}" = set; then :
17047   withval=$with_sys_root; SYSROOT=$with_sys_root
17048 
17049 fi
17050 
17051 
17052 
17053 # Check whether --with-sysroot was given.
17054 if test "${with_sysroot+set}" = set; then :
17055   withval=$with_sysroot; SYSROOT=$with_sysroot
17056 
17057 fi
17058 
17059 
17060 
17061 # Check whether --with-tools-dir was given.
17062 if test "${with_tools_dir+set}" = set; then :
17063   withval=$with_tools_dir;
17064   if test "x$with_tools_dir" != x; then
17065     if test "x$TOOLCHAIN_PATH" = x; then
17066       TOOLCHAIN_PATH="$with_tools_dir"
17067     else
17068       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17069     fi
17070   fi
17071 
17072 
17073 fi
17074 
17075 
17076 
17077 # Check whether --with-toolchain-path was given.
17078 if test "${with_toolchain_path+set}" = set; then :
17079   withval=$with_toolchain_path;
17080   if test "x$with_toolchain_path" != x; then
17081     if test "x$TOOLCHAIN_PATH" = x; then
17082       TOOLCHAIN_PATH="$with_toolchain_path"
17083     else
17084       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17085     fi
17086   fi
17087 
17088 
17089 fi
17090 
17091 
17092 
17093 # Check whether --with-extra-path was given.
17094 if test "${with_extra_path+set}" = set; then :
17095   withval=$with_extra_path;
17096   if test "x$with_extra_path" != x; then
17097     if test "x$EXTRA_PATH" = x; then
17098       EXTRA_PATH="$with_extra_path"
17099     else
17100       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17101     fi
17102   fi
17103 
17104 
17105 fi
17106 
17107 
17108   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17109     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17110     # If not, detect if Xcode is installed by running xcodebuild -version
17111     # if no Xcode installed, xcodebuild exits with 1
17112     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17113     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17114       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17115       # fall back on the stub binary in /usr/bin/xcodebuild
17116       # Extract the first word of "xcodebuild", so it can be a program name with args.
17117 set dummy xcodebuild; ac_word=$2
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17119 $as_echo_n "checking for $ac_word... " >&6; }
17120 if ${ac_cv_path_XCODEBUILD+:} false; then :
17121   $as_echo_n "(cached) " >&6
17122 else
17123   case $XCODEBUILD in
17124   [\\/]* | ?:[\\/]*)
17125   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17126   ;;
17127   *)
17128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17129 for as_dir in $TOOLCHAIN_PATH
17130 do
17131   IFS=$as_save_IFS
17132   test -z "$as_dir" && as_dir=.
17133     for ac_exec_ext in '' $ac_executable_extensions; do
17134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17135     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17137     break 2
17138   fi
17139 done
17140   done
17141 IFS=$as_save_IFS
17142 
17143   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17144   ;;
17145 esac
17146 fi
17147 XCODEBUILD=$ac_cv_path_XCODEBUILD
17148 if test -n "$XCODEBUILD"; then
17149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17150 $as_echo "$XCODEBUILD" >&6; }
17151 else
17152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17153 $as_echo "no" >&6; }
17154 fi
17155 
17156 
17157     else
17158       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17159       # when only the command line tools are installed there are no SDKs, so headers
17160       # are copied into the system frameworks
17161       XCODEBUILD=
17162 
17163     fi
17164 
17165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17166 $as_echo_n "checking for sdk name... " >&6; }
17167 
17168 # Check whether --with-sdk-name was given.
17169 if test "${with_sdk_name+set}" = set; then :
17170   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17171 
17172 fi
17173 
17174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17175 $as_echo "$SDKNAME" >&6; }
17176 
17177     # if toolchain path is specified then don't rely on system headers, they may not compile
17178     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17179     test -z "$TOOLCHAIN_PATH" && \
17180       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17181 
17182     if test -z "$SYSROOT"; then
17183       if test -n "$XCODEBUILD"; then
17184         # if we don't have system headers, use default SDK name (last resort)
17185         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17186           SDKNAME=${SDKNAME:-macosx}
17187         fi
17188 
17189         if test -n "$SDKNAME"; then
17190           # Call xcodebuild to determine SYSROOT
17191           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17192         fi
17193       else
17194         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17195           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
17196         fi
17197       fi
17198     else
17199       # warn user if --with-sdk-name was also set
17200       if test -n "$with_sdk_name"; then
17201         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17202 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17203       fi
17204     fi
17205 
17206     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17207       # If no system framework headers, then SYSROOT must be set, or we won't build
17208       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
17209     fi
17210 
17211     # Perform a basic sanity test
17212     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17213       if test -z "$SYSROOT"; then
17214         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
17215       else
17216         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17217       fi
17218     fi
17219 
17220     # set SDKROOT too, Xcode tools will pick it up
17221     SDKROOT=$SYSROOT
17222 
17223   fi
17224 
17225   # Prepend the extra path to the global path
17226 
17227   if test "x$EXTRA_PATH" != x; then
17228     if test "x$PATH" = x; then
17229       PATH="$EXTRA_PATH"
17230     else
17231       PATH="$EXTRA_PATH:$PATH"
17232     fi
17233   fi
17234 
17235 
17236   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
17237     # Add extra search paths on solaris for utilities like ar, as, dtrace etc...
17238     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin"
17239   fi
17240 
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17242 $as_echo_n "checking for sysroot... " >&6; }
17243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17244 $as_echo "$SYSROOT" >&6; }
17245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17246 $as_echo_n "checking for toolchain path... " >&6; }
17247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17248 $as_echo "$TOOLCHAIN_PATH" >&6; }
17249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17250 $as_echo_n "checking for extra path... " >&6; }
17251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17252 $as_echo "$EXTRA_PATH" >&6; }
17253 
17254 
17255 # To properly create a configuration name, we need to have the OpenJDK target
17256 # and options (variants and debug level) parsed.
17257 
17258 
17259 
17260 # Check whether --with-conf-name was given.
17261 if test "${with_conf_name+set}" = set; then :
17262   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17263 fi
17264 
17265 
17266   # Test from where we are running configure, in or outside of src root.
17267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17268 $as_echo_n "checking where to store configuration... " >&6; }
17269   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
17270       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
17271       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
17272     # We are running configure from the src root.
17273     # Create a default ./build/target-variant-debuglevel output root.
17274     if test "x${CONF_NAME}" = x; then
17275       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17276 $as_echo "in default location" >&6; }
17277       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17278     else
17279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17280 $as_echo "in build directory with custom name" >&6; }
17281     fi
17282     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
17283     $MKDIR -p "$OUTPUT_ROOT"
17284     if test ! -d "$OUTPUT_ROOT"; then
17285       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
17286     fi
17287   else
17288     # We are running configure from outside of the src dir.
17289     # Then use the current directory as output dir!
17290     # If configuration is situated in normal build directory, just use the build
17291     # directory name as configuration name, otherwise use the complete path.
17292     if test "x${CONF_NAME}" = x; then
17293       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
17294     fi
17295     OUTPUT_ROOT="$CURDIR"
17296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17297 $as_echo "in current directory" >&6; }
17298 
17299     # WARNING: This might be a bad thing to do. You need to be sure you want to
17300     # have a configuration in this directory. Do some sanity checks!
17301 
17302     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
17303       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17304       # other files
17305       files_present=`$LS $OUTPUT_ROOT`
17306       # Configure has already touched config.log and confdefs.h in the current dir when this check
17307       # is performed.
17308       filtered_files=`$ECHO "$files_present" \
17309           | $SED -e 's/config.log//g' \
17310               -e 's/configure.log//g' \
17311               -e 's/confdefs.h//g' \
17312               -e 's/ //g' \
17313           | $TR -d '\n'`
17314       if test "x$filtered_files" != x; then
17315         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17316 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17317         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17318 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17319         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17320 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17321         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17322 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17323         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17324 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17325         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
17326 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
17327         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17328 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17329         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17330       fi
17331     fi
17332   fi
17333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17334 $as_echo_n "checking what configuration name to use... " >&6; }
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17336 $as_echo "$CONF_NAME" >&6; }
17337 
17338 
17339   # Only process if variable expands to non-empty
17340 
17341   if test "x$OUTPUT_ROOT" != x; then
17342     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17343 
17344   # Input might be given as Windows format, start by converting to
17345   # unix format.
17346   path="$OUTPUT_ROOT"
17347   new_path=`$CYGPATH -u "$path"`
17348 
17349   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17350   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17351   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17352   # "foo.exe" is OK but "foo" is an error.
17353   #
17354   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17355   # It is also a way to make sure we got the proper file name for the real test later on.
17356   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17357   if test "x$test_shortpath" = x; then
17358     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17359 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17360     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
17361   fi
17362 
17363   # Call helper function which possibly converts this using DOS-style short mode.
17364   # If so, the updated path is stored in $new_path.
17365 
17366   input_path="$new_path"
17367   # Check if we need to convert this using DOS-style short mode. If the path
17368   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17369   # take no chances and rewrite it.
17370   # Note: m4 eats our [], so we need to use [ and ] instead.
17371   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17372   if test "x$has_forbidden_chars" != x; then
17373     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17374     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17375     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17376     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17377       # Going to short mode and back again did indeed matter. Since short mode is
17378       # case insensitive, let's make it lowercase to improve readability.
17379       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17380       # Now convert it back to Unix-style (cygpath)
17381       input_path=`$CYGPATH -u "$shortmode_path"`
17382       new_path="$input_path"
17383     fi
17384   fi
17385 
17386   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17387   if test "x$test_cygdrive_prefix" = x; then
17388     # As a simple fix, exclude /usr/bin since it's not a real path.
17389     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17390       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17391       # a path prefixed by /cygdrive for fixpath to work.
17392       new_path="$CYGWIN_ROOT_PATH$input_path"
17393     fi
17394   fi
17395 
17396 
17397   if test "x$path" != "x$new_path"; then
17398     OUTPUT_ROOT="$new_path"
17399     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17400 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17401   fi
17402 
17403     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17404 
17405   path="$OUTPUT_ROOT"
17406   has_colon=`$ECHO $path | $GREP ^.:`
17407   new_path="$path"
17408   if test "x$has_colon" = x; then
17409     # Not in mixed or Windows style, start by that.
17410     new_path=`cmd //c echo $path`
17411   fi
17412 
17413 
17414   input_path="$new_path"
17415   # Check if we need to convert this using DOS-style short mode. If the path
17416   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17417   # take no chances and rewrite it.
17418   # Note: m4 eats our [], so we need to use [ and ] instead.
17419   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17420   if test "x$has_forbidden_chars" != x; then
17421     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17422     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17423   fi
17424 
17425 
17426   windows_path="$new_path"
17427   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17428     unix_path=`$CYGPATH -u "$windows_path"`
17429     new_path="$unix_path"
17430   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17431     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17432     new_path="$unix_path"
17433   fi
17434 
17435   if test "x$path" != "x$new_path"; then
17436     OUTPUT_ROOT="$new_path"
17437     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
17438 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
17439   fi
17440 
17441   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17442   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17443 
17444     else
17445       # We're on a unix platform. Hooray! :)
17446       path="$OUTPUT_ROOT"
17447       has_space=`$ECHO "$path" | $GREP " "`
17448       if test "x$has_space" != x; then
17449         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
17450 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
17451         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17452       fi
17453 
17454       # Use eval to expand a potential ~
17455       eval path="$path"
17456       if test ! -f "$path" && test ! -d "$path"; then
17457         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
17458       fi
17459 
17460       if test -d "$path"; then
17461         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17462       else
17463         dir="`$DIRNAME "$path"`"
17464         base="`$BASENAME "$path"`"
17465         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17466       fi
17467     fi
17468   fi
17469 
17470 
17471   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17472   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17473 
17474   SPEC=$OUTPUT_ROOT/spec.gmk
17475 
17476   CONF_NAME=$CONF_NAME
17477 
17478   OUTPUT_ROOT=$OUTPUT_ROOT
17479 
17480 
17481 
17482   # The spec.gmk file contains all variables for the make system.
17483   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17484 
17485   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17486   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17487 
17488   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17489   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17490 
17491   # The compare.sh is used to compare the build output to other builds.
17492   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17493 
17494   # The generated Makefile knows where the spec.gmk is and where the source is.
17495   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17496   # which will look for generated configurations
17497   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17498 
17499 
17500 
17501 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17502 
17503   for ac_prog in apt-get yum port pkgutil pkgadd
17504 do
17505   # Extract the first word of "$ac_prog", so it can be a program name with args.
17506 set dummy $ac_prog; ac_word=$2
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17508 $as_echo_n "checking for $ac_word... " >&6; }
17509 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17510   $as_echo_n "(cached) " >&6
17511 else
17512   if test -n "$PKGHANDLER"; then
17513   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17514 else
17515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17516 for as_dir in $PATH
17517 do
17518   IFS=$as_save_IFS
17519   test -z "$as_dir" && as_dir=.
17520     for ac_exec_ext in '' $ac_executable_extensions; do
17521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17522     ac_cv_prog_PKGHANDLER="$ac_prog"
17523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17524     break 2
17525   fi
17526 done
17527   done
17528 IFS=$as_save_IFS
17529 
17530 fi
17531 fi
17532 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17533 if test -n "$PKGHANDLER"; then
17534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17535 $as_echo "$PKGHANDLER" >&6; }
17536 else
17537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538 $as_echo "no" >&6; }
17539 fi
17540 
17541 
17542   test -n "$PKGHANDLER" && break
17543 done
17544 
17545 
17546 
17547 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17548 
17549 
17550 
17551   # Publish this variable in the help.
17552 
17553 
17554   if [ -z "${MAKE+x}" ]; then
17555     # The variable is not set by user, try to locate tool using the code snippet
17556 
17557     # Try our hardest to locate a correct version of GNU make
17558     for ac_prog in gmake
17559 do
17560   # Extract the first word of "$ac_prog", so it can be a program name with args.
17561 set dummy $ac_prog; ac_word=$2
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17563 $as_echo_n "checking for $ac_word... " >&6; }
17564 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17565   $as_echo_n "(cached) " >&6
17566 else
17567   case $CHECK_GMAKE in
17568   [\\/]* | ?:[\\/]*)
17569   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17570   ;;
17571   *)
17572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17573 for as_dir in $PATH
17574 do
17575   IFS=$as_save_IFS
17576   test -z "$as_dir" && as_dir=.
17577     for ac_exec_ext in '' $ac_executable_extensions; do
17578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17579     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17581     break 2
17582   fi
17583 done
17584   done
17585 IFS=$as_save_IFS
17586 
17587   ;;
17588 esac
17589 fi
17590 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17591 if test -n "$CHECK_GMAKE"; then
17592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17593 $as_echo "$CHECK_GMAKE" >&6; }
17594 else
17595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17596 $as_echo "no" >&6; }
17597 fi
17598 
17599 
17600   test -n "$CHECK_GMAKE" && break
17601 done
17602 
17603 
17604   MAKE_CANDIDATE=""$CHECK_GMAKE""
17605   DESCRIPTION="gmake in PATH"
17606 
17607   # On Cygwin, we require a newer version of make than on other platforms
17608   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17609     MAKE_VERSION_EXPR="-e 4\."
17610     MAKE_REQUIRED_VERSION="4.0"
17611    else
17612     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17613     MAKE_REQUIRED_VERSION="3.81"
17614   fi
17615 
17616   if test "x$MAKE_CANDIDATE" != x; then
17617     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17618 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17619     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17620     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17621     if test "x$IS_GNU_MAKE" = x; then
17622       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17623 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17624     else
17625       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17626       if test "x$IS_MODERN_MAKE" = x; then
17627         { $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
17628 $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;}
17629       else
17630         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17631           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17632             MAKE_EXPECTED_ENV='cygwin'
17633           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17634             MAKE_EXPECTED_ENV='msys'
17635           else
17636             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17637           fi
17638           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17639           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17640         else
17641           # Not relevant for non-Windows
17642           IS_MAKE_CORRECT_ENV=true
17643         fi
17644         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17645           { $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
17646 $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;}
17647         else
17648           FOUND_MAKE=$MAKE_CANDIDATE
17649 
17650   # Only process if variable expands to non-empty
17651 
17652   if test "x$FOUND_MAKE" != x; then
17653     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17654 
17655   # First separate the path from the arguments. This will split at the first
17656   # space.
17657   complete="$FOUND_MAKE"
17658   path="${complete%% *}"
17659   tmp="$complete EOL"
17660   arguments="${tmp#* }"
17661 
17662   # Input might be given as Windows format, start by converting to
17663   # unix format.
17664   new_path=`$CYGPATH -u "$path"`
17665 
17666   # Now try to locate executable using which
17667   new_path=`$WHICH "$new_path" 2> /dev/null`
17668   # bat and cmd files are not always considered executable in cygwin causing which
17669   # to not find them
17670   if test "x$new_path" = x \
17671       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17672       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17673     new_path=`$CYGPATH -u "$path"`
17674   fi
17675   if test "x$new_path" = x; then
17676     # Oops. Which didn't find the executable.
17677     # The splitting of arguments from the executable at a space might have been incorrect,
17678     # since paths with space are more likely in Windows. Give it another try with the whole
17679     # argument.
17680     path="$complete"
17681     arguments="EOL"
17682     new_path=`$CYGPATH -u "$path"`
17683     new_path=`$WHICH "$new_path" 2> /dev/null`
17684     # bat and cmd files are not always considered executable in cygwin causing which
17685     # to not find them
17686     if test "x$new_path" = x \
17687         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17688         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17689       new_path=`$CYGPATH -u "$path"`
17690     fi
17691     if test "x$new_path" = x; then
17692       # It's still not found. Now this is an unrecoverable error.
17693       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17694 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17695       has_space=`$ECHO "$complete" | $GREP " "`
17696       if test "x$has_space" != x; then
17697         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17698 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17699       fi
17700       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17701     fi
17702   fi
17703 
17704   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17705   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17706   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17707   # "foo.exe" is OK but "foo" is an error.
17708   #
17709   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17710   # It is also a way to make sure we got the proper file name for the real test later on.
17711   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17712   if test "x$test_shortpath" = x; then
17713     # Short path failed, file does not exist as specified.
17714     # Try adding .exe or .cmd
17715     if test -f "${new_path}.exe"; then
17716       input_to_shortpath="${new_path}.exe"
17717     elif test -f "${new_path}.cmd"; then
17718       input_to_shortpath="${new_path}.cmd"
17719     else
17720       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17721 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17722       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17723 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17724       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17725     fi
17726   else
17727     input_to_shortpath="$new_path"
17728   fi
17729 
17730   # Call helper function which possibly converts this using DOS-style short mode.
17731   # If so, the updated path is stored in $new_path.
17732   new_path="$input_to_shortpath"
17733 
17734   input_path="$input_to_shortpath"
17735   # Check if we need to convert this using DOS-style short mode. If the path
17736   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17737   # take no chances and rewrite it.
17738   # Note: m4 eats our [], so we need to use [ and ] instead.
17739   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17740   if test "x$has_forbidden_chars" != x; then
17741     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17742     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17743     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17744     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17745       # Going to short mode and back again did indeed matter. Since short mode is
17746       # case insensitive, let's make it lowercase to improve readability.
17747       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17748       # Now convert it back to Unix-style (cygpath)
17749       input_path=`$CYGPATH -u "$shortmode_path"`
17750       new_path="$input_path"
17751     fi
17752   fi
17753 
17754   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17755   if test "x$test_cygdrive_prefix" = x; then
17756     # As a simple fix, exclude /usr/bin since it's not a real path.
17757     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17758       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17759       # a path prefixed by /cygdrive for fixpath to work.
17760       new_path="$CYGWIN_ROOT_PATH$input_path"
17761     fi
17762   fi
17763 
17764   # remove trailing .exe if any
17765   new_path="${new_path/%.exe/}"
17766 
17767     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17768 
17769   # First separate the path from the arguments. This will split at the first
17770   # space.
17771   complete="$FOUND_MAKE"
17772   path="${complete%% *}"
17773   tmp="$complete EOL"
17774   arguments="${tmp#* }"
17775 
17776   # Input might be given as Windows format, start by converting to
17777   # unix format.
17778   new_path="$path"
17779 
17780   windows_path="$new_path"
17781   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17782     unix_path=`$CYGPATH -u "$windows_path"`
17783     new_path="$unix_path"
17784   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17785     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17786     new_path="$unix_path"
17787   fi
17788 
17789 
17790   # Now try to locate executable using which
17791   new_path=`$WHICH "$new_path" 2> /dev/null`
17792 
17793   if test "x$new_path" = x; then
17794     # Oops. Which didn't find the executable.
17795     # The splitting of arguments from the executable at a space might have been incorrect,
17796     # since paths with space are more likely in Windows. Give it another try with the whole
17797     # argument.
17798     path="$complete"
17799     arguments="EOL"
17800     new_path="$path"
17801 
17802   windows_path="$new_path"
17803   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17804     unix_path=`$CYGPATH -u "$windows_path"`
17805     new_path="$unix_path"
17806   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17807     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17808     new_path="$unix_path"
17809   fi
17810 
17811 
17812     new_path=`$WHICH "$new_path" 2> /dev/null`
17813     # bat and cmd files are not always considered executable in MSYS causing which
17814     # to not find them
17815     if test "x$new_path" = x \
17816         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17817         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17818       new_path="$path"
17819 
17820   windows_path="$new_path"
17821   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17822     unix_path=`$CYGPATH -u "$windows_path"`
17823     new_path="$unix_path"
17824   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17825     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17826     new_path="$unix_path"
17827   fi
17828 
17829     fi
17830 
17831     if test "x$new_path" = x; then
17832       # It's still not found. Now this is an unrecoverable error.
17833       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17834 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17835       has_space=`$ECHO "$complete" | $GREP " "`
17836       if test "x$has_space" != x; then
17837         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17838 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17839       fi
17840       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17841     fi
17842   fi
17843 
17844   # Now new_path has a complete unix path to the binary
17845   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17846     # Keep paths in /bin as-is, but remove trailing .exe if any
17847     new_path="${new_path/%.exe/}"
17848     # Do not save /bin paths to all_fixpath_prefixes!
17849   else
17850     # Not in mixed or Windows style, start by that.
17851     new_path=`cmd //c echo $new_path`
17852 
17853   input_path="$new_path"
17854   # Check if we need to convert this using DOS-style short mode. If the path
17855   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17856   # take no chances and rewrite it.
17857   # Note: m4 eats our [], so we need to use [ and ] instead.
17858   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17859   if test "x$has_forbidden_chars" != x; then
17860     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17861     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17862   fi
17863 
17864     # Output is in $new_path
17865 
17866   windows_path="$new_path"
17867   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17868     unix_path=`$CYGPATH -u "$windows_path"`
17869     new_path="$unix_path"
17870   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17871     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17872     new_path="$unix_path"
17873   fi
17874 
17875     # remove trailing .exe if any
17876     new_path="${new_path/%.exe/}"
17877 
17878     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17879     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17880   fi
17881 
17882     else
17883       # We're on a unix platform. Hooray! :)
17884       # First separate the path from the arguments. This will split at the first
17885       # space.
17886       complete="$FOUND_MAKE"
17887       path="${complete%% *}"
17888       tmp="$complete EOL"
17889       arguments="${tmp#* }"
17890 
17891       # Cannot rely on the command "which" here since it doesn't always work.
17892       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17893       if test -z "$is_absolute_path"; then
17894         # Path to executable is not absolute. Find it.
17895         IFS_save="$IFS"
17896         IFS=:
17897         for p in $PATH; do
17898           if test -f "$p/$path" && test -x "$p/$path"; then
17899             new_path="$p/$path"
17900             break
17901           fi
17902         done
17903         IFS="$IFS_save"
17904       else
17905         # This is an absolute path, we can use it without further modifications.
17906         new_path="$path"
17907       fi
17908 
17909       if test "x$new_path" = x; then
17910         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17911 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17912         has_space=`$ECHO "$complete" | $GREP " "`
17913         if test "x$has_space" != x; then
17914           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17915 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17916         fi
17917         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17918       fi
17919     fi
17920 
17921     # Now join together the path and the arguments once again
17922     if test "x$arguments" != xEOL; then
17923       new_complete="$new_path ${arguments% *}"
17924     else
17925       new_complete="$new_path"
17926     fi
17927 
17928     if test "x$complete" != "x$new_complete"; then
17929       FOUND_MAKE="$new_complete"
17930       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17931 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17932     fi
17933   fi
17934 
17935         fi
17936       fi
17937     fi
17938   fi
17939 
17940 
17941     if test "x$FOUND_MAKE" = x; then
17942       for ac_prog in make
17943 do
17944   # Extract the first word of "$ac_prog", so it can be a program name with args.
17945 set dummy $ac_prog; ac_word=$2
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17947 $as_echo_n "checking for $ac_word... " >&6; }
17948 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17949   $as_echo_n "(cached) " >&6
17950 else
17951   case $CHECK_MAKE in
17952   [\\/]* | ?:[\\/]*)
17953   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17954   ;;
17955   *)
17956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17957 for as_dir in $PATH
17958 do
17959   IFS=$as_save_IFS
17960   test -z "$as_dir" && as_dir=.
17961     for ac_exec_ext in '' $ac_executable_extensions; do
17962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17963     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17965     break 2
17966   fi
17967 done
17968   done
17969 IFS=$as_save_IFS
17970 
17971   ;;
17972 esac
17973 fi
17974 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17975 if test -n "$CHECK_MAKE"; then
17976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17977 $as_echo "$CHECK_MAKE" >&6; }
17978 else
17979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17980 $as_echo "no" >&6; }
17981 fi
17982 
17983 
17984   test -n "$CHECK_MAKE" && break
17985 done
17986 
17987 
17988   MAKE_CANDIDATE=""$CHECK_MAKE""
17989   DESCRIPTION="make in PATH"
17990 
17991   # On Cygwin, we require a newer version of make than on other platforms
17992   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17993     MAKE_VERSION_EXPR="-e 4\."
17994     MAKE_REQUIRED_VERSION="4.0"
17995    else
17996     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17997     MAKE_REQUIRED_VERSION="3.81"
17998   fi
17999 
18000   if test "x$MAKE_CANDIDATE" != x; then
18001     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18002 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18003     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18004     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18005     if test "x$IS_GNU_MAKE" = x; then
18006       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18007 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18008     else
18009       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18010       if test "x$IS_MODERN_MAKE" = x; then
18011         { $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
18012 $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;}
18013       else
18014         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18015           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18016             MAKE_EXPECTED_ENV='cygwin'
18017           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18018             MAKE_EXPECTED_ENV='msys'
18019           else
18020             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18021           fi
18022           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18023           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18024         else
18025           # Not relevant for non-Windows
18026           IS_MAKE_CORRECT_ENV=true
18027         fi
18028         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18029           { $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
18030 $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;}
18031         else
18032           FOUND_MAKE=$MAKE_CANDIDATE
18033 
18034   # Only process if variable expands to non-empty
18035 
18036   if test "x$FOUND_MAKE" != x; then
18037     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18038 
18039   # First separate the path from the arguments. This will split at the first
18040   # space.
18041   complete="$FOUND_MAKE"
18042   path="${complete%% *}"
18043   tmp="$complete EOL"
18044   arguments="${tmp#* }"
18045 
18046   # Input might be given as Windows format, start by converting to
18047   # unix format.
18048   new_path=`$CYGPATH -u "$path"`
18049 
18050   # Now try to locate executable using which
18051   new_path=`$WHICH "$new_path" 2> /dev/null`
18052   # bat and cmd files are not always considered executable in cygwin causing which
18053   # to not find them
18054   if test "x$new_path" = x \
18055       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18056       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18057     new_path=`$CYGPATH -u "$path"`
18058   fi
18059   if test "x$new_path" = x; then
18060     # Oops. Which didn't find the executable.
18061     # The splitting of arguments from the executable at a space might have been incorrect,
18062     # since paths with space are more likely in Windows. Give it another try with the whole
18063     # argument.
18064     path="$complete"
18065     arguments="EOL"
18066     new_path=`$CYGPATH -u "$path"`
18067     new_path=`$WHICH "$new_path" 2> /dev/null`
18068     # bat and cmd files are not always considered executable in cygwin causing which
18069     # to not find them
18070     if test "x$new_path" = x \
18071         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18072         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18073       new_path=`$CYGPATH -u "$path"`
18074     fi
18075     if test "x$new_path" = x; then
18076       # It's still not found. Now this is an unrecoverable error.
18077       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18078 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18079       has_space=`$ECHO "$complete" | $GREP " "`
18080       if test "x$has_space" != x; then
18081         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18082 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18083       fi
18084       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18085     fi
18086   fi
18087 
18088   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18089   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18090   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18091   # "foo.exe" is OK but "foo" is an error.
18092   #
18093   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18094   # It is also a way to make sure we got the proper file name for the real test later on.
18095   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18096   if test "x$test_shortpath" = x; then
18097     # Short path failed, file does not exist as specified.
18098     # Try adding .exe or .cmd
18099     if test -f "${new_path}.exe"; then
18100       input_to_shortpath="${new_path}.exe"
18101     elif test -f "${new_path}.cmd"; then
18102       input_to_shortpath="${new_path}.cmd"
18103     else
18104       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18105 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18106       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18107 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18108       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18109     fi
18110   else
18111     input_to_shortpath="$new_path"
18112   fi
18113 
18114   # Call helper function which possibly converts this using DOS-style short mode.
18115   # If so, the updated path is stored in $new_path.
18116   new_path="$input_to_shortpath"
18117 
18118   input_path="$input_to_shortpath"
18119   # Check if we need to convert this using DOS-style short mode. If the path
18120   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18121   # take no chances and rewrite it.
18122   # Note: m4 eats our [], so we need to use [ and ] instead.
18123   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18124   if test "x$has_forbidden_chars" != x; then
18125     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18126     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18127     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18128     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18129       # Going to short mode and back again did indeed matter. Since short mode is
18130       # case insensitive, let's make it lowercase to improve readability.
18131       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18132       # Now convert it back to Unix-style (cygpath)
18133       input_path=`$CYGPATH -u "$shortmode_path"`
18134       new_path="$input_path"
18135     fi
18136   fi
18137 
18138   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18139   if test "x$test_cygdrive_prefix" = x; then
18140     # As a simple fix, exclude /usr/bin since it's not a real path.
18141     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18142       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18143       # a path prefixed by /cygdrive for fixpath to work.
18144       new_path="$CYGWIN_ROOT_PATH$input_path"
18145     fi
18146   fi
18147 
18148   # remove trailing .exe if any
18149   new_path="${new_path/%.exe/}"
18150 
18151     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18152 
18153   # First separate the path from the arguments. This will split at the first
18154   # space.
18155   complete="$FOUND_MAKE"
18156   path="${complete%% *}"
18157   tmp="$complete EOL"
18158   arguments="${tmp#* }"
18159 
18160   # Input might be given as Windows format, start by converting to
18161   # unix format.
18162   new_path="$path"
18163 
18164   windows_path="$new_path"
18165   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18166     unix_path=`$CYGPATH -u "$windows_path"`
18167     new_path="$unix_path"
18168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18169     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18170     new_path="$unix_path"
18171   fi
18172 
18173 
18174   # Now try to locate executable using which
18175   new_path=`$WHICH "$new_path" 2> /dev/null`
18176 
18177   if test "x$new_path" = x; then
18178     # Oops. Which didn't find the executable.
18179     # The splitting of arguments from the executable at a space might have been incorrect,
18180     # since paths with space are more likely in Windows. Give it another try with the whole
18181     # argument.
18182     path="$complete"
18183     arguments="EOL"
18184     new_path="$path"
18185 
18186   windows_path="$new_path"
18187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18188     unix_path=`$CYGPATH -u "$windows_path"`
18189     new_path="$unix_path"
18190   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18191     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18192     new_path="$unix_path"
18193   fi
18194 
18195 
18196     new_path=`$WHICH "$new_path" 2> /dev/null`
18197     # bat and cmd files are not always considered executable in MSYS causing which
18198     # to not find them
18199     if test "x$new_path" = x \
18200         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18201         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18202       new_path="$path"
18203 
18204   windows_path="$new_path"
18205   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18206     unix_path=`$CYGPATH -u "$windows_path"`
18207     new_path="$unix_path"
18208   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18209     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18210     new_path="$unix_path"
18211   fi
18212 
18213     fi
18214 
18215     if test "x$new_path" = x; then
18216       # It's still not found. Now this is an unrecoverable error.
18217       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18218 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18219       has_space=`$ECHO "$complete" | $GREP " "`
18220       if test "x$has_space" != x; then
18221         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18222 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18223       fi
18224       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18225     fi
18226   fi
18227 
18228   # Now new_path has a complete unix path to the binary
18229   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18230     # Keep paths in /bin as-is, but remove trailing .exe if any
18231     new_path="${new_path/%.exe/}"
18232     # Do not save /bin paths to all_fixpath_prefixes!
18233   else
18234     # Not in mixed or Windows style, start by that.
18235     new_path=`cmd //c echo $new_path`
18236 
18237   input_path="$new_path"
18238   # Check if we need to convert this using DOS-style short mode. If the path
18239   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18240   # take no chances and rewrite it.
18241   # Note: m4 eats our [], so we need to use [ and ] instead.
18242   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18243   if test "x$has_forbidden_chars" != x; then
18244     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18245     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18246   fi
18247 
18248     # Output is in $new_path
18249 
18250   windows_path="$new_path"
18251   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18252     unix_path=`$CYGPATH -u "$windows_path"`
18253     new_path="$unix_path"
18254   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18255     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18256     new_path="$unix_path"
18257   fi
18258 
18259     # remove trailing .exe if any
18260     new_path="${new_path/%.exe/}"
18261 
18262     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18263     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18264   fi
18265 
18266     else
18267       # We're on a unix platform. Hooray! :)
18268       # First separate the path from the arguments. This will split at the first
18269       # space.
18270       complete="$FOUND_MAKE"
18271       path="${complete%% *}"
18272       tmp="$complete EOL"
18273       arguments="${tmp#* }"
18274 
18275       # Cannot rely on the command "which" here since it doesn't always work.
18276       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18277       if test -z "$is_absolute_path"; then
18278         # Path to executable is not absolute. Find it.
18279         IFS_save="$IFS"
18280         IFS=:
18281         for p in $PATH; do
18282           if test -f "$p/$path" && test -x "$p/$path"; then
18283             new_path="$p/$path"
18284             break
18285           fi
18286         done
18287         IFS="$IFS_save"
18288       else
18289         # This is an absolute path, we can use it without further modifications.
18290         new_path="$path"
18291       fi
18292 
18293       if test "x$new_path" = x; then
18294         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18295 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18296         has_space=`$ECHO "$complete" | $GREP " "`
18297         if test "x$has_space" != x; then
18298           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18299 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18300         fi
18301         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18302       fi
18303     fi
18304 
18305     # Now join together the path and the arguments once again
18306     if test "x$arguments" != xEOL; then
18307       new_complete="$new_path ${arguments% *}"
18308     else
18309       new_complete="$new_path"
18310     fi
18311 
18312     if test "x$complete" != "x$new_complete"; then
18313       FOUND_MAKE="$new_complete"
18314       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18315 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18316     fi
18317   fi
18318 
18319         fi
18320       fi
18321     fi
18322   fi
18323 
18324     fi
18325 
18326     if test "x$FOUND_MAKE" = x; then
18327       if test "x$TOOLCHAIN_PATH" != x; then
18328         # We have a toolchain path, check that as well before giving up.
18329         OLD_PATH=$PATH
18330         PATH=$TOOLCHAIN_PATH:$PATH
18331         for ac_prog in gmake
18332 do
18333   # Extract the first word of "$ac_prog", so it can be a program name with args.
18334 set dummy $ac_prog; ac_word=$2
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18336 $as_echo_n "checking for $ac_word... " >&6; }
18337 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18338   $as_echo_n "(cached) " >&6
18339 else
18340   case $CHECK_TOOLSDIR_GMAKE in
18341   [\\/]* | ?:[\\/]*)
18342   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18343   ;;
18344   *)
18345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18347 do
18348   IFS=$as_save_IFS
18349   test -z "$as_dir" && as_dir=.
18350     for ac_exec_ext in '' $ac_executable_extensions; do
18351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18352     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18354     break 2
18355   fi
18356 done
18357   done
18358 IFS=$as_save_IFS
18359 
18360   ;;
18361 esac
18362 fi
18363 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18364 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18366 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18367 else
18368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369 $as_echo "no" >&6; }
18370 fi
18371 
18372 
18373   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18374 done
18375 
18376 
18377   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18378   DESCRIPTION="gmake in tools-dir"
18379 
18380   # On Cygwin, we require a newer version of make than on other platforms
18381   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18382     MAKE_VERSION_EXPR="-e 4\."
18383     MAKE_REQUIRED_VERSION="4.0"
18384    else
18385     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18386     MAKE_REQUIRED_VERSION="3.81"
18387   fi
18388 
18389   if test "x$MAKE_CANDIDATE" != x; then
18390     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18391 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18392     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18393     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18394     if test "x$IS_GNU_MAKE" = x; then
18395       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18396 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18397     else
18398       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18399       if test "x$IS_MODERN_MAKE" = x; then
18400         { $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
18401 $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;}
18402       else
18403         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18404           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18405             MAKE_EXPECTED_ENV='cygwin'
18406           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18407             MAKE_EXPECTED_ENV='msys'
18408           else
18409             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18410           fi
18411           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18412           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18413         else
18414           # Not relevant for non-Windows
18415           IS_MAKE_CORRECT_ENV=true
18416         fi
18417         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18418           { $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
18419 $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;}
18420         else
18421           FOUND_MAKE=$MAKE_CANDIDATE
18422 
18423   # Only process if variable expands to non-empty
18424 
18425   if test "x$FOUND_MAKE" != x; then
18426     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18427 
18428   # First separate the path from the arguments. This will split at the first
18429   # space.
18430   complete="$FOUND_MAKE"
18431   path="${complete%% *}"
18432   tmp="$complete EOL"
18433   arguments="${tmp#* }"
18434 
18435   # Input might be given as Windows format, start by converting to
18436   # unix format.
18437   new_path=`$CYGPATH -u "$path"`
18438 
18439   # Now try to locate executable using which
18440   new_path=`$WHICH "$new_path" 2> /dev/null`
18441   # bat and cmd files are not always considered executable in cygwin causing which
18442   # to not find them
18443   if test "x$new_path" = x \
18444       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18445       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18446     new_path=`$CYGPATH -u "$path"`
18447   fi
18448   if test "x$new_path" = x; then
18449     # Oops. Which didn't find the executable.
18450     # The splitting of arguments from the executable at a space might have been incorrect,
18451     # since paths with space are more likely in Windows. Give it another try with the whole
18452     # argument.
18453     path="$complete"
18454     arguments="EOL"
18455     new_path=`$CYGPATH -u "$path"`
18456     new_path=`$WHICH "$new_path" 2> /dev/null`
18457     # bat and cmd files are not always considered executable in cygwin causing which
18458     # to not find them
18459     if test "x$new_path" = x \
18460         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18461         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18462       new_path=`$CYGPATH -u "$path"`
18463     fi
18464     if test "x$new_path" = x; then
18465       # It's still not found. Now this is an unrecoverable error.
18466       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18467 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18468       has_space=`$ECHO "$complete" | $GREP " "`
18469       if test "x$has_space" != x; then
18470         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18471 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18472       fi
18473       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18474     fi
18475   fi
18476 
18477   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18478   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18479   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18480   # "foo.exe" is OK but "foo" is an error.
18481   #
18482   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18483   # It is also a way to make sure we got the proper file name for the real test later on.
18484   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18485   if test "x$test_shortpath" = x; then
18486     # Short path failed, file does not exist as specified.
18487     # Try adding .exe or .cmd
18488     if test -f "${new_path}.exe"; then
18489       input_to_shortpath="${new_path}.exe"
18490     elif test -f "${new_path}.cmd"; then
18491       input_to_shortpath="${new_path}.cmd"
18492     else
18493       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18494 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18495       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18496 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18497       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18498     fi
18499   else
18500     input_to_shortpath="$new_path"
18501   fi
18502 
18503   # Call helper function which possibly converts this using DOS-style short mode.
18504   # If so, the updated path is stored in $new_path.
18505   new_path="$input_to_shortpath"
18506 
18507   input_path="$input_to_shortpath"
18508   # Check if we need to convert this using DOS-style short mode. If the path
18509   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18510   # take no chances and rewrite it.
18511   # Note: m4 eats our [], so we need to use [ and ] instead.
18512   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18513   if test "x$has_forbidden_chars" != x; then
18514     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18515     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18516     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18517     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18518       # Going to short mode and back again did indeed matter. Since short mode is
18519       # case insensitive, let's make it lowercase to improve readability.
18520       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18521       # Now convert it back to Unix-style (cygpath)
18522       input_path=`$CYGPATH -u "$shortmode_path"`
18523       new_path="$input_path"
18524     fi
18525   fi
18526 
18527   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18528   if test "x$test_cygdrive_prefix" = x; then
18529     # As a simple fix, exclude /usr/bin since it's not a real path.
18530     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18531       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18532       # a path prefixed by /cygdrive for fixpath to work.
18533       new_path="$CYGWIN_ROOT_PATH$input_path"
18534     fi
18535   fi
18536 
18537   # remove trailing .exe if any
18538   new_path="${new_path/%.exe/}"
18539 
18540     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18541 
18542   # First separate the path from the arguments. This will split at the first
18543   # space.
18544   complete="$FOUND_MAKE"
18545   path="${complete%% *}"
18546   tmp="$complete EOL"
18547   arguments="${tmp#* }"
18548 
18549   # Input might be given as Windows format, start by converting to
18550   # unix format.
18551   new_path="$path"
18552 
18553   windows_path="$new_path"
18554   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18555     unix_path=`$CYGPATH -u "$windows_path"`
18556     new_path="$unix_path"
18557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18558     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18559     new_path="$unix_path"
18560   fi
18561 
18562 
18563   # Now try to locate executable using which
18564   new_path=`$WHICH "$new_path" 2> /dev/null`
18565 
18566   if test "x$new_path" = x; then
18567     # Oops. Which didn't find the executable.
18568     # The splitting of arguments from the executable at a space might have been incorrect,
18569     # since paths with space are more likely in Windows. Give it another try with the whole
18570     # argument.
18571     path="$complete"
18572     arguments="EOL"
18573     new_path="$path"
18574 
18575   windows_path="$new_path"
18576   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18577     unix_path=`$CYGPATH -u "$windows_path"`
18578     new_path="$unix_path"
18579   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18580     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18581     new_path="$unix_path"
18582   fi
18583 
18584 
18585     new_path=`$WHICH "$new_path" 2> /dev/null`
18586     # bat and cmd files are not always considered executable in MSYS causing which
18587     # to not find them
18588     if test "x$new_path" = x \
18589         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18590         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18591       new_path="$path"
18592 
18593   windows_path="$new_path"
18594   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18595     unix_path=`$CYGPATH -u "$windows_path"`
18596     new_path="$unix_path"
18597   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18598     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18599     new_path="$unix_path"
18600   fi
18601 
18602     fi
18603 
18604     if test "x$new_path" = x; then
18605       # It's still not found. Now this is an unrecoverable error.
18606       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18607 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18608       has_space=`$ECHO "$complete" | $GREP " "`
18609       if test "x$has_space" != x; then
18610         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18611 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18612       fi
18613       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18614     fi
18615   fi
18616 
18617   # Now new_path has a complete unix path to the binary
18618   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18619     # Keep paths in /bin as-is, but remove trailing .exe if any
18620     new_path="${new_path/%.exe/}"
18621     # Do not save /bin paths to all_fixpath_prefixes!
18622   else
18623     # Not in mixed or Windows style, start by that.
18624     new_path=`cmd //c echo $new_path`
18625 
18626   input_path="$new_path"
18627   # Check if we need to convert this using DOS-style short mode. If the path
18628   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18629   # take no chances and rewrite it.
18630   # Note: m4 eats our [], so we need to use [ and ] instead.
18631   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18632   if test "x$has_forbidden_chars" != x; then
18633     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18634     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18635   fi
18636 
18637     # Output is in $new_path
18638 
18639   windows_path="$new_path"
18640   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18641     unix_path=`$CYGPATH -u "$windows_path"`
18642     new_path="$unix_path"
18643   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18644     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18645     new_path="$unix_path"
18646   fi
18647 
18648     # remove trailing .exe if any
18649     new_path="${new_path/%.exe/}"
18650 
18651     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18652     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18653   fi
18654 
18655     else
18656       # We're on a unix platform. Hooray! :)
18657       # First separate the path from the arguments. This will split at the first
18658       # space.
18659       complete="$FOUND_MAKE"
18660       path="${complete%% *}"
18661       tmp="$complete EOL"
18662       arguments="${tmp#* }"
18663 
18664       # Cannot rely on the command "which" here since it doesn't always work.
18665       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18666       if test -z "$is_absolute_path"; then
18667         # Path to executable is not absolute. Find it.
18668         IFS_save="$IFS"
18669         IFS=:
18670         for p in $PATH; do
18671           if test -f "$p/$path" && test -x "$p/$path"; then
18672             new_path="$p/$path"
18673             break
18674           fi
18675         done
18676         IFS="$IFS_save"
18677       else
18678         # This is an absolute path, we can use it without further modifications.
18679         new_path="$path"
18680       fi
18681 
18682       if test "x$new_path" = x; then
18683         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18684 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18685         has_space=`$ECHO "$complete" | $GREP " "`
18686         if test "x$has_space" != x; then
18687           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18688 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18689         fi
18690         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18691       fi
18692     fi
18693 
18694     # Now join together the path and the arguments once again
18695     if test "x$arguments" != xEOL; then
18696       new_complete="$new_path ${arguments% *}"
18697     else
18698       new_complete="$new_path"
18699     fi
18700 
18701     if test "x$complete" != "x$new_complete"; then
18702       FOUND_MAKE="$new_complete"
18703       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18704 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18705     fi
18706   fi
18707 
18708         fi
18709       fi
18710     fi
18711   fi
18712 
18713         if test "x$FOUND_MAKE" = x; then
18714           for ac_prog in make
18715 do
18716   # Extract the first word of "$ac_prog", so it can be a program name with args.
18717 set dummy $ac_prog; ac_word=$2
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18719 $as_echo_n "checking for $ac_word... " >&6; }
18720 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18721   $as_echo_n "(cached) " >&6
18722 else
18723   case $CHECK_TOOLSDIR_MAKE in
18724   [\\/]* | ?:[\\/]*)
18725   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18726   ;;
18727   *)
18728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH
18730 do
18731   IFS=$as_save_IFS
18732   test -z "$as_dir" && as_dir=.
18733     for ac_exec_ext in '' $ac_executable_extensions; do
18734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18737     break 2
18738   fi
18739 done
18740   done
18741 IFS=$as_save_IFS
18742 
18743   ;;
18744 esac
18745 fi
18746 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18747 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18749 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18750 else
18751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753 fi
18754 
18755 
18756   test -n "$CHECK_TOOLSDIR_MAKE" && break
18757 done
18758 
18759 
18760   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18761   DESCRIPTION="make in tools-dir"
18762 
18763   # On Cygwin, we require a newer version of make than on other platforms
18764   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18765     MAKE_VERSION_EXPR="-e 4\."
18766     MAKE_REQUIRED_VERSION="4.0"
18767    else
18768     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18769     MAKE_REQUIRED_VERSION="3.81"
18770   fi
18771 
18772   if test "x$MAKE_CANDIDATE" != x; then
18773     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18774 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18775     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18776     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18777     if test "x$IS_GNU_MAKE" = x; then
18778       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18779 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18780     else
18781       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18782       if test "x$IS_MODERN_MAKE" = x; then
18783         { $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
18784 $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;}
18785       else
18786         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18787           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18788             MAKE_EXPECTED_ENV='cygwin'
18789           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18790             MAKE_EXPECTED_ENV='msys'
18791           else
18792             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18793           fi
18794           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18795           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18796         else
18797           # Not relevant for non-Windows
18798           IS_MAKE_CORRECT_ENV=true
18799         fi
18800         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18801           { $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
18802 $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;}
18803         else
18804           FOUND_MAKE=$MAKE_CANDIDATE
18805 
18806   # Only process if variable expands to non-empty
18807 
18808   if test "x$FOUND_MAKE" != x; then
18809     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18810 
18811   # First separate the path from the arguments. This will split at the first
18812   # space.
18813   complete="$FOUND_MAKE"
18814   path="${complete%% *}"
18815   tmp="$complete EOL"
18816   arguments="${tmp#* }"
18817 
18818   # Input might be given as Windows format, start by converting to
18819   # unix format.
18820   new_path=`$CYGPATH -u "$path"`
18821 
18822   # Now try to locate executable using which
18823   new_path=`$WHICH "$new_path" 2> /dev/null`
18824   # bat and cmd files are not always considered executable in cygwin causing which
18825   # to not find them
18826   if test "x$new_path" = x \
18827       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18828       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18829     new_path=`$CYGPATH -u "$path"`
18830   fi
18831   if test "x$new_path" = x; then
18832     # Oops. Which didn't find the executable.
18833     # The splitting of arguments from the executable at a space might have been incorrect,
18834     # since paths with space are more likely in Windows. Give it another try with the whole
18835     # argument.
18836     path="$complete"
18837     arguments="EOL"
18838     new_path=`$CYGPATH -u "$path"`
18839     new_path=`$WHICH "$new_path" 2> /dev/null`
18840     # bat and cmd files are not always considered executable in cygwin causing which
18841     # to not find them
18842     if test "x$new_path" = x \
18843         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18844         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18845       new_path=`$CYGPATH -u "$path"`
18846     fi
18847     if test "x$new_path" = x; then
18848       # It's still not found. Now this is an unrecoverable error.
18849       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18850 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18851       has_space=`$ECHO "$complete" | $GREP " "`
18852       if test "x$has_space" != x; then
18853         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18855       fi
18856       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18857     fi
18858   fi
18859 
18860   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18861   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18862   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18863   # "foo.exe" is OK but "foo" is an error.
18864   #
18865   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18866   # It is also a way to make sure we got the proper file name for the real test later on.
18867   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18868   if test "x$test_shortpath" = x; then
18869     # Short path failed, file does not exist as specified.
18870     # Try adding .exe or .cmd
18871     if test -f "${new_path}.exe"; then
18872       input_to_shortpath="${new_path}.exe"
18873     elif test -f "${new_path}.cmd"; then
18874       input_to_shortpath="${new_path}.cmd"
18875     else
18876       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18877 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18878       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18879 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18880       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18881     fi
18882   else
18883     input_to_shortpath="$new_path"
18884   fi
18885 
18886   # Call helper function which possibly converts this using DOS-style short mode.
18887   # If so, the updated path is stored in $new_path.
18888   new_path="$input_to_shortpath"
18889 
18890   input_path="$input_to_shortpath"
18891   # Check if we need to convert this using DOS-style short mode. If the path
18892   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18893   # take no chances and rewrite it.
18894   # Note: m4 eats our [], so we need to use [ and ] instead.
18895   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18896   if test "x$has_forbidden_chars" != x; then
18897     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18898     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18899     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18900     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18901       # Going to short mode and back again did indeed matter. Since short mode is
18902       # case insensitive, let's make it lowercase to improve readability.
18903       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18904       # Now convert it back to Unix-style (cygpath)
18905       input_path=`$CYGPATH -u "$shortmode_path"`
18906       new_path="$input_path"
18907     fi
18908   fi
18909 
18910   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18911   if test "x$test_cygdrive_prefix" = x; then
18912     # As a simple fix, exclude /usr/bin since it's not a real path.
18913     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18914       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18915       # a path prefixed by /cygdrive for fixpath to work.
18916       new_path="$CYGWIN_ROOT_PATH$input_path"
18917     fi
18918   fi
18919 
18920   # remove trailing .exe if any
18921   new_path="${new_path/%.exe/}"
18922 
18923     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18924 
18925   # First separate the path from the arguments. This will split at the first
18926   # space.
18927   complete="$FOUND_MAKE"
18928   path="${complete%% *}"
18929   tmp="$complete EOL"
18930   arguments="${tmp#* }"
18931 
18932   # Input might be given as Windows format, start by converting to
18933   # unix format.
18934   new_path="$path"
18935 
18936   windows_path="$new_path"
18937   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18938     unix_path=`$CYGPATH -u "$windows_path"`
18939     new_path="$unix_path"
18940   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18941     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18942     new_path="$unix_path"
18943   fi
18944 
18945 
18946   # Now try to locate executable using which
18947   new_path=`$WHICH "$new_path" 2> /dev/null`
18948 
18949   if test "x$new_path" = x; then
18950     # Oops. Which didn't find the executable.
18951     # The splitting of arguments from the executable at a space might have been incorrect,
18952     # since paths with space are more likely in Windows. Give it another try with the whole
18953     # argument.
18954     path="$complete"
18955     arguments="EOL"
18956     new_path="$path"
18957 
18958   windows_path="$new_path"
18959   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18960     unix_path=`$CYGPATH -u "$windows_path"`
18961     new_path="$unix_path"
18962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18963     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18964     new_path="$unix_path"
18965   fi
18966 
18967 
18968     new_path=`$WHICH "$new_path" 2> /dev/null`
18969     # bat and cmd files are not always considered executable in MSYS causing which
18970     # to not find them
18971     if test "x$new_path" = x \
18972         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18973         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18974       new_path="$path"
18975 
18976   windows_path="$new_path"
18977   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18978     unix_path=`$CYGPATH -u "$windows_path"`
18979     new_path="$unix_path"
18980   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18981     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18982     new_path="$unix_path"
18983   fi
18984 
18985     fi
18986 
18987     if test "x$new_path" = x; then
18988       # It's still not found. Now this is an unrecoverable error.
18989       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18990 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18991       has_space=`$ECHO "$complete" | $GREP " "`
18992       if test "x$has_space" != x; then
18993         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18995       fi
18996       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18997     fi
18998   fi
18999 
19000   # Now new_path has a complete unix path to the binary
19001   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19002     # Keep paths in /bin as-is, but remove trailing .exe if any
19003     new_path="${new_path/%.exe/}"
19004     # Do not save /bin paths to all_fixpath_prefixes!
19005   else
19006     # Not in mixed or Windows style, start by that.
19007     new_path=`cmd //c echo $new_path`
19008 
19009   input_path="$new_path"
19010   # Check if we need to convert this using DOS-style short mode. If the path
19011   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19012   # take no chances and rewrite it.
19013   # Note: m4 eats our [], so we need to use [ and ] instead.
19014   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19015   if test "x$has_forbidden_chars" != x; then
19016     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19017     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19018   fi
19019 
19020     # Output is in $new_path
19021 
19022   windows_path="$new_path"
19023   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19024     unix_path=`$CYGPATH -u "$windows_path"`
19025     new_path="$unix_path"
19026   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19027     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19028     new_path="$unix_path"
19029   fi
19030 
19031     # remove trailing .exe if any
19032     new_path="${new_path/%.exe/}"
19033 
19034     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19035     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19036   fi
19037 
19038     else
19039       # We're on a unix platform. Hooray! :)
19040       # First separate the path from the arguments. This will split at the first
19041       # space.
19042       complete="$FOUND_MAKE"
19043       path="${complete%% *}"
19044       tmp="$complete EOL"
19045       arguments="${tmp#* }"
19046 
19047       # Cannot rely on the command "which" here since it doesn't always work.
19048       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19049       if test -z "$is_absolute_path"; then
19050         # Path to executable is not absolute. Find it.
19051         IFS_save="$IFS"
19052         IFS=:
19053         for p in $PATH; do
19054           if test -f "$p/$path" && test -x "$p/$path"; then
19055             new_path="$p/$path"
19056             break
19057           fi
19058         done
19059         IFS="$IFS_save"
19060       else
19061         # This is an absolute path, we can use it without further modifications.
19062         new_path="$path"
19063       fi
19064 
19065       if test "x$new_path" = x; then
19066         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19067 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19068         has_space=`$ECHO "$complete" | $GREP " "`
19069         if test "x$has_space" != x; then
19070           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19071 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19072         fi
19073         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19074       fi
19075     fi
19076 
19077     # Now join together the path and the arguments once again
19078     if test "x$arguments" != xEOL; then
19079       new_complete="$new_path ${arguments% *}"
19080     else
19081       new_complete="$new_path"
19082     fi
19083 
19084     if test "x$complete" != "x$new_complete"; then
19085       FOUND_MAKE="$new_complete"
19086       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19087 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19088     fi
19089   fi
19090 
19091         fi
19092       fi
19093     fi
19094   fi
19095 
19096         fi
19097         PATH=$OLD_PATH
19098       fi
19099     fi
19100 
19101     if test "x$FOUND_MAKE" = x; then
19102       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
19103     fi
19104 
19105   else
19106     # The variable is set, but is it from the command line or the environment?
19107 
19108     # Try to remove the string !MAKE! from our list.
19109     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19110     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19111       # If it failed, the variable was not from the command line. Ignore it,
19112       # but warn the user (except for BASH, which is always set by the calling BASH).
19113       if test "xMAKE" != xBASH; then
19114         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19115 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19116       fi
19117       # Try to locate tool using the code snippet
19118 
19119     # Try our hardest to locate a correct version of GNU make
19120     for ac_prog in gmake
19121 do
19122   # Extract the first word of "$ac_prog", so it can be a program name with args.
19123 set dummy $ac_prog; ac_word=$2
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19125 $as_echo_n "checking for $ac_word... " >&6; }
19126 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19127   $as_echo_n "(cached) " >&6
19128 else
19129   case $CHECK_GMAKE in
19130   [\\/]* | ?:[\\/]*)
19131   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19132   ;;
19133   *)
19134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19135 for as_dir in $PATH
19136 do
19137   IFS=$as_save_IFS
19138   test -z "$as_dir" && as_dir=.
19139     for ac_exec_ext in '' $ac_executable_extensions; do
19140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19141     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19143     break 2
19144   fi
19145 done
19146   done
19147 IFS=$as_save_IFS
19148 
19149   ;;
19150 esac
19151 fi
19152 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19153 if test -n "$CHECK_GMAKE"; then
19154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19155 $as_echo "$CHECK_GMAKE" >&6; }
19156 else
19157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158 $as_echo "no" >&6; }
19159 fi
19160 
19161 
19162   test -n "$CHECK_GMAKE" && break
19163 done
19164 
19165 
19166   MAKE_CANDIDATE=""$CHECK_GMAKE""
19167   DESCRIPTION="gmake in PATH"
19168 
19169   # On Cygwin, we require a newer version of make than on other platforms
19170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19171     MAKE_VERSION_EXPR="-e 4\."
19172     MAKE_REQUIRED_VERSION="4.0"
19173    else
19174     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19175     MAKE_REQUIRED_VERSION="3.81"
19176   fi
19177 
19178   if test "x$MAKE_CANDIDATE" != x; then
19179     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19180 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19181     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19182     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19183     if test "x$IS_GNU_MAKE" = x; then
19184       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19185 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19186     else
19187       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19188       if test "x$IS_MODERN_MAKE" = x; then
19189         { $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
19190 $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;}
19191       else
19192         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19193           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19194             MAKE_EXPECTED_ENV='cygwin'
19195           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19196             MAKE_EXPECTED_ENV='msys'
19197           else
19198             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19199           fi
19200           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19201           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19202         else
19203           # Not relevant for non-Windows
19204           IS_MAKE_CORRECT_ENV=true
19205         fi
19206         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19207           { $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
19208 $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;}
19209         else
19210           FOUND_MAKE=$MAKE_CANDIDATE
19211 
19212   # Only process if variable expands to non-empty
19213 
19214   if test "x$FOUND_MAKE" != x; then
19215     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19216 
19217   # First separate the path from the arguments. This will split at the first
19218   # space.
19219   complete="$FOUND_MAKE"
19220   path="${complete%% *}"
19221   tmp="$complete EOL"
19222   arguments="${tmp#* }"
19223 
19224   # Input might be given as Windows format, start by converting to
19225   # unix format.
19226   new_path=`$CYGPATH -u "$path"`
19227 
19228   # Now try to locate executable using which
19229   new_path=`$WHICH "$new_path" 2> /dev/null`
19230   # bat and cmd files are not always considered executable in cygwin causing which
19231   # to not find them
19232   if test "x$new_path" = x \
19233       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19234       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19235     new_path=`$CYGPATH -u "$path"`
19236   fi
19237   if test "x$new_path" = x; then
19238     # Oops. Which didn't find the executable.
19239     # The splitting of arguments from the executable at a space might have been incorrect,
19240     # since paths with space are more likely in Windows. Give it another try with the whole
19241     # argument.
19242     path="$complete"
19243     arguments="EOL"
19244     new_path=`$CYGPATH -u "$path"`
19245     new_path=`$WHICH "$new_path" 2> /dev/null`
19246     # bat and cmd files are not always considered executable in cygwin causing which
19247     # to not find them
19248     if test "x$new_path" = x \
19249         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19250         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19251       new_path=`$CYGPATH -u "$path"`
19252     fi
19253     if test "x$new_path" = x; then
19254       # It's still not found. Now this is an unrecoverable error.
19255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19256 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19257       has_space=`$ECHO "$complete" | $GREP " "`
19258       if test "x$has_space" != x; then
19259         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19260 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19261       fi
19262       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19263     fi
19264   fi
19265 
19266   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19267   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19268   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19269   # "foo.exe" is OK but "foo" is an error.
19270   #
19271   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19272   # It is also a way to make sure we got the proper file name for the real test later on.
19273   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19274   if test "x$test_shortpath" = x; then
19275     # Short path failed, file does not exist as specified.
19276     # Try adding .exe or .cmd
19277     if test -f "${new_path}.exe"; then
19278       input_to_shortpath="${new_path}.exe"
19279     elif test -f "${new_path}.cmd"; then
19280       input_to_shortpath="${new_path}.cmd"
19281     else
19282       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19284       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19285 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19286       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19287     fi
19288   else
19289     input_to_shortpath="$new_path"
19290   fi
19291 
19292   # Call helper function which possibly converts this using DOS-style short mode.
19293   # If so, the updated path is stored in $new_path.
19294   new_path="$input_to_shortpath"
19295 
19296   input_path="$input_to_shortpath"
19297   # Check if we need to convert this using DOS-style short mode. If the path
19298   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19299   # take no chances and rewrite it.
19300   # Note: m4 eats our [], so we need to use [ and ] instead.
19301   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19302   if test "x$has_forbidden_chars" != x; then
19303     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19304     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19305     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19306     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19307       # Going to short mode and back again did indeed matter. Since short mode is
19308       # case insensitive, let's make it lowercase to improve readability.
19309       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19310       # Now convert it back to Unix-style (cygpath)
19311       input_path=`$CYGPATH -u "$shortmode_path"`
19312       new_path="$input_path"
19313     fi
19314   fi
19315 
19316   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19317   if test "x$test_cygdrive_prefix" = x; then
19318     # As a simple fix, exclude /usr/bin since it's not a real path.
19319     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19320       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19321       # a path prefixed by /cygdrive for fixpath to work.
19322       new_path="$CYGWIN_ROOT_PATH$input_path"
19323     fi
19324   fi
19325 
19326   # remove trailing .exe if any
19327   new_path="${new_path/%.exe/}"
19328 
19329     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19330 
19331   # First separate the path from the arguments. This will split at the first
19332   # space.
19333   complete="$FOUND_MAKE"
19334   path="${complete%% *}"
19335   tmp="$complete EOL"
19336   arguments="${tmp#* }"
19337 
19338   # Input might be given as Windows format, start by converting to
19339   # unix format.
19340   new_path="$path"
19341 
19342   windows_path="$new_path"
19343   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19344     unix_path=`$CYGPATH -u "$windows_path"`
19345     new_path="$unix_path"
19346   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19347     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19348     new_path="$unix_path"
19349   fi
19350 
19351 
19352   # Now try to locate executable using which
19353   new_path=`$WHICH "$new_path" 2> /dev/null`
19354 
19355   if test "x$new_path" = x; then
19356     # Oops. Which didn't find the executable.
19357     # The splitting of arguments from the executable at a space might have been incorrect,
19358     # since paths with space are more likely in Windows. Give it another try with the whole
19359     # argument.
19360     path="$complete"
19361     arguments="EOL"
19362     new_path="$path"
19363 
19364   windows_path="$new_path"
19365   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19366     unix_path=`$CYGPATH -u "$windows_path"`
19367     new_path="$unix_path"
19368   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19369     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19370     new_path="$unix_path"
19371   fi
19372 
19373 
19374     new_path=`$WHICH "$new_path" 2> /dev/null`
19375     # bat and cmd files are not always considered executable in MSYS causing which
19376     # to not find them
19377     if test "x$new_path" = x \
19378         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19379         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19380       new_path="$path"
19381 
19382   windows_path="$new_path"
19383   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19384     unix_path=`$CYGPATH -u "$windows_path"`
19385     new_path="$unix_path"
19386   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19387     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19388     new_path="$unix_path"
19389   fi
19390 
19391     fi
19392 
19393     if test "x$new_path" = x; then
19394       # It's still not found. Now this is an unrecoverable error.
19395       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19396 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19397       has_space=`$ECHO "$complete" | $GREP " "`
19398       if test "x$has_space" != x; then
19399         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19400 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19401       fi
19402       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19403     fi
19404   fi
19405 
19406   # Now new_path has a complete unix path to the binary
19407   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19408     # Keep paths in /bin as-is, but remove trailing .exe if any
19409     new_path="${new_path/%.exe/}"
19410     # Do not save /bin paths to all_fixpath_prefixes!
19411   else
19412     # Not in mixed or Windows style, start by that.
19413     new_path=`cmd //c echo $new_path`
19414 
19415   input_path="$new_path"
19416   # Check if we need to convert this using DOS-style short mode. If the path
19417   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19418   # take no chances and rewrite it.
19419   # Note: m4 eats our [], so we need to use [ and ] instead.
19420   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19421   if test "x$has_forbidden_chars" != x; then
19422     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19423     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19424   fi
19425 
19426     # Output is in $new_path
19427 
19428   windows_path="$new_path"
19429   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19430     unix_path=`$CYGPATH -u "$windows_path"`
19431     new_path="$unix_path"
19432   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19433     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19434     new_path="$unix_path"
19435   fi
19436 
19437     # remove trailing .exe if any
19438     new_path="${new_path/%.exe/}"
19439 
19440     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19441     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19442   fi
19443 
19444     else
19445       # We're on a unix platform. Hooray! :)
19446       # First separate the path from the arguments. This will split at the first
19447       # space.
19448       complete="$FOUND_MAKE"
19449       path="${complete%% *}"
19450       tmp="$complete EOL"
19451       arguments="${tmp#* }"
19452 
19453       # Cannot rely on the command "which" here since it doesn't always work.
19454       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19455       if test -z "$is_absolute_path"; then
19456         # Path to executable is not absolute. Find it.
19457         IFS_save="$IFS"
19458         IFS=:
19459         for p in $PATH; do
19460           if test -f "$p/$path" && test -x "$p/$path"; then
19461             new_path="$p/$path"
19462             break
19463           fi
19464         done
19465         IFS="$IFS_save"
19466       else
19467         # This is an absolute path, we can use it without further modifications.
19468         new_path="$path"
19469       fi
19470 
19471       if test "x$new_path" = x; then
19472         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19473 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19474         has_space=`$ECHO "$complete" | $GREP " "`
19475         if test "x$has_space" != x; then
19476           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19477 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19478         fi
19479         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19480       fi
19481     fi
19482 
19483     # Now join together the path and the arguments once again
19484     if test "x$arguments" != xEOL; then
19485       new_complete="$new_path ${arguments% *}"
19486     else
19487       new_complete="$new_path"
19488     fi
19489 
19490     if test "x$complete" != "x$new_complete"; then
19491       FOUND_MAKE="$new_complete"
19492       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19493 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19494     fi
19495   fi
19496 
19497         fi
19498       fi
19499     fi
19500   fi
19501 
19502 
19503     if test "x$FOUND_MAKE" = x; then
19504       for ac_prog in make
19505 do
19506   # Extract the first word of "$ac_prog", so it can be a program name with args.
19507 set dummy $ac_prog; ac_word=$2
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19509 $as_echo_n "checking for $ac_word... " >&6; }
19510 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19511   $as_echo_n "(cached) " >&6
19512 else
19513   case $CHECK_MAKE in
19514   [\\/]* | ?:[\\/]*)
19515   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19516   ;;
19517   *)
19518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519 for as_dir in $PATH
19520 do
19521   IFS=$as_save_IFS
19522   test -z "$as_dir" && as_dir=.
19523     for ac_exec_ext in '' $ac_executable_extensions; do
19524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19525     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19527     break 2
19528   fi
19529 done
19530   done
19531 IFS=$as_save_IFS
19532 
19533   ;;
19534 esac
19535 fi
19536 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19537 if test -n "$CHECK_MAKE"; then
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19539 $as_echo "$CHECK_MAKE" >&6; }
19540 else
19541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19542 $as_echo "no" >&6; }
19543 fi
19544 
19545 
19546   test -n "$CHECK_MAKE" && break
19547 done
19548 
19549 
19550   MAKE_CANDIDATE=""$CHECK_MAKE""
19551   DESCRIPTION="make in PATH"
19552 
19553   # On Cygwin, we require a newer version of make than on other platforms
19554   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19555     MAKE_VERSION_EXPR="-e 4\."
19556     MAKE_REQUIRED_VERSION="4.0"
19557    else
19558     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19559     MAKE_REQUIRED_VERSION="3.81"
19560   fi
19561 
19562   if test "x$MAKE_CANDIDATE" != x; then
19563     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19564 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19565     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19566     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19567     if test "x$IS_GNU_MAKE" = x; then
19568       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19569 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19570     else
19571       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19572       if test "x$IS_MODERN_MAKE" = x; then
19573         { $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
19574 $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;}
19575       else
19576         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19577           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19578             MAKE_EXPECTED_ENV='cygwin'
19579           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19580             MAKE_EXPECTED_ENV='msys'
19581           else
19582             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19583           fi
19584           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19585           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19586         else
19587           # Not relevant for non-Windows
19588           IS_MAKE_CORRECT_ENV=true
19589         fi
19590         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19591           { $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
19592 $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;}
19593         else
19594           FOUND_MAKE=$MAKE_CANDIDATE
19595 
19596   # Only process if variable expands to non-empty
19597 
19598   if test "x$FOUND_MAKE" != x; then
19599     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19600 
19601   # First separate the path from the arguments. This will split at the first
19602   # space.
19603   complete="$FOUND_MAKE"
19604   path="${complete%% *}"
19605   tmp="$complete EOL"
19606   arguments="${tmp#* }"
19607 
19608   # Input might be given as Windows format, start by converting to
19609   # unix format.
19610   new_path=`$CYGPATH -u "$path"`
19611 
19612   # Now try to locate executable using which
19613   new_path=`$WHICH "$new_path" 2> /dev/null`
19614   # bat and cmd files are not always considered executable in cygwin causing which
19615   # to not find them
19616   if test "x$new_path" = x \
19617       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19618       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19619     new_path=`$CYGPATH -u "$path"`
19620   fi
19621   if test "x$new_path" = x; then
19622     # Oops. Which didn't find the executable.
19623     # The splitting of arguments from the executable at a space might have been incorrect,
19624     # since paths with space are more likely in Windows. Give it another try with the whole
19625     # argument.
19626     path="$complete"
19627     arguments="EOL"
19628     new_path=`$CYGPATH -u "$path"`
19629     new_path=`$WHICH "$new_path" 2> /dev/null`
19630     # bat and cmd files are not always considered executable in cygwin causing which
19631     # to not find them
19632     if test "x$new_path" = x \
19633         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19634         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19635       new_path=`$CYGPATH -u "$path"`
19636     fi
19637     if test "x$new_path" = x; then
19638       # It's still not found. Now this is an unrecoverable error.
19639       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19640 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19641       has_space=`$ECHO "$complete" | $GREP " "`
19642       if test "x$has_space" != x; then
19643         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19645       fi
19646       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19647     fi
19648   fi
19649 
19650   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19651   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19652   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19653   # "foo.exe" is OK but "foo" is an error.
19654   #
19655   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19656   # It is also a way to make sure we got the proper file name for the real test later on.
19657   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19658   if test "x$test_shortpath" = x; then
19659     # Short path failed, file does not exist as specified.
19660     # Try adding .exe or .cmd
19661     if test -f "${new_path}.exe"; then
19662       input_to_shortpath="${new_path}.exe"
19663     elif test -f "${new_path}.cmd"; then
19664       input_to_shortpath="${new_path}.cmd"
19665     else
19666       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19667 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19668       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19669 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19670       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19671     fi
19672   else
19673     input_to_shortpath="$new_path"
19674   fi
19675 
19676   # Call helper function which possibly converts this using DOS-style short mode.
19677   # If so, the updated path is stored in $new_path.
19678   new_path="$input_to_shortpath"
19679 
19680   input_path="$input_to_shortpath"
19681   # Check if we need to convert this using DOS-style short mode. If the path
19682   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19683   # take no chances and rewrite it.
19684   # Note: m4 eats our [], so we need to use [ and ] instead.
19685   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19686   if test "x$has_forbidden_chars" != x; then
19687     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19688     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19689     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19690     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19691       # Going to short mode and back again did indeed matter. Since short mode is
19692       # case insensitive, let's make it lowercase to improve readability.
19693       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19694       # Now convert it back to Unix-style (cygpath)
19695       input_path=`$CYGPATH -u "$shortmode_path"`
19696       new_path="$input_path"
19697     fi
19698   fi
19699 
19700   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19701   if test "x$test_cygdrive_prefix" = x; then
19702     # As a simple fix, exclude /usr/bin since it's not a real path.
19703     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19704       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19705       # a path prefixed by /cygdrive for fixpath to work.
19706       new_path="$CYGWIN_ROOT_PATH$input_path"
19707     fi
19708   fi
19709 
19710   # remove trailing .exe if any
19711   new_path="${new_path/%.exe/}"
19712 
19713     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19714 
19715   # First separate the path from the arguments. This will split at the first
19716   # space.
19717   complete="$FOUND_MAKE"
19718   path="${complete%% *}"
19719   tmp="$complete EOL"
19720   arguments="${tmp#* }"
19721 
19722   # Input might be given as Windows format, start by converting to
19723   # unix format.
19724   new_path="$path"
19725 
19726   windows_path="$new_path"
19727   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19728     unix_path=`$CYGPATH -u "$windows_path"`
19729     new_path="$unix_path"
19730   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19731     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19732     new_path="$unix_path"
19733   fi
19734 
19735 
19736   # Now try to locate executable using which
19737   new_path=`$WHICH "$new_path" 2> /dev/null`
19738 
19739   if test "x$new_path" = x; then
19740     # Oops. Which didn't find the executable.
19741     # The splitting of arguments from the executable at a space might have been incorrect,
19742     # since paths with space are more likely in Windows. Give it another try with the whole
19743     # argument.
19744     path="$complete"
19745     arguments="EOL"
19746     new_path="$path"
19747 
19748   windows_path="$new_path"
19749   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19750     unix_path=`$CYGPATH -u "$windows_path"`
19751     new_path="$unix_path"
19752   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19753     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19754     new_path="$unix_path"
19755   fi
19756 
19757 
19758     new_path=`$WHICH "$new_path" 2> /dev/null`
19759     # bat and cmd files are not always considered executable in MSYS causing which
19760     # to not find them
19761     if test "x$new_path" = x \
19762         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19763         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19764       new_path="$path"
19765 
19766   windows_path="$new_path"
19767   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19768     unix_path=`$CYGPATH -u "$windows_path"`
19769     new_path="$unix_path"
19770   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19771     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19772     new_path="$unix_path"
19773   fi
19774 
19775     fi
19776 
19777     if test "x$new_path" = x; then
19778       # It's still not found. Now this is an unrecoverable error.
19779       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19780 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19781       has_space=`$ECHO "$complete" | $GREP " "`
19782       if test "x$has_space" != x; then
19783         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19784 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19785       fi
19786       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19787     fi
19788   fi
19789 
19790   # Now new_path has a complete unix path to the binary
19791   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19792     # Keep paths in /bin as-is, but remove trailing .exe if any
19793     new_path="${new_path/%.exe/}"
19794     # Do not save /bin paths to all_fixpath_prefixes!
19795   else
19796     # Not in mixed or Windows style, start by that.
19797     new_path=`cmd //c echo $new_path`
19798 
19799   input_path="$new_path"
19800   # Check if we need to convert this using DOS-style short mode. If the path
19801   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19802   # take no chances and rewrite it.
19803   # Note: m4 eats our [], so we need to use [ and ] instead.
19804   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19805   if test "x$has_forbidden_chars" != x; then
19806     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19807     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19808   fi
19809 
19810     # Output is in $new_path
19811 
19812   windows_path="$new_path"
19813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19814     unix_path=`$CYGPATH -u "$windows_path"`
19815     new_path="$unix_path"
19816   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19817     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19818     new_path="$unix_path"
19819   fi
19820 
19821     # remove trailing .exe if any
19822     new_path="${new_path/%.exe/}"
19823 
19824     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19825     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19826   fi
19827 
19828     else
19829       # We're on a unix platform. Hooray! :)
19830       # First separate the path from the arguments. This will split at the first
19831       # space.
19832       complete="$FOUND_MAKE"
19833       path="${complete%% *}"
19834       tmp="$complete EOL"
19835       arguments="${tmp#* }"
19836 
19837       # Cannot rely on the command "which" here since it doesn't always work.
19838       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19839       if test -z "$is_absolute_path"; then
19840         # Path to executable is not absolute. Find it.
19841         IFS_save="$IFS"
19842         IFS=:
19843         for p in $PATH; do
19844           if test -f "$p/$path" && test -x "$p/$path"; then
19845             new_path="$p/$path"
19846             break
19847           fi
19848         done
19849         IFS="$IFS_save"
19850       else
19851         # This is an absolute path, we can use it without further modifications.
19852         new_path="$path"
19853       fi
19854 
19855       if test "x$new_path" = x; then
19856         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19857 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19858         has_space=`$ECHO "$complete" | $GREP " "`
19859         if test "x$has_space" != x; then
19860           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19861 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19862         fi
19863         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19864       fi
19865     fi
19866 
19867     # Now join together the path and the arguments once again
19868     if test "x$arguments" != xEOL; then
19869       new_complete="$new_path ${arguments% *}"
19870     else
19871       new_complete="$new_path"
19872     fi
19873 
19874     if test "x$complete" != "x$new_complete"; then
19875       FOUND_MAKE="$new_complete"
19876       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19877 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19878     fi
19879   fi
19880 
19881         fi
19882       fi
19883     fi
19884   fi
19885 
19886     fi
19887 
19888     if test "x$FOUND_MAKE" = x; then
19889       if test "x$TOOLCHAIN_PATH" != x; then
19890         # We have a toolchain path, check that as well before giving up.
19891         OLD_PATH=$PATH
19892         PATH=$TOOLCHAIN_PATH:$PATH
19893         for ac_prog in gmake
19894 do
19895   # Extract the first word of "$ac_prog", so it can be a program name with args.
19896 set dummy $ac_prog; ac_word=$2
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19898 $as_echo_n "checking for $ac_word... " >&6; }
19899 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19900   $as_echo_n "(cached) " >&6
19901 else
19902   case $CHECK_TOOLSDIR_GMAKE in
19903   [\\/]* | ?:[\\/]*)
19904   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19905   ;;
19906   *)
19907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19908 for as_dir in $PATH
19909 do
19910   IFS=$as_save_IFS
19911   test -z "$as_dir" && as_dir=.
19912     for ac_exec_ext in '' $ac_executable_extensions; do
19913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19914     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19916     break 2
19917   fi
19918 done
19919   done
19920 IFS=$as_save_IFS
19921 
19922   ;;
19923 esac
19924 fi
19925 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19926 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19928 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19929 else
19930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19931 $as_echo "no" >&6; }
19932 fi
19933 
19934 
19935   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19936 done
19937 
19938 
19939   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19940   DESCRIPTION="gmake in tools-dir"
19941 
19942   # On Cygwin, we require a newer version of make than on other platforms
19943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19944     MAKE_VERSION_EXPR="-e 4\."
19945     MAKE_REQUIRED_VERSION="4.0"
19946    else
19947     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19948     MAKE_REQUIRED_VERSION="3.81"
19949   fi
19950 
19951   if test "x$MAKE_CANDIDATE" != x; then
19952     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19953 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19954     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19955     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19956     if test "x$IS_GNU_MAKE" = x; then
19957       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19958 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19959     else
19960       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19961       if test "x$IS_MODERN_MAKE" = x; then
19962         { $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
19963 $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;}
19964       else
19965         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19966           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19967             MAKE_EXPECTED_ENV='cygwin'
19968           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19969             MAKE_EXPECTED_ENV='msys'
19970           else
19971             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19972           fi
19973           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19974           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19975         else
19976           # Not relevant for non-Windows
19977           IS_MAKE_CORRECT_ENV=true
19978         fi
19979         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19980           { $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
19981 $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;}
19982         else
19983           FOUND_MAKE=$MAKE_CANDIDATE
19984 
19985   # Only process if variable expands to non-empty
19986 
19987   if test "x$FOUND_MAKE" != x; then
19988     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19989 
19990   # First separate the path from the arguments. This will split at the first
19991   # space.
19992   complete="$FOUND_MAKE"
19993   path="${complete%% *}"
19994   tmp="$complete EOL"
19995   arguments="${tmp#* }"
19996 
19997   # Input might be given as Windows format, start by converting to
19998   # unix format.
19999   new_path=`$CYGPATH -u "$path"`
20000 
20001   # Now try to locate executable using which
20002   new_path=`$WHICH "$new_path" 2> /dev/null`
20003   # bat and cmd files are not always considered executable in cygwin causing which
20004   # to not find them
20005   if test "x$new_path" = x \
20006       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20007       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20008     new_path=`$CYGPATH -u "$path"`
20009   fi
20010   if test "x$new_path" = x; then
20011     # Oops. Which didn't find the executable.
20012     # The splitting of arguments from the executable at a space might have been incorrect,
20013     # since paths with space are more likely in Windows. Give it another try with the whole
20014     # argument.
20015     path="$complete"
20016     arguments="EOL"
20017     new_path=`$CYGPATH -u "$path"`
20018     new_path=`$WHICH "$new_path" 2> /dev/null`
20019     # bat and cmd files are not always considered executable in cygwin causing which
20020     # to not find them
20021     if test "x$new_path" = x \
20022         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20023         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20024       new_path=`$CYGPATH -u "$path"`
20025     fi
20026     if test "x$new_path" = x; then
20027       # It's still not found. Now this is an unrecoverable error.
20028       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20029 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20030       has_space=`$ECHO "$complete" | $GREP " "`
20031       if test "x$has_space" != x; then
20032         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20033 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20034       fi
20035       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20036     fi
20037   fi
20038 
20039   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20040   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20041   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20042   # "foo.exe" is OK but "foo" is an error.
20043   #
20044   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20045   # It is also a way to make sure we got the proper file name for the real test later on.
20046   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20047   if test "x$test_shortpath" = x; then
20048     # Short path failed, file does not exist as specified.
20049     # Try adding .exe or .cmd
20050     if test -f "${new_path}.exe"; then
20051       input_to_shortpath="${new_path}.exe"
20052     elif test -f "${new_path}.cmd"; then
20053       input_to_shortpath="${new_path}.cmd"
20054     else
20055       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20056 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20057       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20058 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20059       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20060     fi
20061   else
20062     input_to_shortpath="$new_path"
20063   fi
20064 
20065   # Call helper function which possibly converts this using DOS-style short mode.
20066   # If so, the updated path is stored in $new_path.
20067   new_path="$input_to_shortpath"
20068 
20069   input_path="$input_to_shortpath"
20070   # Check if we need to convert this using DOS-style short mode. If the path
20071   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20072   # take no chances and rewrite it.
20073   # Note: m4 eats our [], so we need to use [ and ] instead.
20074   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20075   if test "x$has_forbidden_chars" != x; then
20076     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20077     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20078     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20079     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20080       # Going to short mode and back again did indeed matter. Since short mode is
20081       # case insensitive, let's make it lowercase to improve readability.
20082       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20083       # Now convert it back to Unix-style (cygpath)
20084       input_path=`$CYGPATH -u "$shortmode_path"`
20085       new_path="$input_path"
20086     fi
20087   fi
20088 
20089   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20090   if test "x$test_cygdrive_prefix" = x; then
20091     # As a simple fix, exclude /usr/bin since it's not a real path.
20092     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20093       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20094       # a path prefixed by /cygdrive for fixpath to work.
20095       new_path="$CYGWIN_ROOT_PATH$input_path"
20096     fi
20097   fi
20098 
20099   # remove trailing .exe if any
20100   new_path="${new_path/%.exe/}"
20101 
20102     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20103 
20104   # First separate the path from the arguments. This will split at the first
20105   # space.
20106   complete="$FOUND_MAKE"
20107   path="${complete%% *}"
20108   tmp="$complete EOL"
20109   arguments="${tmp#* }"
20110 
20111   # Input might be given as Windows format, start by converting to
20112   # unix format.
20113   new_path="$path"
20114 
20115   windows_path="$new_path"
20116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20117     unix_path=`$CYGPATH -u "$windows_path"`
20118     new_path="$unix_path"
20119   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20120     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20121     new_path="$unix_path"
20122   fi
20123 
20124 
20125   # Now try to locate executable using which
20126   new_path=`$WHICH "$new_path" 2> /dev/null`
20127 
20128   if test "x$new_path" = x; then
20129     # Oops. Which didn't find the executable.
20130     # The splitting of arguments from the executable at a space might have been incorrect,
20131     # since paths with space are more likely in Windows. Give it another try with the whole
20132     # argument.
20133     path="$complete"
20134     arguments="EOL"
20135     new_path="$path"
20136 
20137   windows_path="$new_path"
20138   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20139     unix_path=`$CYGPATH -u "$windows_path"`
20140     new_path="$unix_path"
20141   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20142     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20143     new_path="$unix_path"
20144   fi
20145 
20146 
20147     new_path=`$WHICH "$new_path" 2> /dev/null`
20148     # bat and cmd files are not always considered executable in MSYS causing which
20149     # to not find them
20150     if test "x$new_path" = x \
20151         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20152         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20153       new_path="$path"
20154 
20155   windows_path="$new_path"
20156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20157     unix_path=`$CYGPATH -u "$windows_path"`
20158     new_path="$unix_path"
20159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20160     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20161     new_path="$unix_path"
20162   fi
20163 
20164     fi
20165 
20166     if test "x$new_path" = x; then
20167       # It's still not found. Now this is an unrecoverable error.
20168       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20169 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20170       has_space=`$ECHO "$complete" | $GREP " "`
20171       if test "x$has_space" != x; then
20172         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20174       fi
20175       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20176     fi
20177   fi
20178 
20179   # Now new_path has a complete unix path to the binary
20180   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20181     # Keep paths in /bin as-is, but remove trailing .exe if any
20182     new_path="${new_path/%.exe/}"
20183     # Do not save /bin paths to all_fixpath_prefixes!
20184   else
20185     # Not in mixed or Windows style, start by that.
20186     new_path=`cmd //c echo $new_path`
20187 
20188   input_path="$new_path"
20189   # Check if we need to convert this using DOS-style short mode. If the path
20190   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20191   # take no chances and rewrite it.
20192   # Note: m4 eats our [], so we need to use [ and ] instead.
20193   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20194   if test "x$has_forbidden_chars" != x; then
20195     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20196     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20197   fi
20198 
20199     # Output is in $new_path
20200 
20201   windows_path="$new_path"
20202   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20203     unix_path=`$CYGPATH -u "$windows_path"`
20204     new_path="$unix_path"
20205   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20206     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20207     new_path="$unix_path"
20208   fi
20209 
20210     # remove trailing .exe if any
20211     new_path="${new_path/%.exe/}"
20212 
20213     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20214     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20215   fi
20216 
20217     else
20218       # We're on a unix platform. Hooray! :)
20219       # First separate the path from the arguments. This will split at the first
20220       # space.
20221       complete="$FOUND_MAKE"
20222       path="${complete%% *}"
20223       tmp="$complete EOL"
20224       arguments="${tmp#* }"
20225 
20226       # Cannot rely on the command "which" here since it doesn't always work.
20227       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20228       if test -z "$is_absolute_path"; then
20229         # Path to executable is not absolute. Find it.
20230         IFS_save="$IFS"
20231         IFS=:
20232         for p in $PATH; do
20233           if test -f "$p/$path" && test -x "$p/$path"; then
20234             new_path="$p/$path"
20235             break
20236           fi
20237         done
20238         IFS="$IFS_save"
20239       else
20240         # This is an absolute path, we can use it without further modifications.
20241         new_path="$path"
20242       fi
20243 
20244       if test "x$new_path" = x; then
20245         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20246 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20247         has_space=`$ECHO "$complete" | $GREP " "`
20248         if test "x$has_space" != x; then
20249           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20250 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20251         fi
20252         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20253       fi
20254     fi
20255 
20256     # Now join together the path and the arguments once again
20257     if test "x$arguments" != xEOL; then
20258       new_complete="$new_path ${arguments% *}"
20259     else
20260       new_complete="$new_path"
20261     fi
20262 
20263     if test "x$complete" != "x$new_complete"; then
20264       FOUND_MAKE="$new_complete"
20265       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20266 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20267     fi
20268   fi
20269 
20270         fi
20271       fi
20272     fi
20273   fi
20274 
20275         if test "x$FOUND_MAKE" = x; then
20276           for ac_prog in make
20277 do
20278   # Extract the first word of "$ac_prog", so it can be a program name with args.
20279 set dummy $ac_prog; ac_word=$2
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20281 $as_echo_n "checking for $ac_word... " >&6; }
20282 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20283   $as_echo_n "(cached) " >&6
20284 else
20285   case $CHECK_TOOLSDIR_MAKE in
20286   [\\/]* | ?:[\\/]*)
20287   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20288   ;;
20289   *)
20290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20291 for as_dir in $PATH
20292 do
20293   IFS=$as_save_IFS
20294   test -z "$as_dir" && as_dir=.
20295     for ac_exec_ext in '' $ac_executable_extensions; do
20296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20297     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20299     break 2
20300   fi
20301 done
20302   done
20303 IFS=$as_save_IFS
20304 
20305   ;;
20306 esac
20307 fi
20308 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20309 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20311 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20312 else
20313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20314 $as_echo "no" >&6; }
20315 fi
20316 
20317 
20318   test -n "$CHECK_TOOLSDIR_MAKE" && break
20319 done
20320 
20321 
20322   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20323   DESCRIPTION="make in tools-dir"
20324 
20325   # On Cygwin, we require a newer version of make than on other platforms
20326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20327     MAKE_VERSION_EXPR="-e 4\."
20328     MAKE_REQUIRED_VERSION="4.0"
20329    else
20330     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20331     MAKE_REQUIRED_VERSION="3.81"
20332   fi
20333 
20334   if test "x$MAKE_CANDIDATE" != x; then
20335     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20336 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20337     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20338     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20339     if test "x$IS_GNU_MAKE" = x; then
20340       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20341 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20342     else
20343       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20344       if test "x$IS_MODERN_MAKE" = x; then
20345         { $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
20346 $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;}
20347       else
20348         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20349           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20350             MAKE_EXPECTED_ENV='cygwin'
20351           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20352             MAKE_EXPECTED_ENV='msys'
20353           else
20354             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20355           fi
20356           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20357           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20358         else
20359           # Not relevant for non-Windows
20360           IS_MAKE_CORRECT_ENV=true
20361         fi
20362         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20363           { $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
20364 $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;}
20365         else
20366           FOUND_MAKE=$MAKE_CANDIDATE
20367 
20368   # Only process if variable expands to non-empty
20369 
20370   if test "x$FOUND_MAKE" != x; then
20371     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20372 
20373   # First separate the path from the arguments. This will split at the first
20374   # space.
20375   complete="$FOUND_MAKE"
20376   path="${complete%% *}"
20377   tmp="$complete EOL"
20378   arguments="${tmp#* }"
20379 
20380   # Input might be given as Windows format, start by converting to
20381   # unix format.
20382   new_path=`$CYGPATH -u "$path"`
20383 
20384   # Now try to locate executable using which
20385   new_path=`$WHICH "$new_path" 2> /dev/null`
20386   # bat and cmd files are not always considered executable in cygwin causing which
20387   # to not find them
20388   if test "x$new_path" = x \
20389       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20390       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20391     new_path=`$CYGPATH -u "$path"`
20392   fi
20393   if test "x$new_path" = x; then
20394     # Oops. Which didn't find the executable.
20395     # The splitting of arguments from the executable at a space might have been incorrect,
20396     # since paths with space are more likely in Windows. Give it another try with the whole
20397     # argument.
20398     path="$complete"
20399     arguments="EOL"
20400     new_path=`$CYGPATH -u "$path"`
20401     new_path=`$WHICH "$new_path" 2> /dev/null`
20402     # bat and cmd files are not always considered executable in cygwin causing which
20403     # to not find them
20404     if test "x$new_path" = x \
20405         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20406         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20407       new_path=`$CYGPATH -u "$path"`
20408     fi
20409     if test "x$new_path" = x; then
20410       # It's still not found. Now this is an unrecoverable error.
20411       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20413       has_space=`$ECHO "$complete" | $GREP " "`
20414       if test "x$has_space" != x; then
20415         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20416 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20417       fi
20418       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20419     fi
20420   fi
20421 
20422   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20423   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20424   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20425   # "foo.exe" is OK but "foo" is an error.
20426   #
20427   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20428   # It is also a way to make sure we got the proper file name for the real test later on.
20429   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20430   if test "x$test_shortpath" = x; then
20431     # Short path failed, file does not exist as specified.
20432     # Try adding .exe or .cmd
20433     if test -f "${new_path}.exe"; then
20434       input_to_shortpath="${new_path}.exe"
20435     elif test -f "${new_path}.cmd"; then
20436       input_to_shortpath="${new_path}.cmd"
20437     else
20438       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20439 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20440       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20441 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20442       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20443     fi
20444   else
20445     input_to_shortpath="$new_path"
20446   fi
20447 
20448   # Call helper function which possibly converts this using DOS-style short mode.
20449   # If so, the updated path is stored in $new_path.
20450   new_path="$input_to_shortpath"
20451 
20452   input_path="$input_to_shortpath"
20453   # Check if we need to convert this using DOS-style short mode. If the path
20454   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20455   # take no chances and rewrite it.
20456   # Note: m4 eats our [], so we need to use [ and ] instead.
20457   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20458   if test "x$has_forbidden_chars" != x; then
20459     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20460     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20461     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20462     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20463       # Going to short mode and back again did indeed matter. Since short mode is
20464       # case insensitive, let's make it lowercase to improve readability.
20465       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20466       # Now convert it back to Unix-style (cygpath)
20467       input_path=`$CYGPATH -u "$shortmode_path"`
20468       new_path="$input_path"
20469     fi
20470   fi
20471 
20472   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20473   if test "x$test_cygdrive_prefix" = x; then
20474     # As a simple fix, exclude /usr/bin since it's not a real path.
20475     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20476       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20477       # a path prefixed by /cygdrive for fixpath to work.
20478       new_path="$CYGWIN_ROOT_PATH$input_path"
20479     fi
20480   fi
20481 
20482   # remove trailing .exe if any
20483   new_path="${new_path/%.exe/}"
20484 
20485     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20486 
20487   # First separate the path from the arguments. This will split at the first
20488   # space.
20489   complete="$FOUND_MAKE"
20490   path="${complete%% *}"
20491   tmp="$complete EOL"
20492   arguments="${tmp#* }"
20493 
20494   # Input might be given as Windows format, start by converting to
20495   # unix format.
20496   new_path="$path"
20497 
20498   windows_path="$new_path"
20499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20500     unix_path=`$CYGPATH -u "$windows_path"`
20501     new_path="$unix_path"
20502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20503     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20504     new_path="$unix_path"
20505   fi
20506 
20507 
20508   # Now try to locate executable using which
20509   new_path=`$WHICH "$new_path" 2> /dev/null`
20510 
20511   if test "x$new_path" = x; then
20512     # Oops. Which didn't find the executable.
20513     # The splitting of arguments from the executable at a space might have been incorrect,
20514     # since paths with space are more likely in Windows. Give it another try with the whole
20515     # argument.
20516     path="$complete"
20517     arguments="EOL"
20518     new_path="$path"
20519 
20520   windows_path="$new_path"
20521   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20522     unix_path=`$CYGPATH -u "$windows_path"`
20523     new_path="$unix_path"
20524   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20525     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20526     new_path="$unix_path"
20527   fi
20528 
20529 
20530     new_path=`$WHICH "$new_path" 2> /dev/null`
20531     # bat and cmd files are not always considered executable in MSYS causing which
20532     # to not find them
20533     if test "x$new_path" = x \
20534         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20535         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20536       new_path="$path"
20537 
20538   windows_path="$new_path"
20539   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20540     unix_path=`$CYGPATH -u "$windows_path"`
20541     new_path="$unix_path"
20542   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20543     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20544     new_path="$unix_path"
20545   fi
20546 
20547     fi
20548 
20549     if test "x$new_path" = x; then
20550       # It's still not found. Now this is an unrecoverable error.
20551       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20552 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20553       has_space=`$ECHO "$complete" | $GREP " "`
20554       if test "x$has_space" != x; then
20555         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20556 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20557       fi
20558       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20559     fi
20560   fi
20561 
20562   # Now new_path has a complete unix path to the binary
20563   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20564     # Keep paths in /bin as-is, but remove trailing .exe if any
20565     new_path="${new_path/%.exe/}"
20566     # Do not save /bin paths to all_fixpath_prefixes!
20567   else
20568     # Not in mixed or Windows style, start by that.
20569     new_path=`cmd //c echo $new_path`
20570 
20571   input_path="$new_path"
20572   # Check if we need to convert this using DOS-style short mode. If the path
20573   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20574   # take no chances and rewrite it.
20575   # Note: m4 eats our [], so we need to use [ and ] instead.
20576   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20577   if test "x$has_forbidden_chars" != x; then
20578     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20579     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20580   fi
20581 
20582     # Output is in $new_path
20583 
20584   windows_path="$new_path"
20585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20586     unix_path=`$CYGPATH -u "$windows_path"`
20587     new_path="$unix_path"
20588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20589     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20590     new_path="$unix_path"
20591   fi
20592 
20593     # remove trailing .exe if any
20594     new_path="${new_path/%.exe/}"
20595 
20596     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20597     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20598   fi
20599 
20600     else
20601       # We're on a unix platform. Hooray! :)
20602       # First separate the path from the arguments. This will split at the first
20603       # space.
20604       complete="$FOUND_MAKE"
20605       path="${complete%% *}"
20606       tmp="$complete EOL"
20607       arguments="${tmp#* }"
20608 
20609       # Cannot rely on the command "which" here since it doesn't always work.
20610       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20611       if test -z "$is_absolute_path"; then
20612         # Path to executable is not absolute. Find it.
20613         IFS_save="$IFS"
20614         IFS=:
20615         for p in $PATH; do
20616           if test -f "$p/$path" && test -x "$p/$path"; then
20617             new_path="$p/$path"
20618             break
20619           fi
20620         done
20621         IFS="$IFS_save"
20622       else
20623         # This is an absolute path, we can use it without further modifications.
20624         new_path="$path"
20625       fi
20626 
20627       if test "x$new_path" = x; then
20628         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20629 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20630         has_space=`$ECHO "$complete" | $GREP " "`
20631         if test "x$has_space" != x; then
20632           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20633 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20634         fi
20635         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20636       fi
20637     fi
20638 
20639     # Now join together the path and the arguments once again
20640     if test "x$arguments" != xEOL; then
20641       new_complete="$new_path ${arguments% *}"
20642     else
20643       new_complete="$new_path"
20644     fi
20645 
20646     if test "x$complete" != "x$new_complete"; then
20647       FOUND_MAKE="$new_complete"
20648       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20649 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20650     fi
20651   fi
20652 
20653         fi
20654       fi
20655     fi
20656   fi
20657 
20658         fi
20659         PATH=$OLD_PATH
20660       fi
20661     fi
20662 
20663     if test "x$FOUND_MAKE" = x; then
20664       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
20665     fi
20666 
20667     else
20668       # If it succeeded, then it was overridden by the user. We will use it
20669       # for the tool.
20670 
20671       # First remove it from the list of overridden variables, so we can test
20672       # for unknown variables in the end.
20673       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20674 
20675       # Check if we try to supply an empty value
20676       if test "x$MAKE" = x; then
20677         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20678 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20680 $as_echo_n "checking for MAKE... " >&6; }
20681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20682 $as_echo "disabled" >&6; }
20683       else
20684         # Check if the provided tool contains a complete path.
20685         tool_specified="$MAKE"
20686         tool_basename="${tool_specified##*/}"
20687         if test "x$tool_basename" = "x$tool_specified"; then
20688           # A command without a complete path is provided, search $PATH.
20689           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20690 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20691           # Extract the first word of "$tool_basename", so it can be a program name with args.
20692 set dummy $tool_basename; ac_word=$2
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20694 $as_echo_n "checking for $ac_word... " >&6; }
20695 if ${ac_cv_path_MAKE+:} false; then :
20696   $as_echo_n "(cached) " >&6
20697 else
20698   case $MAKE in
20699   [\\/]* | ?:[\\/]*)
20700   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20701   ;;
20702   *)
20703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20704 for as_dir in $PATH
20705 do
20706   IFS=$as_save_IFS
20707   test -z "$as_dir" && as_dir=.
20708     for ac_exec_ext in '' $ac_executable_extensions; do
20709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20710     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20712     break 2
20713   fi
20714 done
20715   done
20716 IFS=$as_save_IFS
20717 
20718   ;;
20719 esac
20720 fi
20721 MAKE=$ac_cv_path_MAKE
20722 if test -n "$MAKE"; then
20723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20724 $as_echo "$MAKE" >&6; }
20725 else
20726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20727 $as_echo "no" >&6; }
20728 fi
20729 
20730 
20731           if test "x$MAKE" = x; then
20732             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20733           fi
20734         else
20735           # Otherwise we believe it is a complete path. Use it as it is.
20736           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20737 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20738           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20739 $as_echo_n "checking for MAKE... " >&6; }
20740           if test ! -x "$tool_specified"; then
20741             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20742 $as_echo "not found" >&6; }
20743             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20744           fi
20745           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20746 $as_echo "$tool_specified" >&6; }
20747         fi
20748       fi
20749     fi
20750 
20751     # If MAKE was set by user, verify the version
20752 
20753   MAKE_CANDIDATE=""$MAKE""
20754   DESCRIPTION="user supplied MAKE=$MAKE"
20755 
20756   # On Cygwin, we require a newer version of make than on other platforms
20757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20758     MAKE_VERSION_EXPR="-e 4\."
20759     MAKE_REQUIRED_VERSION="4.0"
20760    else
20761     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20762     MAKE_REQUIRED_VERSION="3.81"
20763   fi
20764 
20765   if test "x$MAKE_CANDIDATE" != x; then
20766     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20767 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20768     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20769     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20770     if test "x$IS_GNU_MAKE" = x; then
20771       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20772 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20773     else
20774       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20775       if test "x$IS_MODERN_MAKE" = x; then
20776         { $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
20777 $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;}
20778       else
20779         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20780           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20781             MAKE_EXPECTED_ENV='cygwin'
20782           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20783             MAKE_EXPECTED_ENV='msys'
20784           else
20785             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20786           fi
20787           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20788           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20789         else
20790           # Not relevant for non-Windows
20791           IS_MAKE_CORRECT_ENV=true
20792         fi
20793         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20794           { $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
20795 $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;}
20796         else
20797           FOUND_MAKE=$MAKE_CANDIDATE
20798 
20799   # Only process if variable expands to non-empty
20800 
20801   if test "x$FOUND_MAKE" != x; then
20802     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20803 
20804   # First separate the path from the arguments. This will split at the first
20805   # space.
20806   complete="$FOUND_MAKE"
20807   path="${complete%% *}"
20808   tmp="$complete EOL"
20809   arguments="${tmp#* }"
20810 
20811   # Input might be given as Windows format, start by converting to
20812   # unix format.
20813   new_path=`$CYGPATH -u "$path"`
20814 
20815   # Now try to locate executable using which
20816   new_path=`$WHICH "$new_path" 2> /dev/null`
20817   # bat and cmd files are not always considered executable in cygwin causing which
20818   # to not find them
20819   if test "x$new_path" = x \
20820       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20821       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20822     new_path=`$CYGPATH -u "$path"`
20823   fi
20824   if test "x$new_path" = x; then
20825     # Oops. Which didn't find the executable.
20826     # The splitting of arguments from the executable at a space might have been incorrect,
20827     # since paths with space are more likely in Windows. Give it another try with the whole
20828     # argument.
20829     path="$complete"
20830     arguments="EOL"
20831     new_path=`$CYGPATH -u "$path"`
20832     new_path=`$WHICH "$new_path" 2> /dev/null`
20833     # bat and cmd files are not always considered executable in cygwin causing which
20834     # to not find them
20835     if test "x$new_path" = x \
20836         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20837         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20838       new_path=`$CYGPATH -u "$path"`
20839     fi
20840     if test "x$new_path" = x; then
20841       # It's still not found. Now this is an unrecoverable error.
20842       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20844       has_space=`$ECHO "$complete" | $GREP " "`
20845       if test "x$has_space" != x; then
20846         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20847 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20848       fi
20849       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20850     fi
20851   fi
20852 
20853   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20854   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20855   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20856   # "foo.exe" is OK but "foo" is an error.
20857   #
20858   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20859   # It is also a way to make sure we got the proper file name for the real test later on.
20860   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20861   if test "x$test_shortpath" = x; then
20862     # Short path failed, file does not exist as specified.
20863     # Try adding .exe or .cmd
20864     if test -f "${new_path}.exe"; then
20865       input_to_shortpath="${new_path}.exe"
20866     elif test -f "${new_path}.cmd"; then
20867       input_to_shortpath="${new_path}.cmd"
20868     else
20869       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20870 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20871       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20872 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20873       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20874     fi
20875   else
20876     input_to_shortpath="$new_path"
20877   fi
20878 
20879   # Call helper function which possibly converts this using DOS-style short mode.
20880   # If so, the updated path is stored in $new_path.
20881   new_path="$input_to_shortpath"
20882 
20883   input_path="$input_to_shortpath"
20884   # Check if we need to convert this using DOS-style short mode. If the path
20885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20886   # take no chances and rewrite it.
20887   # Note: m4 eats our [], so we need to use [ and ] instead.
20888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20889   if test "x$has_forbidden_chars" != x; then
20890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20891     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20892     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20893     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20894       # Going to short mode and back again did indeed matter. Since short mode is
20895       # case insensitive, let's make it lowercase to improve readability.
20896       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20897       # Now convert it back to Unix-style (cygpath)
20898       input_path=`$CYGPATH -u "$shortmode_path"`
20899       new_path="$input_path"
20900     fi
20901   fi
20902 
20903   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20904   if test "x$test_cygdrive_prefix" = x; then
20905     # As a simple fix, exclude /usr/bin since it's not a real path.
20906     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20907       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20908       # a path prefixed by /cygdrive for fixpath to work.
20909       new_path="$CYGWIN_ROOT_PATH$input_path"
20910     fi
20911   fi
20912 
20913   # remove trailing .exe if any
20914   new_path="${new_path/%.exe/}"
20915 
20916     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20917 
20918   # First separate the path from the arguments. This will split at the first
20919   # space.
20920   complete="$FOUND_MAKE"
20921   path="${complete%% *}"
20922   tmp="$complete EOL"
20923   arguments="${tmp#* }"
20924 
20925   # Input might be given as Windows format, start by converting to
20926   # unix format.
20927   new_path="$path"
20928 
20929   windows_path="$new_path"
20930   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20931     unix_path=`$CYGPATH -u "$windows_path"`
20932     new_path="$unix_path"
20933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20934     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20935     new_path="$unix_path"
20936   fi
20937 
20938 
20939   # Now try to locate executable using which
20940   new_path=`$WHICH "$new_path" 2> /dev/null`
20941 
20942   if test "x$new_path" = x; then
20943     # Oops. Which didn't find the executable.
20944     # The splitting of arguments from the executable at a space might have been incorrect,
20945     # since paths with space are more likely in Windows. Give it another try with the whole
20946     # argument.
20947     path="$complete"
20948     arguments="EOL"
20949     new_path="$path"
20950 
20951   windows_path="$new_path"
20952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20953     unix_path=`$CYGPATH -u "$windows_path"`
20954     new_path="$unix_path"
20955   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20956     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20957     new_path="$unix_path"
20958   fi
20959 
20960 
20961     new_path=`$WHICH "$new_path" 2> /dev/null`
20962     # bat and cmd files are not always considered executable in MSYS causing which
20963     # to not find them
20964     if test "x$new_path" = x \
20965         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20966         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20967       new_path="$path"
20968 
20969   windows_path="$new_path"
20970   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20971     unix_path=`$CYGPATH -u "$windows_path"`
20972     new_path="$unix_path"
20973   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20974     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20975     new_path="$unix_path"
20976   fi
20977 
20978     fi
20979 
20980     if test "x$new_path" = x; then
20981       # It's still not found. Now this is an unrecoverable error.
20982       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20983 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20984       has_space=`$ECHO "$complete" | $GREP " "`
20985       if test "x$has_space" != x; then
20986         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20987 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20988       fi
20989       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20990     fi
20991   fi
20992 
20993   # Now new_path has a complete unix path to the binary
20994   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20995     # Keep paths in /bin as-is, but remove trailing .exe if any
20996     new_path="${new_path/%.exe/}"
20997     # Do not save /bin paths to all_fixpath_prefixes!
20998   else
20999     # Not in mixed or Windows style, start by that.
21000     new_path=`cmd //c echo $new_path`
21001 
21002   input_path="$new_path"
21003   # Check if we need to convert this using DOS-style short mode. If the path
21004   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21005   # take no chances and rewrite it.
21006   # Note: m4 eats our [], so we need to use [ and ] instead.
21007   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21008   if test "x$has_forbidden_chars" != x; then
21009     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21010     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21011   fi
21012 
21013     # Output is in $new_path
21014 
21015   windows_path="$new_path"
21016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21017     unix_path=`$CYGPATH -u "$windows_path"`
21018     new_path="$unix_path"
21019   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21020     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21021     new_path="$unix_path"
21022   fi
21023 
21024     # remove trailing .exe if any
21025     new_path="${new_path/%.exe/}"
21026 
21027     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21028     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21029   fi
21030 
21031     else
21032       # We're on a unix platform. Hooray! :)
21033       # First separate the path from the arguments. This will split at the first
21034       # space.
21035       complete="$FOUND_MAKE"
21036       path="${complete%% *}"
21037       tmp="$complete EOL"
21038       arguments="${tmp#* }"
21039 
21040       # Cannot rely on the command "which" here since it doesn't always work.
21041       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21042       if test -z "$is_absolute_path"; then
21043         # Path to executable is not absolute. Find it.
21044         IFS_save="$IFS"
21045         IFS=:
21046         for p in $PATH; do
21047           if test -f "$p/$path" && test -x "$p/$path"; then
21048             new_path="$p/$path"
21049             break
21050           fi
21051         done
21052         IFS="$IFS_save"
21053       else
21054         # This is an absolute path, we can use it without further modifications.
21055         new_path="$path"
21056       fi
21057 
21058       if test "x$new_path" = x; then
21059         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21060 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21061         has_space=`$ECHO "$complete" | $GREP " "`
21062         if test "x$has_space" != x; then
21063           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21064 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21065         fi
21066         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21067       fi
21068     fi
21069 
21070     # Now join together the path and the arguments once again
21071     if test "x$arguments" != xEOL; then
21072       new_complete="$new_path ${arguments% *}"
21073     else
21074       new_complete="$new_path"
21075     fi
21076 
21077     if test "x$complete" != "x$new_complete"; then
21078       FOUND_MAKE="$new_complete"
21079       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21080 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21081     fi
21082   fi
21083 
21084         fi
21085       fi
21086     fi
21087   fi
21088 
21089     if test "x$FOUND_MAKE" = x; then
21090       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21091     fi
21092 
21093   fi
21094 
21095 
21096   MAKE=$FOUND_MAKE
21097 
21098   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21099 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21100 
21101 
21102   # Check if make supports the output sync option and if so, setup using it.
21103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21104 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21105   if $MAKE --version -O > /dev/null 2>&1; then
21106     OUTPUT_SYNC_SUPPORTED=true
21107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21108 $as_echo "yes" >&6; }
21109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21110 $as_echo_n "checking for output-sync value... " >&6; }
21111 
21112 # Check whether --with-output-sync was given.
21113 if test "${with_output_sync+set}" = set; then :
21114   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21115 fi
21116 
21117     if test "x$OUTPUT_SYNC" = "x"; then
21118       OUTPUT_SYNC=none
21119     fi
21120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21121 $as_echo "$OUTPUT_SYNC" >&6; }
21122     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21123       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21124     fi
21125   else
21126     OUTPUT_SYNC_SUPPORTED=false
21127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21128 $as_echo "no" >&6; }
21129   fi
21130 
21131 
21132 
21133 
21134 
21135 
21136   # Test if find supports -delete
21137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21138 $as_echo_n "checking if find supports -delete... " >&6; }
21139   FIND_DELETE="-delete"
21140 
21141   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21142 
21143   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21144 
21145   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21146   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21147     # No, it does not.
21148     $RM $DELETEDIR/TestIfFindSupportsDelete
21149     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21150       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21151       FIND_DELETE="-print | $XARGS $RM"
21152     else
21153       FIND_DELETE="-exec $RM \{\} \+"
21154     fi
21155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21156 $as_echo "no" >&6; }
21157   else
21158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21159 $as_echo "yes" >&6; }
21160   fi
21161   $RMDIR $DELETEDIR
21162 
21163 
21164 
21165   # Test which kind of tar was found
21166   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21167     TAR_TYPE="gnu"
21168   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21169     TAR_TYPE="bsd"
21170   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21171     TAR_TYPE="solaris"
21172   fi
21173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21174 $as_echo_n "checking what type of tar was found... " >&6; }
21175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21176 $as_echo "$TAR_TYPE" >&6; }
21177 
21178   TAR_CREATE_FILE_PARAM=""
21179 
21180   if test "x$TAR_TYPE" = "xgnu"; then
21181     TAR_INCLUDE_PARAM="T"
21182     TAR_SUPPORTS_TRANSFORM="true"
21183     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21184       # When using gnu tar for Solaris targets, need to use compatibility mode
21185       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21186     fi
21187   else
21188     TAR_INCLUDE_PARAM="I"
21189     TAR_SUPPORTS_TRANSFORM="false"
21190   fi
21191 
21192 
21193 
21194 
21195 
21196 
21197   # These tools might not be installed by default,
21198   # need hint on how to install them.
21199 
21200 
21201 
21202   # Publish this variable in the help.
21203 
21204 
21205   if [ -z "${UNZIP+x}" ]; then
21206     # The variable is not set by user, try to locate tool using the code snippet
21207     for ac_prog in unzip
21208 do
21209   # Extract the first word of "$ac_prog", so it can be a program name with args.
21210 set dummy $ac_prog; ac_word=$2
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21212 $as_echo_n "checking for $ac_word... " >&6; }
21213 if ${ac_cv_path_UNZIP+:} false; then :
21214   $as_echo_n "(cached) " >&6
21215 else
21216   case $UNZIP in
21217   [\\/]* | ?:[\\/]*)
21218   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21219   ;;
21220   *)
21221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21222 for as_dir in $PATH
21223 do
21224   IFS=$as_save_IFS
21225   test -z "$as_dir" && as_dir=.
21226     for ac_exec_ext in '' $ac_executable_extensions; do
21227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21228     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21230     break 2
21231   fi
21232 done
21233   done
21234 IFS=$as_save_IFS
21235 
21236   ;;
21237 esac
21238 fi
21239 UNZIP=$ac_cv_path_UNZIP
21240 if test -n "$UNZIP"; then
21241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21242 $as_echo "$UNZIP" >&6; }
21243 else
21244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 $as_echo "no" >&6; }
21246 fi
21247 
21248 
21249   test -n "$UNZIP" && break
21250 done
21251 
21252   else
21253     # The variable is set, but is it from the command line or the environment?
21254 
21255     # Try to remove the string !UNZIP! from our list.
21256     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21257     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21258       # If it failed, the variable was not from the command line. Ignore it,
21259       # but warn the user (except for BASH, which is always set by the calling BASH).
21260       if test "xUNZIP" != xBASH; then
21261         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21262 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21263       fi
21264       # Try to locate tool using the code snippet
21265       for ac_prog in unzip
21266 do
21267   # Extract the first word of "$ac_prog", so it can be a program name with args.
21268 set dummy $ac_prog; ac_word=$2
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21270 $as_echo_n "checking for $ac_word... " >&6; }
21271 if ${ac_cv_path_UNZIP+:} false; then :
21272   $as_echo_n "(cached) " >&6
21273 else
21274   case $UNZIP in
21275   [\\/]* | ?:[\\/]*)
21276   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21277   ;;
21278   *)
21279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21280 for as_dir in $PATH
21281 do
21282   IFS=$as_save_IFS
21283   test -z "$as_dir" && as_dir=.
21284     for ac_exec_ext in '' $ac_executable_extensions; do
21285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21286     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21288     break 2
21289   fi
21290 done
21291   done
21292 IFS=$as_save_IFS
21293 
21294   ;;
21295 esac
21296 fi
21297 UNZIP=$ac_cv_path_UNZIP
21298 if test -n "$UNZIP"; then
21299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21300 $as_echo "$UNZIP" >&6; }
21301 else
21302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21303 $as_echo "no" >&6; }
21304 fi
21305 
21306 
21307   test -n "$UNZIP" && break
21308 done
21309 
21310     else
21311       # If it succeeded, then it was overridden by the user. We will use it
21312       # for the tool.
21313 
21314       # First remove it from the list of overridden variables, so we can test
21315       # for unknown variables in the end.
21316       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21317 
21318       # Check if we try to supply an empty value
21319       if test "x$UNZIP" = x; then
21320         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21321 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21322         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21323 $as_echo_n "checking for UNZIP... " >&6; }
21324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21325 $as_echo "disabled" >&6; }
21326       else
21327         # Check if the provided tool contains a complete path.
21328         tool_specified="$UNZIP"
21329         tool_basename="${tool_specified##*/}"
21330         if test "x$tool_basename" = "x$tool_specified"; then
21331           # A command without a complete path is provided, search $PATH.
21332           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21333 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21334           # Extract the first word of "$tool_basename", so it can be a program name with args.
21335 set dummy $tool_basename; ac_word=$2
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21337 $as_echo_n "checking for $ac_word... " >&6; }
21338 if ${ac_cv_path_UNZIP+:} false; then :
21339   $as_echo_n "(cached) " >&6
21340 else
21341   case $UNZIP in
21342   [\\/]* | ?:[\\/]*)
21343   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21344   ;;
21345   *)
21346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21347 for as_dir in $PATH
21348 do
21349   IFS=$as_save_IFS
21350   test -z "$as_dir" && as_dir=.
21351     for ac_exec_ext in '' $ac_executable_extensions; do
21352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21353     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21355     break 2
21356   fi
21357 done
21358   done
21359 IFS=$as_save_IFS
21360 
21361   ;;
21362 esac
21363 fi
21364 UNZIP=$ac_cv_path_UNZIP
21365 if test -n "$UNZIP"; then
21366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21367 $as_echo "$UNZIP" >&6; }
21368 else
21369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21370 $as_echo "no" >&6; }
21371 fi
21372 
21373 
21374           if test "x$UNZIP" = x; then
21375             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21376           fi
21377         else
21378           # Otherwise we believe it is a complete path. Use it as it is.
21379           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21380 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21381           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21382 $as_echo_n "checking for UNZIP... " >&6; }
21383           if test ! -x "$tool_specified"; then
21384             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21385 $as_echo "not found" >&6; }
21386             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21387           fi
21388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21389 $as_echo "$tool_specified" >&6; }
21390         fi
21391       fi
21392     fi
21393 
21394   fi
21395 
21396 
21397 
21398   if test "x$UNZIP" = x; then
21399     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21400   fi
21401 
21402 
21403 
21404 
21405 
21406   # Publish this variable in the help.
21407 
21408 
21409   if [ -z "${ZIP+x}" ]; then
21410     # The variable is not set by user, try to locate tool using the code snippet
21411     for ac_prog in zip
21412 do
21413   # Extract the first word of "$ac_prog", so it can be a program name with args.
21414 set dummy $ac_prog; ac_word=$2
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21416 $as_echo_n "checking for $ac_word... " >&6; }
21417 if ${ac_cv_path_ZIP+:} false; then :
21418   $as_echo_n "(cached) " >&6
21419 else
21420   case $ZIP in
21421   [\\/]* | ?:[\\/]*)
21422   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21423   ;;
21424   *)
21425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21426 for as_dir in $PATH
21427 do
21428   IFS=$as_save_IFS
21429   test -z "$as_dir" && as_dir=.
21430     for ac_exec_ext in '' $ac_executable_extensions; do
21431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21432     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21434     break 2
21435   fi
21436 done
21437   done
21438 IFS=$as_save_IFS
21439 
21440   ;;
21441 esac
21442 fi
21443 ZIP=$ac_cv_path_ZIP
21444 if test -n "$ZIP"; then
21445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21446 $as_echo "$ZIP" >&6; }
21447 else
21448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21449 $as_echo "no" >&6; }
21450 fi
21451 
21452 
21453   test -n "$ZIP" && break
21454 done
21455 
21456   else
21457     # The variable is set, but is it from the command line or the environment?
21458 
21459     # Try to remove the string !ZIP! from our list.
21460     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
21461     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21462       # If it failed, the variable was not from the command line. Ignore it,
21463       # but warn the user (except for BASH, which is always set by the calling BASH).
21464       if test "xZIP" != xBASH; then
21465         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
21466 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
21467       fi
21468       # 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_ZIP+:} false; then :
21476   $as_echo_n "(cached) " >&6
21477 else
21478   case $ZIP in
21479   [\\/]* | ?:[\\/]*)
21480   ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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 ZIP=$ac_cv_path_ZIP
21502 if test -n "$ZIP"; then
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21504 $as_echo "$ZIP" >&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 "$ZIP" && break
21512 done
21513 
21514     else
21515       # If it succeeded, then it was overridden by the user. We will use it
21516       # for the tool.
21517 
21518       # First remove it from the list of overridden variables, so we can test
21519       # for unknown variables in the end.
21520       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21521 
21522       # Check if we try to supply an empty value
21523       if test "x$ZIP" = x; then
21524         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
21525 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
21526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21527 $as_echo_n "checking for ZIP... " >&6; }
21528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21529 $as_echo "disabled" >&6; }
21530       else
21531         # Check if the provided tool contains a complete path.
21532         tool_specified="$ZIP"
21533         tool_basename="${tool_specified##*/}"
21534         if test "x$tool_basename" = "x$tool_specified"; then
21535           # A command without a complete path is provided, search $PATH.
21536           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
21537 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
21538           # Extract the first word of "$tool_basename", so it can be a program name with args.
21539 set dummy $tool_basename; ac_word=$2
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21541 $as_echo_n "checking for $ac_word... " >&6; }
21542 if ${ac_cv_path_ZIP+:} false; then :
21543   $as_echo_n "(cached) " >&6
21544 else
21545   case $ZIP in
21546   [\\/]* | ?:[\\/]*)
21547   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21548   ;;
21549   *)
21550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21551 for as_dir in $PATH
21552 do
21553   IFS=$as_save_IFS
21554   test -z "$as_dir" && as_dir=.
21555     for ac_exec_ext in '' $ac_executable_extensions; do
21556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21557     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21559     break 2
21560   fi
21561 done
21562   done
21563 IFS=$as_save_IFS
21564 
21565   ;;
21566 esac
21567 fi
21568 ZIP=$ac_cv_path_ZIP
21569 if test -n "$ZIP"; then
21570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21571 $as_echo "$ZIP" >&6; }
21572 else
21573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21575 fi
21576 
21577 
21578           if test "x$ZIP" = x; then
21579             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21580           fi
21581         else
21582           # Otherwise we believe it is a complete path. Use it as it is.
21583           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
21584 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
21585           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21586 $as_echo_n "checking for ZIP... " >&6; }
21587           if test ! -x "$tool_specified"; then
21588             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21589 $as_echo "not found" >&6; }
21590             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21591           fi
21592           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21593 $as_echo "$tool_specified" >&6; }
21594         fi
21595       fi
21596     fi
21597 
21598   fi
21599 
21600 
21601 
21602   if test "x$ZIP" = x; then
21603     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
21604   fi
21605 
21606 
21607 
21608   # Non-required basic tools
21609 
21610 
21611 
21612   # Publish this variable in the help.
21613 
21614 
21615   if [ -z "${LDD+x}" ]; then
21616     # The variable is not set by user, try to locate tool using the code snippet
21617     for ac_prog in ldd
21618 do
21619   # Extract the first word of "$ac_prog", so it can be a program name with args.
21620 set dummy $ac_prog; ac_word=$2
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21622 $as_echo_n "checking for $ac_word... " >&6; }
21623 if ${ac_cv_path_LDD+:} false; then :
21624   $as_echo_n "(cached) " >&6
21625 else
21626   case $LDD in
21627   [\\/]* | ?:[\\/]*)
21628   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21629   ;;
21630   *)
21631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632 for as_dir in $PATH
21633 do
21634   IFS=$as_save_IFS
21635   test -z "$as_dir" && as_dir=.
21636     for ac_exec_ext in '' $ac_executable_extensions; do
21637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21638     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21640     break 2
21641   fi
21642 done
21643   done
21644 IFS=$as_save_IFS
21645 
21646   ;;
21647 esac
21648 fi
21649 LDD=$ac_cv_path_LDD
21650 if test -n "$LDD"; then
21651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21652 $as_echo "$LDD" >&6; }
21653 else
21654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21656 fi
21657 
21658 
21659   test -n "$LDD" && break
21660 done
21661 
21662   else
21663     # The variable is set, but is it from the command line or the environment?
21664 
21665     # Try to remove the string !LDD! from our list.
21666     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21667     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21668       # If it failed, the variable was not from the command line. Ignore it,
21669       # but warn the user (except for BASH, which is always set by the calling BASH).
21670       if test "xLDD" != xBASH; then
21671         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21672 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21673       fi
21674       # 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       # If it succeeded, then it was overridden by the user. We will use it
21722       # for the tool.
21723 
21724       # First remove it from the list of overridden variables, so we can test
21725       # for unknown variables in the end.
21726       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21727 
21728       # Check if we try to supply an empty value
21729       if test "x$LDD" = x; then
21730         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21731 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21732         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21733 $as_echo_n "checking for LDD... " >&6; }
21734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21735 $as_echo "disabled" >&6; }
21736       else
21737         # Check if the provided tool contains a complete path.
21738         tool_specified="$LDD"
21739         tool_basename="${tool_specified##*/}"
21740         if test "x$tool_basename" = "x$tool_specified"; then
21741           # A command without a complete path is provided, search $PATH.
21742           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21743 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21744           # Extract the first word of "$tool_basename", so it can be a program name with args.
21745 set dummy $tool_basename; ac_word=$2
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21747 $as_echo_n "checking for $ac_word... " >&6; }
21748 if ${ac_cv_path_LDD+:} false; then :
21749   $as_echo_n "(cached) " >&6
21750 else
21751   case $LDD in
21752   [\\/]* | ?:[\\/]*)
21753   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21754   ;;
21755   *)
21756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21757 for as_dir in $PATH
21758 do
21759   IFS=$as_save_IFS
21760   test -z "$as_dir" && as_dir=.
21761     for ac_exec_ext in '' $ac_executable_extensions; do
21762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21763     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21765     break 2
21766   fi
21767 done
21768   done
21769 IFS=$as_save_IFS
21770 
21771   ;;
21772 esac
21773 fi
21774 LDD=$ac_cv_path_LDD
21775 if test -n "$LDD"; then
21776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21777 $as_echo "$LDD" >&6; }
21778 else
21779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21780 $as_echo "no" >&6; }
21781 fi
21782 
21783 
21784           if test "x$LDD" = x; then
21785             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21786           fi
21787         else
21788           # Otherwise we believe it is a complete path. Use it as it is.
21789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21790 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21791           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21792 $as_echo_n "checking for LDD... " >&6; }
21793           if test ! -x "$tool_specified"; then
21794             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21795 $as_echo "not found" >&6; }
21796             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21797           fi
21798           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21799 $as_echo "$tool_specified" >&6; }
21800         fi
21801       fi
21802     fi
21803 
21804   fi
21805 
21806 
21807   if test "x$LDD" = "x"; then
21808     # List shared lib dependencies is used for
21809     # debug output and checking for forbidden dependencies.
21810     # We can build without it.
21811     LDD="true"
21812   fi
21813 
21814 
21815   # Publish this variable in the help.
21816 
21817 
21818   if [ -z "${OTOOL+x}" ]; then
21819     # The variable is not set by user, try to locate tool using the code snippet
21820     for ac_prog in otool
21821 do
21822   # Extract the first word of "$ac_prog", so it can be a program name with args.
21823 set dummy $ac_prog; ac_word=$2
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21825 $as_echo_n "checking for $ac_word... " >&6; }
21826 if ${ac_cv_path_OTOOL+:} false; then :
21827   $as_echo_n "(cached) " >&6
21828 else
21829   case $OTOOL in
21830   [\\/]* | ?:[\\/]*)
21831   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21832   ;;
21833   *)
21834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21835 for as_dir in $PATH
21836 do
21837   IFS=$as_save_IFS
21838   test -z "$as_dir" && as_dir=.
21839     for ac_exec_ext in '' $ac_executable_extensions; do
21840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21841     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21843     break 2
21844   fi
21845 done
21846   done
21847 IFS=$as_save_IFS
21848 
21849   ;;
21850 esac
21851 fi
21852 OTOOL=$ac_cv_path_OTOOL
21853 if test -n "$OTOOL"; then
21854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21855 $as_echo "$OTOOL" >&6; }
21856 else
21857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21858 $as_echo "no" >&6; }
21859 fi
21860 
21861 
21862   test -n "$OTOOL" && break
21863 done
21864 
21865   else
21866     # The variable is set, but is it from the command line or the environment?
21867 
21868     # Try to remove the string !OTOOL! from our list.
21869     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21870     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21871       # If it failed, the variable was not from the command line. Ignore it,
21872       # but warn the user (except for BASH, which is always set by the calling BASH).
21873       if test "xOTOOL" != xBASH; then
21874         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21875 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21876       fi
21877       # 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       # If it succeeded, then it was overridden by the user. We will use it
21925       # for the tool.
21926 
21927       # First remove it from the list of overridden variables, so we can test
21928       # for unknown variables in the end.
21929       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21930 
21931       # Check if we try to supply an empty value
21932       if test "x$OTOOL" = x; then
21933         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21934 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21936 $as_echo_n "checking for OTOOL... " >&6; }
21937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21938 $as_echo "disabled" >&6; }
21939       else
21940         # Check if the provided tool contains a complete path.
21941         tool_specified="$OTOOL"
21942         tool_basename="${tool_specified##*/}"
21943         if test "x$tool_basename" = "x$tool_specified"; then
21944           # A command without a complete path is provided, search $PATH.
21945           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21946 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21947           # Extract the first word of "$tool_basename", so it can be a program name with args.
21948 set dummy $tool_basename; ac_word=$2
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21950 $as_echo_n "checking for $ac_word... " >&6; }
21951 if ${ac_cv_path_OTOOL+:} false; then :
21952   $as_echo_n "(cached) " >&6
21953 else
21954   case $OTOOL in
21955   [\\/]* | ?:[\\/]*)
21956   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21957   ;;
21958   *)
21959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21960 for as_dir in $PATH
21961 do
21962   IFS=$as_save_IFS
21963   test -z "$as_dir" && as_dir=.
21964     for ac_exec_ext in '' $ac_executable_extensions; do
21965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21966     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21968     break 2
21969   fi
21970 done
21971   done
21972 IFS=$as_save_IFS
21973 
21974   ;;
21975 esac
21976 fi
21977 OTOOL=$ac_cv_path_OTOOL
21978 if test -n "$OTOOL"; then
21979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21980 $as_echo "$OTOOL" >&6; }
21981 else
21982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21983 $as_echo "no" >&6; }
21984 fi
21985 
21986 
21987           if test "x$OTOOL" = x; then
21988             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21989           fi
21990         else
21991           # Otherwise we believe it is a complete path. Use it as it is.
21992           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21993 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21994           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21995 $as_echo_n "checking for OTOOL... " >&6; }
21996           if test ! -x "$tool_specified"; then
21997             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21998 $as_echo "not found" >&6; }
21999             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
22000           fi
22001           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22002 $as_echo "$tool_specified" >&6; }
22003         fi
22004       fi
22005     fi
22006 
22007   fi
22008 
22009 
22010   if test "x$OTOOL" = "x"; then
22011     OTOOL="true"
22012   fi
22013 
22014 
22015   # Publish this variable in the help.
22016 
22017 
22018   if [ -z "${READELF+x}" ]; then
22019     # The variable is not set by user, try to locate tool using the code snippet
22020     for ac_prog in greadelf readelf
22021 do
22022   # Extract the first word of "$ac_prog", so it can be a program name with args.
22023 set dummy $ac_prog; ac_word=$2
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22025 $as_echo_n "checking for $ac_word... " >&6; }
22026 if ${ac_cv_path_READELF+:} false; then :
22027   $as_echo_n "(cached) " >&6
22028 else
22029   case $READELF in
22030   [\\/]* | ?:[\\/]*)
22031   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22032   ;;
22033   *)
22034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22035 for as_dir in $PATH
22036 do
22037   IFS=$as_save_IFS
22038   test -z "$as_dir" && as_dir=.
22039     for ac_exec_ext in '' $ac_executable_extensions; do
22040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22041     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22043     break 2
22044   fi
22045 done
22046   done
22047 IFS=$as_save_IFS
22048 
22049   ;;
22050 esac
22051 fi
22052 READELF=$ac_cv_path_READELF
22053 if test -n "$READELF"; then
22054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22055 $as_echo "$READELF" >&6; }
22056 else
22057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22058 $as_echo "no" >&6; }
22059 fi
22060 
22061 
22062   test -n "$READELF" && break
22063 done
22064 
22065   else
22066     # The variable is set, but is it from the command line or the environment?
22067 
22068     # Try to remove the string !READELF! from our list.
22069     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22070     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22071       # If it failed, the variable was not from the command line. Ignore it,
22072       # but warn the user (except for BASH, which is always set by the calling BASH).
22073       if test "xREADELF" != xBASH; then
22074         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22075 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22076       fi
22077       # 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       # If it succeeded, then it was overridden by the user. We will use it
22125       # for the tool.
22126 
22127       # First remove it from the list of overridden variables, so we can test
22128       # for unknown variables in the end.
22129       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22130 
22131       # Check if we try to supply an empty value
22132       if test "x$READELF" = x; then
22133         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22134 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22136 $as_echo_n "checking for READELF... " >&6; }
22137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22138 $as_echo "disabled" >&6; }
22139       else
22140         # Check if the provided tool contains a complete path.
22141         tool_specified="$READELF"
22142         tool_basename="${tool_specified##*/}"
22143         if test "x$tool_basename" = "x$tool_specified"; then
22144           # A command without a complete path is provided, search $PATH.
22145           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22146 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22147           # Extract the first word of "$tool_basename", so it can be a program name with args.
22148 set dummy $tool_basename; ac_word=$2
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22150 $as_echo_n "checking for $ac_word... " >&6; }
22151 if ${ac_cv_path_READELF+:} false; then :
22152   $as_echo_n "(cached) " >&6
22153 else
22154   case $READELF in
22155   [\\/]* | ?:[\\/]*)
22156   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22157   ;;
22158   *)
22159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22160 for as_dir in $PATH
22161 do
22162   IFS=$as_save_IFS
22163   test -z "$as_dir" && as_dir=.
22164     for ac_exec_ext in '' $ac_executable_extensions; do
22165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22166     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22168     break 2
22169   fi
22170 done
22171   done
22172 IFS=$as_save_IFS
22173 
22174   ;;
22175 esac
22176 fi
22177 READELF=$ac_cv_path_READELF
22178 if test -n "$READELF"; then
22179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22180 $as_echo "$READELF" >&6; }
22181 else
22182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22183 $as_echo "no" >&6; }
22184 fi
22185 
22186 
22187           if test "x$READELF" = x; then
22188             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22189           fi
22190         else
22191           # Otherwise we believe it is a complete path. Use it as it is.
22192           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22193 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22194           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22195 $as_echo_n "checking for READELF... " >&6; }
22196           if test ! -x "$tool_specified"; then
22197             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22198 $as_echo "not found" >&6; }
22199             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22200           fi
22201           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22202 $as_echo "$tool_specified" >&6; }
22203         fi
22204       fi
22205     fi
22206 
22207   fi
22208 
22209 
22210 
22211 
22212   # Publish this variable in the help.
22213 
22214 
22215   if [ -z "${HG+x}" ]; then
22216     # The variable is not set by user, try to locate tool using the code snippet
22217     for ac_prog in hg
22218 do
22219   # Extract the first word of "$ac_prog", so it can be a program name with args.
22220 set dummy $ac_prog; ac_word=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if ${ac_cv_path_HG+:} false; then :
22224   $as_echo_n "(cached) " >&6
22225 else
22226   case $HG in
22227   [\\/]* | ?:[\\/]*)
22228   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22229   ;;
22230   *)
22231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 for as_dir in $PATH
22233 do
22234   IFS=$as_save_IFS
22235   test -z "$as_dir" && as_dir=.
22236     for ac_exec_ext in '' $ac_executable_extensions; do
22237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22238     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22240     break 2
22241   fi
22242 done
22243   done
22244 IFS=$as_save_IFS
22245 
22246   ;;
22247 esac
22248 fi
22249 HG=$ac_cv_path_HG
22250 if test -n "$HG"; then
22251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22252 $as_echo "$HG" >&6; }
22253 else
22254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22255 $as_echo "no" >&6; }
22256 fi
22257 
22258 
22259   test -n "$HG" && break
22260 done
22261 
22262   else
22263     # The variable is set, but is it from the command line or the environment?
22264 
22265     # Try to remove the string !HG! from our list.
22266     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22267     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22268       # If it failed, the variable was not from the command line. Ignore it,
22269       # but warn the user (except for BASH, which is always set by the calling BASH).
22270       if test "xHG" != xBASH; then
22271         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22272 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22273       fi
22274       # 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       # If it succeeded, then it was overridden by the user. We will use it
22322       # for the tool.
22323 
22324       # First remove it from the list of overridden variables, so we can test
22325       # for unknown variables in the end.
22326       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22327 
22328       # Check if we try to supply an empty value
22329       if test "x$HG" = x; then
22330         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22331 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22333 $as_echo_n "checking for HG... " >&6; }
22334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22335 $as_echo "disabled" >&6; }
22336       else
22337         # Check if the provided tool contains a complete path.
22338         tool_specified="$HG"
22339         tool_basename="${tool_specified##*/}"
22340         if test "x$tool_basename" = "x$tool_specified"; then
22341           # A command without a complete path is provided, search $PATH.
22342           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22343 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22344           # Extract the first word of "$tool_basename", so it can be a program name with args.
22345 set dummy $tool_basename; ac_word=$2
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22347 $as_echo_n "checking for $ac_word... " >&6; }
22348 if ${ac_cv_path_HG+:} false; then :
22349   $as_echo_n "(cached) " >&6
22350 else
22351   case $HG in
22352   [\\/]* | ?:[\\/]*)
22353   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22354   ;;
22355   *)
22356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22357 for as_dir in $PATH
22358 do
22359   IFS=$as_save_IFS
22360   test -z "$as_dir" && as_dir=.
22361     for ac_exec_ext in '' $ac_executable_extensions; do
22362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22363     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22365     break 2
22366   fi
22367 done
22368   done
22369 IFS=$as_save_IFS
22370 
22371   ;;
22372 esac
22373 fi
22374 HG=$ac_cv_path_HG
22375 if test -n "$HG"; then
22376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22377 $as_echo "$HG" >&6; }
22378 else
22379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22380 $as_echo "no" >&6; }
22381 fi
22382 
22383 
22384           if test "x$HG" = x; then
22385             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22386           fi
22387         else
22388           # Otherwise we believe it is a complete path. Use it as it is.
22389           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22390 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22391           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22392 $as_echo_n "checking for HG... " >&6; }
22393           if test ! -x "$tool_specified"; then
22394             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22395 $as_echo "not found" >&6; }
22396             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22397           fi
22398           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22399 $as_echo "$tool_specified" >&6; }
22400         fi
22401       fi
22402     fi
22403 
22404   fi
22405 
22406 
22407 
22408 
22409   # Publish this variable in the help.
22410 
22411 
22412   if [ -z "${STAT+x}" ]; then
22413     # The variable is not set by user, try to locate tool using the code snippet
22414     for ac_prog in stat
22415 do
22416   # Extract the first word of "$ac_prog", so it can be a program name with args.
22417 set dummy $ac_prog; ac_word=$2
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22419 $as_echo_n "checking for $ac_word... " >&6; }
22420 if ${ac_cv_path_STAT+:} false; then :
22421   $as_echo_n "(cached) " >&6
22422 else
22423   case $STAT in
22424   [\\/]* | ?:[\\/]*)
22425   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22426   ;;
22427   *)
22428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22429 for as_dir in $PATH
22430 do
22431   IFS=$as_save_IFS
22432   test -z "$as_dir" && as_dir=.
22433     for ac_exec_ext in '' $ac_executable_extensions; do
22434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22435     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22437     break 2
22438   fi
22439 done
22440   done
22441 IFS=$as_save_IFS
22442 
22443   ;;
22444 esac
22445 fi
22446 STAT=$ac_cv_path_STAT
22447 if test -n "$STAT"; then
22448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22449 $as_echo "$STAT" >&6; }
22450 else
22451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22452 $as_echo "no" >&6; }
22453 fi
22454 
22455 
22456   test -n "$STAT" && break
22457 done
22458 
22459   else
22460     # The variable is set, but is it from the command line or the environment?
22461 
22462     # Try to remove the string !STAT! from our list.
22463     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22464     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22465       # If it failed, the variable was not from the command line. Ignore it,
22466       # but warn the user (except for BASH, which is always set by the calling BASH).
22467       if test "xSTAT" != xBASH; then
22468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22469 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22470       fi
22471       # 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       # If it succeeded, then it was overridden by the user. We will use it
22519       # for the tool.
22520 
22521       # First remove it from the list of overridden variables, so we can test
22522       # for unknown variables in the end.
22523       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22524 
22525       # Check if we try to supply an empty value
22526       if test "x$STAT" = x; then
22527         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22528 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22530 $as_echo_n "checking for STAT... " >&6; }
22531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22532 $as_echo "disabled" >&6; }
22533       else
22534         # Check if the provided tool contains a complete path.
22535         tool_specified="$STAT"
22536         tool_basename="${tool_specified##*/}"
22537         if test "x$tool_basename" = "x$tool_specified"; then
22538           # A command without a complete path is provided, search $PATH.
22539           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22540 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22541           # Extract the first word of "$tool_basename", so it can be a program name with args.
22542 set dummy $tool_basename; ac_word=$2
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22544 $as_echo_n "checking for $ac_word... " >&6; }
22545 if ${ac_cv_path_STAT+:} false; then :
22546   $as_echo_n "(cached) " >&6
22547 else
22548   case $STAT in
22549   [\\/]* | ?:[\\/]*)
22550   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22551   ;;
22552   *)
22553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22554 for as_dir in $PATH
22555 do
22556   IFS=$as_save_IFS
22557   test -z "$as_dir" && as_dir=.
22558     for ac_exec_ext in '' $ac_executable_extensions; do
22559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22560     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22562     break 2
22563   fi
22564 done
22565   done
22566 IFS=$as_save_IFS
22567 
22568   ;;
22569 esac
22570 fi
22571 STAT=$ac_cv_path_STAT
22572 if test -n "$STAT"; then
22573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22574 $as_echo "$STAT" >&6; }
22575 else
22576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22577 $as_echo "no" >&6; }
22578 fi
22579 
22580 
22581           if test "x$STAT" = x; then
22582             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22583           fi
22584         else
22585           # Otherwise we believe it is a complete path. Use it as it is.
22586           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22587 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22588           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22589 $as_echo_n "checking for STAT... " >&6; }
22590           if test ! -x "$tool_specified"; then
22591             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22592 $as_echo "not found" >&6; }
22593             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22594           fi
22595           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22596 $as_echo "$tool_specified" >&6; }
22597         fi
22598       fi
22599     fi
22600 
22601   fi
22602 
22603 
22604 
22605 
22606   # Publish this variable in the help.
22607 
22608 
22609   if [ -z "${TIME+x}" ]; then
22610     # The variable is not set by user, try to locate tool using the code snippet
22611     for ac_prog in time
22612 do
22613   # Extract the first word of "$ac_prog", so it can be a program name with args.
22614 set dummy $ac_prog; ac_word=$2
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22616 $as_echo_n "checking for $ac_word... " >&6; }
22617 if ${ac_cv_path_TIME+:} false; then :
22618   $as_echo_n "(cached) " >&6
22619 else
22620   case $TIME in
22621   [\\/]* | ?:[\\/]*)
22622   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22623   ;;
22624   *)
22625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22626 for as_dir in $PATH
22627 do
22628   IFS=$as_save_IFS
22629   test -z "$as_dir" && as_dir=.
22630     for ac_exec_ext in '' $ac_executable_extensions; do
22631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22632     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22634     break 2
22635   fi
22636 done
22637   done
22638 IFS=$as_save_IFS
22639 
22640   ;;
22641 esac
22642 fi
22643 TIME=$ac_cv_path_TIME
22644 if test -n "$TIME"; then
22645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22646 $as_echo "$TIME" >&6; }
22647 else
22648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22649 $as_echo "no" >&6; }
22650 fi
22651 
22652 
22653   test -n "$TIME" && break
22654 done
22655 
22656   else
22657     # The variable is set, but is it from the command line or the environment?
22658 
22659     # Try to remove the string !TIME! from our list.
22660     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22661     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22662       # If it failed, the variable was not from the command line. Ignore it,
22663       # but warn the user (except for BASH, which is always set by the calling BASH).
22664       if test "xTIME" != xBASH; then
22665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22666 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22667       fi
22668       # 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       # If it succeeded, then it was overridden by the user. We will use it
22716       # for the tool.
22717 
22718       # First remove it from the list of overridden variables, so we can test
22719       # for unknown variables in the end.
22720       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22721 
22722       # Check if we try to supply an empty value
22723       if test "x$TIME" = x; then
22724         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22725 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22727 $as_echo_n "checking for TIME... " >&6; }
22728         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22729 $as_echo "disabled" >&6; }
22730       else
22731         # Check if the provided tool contains a complete path.
22732         tool_specified="$TIME"
22733         tool_basename="${tool_specified##*/}"
22734         if test "x$tool_basename" = "x$tool_specified"; then
22735           # A command without a complete path is provided, search $PATH.
22736           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22737 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22738           # Extract the first word of "$tool_basename", so it can be a program name with args.
22739 set dummy $tool_basename; ac_word=$2
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22741 $as_echo_n "checking for $ac_word... " >&6; }
22742 if ${ac_cv_path_TIME+:} false; then :
22743   $as_echo_n "(cached) " >&6
22744 else
22745   case $TIME in
22746   [\\/]* | ?:[\\/]*)
22747   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22748   ;;
22749   *)
22750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22751 for as_dir in $PATH
22752 do
22753   IFS=$as_save_IFS
22754   test -z "$as_dir" && as_dir=.
22755     for ac_exec_ext in '' $ac_executable_extensions; do
22756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22757     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22759     break 2
22760   fi
22761 done
22762   done
22763 IFS=$as_save_IFS
22764 
22765   ;;
22766 esac
22767 fi
22768 TIME=$ac_cv_path_TIME
22769 if test -n "$TIME"; then
22770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22771 $as_echo "$TIME" >&6; }
22772 else
22773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774 $as_echo "no" >&6; }
22775 fi
22776 
22777 
22778           if test "x$TIME" = x; then
22779             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22780           fi
22781         else
22782           # Otherwise we believe it is a complete path. Use it as it is.
22783           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22784 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22785           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22786 $as_echo_n "checking for TIME... " >&6; }
22787           if test ! -x "$tool_specified"; then
22788             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22789 $as_echo "not found" >&6; }
22790             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22791           fi
22792           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22793 $as_echo "$tool_specified" >&6; }
22794         fi
22795       fi
22796     fi
22797 
22798   fi
22799 
22800 
22801 
22802 
22803   # Publish this variable in the help.
22804 
22805 
22806   if [ -z "${DTRACE+x}" ]; then
22807     # The variable is not set by user, try to locate tool using the code snippet
22808     for ac_prog in dtrace
22809 do
22810   # Extract the first word of "$ac_prog", so it can be a program name with args.
22811 set dummy $ac_prog; ac_word=$2
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22813 $as_echo_n "checking for $ac_word... " >&6; }
22814 if ${ac_cv_path_DTRACE+:} false; then :
22815   $as_echo_n "(cached) " >&6
22816 else
22817   case $DTRACE in
22818   [\\/]* | ?:[\\/]*)
22819   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22820   ;;
22821   *)
22822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22823 for as_dir in $PATH
22824 do
22825   IFS=$as_save_IFS
22826   test -z "$as_dir" && as_dir=.
22827     for ac_exec_ext in '' $ac_executable_extensions; do
22828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22829     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22831     break 2
22832   fi
22833 done
22834   done
22835 IFS=$as_save_IFS
22836 
22837   ;;
22838 esac
22839 fi
22840 DTRACE=$ac_cv_path_DTRACE
22841 if test -n "$DTRACE"; then
22842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22843 $as_echo "$DTRACE" >&6; }
22844 else
22845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22846 $as_echo "no" >&6; }
22847 fi
22848 
22849 
22850   test -n "$DTRACE" && break
22851 done
22852 
22853   else
22854     # The variable is set, but is it from the command line or the environment?
22855 
22856     # Try to remove the string !DTRACE! from our list.
22857     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22858     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22859       # If it failed, the variable was not from the command line. Ignore it,
22860       # but warn the user (except for BASH, which is always set by the calling BASH).
22861       if test "xDTRACE" != xBASH; then
22862         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22863 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22864       fi
22865       # Try to locate tool using the code snippet
22866       for ac_prog in dtrace
22867 do
22868   # Extract the first word of "$ac_prog", so it can be a program name with args.
22869 set dummy $ac_prog; ac_word=$2
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22871 $as_echo_n "checking for $ac_word... " >&6; }
22872 if ${ac_cv_path_DTRACE+:} false; then :
22873   $as_echo_n "(cached) " >&6
22874 else
22875   case $DTRACE in
22876   [\\/]* | ?:[\\/]*)
22877   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22878   ;;
22879   *)
22880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22881 for as_dir in $PATH
22882 do
22883   IFS=$as_save_IFS
22884   test -z "$as_dir" && as_dir=.
22885     for ac_exec_ext in '' $ac_executable_extensions; do
22886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22887     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22889     break 2
22890   fi
22891 done
22892   done
22893 IFS=$as_save_IFS
22894 
22895   ;;
22896 esac
22897 fi
22898 DTRACE=$ac_cv_path_DTRACE
22899 if test -n "$DTRACE"; then
22900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22901 $as_echo "$DTRACE" >&6; }
22902 else
22903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22904 $as_echo "no" >&6; }
22905 fi
22906 
22907 
22908   test -n "$DTRACE" && break
22909 done
22910 
22911     else
22912       # If it succeeded, then it was overridden by the user. We will use it
22913       # for the tool.
22914 
22915       # First remove it from the list of overridden variables, so we can test
22916       # for unknown variables in the end.
22917       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22918 
22919       # Check if we try to supply an empty value
22920       if test "x$DTRACE" = x; then
22921         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22922 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22924 $as_echo_n "checking for DTRACE... " >&6; }
22925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22926 $as_echo "disabled" >&6; }
22927       else
22928         # Check if the provided tool contains a complete path.
22929         tool_specified="$DTRACE"
22930         tool_basename="${tool_specified##*/}"
22931         if test "x$tool_basename" = "x$tool_specified"; then
22932           # A command without a complete path is provided, search $PATH.
22933           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22934 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22935           # Extract the first word of "$tool_basename", so it can be a program name with args.
22936 set dummy $tool_basename; ac_word=$2
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22938 $as_echo_n "checking for $ac_word... " >&6; }
22939 if ${ac_cv_path_DTRACE+:} false; then :
22940   $as_echo_n "(cached) " >&6
22941 else
22942   case $DTRACE in
22943   [\\/]* | ?:[\\/]*)
22944   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22945   ;;
22946   *)
22947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22948 for as_dir in $PATH
22949 do
22950   IFS=$as_save_IFS
22951   test -z "$as_dir" && as_dir=.
22952     for ac_exec_ext in '' $ac_executable_extensions; do
22953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22954     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22956     break 2
22957   fi
22958 done
22959   done
22960 IFS=$as_save_IFS
22961 
22962   ;;
22963 esac
22964 fi
22965 DTRACE=$ac_cv_path_DTRACE
22966 if test -n "$DTRACE"; then
22967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22968 $as_echo "$DTRACE" >&6; }
22969 else
22970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22971 $as_echo "no" >&6; }
22972 fi
22973 
22974 
22975           if test "x$DTRACE" = x; then
22976             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22977           fi
22978         else
22979           # Otherwise we believe it is a complete path. Use it as it is.
22980           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
22981 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
22982           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22983 $as_echo_n "checking for DTRACE... " >&6; }
22984           if test ! -x "$tool_specified"; then
22985             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22986 $as_echo "not found" >&6; }
22987             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
22988           fi
22989           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22990 $as_echo "$tool_specified" >&6; }
22991         fi
22992       fi
22993     fi
22994 
22995   fi
22996 
22997 
22998 
22999 
23000   # Publish this variable in the help.
23001 
23002 
23003   if [ -z "${PATCH+x}" ]; then
23004     # The variable is not set by user, try to locate tool using the code snippet
23005     for ac_prog in gpatch patch
23006 do
23007   # Extract the first word of "$ac_prog", so it can be a program name with args.
23008 set dummy $ac_prog; ac_word=$2
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23010 $as_echo_n "checking for $ac_word... " >&6; }
23011 if ${ac_cv_path_PATCH+:} false; then :
23012   $as_echo_n "(cached) " >&6
23013 else
23014   case $PATCH in
23015   [\\/]* | ?:[\\/]*)
23016   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23017   ;;
23018   *)
23019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23020 for as_dir in $PATH
23021 do
23022   IFS=$as_save_IFS
23023   test -z "$as_dir" && as_dir=.
23024     for ac_exec_ext in '' $ac_executable_extensions; do
23025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23026     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23028     break 2
23029   fi
23030 done
23031   done
23032 IFS=$as_save_IFS
23033 
23034   ;;
23035 esac
23036 fi
23037 PATCH=$ac_cv_path_PATCH
23038 if test -n "$PATCH"; then
23039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23040 $as_echo "$PATCH" >&6; }
23041 else
23042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23043 $as_echo "no" >&6; }
23044 fi
23045 
23046 
23047   test -n "$PATCH" && break
23048 done
23049 
23050   else
23051     # The variable is set, but is it from the command line or the environment?
23052 
23053     # Try to remove the string !PATCH! from our list.
23054     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23055     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23056       # If it failed, the variable was not from the command line. Ignore it,
23057       # but warn the user (except for BASH, which is always set by the calling BASH).
23058       if test "xPATCH" != xBASH; then
23059         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23060 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23061       fi
23062       # Try to locate tool using the code snippet
23063       for ac_prog in gpatch patch
23064 do
23065   # Extract the first word of "$ac_prog", so it can be a program name with args.
23066 set dummy $ac_prog; ac_word=$2
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23068 $as_echo_n "checking for $ac_word... " >&6; }
23069 if ${ac_cv_path_PATCH+:} false; then :
23070   $as_echo_n "(cached) " >&6
23071 else
23072   case $PATCH in
23073   [\\/]* | ?:[\\/]*)
23074   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23075   ;;
23076   *)
23077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23078 for as_dir in $PATH
23079 do
23080   IFS=$as_save_IFS
23081   test -z "$as_dir" && as_dir=.
23082     for ac_exec_ext in '' $ac_executable_extensions; do
23083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23084     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23086     break 2
23087   fi
23088 done
23089   done
23090 IFS=$as_save_IFS
23091 
23092   ;;
23093 esac
23094 fi
23095 PATCH=$ac_cv_path_PATCH
23096 if test -n "$PATCH"; then
23097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23098 $as_echo "$PATCH" >&6; }
23099 else
23100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23101 $as_echo "no" >&6; }
23102 fi
23103 
23104 
23105   test -n "$PATCH" && break
23106 done
23107 
23108     else
23109       # If it succeeded, then it was overridden by the user. We will use it
23110       # for the tool.
23111 
23112       # First remove it from the list of overridden variables, so we can test
23113       # for unknown variables in the end.
23114       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23115 
23116       # Check if we try to supply an empty value
23117       if test "x$PATCH" = x; then
23118         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23119 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23120         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23121 $as_echo_n "checking for PATCH... " >&6; }
23122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23123 $as_echo "disabled" >&6; }
23124       else
23125         # Check if the provided tool contains a complete path.
23126         tool_specified="$PATCH"
23127         tool_basename="${tool_specified##*/}"
23128         if test "x$tool_basename" = "x$tool_specified"; then
23129           # A command without a complete path is provided, search $PATH.
23130           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23131 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23132           # Extract the first word of "$tool_basename", so it can be a program name with args.
23133 set dummy $tool_basename; ac_word=$2
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23135 $as_echo_n "checking for $ac_word... " >&6; }
23136 if ${ac_cv_path_PATCH+:} false; then :
23137   $as_echo_n "(cached) " >&6
23138 else
23139   case $PATCH in
23140   [\\/]* | ?:[\\/]*)
23141   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23142   ;;
23143   *)
23144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23145 for as_dir in $PATH
23146 do
23147   IFS=$as_save_IFS
23148   test -z "$as_dir" && as_dir=.
23149     for ac_exec_ext in '' $ac_executable_extensions; do
23150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23151     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23153     break 2
23154   fi
23155 done
23156   done
23157 IFS=$as_save_IFS
23158 
23159   ;;
23160 esac
23161 fi
23162 PATCH=$ac_cv_path_PATCH
23163 if test -n "$PATCH"; then
23164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23165 $as_echo "$PATCH" >&6; }
23166 else
23167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23169 fi
23170 
23171 
23172           if test "x$PATCH" = x; then
23173             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23174           fi
23175         else
23176           # Otherwise we believe it is a complete path. Use it as it is.
23177           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23178 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23179           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23180 $as_echo_n "checking for PATCH... " >&6; }
23181           if test ! -x "$tool_specified"; then
23182             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23183 $as_echo "not found" >&6; }
23184             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23185           fi
23186           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23187 $as_echo "$tool_specified" >&6; }
23188         fi
23189       fi
23190     fi
23191 
23192   fi
23193 
23194 
23195   # Check if it's GNU time
23196   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23197   if test "x$IS_GNU_TIME" != x; then
23198     IS_GNU_TIME=yes
23199   else
23200     IS_GNU_TIME=no
23201   fi
23202 
23203 
23204   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23205 
23206 
23207 
23208   # Publish this variable in the help.
23209 
23210 
23211   if [ -z "${DSYMUTIL+x}" ]; then
23212     # The variable is not set by user, try to locate tool using the code snippet
23213     for ac_prog in dsymutil
23214 do
23215   # Extract the first word of "$ac_prog", so it can be a program name with args.
23216 set dummy $ac_prog; ac_word=$2
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23218 $as_echo_n "checking for $ac_word... " >&6; }
23219 if ${ac_cv_path_DSYMUTIL+:} false; then :
23220   $as_echo_n "(cached) " >&6
23221 else
23222   case $DSYMUTIL in
23223   [\\/]* | ?:[\\/]*)
23224   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23225   ;;
23226   *)
23227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23228 for as_dir in $PATH
23229 do
23230   IFS=$as_save_IFS
23231   test -z "$as_dir" && as_dir=.
23232     for ac_exec_ext in '' $ac_executable_extensions; do
23233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23234     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23236     break 2
23237   fi
23238 done
23239   done
23240 IFS=$as_save_IFS
23241 
23242   ;;
23243 esac
23244 fi
23245 DSYMUTIL=$ac_cv_path_DSYMUTIL
23246 if test -n "$DSYMUTIL"; then
23247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23248 $as_echo "$DSYMUTIL" >&6; }
23249 else
23250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23251 $as_echo "no" >&6; }
23252 fi
23253 
23254 
23255   test -n "$DSYMUTIL" && break
23256 done
23257 
23258   else
23259     # The variable is set, but is it from the command line or the environment?
23260 
23261     # Try to remove the string !DSYMUTIL! from our list.
23262     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23263     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23264       # If it failed, the variable was not from the command line. Ignore it,
23265       # but warn the user (except for BASH, which is always set by the calling BASH).
23266       if test "xDSYMUTIL" != xBASH; then
23267         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23268 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23269       fi
23270       # Try to locate tool using the code snippet
23271       for ac_prog in dsymutil
23272 do
23273   # Extract the first word of "$ac_prog", so it can be a program name with args.
23274 set dummy $ac_prog; ac_word=$2
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23276 $as_echo_n "checking for $ac_word... " >&6; }
23277 if ${ac_cv_path_DSYMUTIL+:} false; then :
23278   $as_echo_n "(cached) " >&6
23279 else
23280   case $DSYMUTIL in
23281   [\\/]* | ?:[\\/]*)
23282   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23283   ;;
23284   *)
23285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23287 do
23288   IFS=$as_save_IFS
23289   test -z "$as_dir" && as_dir=.
23290     for ac_exec_ext in '' $ac_executable_extensions; do
23291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23292     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23294     break 2
23295   fi
23296 done
23297   done
23298 IFS=$as_save_IFS
23299 
23300   ;;
23301 esac
23302 fi
23303 DSYMUTIL=$ac_cv_path_DSYMUTIL
23304 if test -n "$DSYMUTIL"; then
23305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23306 $as_echo "$DSYMUTIL" >&6; }
23307 else
23308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23309 $as_echo "no" >&6; }
23310 fi
23311 
23312 
23313   test -n "$DSYMUTIL" && break
23314 done
23315 
23316     else
23317       # If it succeeded, then it was overridden by the user. We will use it
23318       # for the tool.
23319 
23320       # First remove it from the list of overridden variables, so we can test
23321       # for unknown variables in the end.
23322       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23323 
23324       # Check if we try to supply an empty value
23325       if test "x$DSYMUTIL" = x; then
23326         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23327 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23328         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23329 $as_echo_n "checking for DSYMUTIL... " >&6; }
23330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23331 $as_echo "disabled" >&6; }
23332       else
23333         # Check if the provided tool contains a complete path.
23334         tool_specified="$DSYMUTIL"
23335         tool_basename="${tool_specified##*/}"
23336         if test "x$tool_basename" = "x$tool_specified"; then
23337           # A command without a complete path is provided, search $PATH.
23338           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23339 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23340           # Extract the first word of "$tool_basename", so it can be a program name with args.
23341 set dummy $tool_basename; ac_word=$2
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23343 $as_echo_n "checking for $ac_word... " >&6; }
23344 if ${ac_cv_path_DSYMUTIL+:} false; then :
23345   $as_echo_n "(cached) " >&6
23346 else
23347   case $DSYMUTIL in
23348   [\\/]* | ?:[\\/]*)
23349   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23350   ;;
23351   *)
23352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23353 for as_dir in $PATH
23354 do
23355   IFS=$as_save_IFS
23356   test -z "$as_dir" && as_dir=.
23357     for ac_exec_ext in '' $ac_executable_extensions; do
23358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23359     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23361     break 2
23362   fi
23363 done
23364   done
23365 IFS=$as_save_IFS
23366 
23367   ;;
23368 esac
23369 fi
23370 DSYMUTIL=$ac_cv_path_DSYMUTIL
23371 if test -n "$DSYMUTIL"; then
23372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23373 $as_echo "$DSYMUTIL" >&6; }
23374 else
23375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377 fi
23378 
23379 
23380           if test "x$DSYMUTIL" = x; then
23381             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23382           fi
23383         else
23384           # Otherwise we believe it is a complete path. Use it as it is.
23385           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23386 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23387           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23388 $as_echo_n "checking for DSYMUTIL... " >&6; }
23389           if test ! -x "$tool_specified"; then
23390             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23391 $as_echo "not found" >&6; }
23392             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23393           fi
23394           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23395 $as_echo "$tool_specified" >&6; }
23396         fi
23397       fi
23398     fi
23399 
23400   fi
23401 
23402 
23403 
23404   if test "x$DSYMUTIL" = x; then
23405     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23406   fi
23407 
23408 
23409 
23410 
23411 
23412   # Publish this variable in the help.
23413 
23414 
23415   if [ -z "${XATTR+x}" ]; then
23416     # The variable is not set by user, try to locate tool using the code snippet
23417     for ac_prog in xattr
23418 do
23419   # Extract the first word of "$ac_prog", so it can be a program name with args.
23420 set dummy $ac_prog; ac_word=$2
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23422 $as_echo_n "checking for $ac_word... " >&6; }
23423 if ${ac_cv_path_XATTR+:} false; then :
23424   $as_echo_n "(cached) " >&6
23425 else
23426   case $XATTR in
23427   [\\/]* | ?:[\\/]*)
23428   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23429   ;;
23430   *)
23431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23432 for as_dir in $PATH
23433 do
23434   IFS=$as_save_IFS
23435   test -z "$as_dir" && as_dir=.
23436     for ac_exec_ext in '' $ac_executable_extensions; do
23437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23438     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23440     break 2
23441   fi
23442 done
23443   done
23444 IFS=$as_save_IFS
23445 
23446   ;;
23447 esac
23448 fi
23449 XATTR=$ac_cv_path_XATTR
23450 if test -n "$XATTR"; then
23451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23452 $as_echo "$XATTR" >&6; }
23453 else
23454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23455 $as_echo "no" >&6; }
23456 fi
23457 
23458 
23459   test -n "$XATTR" && break
23460 done
23461 
23462   else
23463     # The variable is set, but is it from the command line or the environment?
23464 
23465     # Try to remove the string !XATTR! from our list.
23466     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23467     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23468       # If it failed, the variable was not from the command line. Ignore it,
23469       # but warn the user (except for BASH, which is always set by the calling BASH).
23470       if test "xXATTR" != xBASH; then
23471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23472 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
23473       fi
23474       # Try to locate tool using the code snippet
23475       for ac_prog in xattr
23476 do
23477   # Extract the first word of "$ac_prog", so it can be a program name with args.
23478 set dummy $ac_prog; ac_word=$2
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23480 $as_echo_n "checking for $ac_word... " >&6; }
23481 if ${ac_cv_path_XATTR+:} false; then :
23482   $as_echo_n "(cached) " >&6
23483 else
23484   case $XATTR in
23485   [\\/]* | ?:[\\/]*)
23486   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23487   ;;
23488   *)
23489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23490 for as_dir in $PATH
23491 do
23492   IFS=$as_save_IFS
23493   test -z "$as_dir" && as_dir=.
23494     for ac_exec_ext in '' $ac_executable_extensions; do
23495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23496     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23498     break 2
23499   fi
23500 done
23501   done
23502 IFS=$as_save_IFS
23503 
23504   ;;
23505 esac
23506 fi
23507 XATTR=$ac_cv_path_XATTR
23508 if test -n "$XATTR"; then
23509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23510 $as_echo "$XATTR" >&6; }
23511 else
23512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23513 $as_echo "no" >&6; }
23514 fi
23515 
23516 
23517   test -n "$XATTR" && break
23518 done
23519 
23520     else
23521       # If it succeeded, then it was overridden by the user. We will use it
23522       # for the tool.
23523 
23524       # First remove it from the list of overridden variables, so we can test
23525       # for unknown variables in the end.
23526       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23527 
23528       # Check if we try to supply an empty value
23529       if test "x$XATTR" = x; then
23530         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23531 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23533 $as_echo_n "checking for XATTR... " >&6; }
23534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23535 $as_echo "disabled" >&6; }
23536       else
23537         # Check if the provided tool contains a complete path.
23538         tool_specified="$XATTR"
23539         tool_basename="${tool_specified##*/}"
23540         if test "x$tool_basename" = "x$tool_specified"; then
23541           # A command without a complete path is provided, search $PATH.
23542           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23543 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23544           # Extract the first word of "$tool_basename", so it can be a program name with args.
23545 set dummy $tool_basename; ac_word=$2
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23547 $as_echo_n "checking for $ac_word... " >&6; }
23548 if ${ac_cv_path_XATTR+:} false; then :
23549   $as_echo_n "(cached) " >&6
23550 else
23551   case $XATTR in
23552   [\\/]* | ?:[\\/]*)
23553   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23554   ;;
23555   *)
23556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23557 for as_dir in $PATH
23558 do
23559   IFS=$as_save_IFS
23560   test -z "$as_dir" && as_dir=.
23561     for ac_exec_ext in '' $ac_executable_extensions; do
23562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23563     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23565     break 2
23566   fi
23567 done
23568   done
23569 IFS=$as_save_IFS
23570 
23571   ;;
23572 esac
23573 fi
23574 XATTR=$ac_cv_path_XATTR
23575 if test -n "$XATTR"; then
23576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23577 $as_echo "$XATTR" >&6; }
23578 else
23579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23580 $as_echo "no" >&6; }
23581 fi
23582 
23583 
23584           if test "x$XATTR" = x; then
23585             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23586           fi
23587         else
23588           # Otherwise we believe it is a complete path. Use it as it is.
23589           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23590 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23591           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23592 $as_echo_n "checking for XATTR... " >&6; }
23593           if test ! -x "$tool_specified"; then
23594             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23595 $as_echo "not found" >&6; }
23596             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23597           fi
23598           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23599 $as_echo "$tool_specified" >&6; }
23600         fi
23601       fi
23602     fi
23603 
23604   fi
23605 
23606 
23607 
23608   if test "x$XATTR" = x; then
23609     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23610   fi
23611 
23612 
23613 
23614 
23615   # Publish this variable in the help.
23616 
23617 
23618   if [ -z "${CODESIGN+x}" ]; then
23619     # The variable is not set by user, try to locate tool using the code snippet
23620     for ac_prog in codesign
23621 do
23622   # Extract the first word of "$ac_prog", so it can be a program name with args.
23623 set dummy $ac_prog; ac_word=$2
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23625 $as_echo_n "checking for $ac_word... " >&6; }
23626 if ${ac_cv_path_CODESIGN+:} false; then :
23627   $as_echo_n "(cached) " >&6
23628 else
23629   case $CODESIGN in
23630   [\\/]* | ?:[\\/]*)
23631   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23632   ;;
23633   *)
23634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23635 for as_dir in $PATH
23636 do
23637   IFS=$as_save_IFS
23638   test -z "$as_dir" && as_dir=.
23639     for ac_exec_ext in '' $ac_executable_extensions; do
23640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23641     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23643     break 2
23644   fi
23645 done
23646   done
23647 IFS=$as_save_IFS
23648 
23649   ;;
23650 esac
23651 fi
23652 CODESIGN=$ac_cv_path_CODESIGN
23653 if test -n "$CODESIGN"; then
23654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23655 $as_echo "$CODESIGN" >&6; }
23656 else
23657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23658 $as_echo "no" >&6; }
23659 fi
23660 
23661 
23662   test -n "$CODESIGN" && break
23663 done
23664 
23665   else
23666     # The variable is set, but is it from the command line or the environment?
23667 
23668     # Try to remove the string !CODESIGN! from our list.
23669     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23670     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23671       # If it failed, the variable was not from the command line. Ignore it,
23672       # but warn the user (except for BASH, which is always set by the calling BASH).
23673       if test "xCODESIGN" != xBASH; then
23674         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23675 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23676       fi
23677       # Try to locate tool using the code snippet
23678       for ac_prog in codesign
23679 do
23680   # Extract the first word of "$ac_prog", so it can be a program name with args.
23681 set dummy $ac_prog; ac_word=$2
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23683 $as_echo_n "checking for $ac_word... " >&6; }
23684 if ${ac_cv_path_CODESIGN+:} false; then :
23685   $as_echo_n "(cached) " >&6
23686 else
23687   case $CODESIGN in
23688   [\\/]* | ?:[\\/]*)
23689   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23690   ;;
23691   *)
23692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23693 for as_dir in $PATH
23694 do
23695   IFS=$as_save_IFS
23696   test -z "$as_dir" && as_dir=.
23697     for ac_exec_ext in '' $ac_executable_extensions; do
23698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23699     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23701     break 2
23702   fi
23703 done
23704   done
23705 IFS=$as_save_IFS
23706 
23707   ;;
23708 esac
23709 fi
23710 CODESIGN=$ac_cv_path_CODESIGN
23711 if test -n "$CODESIGN"; then
23712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23713 $as_echo "$CODESIGN" >&6; }
23714 else
23715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23716 $as_echo "no" >&6; }
23717 fi
23718 
23719 
23720   test -n "$CODESIGN" && break
23721 done
23722 
23723     else
23724       # If it succeeded, then it was overridden by the user. We will use it
23725       # for the tool.
23726 
23727       # First remove it from the list of overridden variables, so we can test
23728       # for unknown variables in the end.
23729       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23730 
23731       # Check if we try to supply an empty value
23732       if test "x$CODESIGN" = x; then
23733         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23734 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23735         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23736 $as_echo_n "checking for CODESIGN... " >&6; }
23737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23738 $as_echo "disabled" >&6; }
23739       else
23740         # Check if the provided tool contains a complete path.
23741         tool_specified="$CODESIGN"
23742         tool_basename="${tool_specified##*/}"
23743         if test "x$tool_basename" = "x$tool_specified"; then
23744           # A command without a complete path is provided, search $PATH.
23745           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23746 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23747           # Extract the first word of "$tool_basename", so it can be a program name with args.
23748 set dummy $tool_basename; ac_word=$2
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23750 $as_echo_n "checking for $ac_word... " >&6; }
23751 if ${ac_cv_path_CODESIGN+:} false; then :
23752   $as_echo_n "(cached) " >&6
23753 else
23754   case $CODESIGN in
23755   [\\/]* | ?:[\\/]*)
23756   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23757   ;;
23758   *)
23759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23760 for as_dir in $PATH
23761 do
23762   IFS=$as_save_IFS
23763   test -z "$as_dir" && as_dir=.
23764     for ac_exec_ext in '' $ac_executable_extensions; do
23765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23766     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23768     break 2
23769   fi
23770 done
23771   done
23772 IFS=$as_save_IFS
23773 
23774   ;;
23775 esac
23776 fi
23777 CODESIGN=$ac_cv_path_CODESIGN
23778 if test -n "$CODESIGN"; then
23779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23780 $as_echo "$CODESIGN" >&6; }
23781 else
23782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23783 $as_echo "no" >&6; }
23784 fi
23785 
23786 
23787           if test "x$CODESIGN" = x; then
23788             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23789           fi
23790         else
23791           # Otherwise we believe it is a complete path. Use it as it is.
23792           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23793 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23794           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23795 $as_echo_n "checking for CODESIGN... " >&6; }
23796           if test ! -x "$tool_specified"; then
23797             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23798 $as_echo "not found" >&6; }
23799             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23800           fi
23801           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23802 $as_echo "$tool_specified" >&6; }
23803         fi
23804       fi
23805     fi
23806 
23807   fi
23808 
23809 
23810     if test "x$CODESIGN" != "x"; then
23811       # Verify that the openjdk_codesign certificate is present
23812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23813 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23814       $RM codesign-testfile
23815       $TOUCH codesign-testfile
23816       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23817       $RM codesign-testfile
23818       if test "x$CODESIGN" = x; then
23819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820 $as_echo "no" >&6; }
23821       else
23822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23823 $as_echo "yes" >&6; }
23824       fi
23825     fi
23826 
23827 
23828 
23829   # Publish this variable in the help.
23830 
23831 
23832   if [ -z "${SETFILE+x}" ]; then
23833     # The variable is not set by user, try to locate tool using the code snippet
23834     for ac_prog in SetFile
23835 do
23836   # Extract the first word of "$ac_prog", so it can be a program name with args.
23837 set dummy $ac_prog; ac_word=$2
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23839 $as_echo_n "checking for $ac_word... " >&6; }
23840 if ${ac_cv_path_SETFILE+:} false; then :
23841   $as_echo_n "(cached) " >&6
23842 else
23843   case $SETFILE in
23844   [\\/]* | ?:[\\/]*)
23845   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23846   ;;
23847   *)
23848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23849 for as_dir in $PATH
23850 do
23851   IFS=$as_save_IFS
23852   test -z "$as_dir" && as_dir=.
23853     for ac_exec_ext in '' $ac_executable_extensions; do
23854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23855     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23857     break 2
23858   fi
23859 done
23860   done
23861 IFS=$as_save_IFS
23862 
23863   ;;
23864 esac
23865 fi
23866 SETFILE=$ac_cv_path_SETFILE
23867 if test -n "$SETFILE"; then
23868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23869 $as_echo "$SETFILE" >&6; }
23870 else
23871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23872 $as_echo "no" >&6; }
23873 fi
23874 
23875 
23876   test -n "$SETFILE" && break
23877 done
23878 
23879   else
23880     # The variable is set, but is it from the command line or the environment?
23881 
23882     # Try to remove the string !SETFILE! from our list.
23883     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23884     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23885       # If it failed, the variable was not from the command line. Ignore it,
23886       # but warn the user (except for BASH, which is always set by the calling BASH).
23887       if test "xSETFILE" != xBASH; then
23888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23889 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23890       fi
23891       # Try to locate tool using the code snippet
23892       for ac_prog in SetFile
23893 do
23894   # Extract the first word of "$ac_prog", so it can be a program name with args.
23895 set dummy $ac_prog; ac_word=$2
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23897 $as_echo_n "checking for $ac_word... " >&6; }
23898 if ${ac_cv_path_SETFILE+:} false; then :
23899   $as_echo_n "(cached) " >&6
23900 else
23901   case $SETFILE in
23902   [\\/]* | ?:[\\/]*)
23903   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23904   ;;
23905   *)
23906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907 for as_dir in $PATH
23908 do
23909   IFS=$as_save_IFS
23910   test -z "$as_dir" && as_dir=.
23911     for ac_exec_ext in '' $ac_executable_extensions; do
23912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23913     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23915     break 2
23916   fi
23917 done
23918   done
23919 IFS=$as_save_IFS
23920 
23921   ;;
23922 esac
23923 fi
23924 SETFILE=$ac_cv_path_SETFILE
23925 if test -n "$SETFILE"; then
23926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23927 $as_echo "$SETFILE" >&6; }
23928 else
23929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23931 fi
23932 
23933 
23934   test -n "$SETFILE" && break
23935 done
23936 
23937     else
23938       # If it succeeded, then it was overridden by the user. We will use it
23939       # for the tool.
23940 
23941       # First remove it from the list of overridden variables, so we can test
23942       # for unknown variables in the end.
23943       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23944 
23945       # Check if we try to supply an empty value
23946       if test "x$SETFILE" = x; then
23947         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23948 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23950 $as_echo_n "checking for SETFILE... " >&6; }
23951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23952 $as_echo "disabled" >&6; }
23953       else
23954         # Check if the provided tool contains a complete path.
23955         tool_specified="$SETFILE"
23956         tool_basename="${tool_specified##*/}"
23957         if test "x$tool_basename" = "x$tool_specified"; then
23958           # A command without a complete path is provided, search $PATH.
23959           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23960 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23961           # Extract the first word of "$tool_basename", so it can be a program name with args.
23962 set dummy $tool_basename; ac_word=$2
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23964 $as_echo_n "checking for $ac_word... " >&6; }
23965 if ${ac_cv_path_SETFILE+:} false; then :
23966   $as_echo_n "(cached) " >&6
23967 else
23968   case $SETFILE in
23969   [\\/]* | ?:[\\/]*)
23970   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23971   ;;
23972   *)
23973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23974 for as_dir in $PATH
23975 do
23976   IFS=$as_save_IFS
23977   test -z "$as_dir" && as_dir=.
23978     for ac_exec_ext in '' $ac_executable_extensions; do
23979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23980     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23982     break 2
23983   fi
23984 done
23985   done
23986 IFS=$as_save_IFS
23987 
23988   ;;
23989 esac
23990 fi
23991 SETFILE=$ac_cv_path_SETFILE
23992 if test -n "$SETFILE"; then
23993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23994 $as_echo "$SETFILE" >&6; }
23995 else
23996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23997 $as_echo "no" >&6; }
23998 fi
23999 
24000 
24001           if test "x$SETFILE" = x; then
24002             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24003           fi
24004         else
24005           # Otherwise we believe it is a complete path. Use it as it is.
24006           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24007 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24008           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24009 $as_echo_n "checking for SETFILE... " >&6; }
24010           if test ! -x "$tool_specified"; then
24011             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24012 $as_echo "not found" >&6; }
24013             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24014           fi
24015           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24016 $as_echo "$tool_specified" >&6; }
24017         fi
24018       fi
24019     fi
24020 
24021   fi
24022 
24023 
24024 
24025   if test "x$SETFILE" = x; then
24026     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24027   fi
24028 
24029 
24030   fi
24031 
24032 
24033   # Test if bash supports pipefail.
24034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24035 $as_echo_n "checking if bash supports pipefail... " >&6; }
24036   if ${BASH} -c 'set -o pipefail'; then
24037     BASH_ARGS="$BASH_ARGS -o pipefail"
24038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24039 $as_echo "yes" >&6; }
24040   else
24041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24042 $as_echo "no" >&6; }
24043   fi
24044 
24045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24046 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24047   if ${BASH} -e -c 'true'; then
24048     BASH_ARGS="$BASH_ARGS -e"
24049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24050 $as_echo "yes" >&6; }
24051   else
24052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24053 $as_echo "no" >&6; }
24054   fi
24055 
24056 
24057 
24058 
24059 # Check if pkg-config is available.
24060 
24061 
24062 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24063         if test -n "$ac_tool_prefix"; then
24064   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24065 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24067 $as_echo_n "checking for $ac_word... " >&6; }
24068 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24069   $as_echo_n "(cached) " >&6
24070 else
24071   case $PKG_CONFIG in
24072   [\\/]* | ?:[\\/]*)
24073   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24074   ;;
24075   *)
24076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24077 for as_dir in $PATH
24078 do
24079   IFS=$as_save_IFS
24080   test -z "$as_dir" && as_dir=.
24081     for ac_exec_ext in '' $ac_executable_extensions; do
24082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24083     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24085     break 2
24086   fi
24087 done
24088   done
24089 IFS=$as_save_IFS
24090 
24091   ;;
24092 esac
24093 fi
24094 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24095 if test -n "$PKG_CONFIG"; then
24096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24097 $as_echo "$PKG_CONFIG" >&6; }
24098 else
24099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24100 $as_echo "no" >&6; }
24101 fi
24102 
24103 
24104 fi
24105 if test -z "$ac_cv_path_PKG_CONFIG"; then
24106   ac_pt_PKG_CONFIG=$PKG_CONFIG
24107   # Extract the first word of "pkg-config", so it can be a program name with args.
24108 set dummy pkg-config; ac_word=$2
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24110 $as_echo_n "checking for $ac_word... " >&6; }
24111 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24112   $as_echo_n "(cached) " >&6
24113 else
24114   case $ac_pt_PKG_CONFIG in
24115   [\\/]* | ?:[\\/]*)
24116   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24117   ;;
24118   *)
24119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24120 for as_dir in $PATH
24121 do
24122   IFS=$as_save_IFS
24123   test -z "$as_dir" && as_dir=.
24124     for ac_exec_ext in '' $ac_executable_extensions; do
24125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24126     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24128     break 2
24129   fi
24130 done
24131   done
24132 IFS=$as_save_IFS
24133 
24134   ;;
24135 esac
24136 fi
24137 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24138 if test -n "$ac_pt_PKG_CONFIG"; then
24139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24140 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24141 else
24142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24143 $as_echo "no" >&6; }
24144 fi
24145 
24146   if test "x$ac_pt_PKG_CONFIG" = x; then
24147     PKG_CONFIG=""
24148   else
24149     case $cross_compiling:$ac_tool_warned in
24150 yes:)
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24153 ac_tool_warned=yes ;;
24154 esac
24155     PKG_CONFIG=$ac_pt_PKG_CONFIG
24156   fi
24157 else
24158   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24159 fi
24160 
24161 fi
24162 if test -n "$PKG_CONFIG"; then
24163         _pkg_min_version=0.9.0
24164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24165 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24166         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24167                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24168 $as_echo "yes" >&6; }
24169         else
24170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24171 $as_echo "no" >&6; }
24172                 PKG_CONFIG=""
24173         fi
24174 
24175 fi
24176 
24177 # After basic tools have been setup, we can check build os specific details.
24178 
24179   ###############################################################################
24180 
24181   # Note that this is the build platform OS version!
24182 
24183   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24184   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24185   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24186   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24187 
24188 
24189 
24190 
24191 
24192 # Misc basic settings
24193 
24194 
24195 # Check whether --with-default-make-target was given.
24196 if test "${with_default_make_target+set}" = set; then :
24197   withval=$with_default_make_target;
24198 fi
24199 
24200   if test "x$with_default_make_target" = "x" \
24201       || test "x$with_default_make_target" = "xyes"; then
24202     DEFAULT_MAKE_TARGET="exploded-image"
24203   elif test "x$with_default_make_target" = "xno"; then
24204     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24205   else
24206     DEFAULT_MAKE_TARGET="$with_default_make_target"
24207   fi
24208 
24209 
24210 
24211 
24212 ###############################################################################
24213 #
24214 # Determine OpenJDK variants, options and version numbers.
24215 #
24216 ###############################################################################
24217 
24218 # We need build & target for this.
24219 
24220   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
24221   # We always build headless support.
24222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
24223 $as_echo_n "checking headful support... " >&6; }
24224   # Check whether --enable-headful was given.
24225 if test "${enable_headful+set}" = set; then :
24226   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
24227 else
24228   SUPPORT_HEADFUL=yes
24229 fi
24230 
24231 
24232   SUPPORT_HEADLESS=yes
24233   BUILD_HEADLESS="BUILD_HEADLESS:=true"
24234 
24235   if test "x$SUPPORT_HEADFUL" = xyes; then
24236     # We are building both headful and headless.
24237     headful_msg="include support for both headful and headless"
24238   fi
24239 
24240   if test "x$SUPPORT_HEADFUL" = xno; then
24241     # Thus we are building headless only.
24242     BUILD_HEADLESS="BUILD_HEADLESS:=true"
24243     headful_msg="headless only"
24244   fi
24245 
24246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
24247 $as_echo "$headful_msg" >&6; }
24248 
24249 
24250 
24251 
24252 
24253   # Choose cacerts source file
24254 
24255 # Check whether --with-cacerts-file was given.
24256 if test "${with_cacerts_file+set}" = set; then :
24257   withval=$with_cacerts_file;
24258 fi
24259 
24260   if test "x$with_cacerts_file" != x; then
24261     CACERTS_FILE=$with_cacerts_file
24262   fi
24263 
24264 
24265   # Enable or disable unlimited crypto
24266   # Check whether --enable-unlimited-crypto was given.
24267 if test "${enable_unlimited_crypto+set}" = set; then :
24268   enableval=$enable_unlimited_crypto;
24269 else
24270   enable_unlimited_crypto=no
24271 fi
24272 
24273   if test "x$enable_unlimited_crypto" = "xyes"; then
24274     UNLIMITED_CRYPTO=true
24275   else
24276     UNLIMITED_CRYPTO=false
24277   fi
24278 
24279 
24280   # Should we build the serviceability agent (SA)?
24281   INCLUDE_SA=true
24282   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
24283     INCLUDE_SA=false
24284   fi
24285   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24286     INCLUDE_SA=false
24287   fi
24288 
24289 
24290   # Compress jars
24291   COMPRESS_JARS=false
24292 
24293 
24294 
24295   # Setup default copyright year. Mostly overridden when building close to a new year.
24296 
24297 # Check whether --with-copyright-year was given.
24298 if test "${with_copyright_year+set}" = set; then :
24299   withval=$with_copyright_year;
24300 fi
24301 
24302   if test "x$with_copyright_year" = xyes; then
24303     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24304   elif test "x$with_copyright_year" != x; then
24305     COPYRIGHT_YEAR="$with_copyright_year"
24306   else
24307     COPYRIGHT_YEAR=`$DATE +'%Y'`
24308   fi
24309 
24310 
24311 
24312   # Check whether --enable-keep-packaged-modules was given.
24313 if test "${enable_keep_packaged_modules+set}" = set; then :
24314   enableval=$enable_keep_packaged_modules;
24315 fi
24316 
24317 
24318   if test "x$enable_keep_packaged_modules" = "xyes"; then
24319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24320 $as_echo_n "checking if packaged modules are kept... " >&6; }
24321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24322 $as_echo "yes" >&6; }
24323     JLINK_KEEP_PACKAGED_MODULES=true
24324   elif test "x$enable_keep_packaged_modules" = "xno"; then
24325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24326 $as_echo_n "checking if packaged modules are kept... " >&6; }
24327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24328 $as_echo "no" >&6; }
24329     JLINK_KEEP_PACKAGED_MODULES=false
24330   elif test "x$enable_keep_packaged_modules" = "x"; then
24331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24332 $as_echo "yes (default)" >&6; }
24333     JLINK_KEEP_PACKAGED_MODULES=true
24334   else
24335     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24336   fi
24337 
24338 
24339 
24340 
24341   # Warn user that old version arguments are deprecated.
24342 
24343 
24344 # Check whether --with-milestone was given.
24345 if test "${with_milestone+set}" = set; then :
24346   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24347 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24348 fi
24349 
24350 
24351 
24352 
24353 # Check whether --with-update-version was given.
24354 if test "${with_update_version+set}" = set; then :
24355   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24356 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24357 fi
24358 
24359 
24360 
24361 
24362 # Check whether --with-user-release-suffix was given.
24363 if test "${with_user_release_suffix+set}" = set; then :
24364   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
24365 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
24366 fi
24367 
24368 
24369 
24370 
24371 # Check whether --with-build-number was given.
24372 if test "${with_build_number+set}" = set; then :
24373   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
24374 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
24375 fi
24376 
24377 
24378 
24379   # Source the version numbers file
24380   . $AUTOCONF_DIR/version-numbers
24381 
24382   # Some non-version number information is set in that file
24383 
24384 
24385 
24386 
24387 
24388 
24389 
24390 
24391 
24392   # Override version from arguments
24393 
24394   # If --with-version-string is set, process it first. It is possible to
24395   # override parts with more specific flags, since these are processed later.
24396 
24397 # Check whether --with-version-string was given.
24398 if test "${with_version_string+set}" = set; then :
24399   withval=$with_version_string;
24400 fi
24401 
24402   if test "x$with_version_string" = xyes; then
24403     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
24404   elif test "x$with_version_string" != x; then
24405     # Additional [] needed to keep m4 from mangling shell constructs.
24406     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
24407       VERSION_MAJOR=${BASH_REMATCH[1]}
24408       VERSION_MINOR=${BASH_REMATCH[3]}
24409       VERSION_SECURITY=${BASH_REMATCH[5]}
24410       VERSION_PATCH=${BASH_REMATCH[7]}
24411       VERSION_PRE=${BASH_REMATCH[9]}
24412       version_plus_separator=${BASH_REMATCH[11]}
24413       VERSION_BUILD=${BASH_REMATCH[12]}
24414       VERSION_OPT=${BASH_REMATCH[14]}
24415       # Unspecified numerical fields are interpreted as 0.
24416       if test "x$VERSION_MINOR" = x; then
24417         VERSION_MINOR=0
24418       fi
24419       if test "x$VERSION_SECURITY" = x; then
24420         VERSION_SECURITY=0
24421       fi
24422       if test "x$VERSION_PATCH" = x; then
24423         VERSION_PATCH=0
24424       fi
24425       if test "x$version_plus_separator" != x \
24426           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
24427         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
24428       fi
24429       # Stop the version part process from setting default values.
24430       # We still allow them to explicitely override though.
24431       NO_DEFAULT_VERSION_PARTS=true
24432     else
24433       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
24434     fi
24435   fi
24436 
24437 
24438 # Check whether --with-version-pre was given.
24439 if test "${with_version_pre+set}" = set; then :
24440   withval=$with_version_pre; with_version_pre_present=true
24441 else
24442   with_version_pre_present=false
24443 fi
24444 
24445 
24446   if test "x$with_version_pre_present" = xtrue; then
24447     if test "x$with_version_pre" = xyes; then
24448       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
24449     elif test "x$with_version_pre" = xno; then
24450       # Interpret --without-* as empty string instead of the literal "no"
24451       VERSION_PRE=
24452     else
24453       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
24454        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
24455       if test "x$VERSION_PRE" != "x$with_version_pre"; then
24456         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
24457 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
24458       fi
24459     fi
24460   else
24461     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24462       # Default is to use "internal" as pre
24463       VERSION_PRE="internal"
24464     fi
24465   fi
24466 
24467 
24468 # Check whether --with-version-opt was given.
24469 if test "${with_version_opt+set}" = set; then :
24470   withval=$with_version_opt; with_version_opt_present=true
24471 else
24472   with_version_opt_present=false
24473 fi
24474 
24475 
24476   if test "x$with_version_opt_present" = xtrue; then
24477     if test "x$with_version_opt" = xyes; then
24478       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
24479     elif test "x$with_version_opt" = xno; then
24480       # Interpret --without-* as empty string instead of the literal "no"
24481       VERSION_OPT=
24482     else
24483       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
24484        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
24485       if test "x$VERSION_OPT" != "x$with_version_opt"; then
24486         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24487 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24488       fi
24489     fi
24490   else
24491     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24492       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
24493       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
24494       # Outer [ ] to quote m4.
24495        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24496       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
24497     fi
24498   fi
24499 
24500 
24501 # Check whether --with-version-build was given.
24502 if test "${with_version_build+set}" = set; then :
24503   withval=$with_version_build; with_version_build_present=true
24504 else
24505   with_version_build_present=false
24506 fi
24507 
24508 
24509   if test "x$with_version_build_present" = xtrue; then
24510     if test "x$with_version_build" = xyes; then
24511       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24512     elif test "x$with_version_build" = xno; then
24513       # Interpret --without-* as empty string instead of the literal "no"
24514       VERSION_BUILD=
24515     elif test "x$with_version_build" = x; then
24516       VERSION_BUILD=
24517     else
24518 
24519   # Additional [] needed to keep m4 from mangling shell constructs.
24520   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24521     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24522   fi
24523   # Extract the version number without leading zeros.
24524   cleaned_value=${BASH_REMATCH[1]}
24525   if test "x$cleaned_value" = x; then
24526     # Special case for zero
24527     cleaned_value=${BASH_REMATCH[2]}
24528   fi
24529 
24530   if test $cleaned_value -gt 255; then
24531     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24532   fi
24533   if test "x$cleaned_value" != "x$with_version_build"; then
24534     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24535 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24536   fi
24537   VERSION_BUILD=$cleaned_value
24538 
24539     fi
24540   else
24541     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24542       # Default is to not have a build number.
24543       VERSION_BUILD=""
24544       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24545       VERSION_BUILD=0
24546     fi
24547   fi
24548 
24549 
24550 # Check whether --with-version-major was given.
24551 if test "${with_version_major+set}" = set; then :
24552   withval=$with_version_major; with_version_major_present=true
24553 else
24554   with_version_major_present=false
24555 fi
24556 
24557 
24558   if test "x$with_version_major_present" = xtrue; then
24559     if test "x$with_version_major" = xyes; then
24560       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24561     else
24562 
24563   # Additional [] needed to keep m4 from mangling shell constructs.
24564   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24565     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24566   fi
24567   # Extract the version number without leading zeros.
24568   cleaned_value=${BASH_REMATCH[1]}
24569   if test "x$cleaned_value" = x; then
24570     # Special case for zero
24571     cleaned_value=${BASH_REMATCH[2]}
24572   fi
24573 
24574   if test $cleaned_value -gt 255; then
24575     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24576   fi
24577   if test "x$cleaned_value" != "x$with_version_major"; then
24578     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24579 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24580   fi
24581   VERSION_MAJOR=$cleaned_value
24582 
24583     fi
24584   else
24585     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24586       # Default is to get value from version-numbers
24587       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24588     fi
24589   fi
24590 
24591 
24592 # Check whether --with-version-minor was given.
24593 if test "${with_version_minor+set}" = set; then :
24594   withval=$with_version_minor; with_version_minor_present=true
24595 else
24596   with_version_minor_present=false
24597 fi
24598 
24599 
24600   if test "x$with_version_minor_present" = xtrue; then
24601     if test "x$with_version_minor" = xyes; then
24602       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24603     elif test "x$with_version_minor" = xno; then
24604       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24605       VERSION_MINOR=0
24606     elif test "x$with_version_minor" = x; then
24607       VERSION_MINOR=0
24608     else
24609 
24610   # Additional [] needed to keep m4 from mangling shell constructs.
24611   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24612     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24613   fi
24614   # Extract the version number without leading zeros.
24615   cleaned_value=${BASH_REMATCH[1]}
24616   if test "x$cleaned_value" = x; then
24617     # Special case for zero
24618     cleaned_value=${BASH_REMATCH[2]}
24619   fi
24620 
24621   if test $cleaned_value -gt 255; then
24622     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24623   fi
24624   if test "x$cleaned_value" != "x$with_version_minor"; then
24625     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24626 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24627   fi
24628   VERSION_MINOR=$cleaned_value
24629 
24630     fi
24631   else
24632     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24633       # Default is 0, if unspecified
24634       VERSION_MINOR=0
24635     fi
24636   fi
24637 
24638 
24639 # Check whether --with-version-security was given.
24640 if test "${with_version_security+set}" = set; then :
24641   withval=$with_version_security; with_version_security_present=true
24642 else
24643   with_version_security_present=false
24644 fi
24645 
24646 
24647   if test "x$with_version_security_present" = xtrue; then
24648     if test "x$with_version_security" = xyes; then
24649       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24650     elif test "x$with_version_security" = xno; then
24651       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24652       VERSION_SECURITY=0
24653     elif test "x$with_version_security" = x; then
24654       VERSION_SECURITY=0
24655     else
24656 
24657   # Additional [] needed to keep m4 from mangling shell constructs.
24658   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24659     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24660   fi
24661   # Extract the version number without leading zeros.
24662   cleaned_value=${BASH_REMATCH[1]}
24663   if test "x$cleaned_value" = x; then
24664     # Special case for zero
24665     cleaned_value=${BASH_REMATCH[2]}
24666   fi
24667 
24668   if test $cleaned_value -gt 255; then
24669     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24670   fi
24671   if test "x$cleaned_value" != "x$with_version_security"; then
24672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24673 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24674   fi
24675   VERSION_SECURITY=$cleaned_value
24676 
24677     fi
24678   else
24679     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24680       # Default is 0, if unspecified
24681       VERSION_SECURITY=0
24682     fi
24683   fi
24684 
24685 
24686 # Check whether --with-version-patch was given.
24687 if test "${with_version_patch+set}" = set; then :
24688   withval=$with_version_patch; with_version_patch_present=true
24689 else
24690   with_version_patch_present=false
24691 fi
24692 
24693 
24694   if test "x$with_version_patch_present" = xtrue; then
24695     if test "x$with_version_patch" = xyes; then
24696       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24697     elif test "x$with_version_patch" = xno; then
24698       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24699       VERSION_PATCH=0
24700     elif test "x$with_version_patch" = x; then
24701       VERSION_PATCH=0
24702     else
24703 
24704   # Additional [] needed to keep m4 from mangling shell constructs.
24705   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24706     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24707   fi
24708   # Extract the version number without leading zeros.
24709   cleaned_value=${BASH_REMATCH[1]}
24710   if test "x$cleaned_value" = x; then
24711     # Special case for zero
24712     cleaned_value=${BASH_REMATCH[2]}
24713   fi
24714 
24715   if test $cleaned_value -gt 255; then
24716     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24717   fi
24718   if test "x$cleaned_value" != "x$with_version_patch"; then
24719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24720 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24721   fi
24722   VERSION_PATCH=$cleaned_value
24723 
24724     fi
24725   else
24726     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24727       # Default is 0, if unspecified
24728       VERSION_PATCH=0
24729     fi
24730   fi
24731 
24732   # Calculate derived version properties
24733 
24734   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24735   if test "x$VERSION_PRE" = x; then
24736     VERSION_IS_GA=true
24737   else
24738     VERSION_IS_GA=false
24739   fi
24740 
24741   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24742   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24743 
24744   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24745   # Strip trailing zeroes from stripped_version_number
24746   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24747   VERSION_NUMBER=$stripped_version_number
24748 
24749   # The complete version string, with additional build information
24750   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24751     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24752   else
24753     # If either build or opt is set, we need a + separator
24754     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24755   fi
24756 
24757   # The short version string, just VERSION_NUMBER and PRE, if present.
24758   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24759 
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24761 $as_echo_n "checking for version string... " >&6; }
24762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24763 $as_echo "$VERSION_STRING" >&6; }
24764 
24765 
24766 
24767 
24768 
24769 
24770 
24771 
24772 
24773 
24774 
24775 
24776 
24777 
24778 
24779 ###############################################################################
24780 #
24781 # Setup BootJDK, used to bootstrap the build.
24782 #
24783 ###############################################################################
24784 
24785 
24786   BOOT_JDK_FOUND=no
24787 
24788 # Check whether --with-boot-jdk was given.
24789 if test "${with_boot_jdk+set}" = set; then :
24790   withval=$with_boot_jdk;
24791 fi
24792 
24793 
24794   # We look for the Boot JDK through various means, going from more certain to
24795   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24796   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24797   # must check if this is indeed valid; otherwise we'll continue looking.
24798 
24799   # Test: Is bootjdk explicitely set by command line arguments?
24800 
24801   if test "x$BOOT_JDK_FOUND" = xno; then
24802     # Now execute the test
24803 
24804   if test "x$with_boot_jdk" != x; then
24805     BOOT_JDK=$with_boot_jdk
24806     BOOT_JDK_FOUND=maybe
24807     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24808 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24809   fi
24810 
24811 
24812     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24813     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24814       # Do we have a bin/java?
24815       if test ! -x "$BOOT_JDK/bin/java"; then
24816         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24818         BOOT_JDK_FOUND=no
24819       else
24820         # Do we have a bin/javac?
24821         if test ! -x "$BOOT_JDK/bin/javac"; then
24822           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24824           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24825 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24826           BOOT_JDK_FOUND=no
24827         else
24828           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24829           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
24830 
24831           # Extra M4 quote needed to protect [] in grep expression.
24832           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24833           if test "x$FOUND_CORRECT_VERSION" = x; then
24834             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24836             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24837 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24838             BOOT_JDK_FOUND=no
24839           else
24840             # We're done! :-)
24841             BOOT_JDK_FOUND=yes
24842 
24843   # Only process if variable expands to non-empty
24844 
24845   if test "x$BOOT_JDK" != x; then
24846     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24847 
24848   # Input might be given as Windows format, start by converting to
24849   # unix format.
24850   path="$BOOT_JDK"
24851   new_path=`$CYGPATH -u "$path"`
24852 
24853   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24854   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24855   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24856   # "foo.exe" is OK but "foo" is an error.
24857   #
24858   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24859   # It is also a way to make sure we got the proper file name for the real test later on.
24860   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24861   if test "x$test_shortpath" = x; then
24862     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24863 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24864     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24865   fi
24866 
24867   # Call helper function which possibly converts this using DOS-style short mode.
24868   # If so, the updated path is stored in $new_path.
24869 
24870   input_path="$new_path"
24871   # Check if we need to convert this using DOS-style short mode. If the path
24872   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24873   # take no chances and rewrite it.
24874   # Note: m4 eats our [], so we need to use [ and ] instead.
24875   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24876   if test "x$has_forbidden_chars" != x; then
24877     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24878     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24879     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24880     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24881       # Going to short mode and back again did indeed matter. Since short mode is
24882       # case insensitive, let's make it lowercase to improve readability.
24883       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24884       # Now convert it back to Unix-style (cygpath)
24885       input_path=`$CYGPATH -u "$shortmode_path"`
24886       new_path="$input_path"
24887     fi
24888   fi
24889 
24890   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24891   if test "x$test_cygdrive_prefix" = x; then
24892     # As a simple fix, exclude /usr/bin since it's not a real path.
24893     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24894       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24895       # a path prefixed by /cygdrive for fixpath to work.
24896       new_path="$CYGWIN_ROOT_PATH$input_path"
24897     fi
24898   fi
24899 
24900 
24901   if test "x$path" != "x$new_path"; then
24902     BOOT_JDK="$new_path"
24903     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24904 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24905   fi
24906 
24907     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24908 
24909   path="$BOOT_JDK"
24910   has_colon=`$ECHO $path | $GREP ^.:`
24911   new_path="$path"
24912   if test "x$has_colon" = x; then
24913     # Not in mixed or Windows style, start by that.
24914     new_path=`cmd //c echo $path`
24915   fi
24916 
24917 
24918   input_path="$new_path"
24919   # Check if we need to convert this using DOS-style short mode. If the path
24920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24921   # take no chances and rewrite it.
24922   # Note: m4 eats our [], so we need to use [ and ] instead.
24923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24924   if test "x$has_forbidden_chars" != x; then
24925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24926     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24927   fi
24928 
24929 
24930   windows_path="$new_path"
24931   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24932     unix_path=`$CYGPATH -u "$windows_path"`
24933     new_path="$unix_path"
24934   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24935     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24936     new_path="$unix_path"
24937   fi
24938 
24939   if test "x$path" != "x$new_path"; then
24940     BOOT_JDK="$new_path"
24941     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24942 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24943   fi
24944 
24945   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24946   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24947 
24948     else
24949       # We're on a unix platform. Hooray! :)
24950       path="$BOOT_JDK"
24951       has_space=`$ECHO "$path" | $GREP " "`
24952       if test "x$has_space" != x; then
24953         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24954 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24955         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24956       fi
24957 
24958       # Use eval to expand a potential ~
24959       eval path="$path"
24960       if test ! -f "$path" && test ! -d "$path"; then
24961         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24962       fi
24963 
24964       if test -d "$path"; then
24965         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24966       else
24967         dir="`$DIRNAME "$path"`"
24968         base="`$BASENAME "$path"`"
24969         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24970       fi
24971     fi
24972   fi
24973 
24974             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24975 $as_echo_n "checking for Boot JDK... " >&6; }
24976             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24977 $as_echo "$BOOT_JDK" >&6; }
24978             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24979 $as_echo_n "checking Boot JDK version... " >&6; }
24980             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24981             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24982 $as_echo "$BOOT_JDK_VERSION" >&6; }
24983           fi # end check jdk version
24984         fi # end check javac
24985       fi # end check java
24986     fi # end check boot jdk found
24987   fi
24988 
24989   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
24990     # Having specified an argument which is incorrect will produce an instant failure;
24991     # we should not go on looking
24992     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
24993   fi
24994 
24995   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
24996 
24997   if test "x$BOOT_JDK_FOUND" = xno; then
24998     # Now execute the test
24999 
25000   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
25001     # First check at user selected default
25002 
25003   if test "x$BOOT_JDK_FOUND" = xno; then
25004     # Now execute the test
25005 
25006   if test -x /usr/libexec/java_home; then
25007     BOOT_JDK=`/usr/libexec/java_home `
25008     BOOT_JDK_FOUND=maybe
25009     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
25010 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
25011   fi
25012 
25013 
25014     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25015     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25016       # Do we have a bin/java?
25017       if test ! -x "$BOOT_JDK/bin/java"; then
25018         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25020         BOOT_JDK_FOUND=no
25021       else
25022         # Do we have a bin/javac?
25023         if test ! -x "$BOOT_JDK/bin/javac"; then
25024           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25026           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25027 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25028           BOOT_JDK_FOUND=no
25029         else
25030           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25031           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25032 
25033           # Extra M4 quote needed to protect [] in grep expression.
25034           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25035           if test "x$FOUND_CORRECT_VERSION" = x; then
25036             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25038             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25039 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25040             BOOT_JDK_FOUND=no
25041           else
25042             # We're done! :-)
25043             BOOT_JDK_FOUND=yes
25044 
25045   # Only process if variable expands to non-empty
25046 
25047   if test "x$BOOT_JDK" != x; then
25048     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25049 
25050   # Input might be given as Windows format, start by converting to
25051   # unix format.
25052   path="$BOOT_JDK"
25053   new_path=`$CYGPATH -u "$path"`
25054 
25055   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25056   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25057   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25058   # "foo.exe" is OK but "foo" is an error.
25059   #
25060   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25061   # It is also a way to make sure we got the proper file name for the real test later on.
25062   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25063   if test "x$test_shortpath" = x; then
25064     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25065 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25066     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25067   fi
25068 
25069   # Call helper function which possibly converts this using DOS-style short mode.
25070   # If so, the updated path is stored in $new_path.
25071 
25072   input_path="$new_path"
25073   # Check if we need to convert this using DOS-style short mode. If the path
25074   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25075   # take no chances and rewrite it.
25076   # Note: m4 eats our [], so we need to use [ and ] instead.
25077   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25078   if test "x$has_forbidden_chars" != x; then
25079     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25080     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25081     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25082     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25083       # Going to short mode and back again did indeed matter. Since short mode is
25084       # case insensitive, let's make it lowercase to improve readability.
25085       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25086       # Now convert it back to Unix-style (cygpath)
25087       input_path=`$CYGPATH -u "$shortmode_path"`
25088       new_path="$input_path"
25089     fi
25090   fi
25091 
25092   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25093   if test "x$test_cygdrive_prefix" = x; then
25094     # As a simple fix, exclude /usr/bin since it's not a real path.
25095     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25096       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25097       # a path prefixed by /cygdrive for fixpath to work.
25098       new_path="$CYGWIN_ROOT_PATH$input_path"
25099     fi
25100   fi
25101 
25102 
25103   if test "x$path" != "x$new_path"; then
25104     BOOT_JDK="$new_path"
25105     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25106 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25107   fi
25108 
25109     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25110 
25111   path="$BOOT_JDK"
25112   has_colon=`$ECHO $path | $GREP ^.:`
25113   new_path="$path"
25114   if test "x$has_colon" = x; then
25115     # Not in mixed or Windows style, start by that.
25116     new_path=`cmd //c echo $path`
25117   fi
25118 
25119 
25120   input_path="$new_path"
25121   # Check if we need to convert this using DOS-style short mode. If the path
25122   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25123   # take no chances and rewrite it.
25124   # Note: m4 eats our [], so we need to use [ and ] instead.
25125   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25126   if test "x$has_forbidden_chars" != x; then
25127     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25128     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25129   fi
25130 
25131 
25132   windows_path="$new_path"
25133   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25134     unix_path=`$CYGPATH -u "$windows_path"`
25135     new_path="$unix_path"
25136   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25137     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25138     new_path="$unix_path"
25139   fi
25140 
25141   if test "x$path" != "x$new_path"; then
25142     BOOT_JDK="$new_path"
25143     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25144 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25145   fi
25146 
25147   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25148   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25149 
25150     else
25151       # We're on a unix platform. Hooray! :)
25152       path="$BOOT_JDK"
25153       has_space=`$ECHO "$path" | $GREP " "`
25154       if test "x$has_space" != x; then
25155         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25156 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25157         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25158       fi
25159 
25160       # Use eval to expand a potential ~
25161       eval path="$path"
25162       if test ! -f "$path" && test ! -d "$path"; then
25163         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25164       fi
25165 
25166       if test -d "$path"; then
25167         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25168       else
25169         dir="`$DIRNAME "$path"`"
25170         base="`$BASENAME "$path"`"
25171         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25172       fi
25173     fi
25174   fi
25175 
25176             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25177 $as_echo_n "checking for Boot JDK... " >&6; }
25178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25179 $as_echo "$BOOT_JDK" >&6; }
25180             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25181 $as_echo_n "checking Boot JDK version... " >&6; }
25182             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25183             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25184 $as_echo "$BOOT_JDK_VERSION" >&6; }
25185           fi # end check jdk version
25186         fi # end check javac
25187       fi # end check java
25188     fi # end check boot jdk found
25189   fi
25190 
25191     # If that did not work out (e.g. too old), try explicit versions instead
25192 
25193   if test "x$BOOT_JDK_FOUND" = xno; then
25194     # Now execute the test
25195 
25196   if test -x /usr/libexec/java_home; then
25197     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
25198     BOOT_JDK_FOUND=maybe
25199     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
25200 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
25201   fi
25202 
25203 
25204     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25205     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25206       # Do we have a bin/java?
25207       if test ! -x "$BOOT_JDK/bin/java"; then
25208         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25210         BOOT_JDK_FOUND=no
25211       else
25212         # Do we have a bin/javac?
25213         if test ! -x "$BOOT_JDK/bin/javac"; then
25214           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25216           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25217 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25218           BOOT_JDK_FOUND=no
25219         else
25220           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25221           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
25222 
25223           # Extra M4 quote needed to protect [] in grep expression.
25224           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25225           if test "x$FOUND_CORRECT_VERSION" = x; then
25226             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25228             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25229 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25230             BOOT_JDK_FOUND=no
25231           else
25232             # We're done! :-)
25233             BOOT_JDK_FOUND=yes
25234 
25235   # Only process if variable expands to non-empty
25236 
25237   if test "x$BOOT_JDK" != x; then
25238     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25239 
25240   # Input might be given as Windows format, start by converting to
25241   # unix format.
25242   path="$BOOT_JDK"
25243   new_path=`$CYGPATH -u "$path"`
25244 
25245   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25246   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25247   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25248   # "foo.exe" is OK but "foo" is an error.
25249   #
25250   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25251   # It is also a way to make sure we got the proper file name for the real test later on.
25252   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25253   if test "x$test_shortpath" = x; then
25254     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25255 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25256     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25257   fi
25258 
25259   # Call helper function which possibly converts this using DOS-style short mode.
25260   # If so, the updated path is stored in $new_path.
25261 
25262   input_path="$new_path"
25263   # Check if we need to convert this using DOS-style short mode. If the path
25264   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25265   # take no chances and rewrite it.
25266   # Note: m4 eats our [], so we need to use [ and ] instead.
25267   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25268   if test "x$has_forbidden_chars" != x; then
25269     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25270     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25271     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25272     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25273       # Going to short mode and back again did indeed matter. Since short mode is
25274       # case insensitive, let's make it lowercase to improve readability.
25275       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25276       # Now convert it back to Unix-style (cygpath)
25277       input_path=`$CYGPATH -u "$shortmode_path"`
25278       new_path="$input_path"
25279     fi
25280   fi
25281 
25282   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25283   if test "x$test_cygdrive_prefix" = x; then
25284     # As a simple fix, exclude /usr/bin since it's not a real path.
25285     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25286       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25287       # a path prefixed by /cygdrive for fixpath to work.
25288       new_path="$CYGWIN_ROOT_PATH$input_path"
25289     fi
25290   fi
25291 
25292 
25293   if test "x$path" != "x$new_path"; then
25294     BOOT_JDK="$new_path"
25295     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25296 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25297   fi
25298 
25299     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25300 
25301   path="$BOOT_JDK"
25302   has_colon=`$ECHO $path | $GREP ^.:`
25303   new_path="$path"
25304   if test "x$has_colon" = x; then
25305     # Not in mixed or Windows style, start by that.
25306     new_path=`cmd //c echo $path`
25307   fi
25308 
25309 
25310   input_path="$new_path"
25311   # Check if we need to convert this using DOS-style short mode. If the path
25312   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25313   # take no chances and rewrite it.
25314   # Note: m4 eats our [], so we need to use [ and ] instead.
25315   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25316   if test "x$has_forbidden_chars" != x; then
25317     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25318     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25319   fi
25320 
25321 
25322   windows_path="$new_path"
25323   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25324     unix_path=`$CYGPATH -u "$windows_path"`
25325     new_path="$unix_path"
25326   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25327     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25328     new_path="$unix_path"
25329   fi
25330 
25331   if test "x$path" != "x$new_path"; then
25332     BOOT_JDK="$new_path"
25333     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25334 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25335   fi
25336 
25337   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25338   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25339 
25340     else
25341       # We're on a unix platform. Hooray! :)
25342       path="$BOOT_JDK"
25343       has_space=`$ECHO "$path" | $GREP " "`
25344       if test "x$has_space" != x; then
25345         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25346 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25347         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25348       fi
25349 
25350       # Use eval to expand a potential ~
25351       eval path="$path"
25352       if test ! -f "$path" && test ! -d "$path"; then
25353         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25354       fi
25355 
25356       if test -d "$path"; then
25357         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25358       else
25359         dir="`$DIRNAME "$path"`"
25360         base="`$BASENAME "$path"`"
25361         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25362       fi
25363     fi
25364   fi
25365 
25366             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25367 $as_echo_n "checking for Boot JDK... " >&6; }
25368             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25369 $as_echo "$BOOT_JDK" >&6; }
25370             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25371 $as_echo_n "checking Boot JDK version... " >&6; }
25372             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25374 $as_echo "$BOOT_JDK_VERSION" >&6; }
25375           fi # end check jdk version
25376         fi # end check javac
25377       fi # end check java
25378     fi # end check boot jdk found
25379   fi
25380 
25381 
25382   if test "x$BOOT_JDK_FOUND" = xno; then
25383     # Now execute the test
25384 
25385   if test -x /usr/libexec/java_home; then
25386     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
25387     BOOT_JDK_FOUND=maybe
25388     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/