1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 BOOTCYCLE_JVM_ARGS_BIG
 648 JAVA_FLAGS_BIG
 649 JAVA_FLAGS
 650 TEST_JOBS
 651 JOBS
 652 MEMORY_SIZE
 653 NUM_CORES
 654 ENABLE_GENERATE_CLASSLIST
 655 BUILD_FAILURE_HANDLER
 656 ENABLE_INTREE_EC
 657 VALID_JVM_FEATURES
 658 JVM_FEATURES_custom
 659 JVM_FEATURES_zero
 660 JVM_FEATURES_minimal
 661 JVM_FEATURES_core
 662 JVM_FEATURES_client
 663 JVM_FEATURES_server
 664 INCLUDE_GRAAL
 665 STLPORT_LIB
 666 LIBZIP_CAN_USE_MMAP
 667 LIBDL
 668 LIBM
 669 USE_EXTERNAL_LCMS
 670 LCMS_LIBS
 671 LCMS_CFLAGS
 672 USE_EXTERNAL_LIBZ
 673 USE_EXTERNAL_LIBPNG
 674 PNG_LIBS
 675 PNG_CFLAGS
 676 USE_EXTERNAL_LIBGIF
 677 USE_EXTERNAL_LIBJPEG
 678 LIBFFI_LIB_FILE
 679 ENABLE_LIBFFI_BUNDLING
 680 LIBFFI_LIBS
 681 LIBFFI_CFLAGS
 682 ALSA_LIBS
 683 ALSA_CFLAGS
 684 FREETYPE_LICENSE
 685 FREETYPE_BUNDLE_LIB_PATH
 686 FREETYPE_LIBS
 687 FREETYPE_CFLAGS
 688 FONTCONFIG_CFLAGS
 689 CUPS_CFLAGS
 690 X_EXTRA_LIBS
 691 X_LIBS
 692 X_PRE_LIBS
 693 X_CFLAGS
 694 XMKMF
 695 MSVCP_DLL
 696 MSVCR_DLL
 697 LIBCXX
 698 FIXPATH_DETACH_FLAG
 699 FIXPATH
 700 BUILD_GTEST
 701 ENABLE_CDS
 702 ENABLE_AOT
 703 ASAN_ENABLED
 704 GCOV_ENABLED
 705 ZIP_EXTERNAL_DEBUG_SYMBOLS
 706 COPY_DEBUG_SYMBOLS
 707 COMPILE_WITH_DEBUG_SYMBOLS
 708 CFLAGS_WARNINGS_ARE_ERRORS
 709 BUILD_CC_DISABLE_WARNING_PREFIX
 710 DISABLE_WARNING_PREFIX
 711 WARNINGS_AS_ERRORS
 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 713 LDFLAGS_TESTEXE
 714 LDFLAGS_TESTLIB
 715 CXXFLAGS_TESTEXE
 716 CXXFLAGS_TESTLIB
 717 CFLAGS_TESTEXE
 718 CFLAGS_TESTLIB
 719 OPENJDK_BUILD_JVM_LIBS
 720 OPENJDK_BUILD_JVM_ASFLAGS
 721 OPENJDK_BUILD_JVM_LDFLAGS
 722 OPENJDK_BUILD_JVM_CFLAGS
 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK
 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 726 OPENJDK_BUILD_JDKEXE_LIBS
 727 OPENJDK_BUILD_JDKLIB_LIBS
 728 OPENJDK_BUILD_LDFLAGS_JDKEXE
 729 OPENJDK_BUILD_LDFLAGS_JDKLIB
 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 732 OPENJDK_BUILD_CFLAGS_JDKEXE
 733 OPENJDK_BUILD_CFLAGS_JDKLIB
 734 OPENJDK_BUILD_CXXSTD_CXXFLAG
 735 JVM_LIBS
 736 JVM_ASFLAGS
 737 JVM_LDFLAGS
 738 JVM_CFLAGS
 739 LDFLAGS_NO_EXEC_STACK
 740 LDFLAGS_HASH_STYLE
 741 LDFLAGS_CXX_JDK
 742 JDKEXE_LIBS
 743 JDKLIB_LIBS
 744 LDFLAGS_JDKEXE
 745 LDFLAGS_JDKLIB
 746 CXXFLAGS_JDKEXE
 747 CXXFLAGS_JDKLIB
 748 CFLAGS_JDKEXE
 749 CFLAGS_JDKLIB
 750 MACOSX_VERSION_MAX
 751 MACOSX_VERSION_MIN
 752 CXXSTD_CXXFLAG
 753 JDK_ARCH_ABI_PROP_NAME
 754 CXX_O_FLAG_SIZE
 755 CXX_O_FLAG_NONE
 756 CXX_O_FLAG_DEBUG
 757 CXX_O_FLAG_NORM
 758 CXX_O_FLAG_HI
 759 CXX_O_FLAG_HIGHEST
 760 CXX_O_FLAG_HIGHEST_JVM
 761 C_O_FLAG_SIZE
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 C_O_FLAG_HIGHEST_JVM
 768 JVM_CFLAGS_SYMBOLS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SHARED_LIBRARY_FLAGS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 JVM_RCFLAGS
 781 RC_FLAGS
 782 AR_OUT_OPTION
 783 LD_OUT_OPTION
 784 EXE_OUT_OPTION
 785 CC_OUT_OPTION
 786 STRIPFLAGS
 787 ARFLAGS
 788 COMPILER_BINDCMD_FILE_FLAG
 789 COMPILER_COMMAND_FILE_FLAG
 790 COMPILER_TARGET_BITS_FLAG
 791 JIB_JAR
 792 JT_HOME
 793 JTREGEXE
 794 HOTSPOT_TOOLCHAIN_TYPE
 795 USING_BROKEN_SUSE_LD
 796 PACKAGE_PATH
 797 BUILD_AS
 798 BUILD_LDCXX
 799 BUILD_LD
 800 BUILD_STRIP
 801 BUILD_OBJCOPY
 802 BUILD_AR
 803 BUILD_NM
 804 BUILD_CXX
 805 BUILD_CC
 806 BUILD_SYSROOT_LDFLAGS
 807 BUILD_SYSROOT_CFLAGS
 808 ac_ct_OBJDUMP
 809 OBJDUMP
 810 ac_ct_OBJCOPY
 811 OBJCOPY
 812 ac_ct_NM
 813 ac_ct_STRIP
 814 GNM
 815 NM
 816 STRIP
 817 MSBUILD
 818 DUMPBIN
 819 RC
 820 MT
 821 INSTALL_NAME_TOOL
 822 OTOOL
 823 LIPO
 824 ac_ct_AR
 825 AR
 826 AS
 827 LDCXX
 828 LD
 829 CXXCPP
 830 CPP
 831 CXX_VERSION_NUMBER
 832 CC_VERSION_NUMBER
 833 ac_ct_CXX
 834 CXXFLAGS
 835 CXX
 836 TOOLCHAIN_PATH_CXX
 837 POTENTIAL_CXX
 838 OBJEXT
 839 EXEEXT
 840 ac_ct_CC
 841 CPPFLAGS
 842 LDFLAGS
 843 CFLAGS
 844 CC
 845 TOOLCHAIN_PATH_CC
 846 POTENTIAL_CC
 847 TOOLCHAIN_VERSION
 848 VS_LIB
 849 VS_INCLUDE
 850 VS_PATH
 851 CYGWIN_LINK
 852 SYSROOT_LDFLAGS
 853 SYSROOT_CFLAGS
 854 EXTRA_LDFLAGS
 855 EXTRA_CXXFLAGS
 856 EXTRA_CFLAGS
 857 EXE_SUFFIX
 858 OBJ_SUFFIX
 859 STATIC_LIBRARY
 860 SHARED_LIBRARY
 861 STATIC_LIBRARY_SUFFIX
 862 SHARED_LIBRARY_SUFFIX
 863 LIBRARY_PREFIX
 864 TOOLCHAIN_TYPE
 865 STATIC_BUILD
 866 IMPORT_MODULES_MAKE
 867 IMPORT_MODULES_SRC
 868 IMPORT_MODULES_MAN
 869 IMPORT_MODULES_LEGAL
 870 IMPORT_MODULES_CONF
 871 IMPORT_MODULES_LIBS
 872 IMPORT_MODULES_CMDS
 873 IMPORT_MODULES_CLASSES
 874 EXTERNAL_BUILDJDK
 875 BUILD_JDK
 876 CREATE_BUILDJDK
 877 JLINK
 878 JMOD
 879 JAVAC_FLAGS
 880 BOOT_JDK_SOURCETARGET
 881 JARSIGNER
 882 JAR
 883 JAVADOC
 884 JAVAH
 885 JAVAC
 886 JAVA
 887 BOOT_JDK
 888 JAVA_CHECK
 889 JAVAC_CHECK
 890 VENDOR_VERSION_STRING
 891 VERSION_DATE
 892 VERSION_IS_GA
 893 VERSION_SHORT
 894 VERSION_STRING
 895 VERSION_NUMBER_FOUR_POSITIONS
 896 VERSION_NUMBER
 897 VERSION_OPT
 898 VERSION_BUILD
 899 VERSION_PRE
 900 VERSION_PATCH
 901 VERSION_UPDATE
 902 VERSION_INTERIM
 903 VERSION_FEATURE
 904 COMPANY_NAME
 905 MACOSX_BUNDLE_ID_BASE
 906 MACOSX_BUNDLE_NAME_BASE
 907 HOTSPOT_VM_DISTRO
 908 JDK_RC_PLATFORM_NAME
 909 PRODUCT_SUFFIX
 910 PRODUCT_NAME
 911 LAUNCHER_NAME
 912 JLINK_KEEP_PACKAGED_MODULES
 913 COPYRIGHT_YEAR
 914 COMPRESS_JARS
 915 INCLUDE_SA
 916 UNLIMITED_CRYPTO
 917 CACERTS_FILE
 918 ENABLE_FULL_DOCS
 919 ENABLE_HEADLESS_ONLY
 920 DEFAULT_MAKE_TARGET
 921 OS_VERSION_MICRO
 922 OS_VERSION_MINOR
 923 OS_VERSION_MAJOR
 924 PKG_CONFIG
 925 BASH_ARGS
 926 SETFILE
 927 CODESIGN
 928 XATTR
 929 DSYMUTIL
 930 IS_GNU_TIME
 931 PATCH
 932 DTRACE
 933 FLOCK
 934 TIME
 935 STAT
 936 HG
 937 DOT
 938 READELF
 939 LDD
 940 ZIPEXE
 941 UNZIP
 942 TAR_SUPPORTS_TRANSFORM
 943 TAR_INCLUDE_PARAM
 944 TAR_CREATE_EXTRA_PARAM
 945 TAR_TYPE
 946 FIND_DELETE
 947 OUTPUT_SYNC
 948 OUTPUT_SYNC_SUPPORTED
 949 CHECK_TOOLSDIR_MAKE
 950 CHECK_TOOLSDIR_GMAKE
 951 CHECK_MAKE
 952 CHECK_GMAKE
 953 MAKE
 954 PKGHANDLER
 955 CONFIGURESUPPORT_OUTPUTDIR
 956 OUTPUTDIR
 957 CONF_NAME
 958 SPEC
 959 SDKROOT
 960 XCODEBUILD
 961 DEVKIT_LIB_DIR
 962 JVM_VARIANT_MAIN
 963 VALID_JVM_VARIANTS
 964 JVM_VARIANTS
 965 DEBUG_LEVEL
 966 HOTSPOT_DEBUG_LEVEL
 967 JDK_VARIANT
 968 USERNAME
 969 TOPDIR
 970 PATH_SEP
 971 HOTSPOT_BUILD_CPU_DEFINE
 972 HOTSPOT_BUILD_CPU_ARCH
 973 HOTSPOT_BUILD_CPU
 974 HOTSPOT_BUILD_OS_TYPE
 975 HOTSPOT_BUILD_OS
 976 OPENJDK_BUILD_BUNDLE_PLATFORM
 977 OPENJDK_BUILD_CPU_OSARCH
 978 OPENJDK_BUILD_CPU_ISADIR
 979 OPENJDK_BUILD_CPU_LEGACY_LIB
 980 OPENJDK_BUILD_CPU_LEGACY
 981 HOTSPOT_TARGET_CPU_DEFINE
 982 HOTSPOT_TARGET_CPU_ARCH
 983 HOTSPOT_TARGET_CPU
 984 HOTSPOT_TARGET_OS_TYPE
 985 HOTSPOT_TARGET_OS
 986 DEFINE_CROSS_COMPILE_ARCH
 987 OPENJDK_TARGET_BUNDLE_PLATFORM
 988 OPENJDK_TARGET_CPU_OSARCH
 989 OPENJDK_TARGET_CPU_ISADIR
 990 OPENJDK_TARGET_CPU_LEGACY_LIB
 991 OPENJDK_TARGET_CPU_LEGACY
 992 RELEASE_FILE_OS_ARCH
 993 RELEASE_FILE_OS_NAME
 994 OPENJDK_MODULE_TARGET_PLATFORM
 995 COMPILE_TYPE
 996 OPENJDK_TARGET_CPU_ENDIAN
 997 OPENJDK_TARGET_CPU_BITS
 998 OPENJDK_TARGET_CPU_ARCH
 999 OPENJDK_TARGET_CPU
1000 OPENJDK_TARGET_OS_ENV
1001 OPENJDK_TARGET_OS_TYPE
1002 OPENJDK_TARGET_OS
1003 OPENJDK_BUILD_CPU_ENDIAN
1004 OPENJDK_BUILD_CPU_BITS
1005 OPENJDK_BUILD_CPU_ARCH
1006 OPENJDK_BUILD_CPU
1007 OPENJDK_BUILD_OS_ENV
1008 OPENJDK_BUILD_OS_TYPE
1009 OPENJDK_BUILD_OS
1010 OPENJDK_BUILD_AUTOCONF_NAME
1011 OPENJDK_TARGET_AUTOCONF_NAME
1012 target_os
1013 target_vendor
1014 target_cpu
1015 target
1016 host_os
1017 host_vendor
1018 host_cpu
1019 host
1020 build_os
1021 build_vendor
1022 build_cpu
1023 build
1024 PANDOC
1025 NICE
1026 CPIO
1027 DF
1028 READLINK
1029 CYGPATH
1030 SED
1031 FGREP
1032 EGREP
1033 GREP
1034 AWK
1035 XARGS
1036 WHICH
1037 WC
1038 UNIQ
1039 UNAME
1040 TR
1041 TOUCH
1042 TEE
1043 TAR
1044 TAIL
1045 SORT
1046 SH
1047 RMDIR
1048 RM
1049 PRINTF
1050 NAWK
1051 MV
1052 MKTEMP
1053 MKDIR
1054 LS
1055 LN
1056 GZIP
1057 GUNZIP
1058 HEAD
1059 FIND
1060 FILE
1061 EXPR
1062 ECHO
1063 DIRNAME
1064 DIFF
1065 DATE
1066 CUT
1067 CP
1068 COMM
1069 CMP
1070 CHMOD
1071 CAT
1072 BASH
1073 BASENAME
1074 DATE_WHEN_CONFIGURED
1075 ORIGINAL_PATH
1076 CONFIGURE_COMMAND_LINE
1077 target_alias
1078 host_alias
1079 build_alias
1080 LIBS
1081 ECHO_T
1082 ECHO_N
1083 ECHO_C
1084 DEFS
1085 mandir
1086 localedir
1087 libdir
1088 psdir
1089 pdfdir
1090 dvidir
1091 htmldir
1092 infodir
1093 docdir
1094 oldincludedir
1095 includedir
1096 runstatedir
1097 localstatedir
1098 sharedstatedir
1099 sysconfdir
1100 datadir
1101 datarootdir
1102 libexecdir
1103 sbindir
1104 bindir
1105 program_transform_name
1106 prefix
1107 exec_prefix
1108 PACKAGE_URL
1109 PACKAGE_BUGREPORT
1110 PACKAGE_STRING
1111 PACKAGE_VERSION
1112 PACKAGE_TARNAME
1113 PACKAGE_NAME
1114 PATH_SEPARATOR
1115 SHELL'
1116 ac_subst_files=''
1117 ac_user_opts='
1118 enable_option_checking
1119 with_target_bits
1120 enable_openjdk_only
1121 with_custom_make_dir
1122 with_jdk_variant
1123 enable_debug
1124 with_debug_level
1125 with_jvm_variants
1126 with_cpu_port
1127 with_devkit
1128 with_sys_root
1129 with_sysroot
1130 with_tools_dir
1131 with_toolchain_path
1132 with_extra_path
1133 with_sdk_name
1134 with_conf_name
1135 with_output_sync
1136 with_default_make_target
1137 enable_headless_only
1138 enable_full_docs
1139 with_cacerts_file
1140 enable_unlimited_crypto
1141 with_copyright_year
1142 enable_keep_packaged_modules
1143 with_milestone
1144 with_update_version
1145 with_user_release_suffix
1146 with_build_number
1147 with_version_major
1148 with_version_minor
1149 with_version_security
1150 with_vendor_name
1151 with_version_string
1152 with_version_pre
1153 with_version_opt
1154 with_version_build
1155 with_version_feature
1156 with_version_interim
1157 with_version_update
1158 with_version_patch
1159 with_version_date
1160 with_vendor_version_string
1161 with_boot_jdk
1162 with_build_jdk
1163 with_import_modules
1164 enable_static_build
1165 with_toolchain_type
1166 with_extra_cflags
1167 with_extra_cxxflags
1168 with_extra_ldflags
1169 with_toolchain_version
1170 with_build_devkit
1171 with_jtreg
1172 with_jib
1173 with_abi_profile
1174 with_macosx_version_max
1175 enable_warnings_as_errors
1176 with_native_debug_symbols
1177 enable_debug_symbols
1178 enable_zip_debug_info
1179 enable_native_coverage
1180 enable_asan
1181 enable_dtrace
1182 enable_aot
1183 enable_cds
1184 enable_hotspot_gtest
1185 with_stdc__lib
1186 with_msvcr_dll
1187 with_msvcp_dll
1188 with_x
1189 with_cups
1190 with_cups_include
1191 with_fontconfig
1192 with_fontconfig_include
1193 with_freetype
1194 with_freetype_include
1195 with_freetype_lib
1196 with_freetype_src
1197 enable_freetype_bundling
1198 with_freetype_license
1199 with_alsa
1200 with_alsa_include
1201 with_alsa_lib
1202 with_libffi
1203 with_libffi_include
1204 with_libffi_lib
1205 enable_libffi_bundling
1206 with_libjpeg
1207 with_giflib
1208 with_libpng
1209 with_zlib
1210 with_lcms
1211 with_dxsdk
1212 with_dxsdk_lib
1213 with_dxsdk_include
1214 with_jvm_features
1215 with_jvm_interpreter
1216 enable_jtreg_failure_handler
1217 enable_generate_classlist
1218 with_num_cores
1219 with_memory_size
1220 with_jobs
1221 with_test_jobs
1222 with_boot_jdk_jvmargs
1223 with_sjavac_server_java
1224 enable_sjavac
1225 enable_javac_server
1226 enable_icecc
1227 enable_precompiled_headers
1228 enable_ccache
1229 with_ccache_dir
1230 '
1231       ac_precious_vars='build_alias
1232 host_alias
1233 target_alias
1234 BASENAME
1235 BASH
1236 CAT
1237 CHMOD
1238 CMP
1239 COMM
1240 CP
1241 CUT
1242 DATE
1243 DIFF
1244 DIRNAME
1245 ECHO
1246 EXPR
1247 FILE
1248 FIND
1249 HEAD
1250 GUNZIP
1251 GZIP
1252 LN
1253 LS
1254 MKDIR
1255 MKTEMP
1256 MV
1257 NAWK
1258 PRINTF
1259 RM
1260 RMDIR
1261 SH
1262 SORT
1263 TAIL
1264 TAR
1265 TEE
1266 TOUCH
1267 TR
1268 UNAME
1269 UNIQ
1270 WC
1271 WHICH
1272 XARGS
1273 AWK
1274 GREP
1275 EGREP
1276 FGREP
1277 SED
1278 CYGPATH
1279 READLINK
1280 DF
1281 CPIO
1282 NICE
1283 PANDOC
1284 MAKE
1285 UNZIP
1286 ZIPEXE
1287 LDD
1288 READELF
1289 DOT
1290 HG
1291 STAT
1292 TIME
1293 FLOCK
1294 DTRACE
1295 PATCH
1296 DSYMUTIL
1297 XATTR
1298 CODESIGN
1299 SETFILE
1300 PKG_CONFIG
1301 JAVA
1302 JAVAC
1303 JAVAH
1304 JAVADOC
1305 JAR
1306 JARSIGNER
1307 CC
1308 CFLAGS
1309 LDFLAGS
1310 LIBS
1311 CPPFLAGS
1312 CXX
1313 CXXFLAGS
1314 CCC
1315 CPP
1316 CXXCPP
1317 AS
1318 AR
1319 LIPO
1320 OTOOL
1321 INSTALL_NAME_TOOL
1322 STRIP
1323 NM
1324 GNM
1325 OBJCOPY
1326 OBJDUMP
1327 BUILD_CC
1328 BUILD_CXX
1329 BUILD_NM
1330 BUILD_AR
1331 BUILD_OBJCOPY
1332 BUILD_STRIP
1333 JTREGEXE
1334 XMKMF
1335 FREETYPE_CFLAGS
1336 FREETYPE_LIBS
1337 ALSA_CFLAGS
1338 ALSA_LIBS
1339 LIBFFI_CFLAGS
1340 LIBFFI_LIBS
1341 PNG_CFLAGS
1342 PNG_LIBS
1343 LCMS_CFLAGS
1344 LCMS_LIBS
1345 ICECC_CMD
1346 ICECC_CREATE_ENV
1347 ICECC_WRAPPER
1348 CCACHE'
1349 
1350 
1351 # Initialize some variables set by options.
1352 ac_init_help=
1353 ac_init_version=false
1354 ac_unrecognized_opts=
1355 ac_unrecognized_sep=
1356 # The variables have the same names as the options, with
1357 # dashes changed to underlines.
1358 cache_file=/dev/null
1359 exec_prefix=NONE
1360 no_create=
1361 no_recursion=
1362 prefix=NONE
1363 program_prefix=NONE
1364 program_suffix=NONE
1365 program_transform_name=s,x,x,
1366 silent=
1367 site=
1368 srcdir=
1369 verbose=
1370 x_includes=NONE
1371 x_libraries=NONE
1372 
1373 # Installation directory options.
1374 # These are left unexpanded so users can "make install exec_prefix=/foo"
1375 # and all the variables that are supposed to be based on exec_prefix
1376 # by default will actually change.
1377 # Use braces instead of parens because sh, perl, etc. also accept them.
1378 # (The list follows the same order as the GNU Coding Standards.)
1379 bindir='${exec_prefix}/bin'
1380 sbindir='${exec_prefix}/sbin'
1381 libexecdir='${exec_prefix}/libexec'
1382 datarootdir='${prefix}/share'
1383 datadir='${datarootdir}'
1384 sysconfdir='${prefix}/etc'
1385 sharedstatedir='${prefix}/com'
1386 localstatedir='${prefix}/var'
1387 runstatedir='${localstatedir}/run'
1388 includedir='${prefix}/include'
1389 oldincludedir='/usr/include'
1390 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1391 infodir='${datarootdir}/info'
1392 htmldir='${docdir}'
1393 dvidir='${docdir}'
1394 pdfdir='${docdir}'
1395 psdir='${docdir}'
1396 libdir='${exec_prefix}/lib'
1397 localedir='${datarootdir}/locale'
1398 mandir='${datarootdir}/man'
1399 
1400 ac_prev=
1401 ac_dashdash=
1402 for ac_option
1403 do
1404   # If the previous option needs an argument, assign it.
1405   if test -n "$ac_prev"; then
1406     eval $ac_prev=\$ac_option
1407     ac_prev=
1408     continue
1409   fi
1410 
1411   case $ac_option in
1412   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1413   *=)   ac_optarg= ;;
1414   *)    ac_optarg=yes ;;
1415   esac
1416 
1417   # Accept the important Cygnus configure options, so we can diagnose typos.
1418 
1419   case $ac_dashdash$ac_option in
1420   --)
1421     ac_dashdash=yes ;;
1422 
1423   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1424     ac_prev=bindir ;;
1425   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1426     bindir=$ac_optarg ;;
1427 
1428   -build | --build | --buil | --bui | --bu)
1429     ac_prev=build_alias ;;
1430   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1431     build_alias=$ac_optarg ;;
1432 
1433   -cache-file | --cache-file | --cache-fil | --cache-fi \
1434   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1435     ac_prev=cache_file ;;
1436   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1437   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1438     cache_file=$ac_optarg ;;
1439 
1440   --config-cache | -C)
1441     cache_file=config.cache ;;
1442 
1443   -datadir | --datadir | --datadi | --datad)
1444     ac_prev=datadir ;;
1445   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1446     datadir=$ac_optarg ;;
1447 
1448   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1449   | --dataroo | --dataro | --datar)
1450     ac_prev=datarootdir ;;
1451   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1452   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1453     datarootdir=$ac_optarg ;;
1454 
1455   -disable-* | --disable-*)
1456     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1457     # Reject names that are not valid shell variable names.
1458     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1459       as_fn_error $? "invalid feature name: $ac_useropt"
1460     ac_useropt_orig=$ac_useropt
1461     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1462     case $ac_user_opts in
1463       *"
1464 "enable_$ac_useropt"
1465 "*) ;;
1466       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1467          ac_unrecognized_sep=', ';;
1468     esac
1469     eval enable_$ac_useropt=no ;;
1470 
1471   -docdir | --docdir | --docdi | --doc | --do)
1472     ac_prev=docdir ;;
1473   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1474     docdir=$ac_optarg ;;
1475 
1476   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1477     ac_prev=dvidir ;;
1478   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1479     dvidir=$ac_optarg ;;
1480 
1481   -enable-* | --enable-*)
1482     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1483     # Reject names that are not valid shell variable names.
1484     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1485       as_fn_error $? "invalid feature name: $ac_useropt"
1486     ac_useropt_orig=$ac_useropt
1487     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488     case $ac_user_opts in
1489       *"
1490 "enable_$ac_useropt"
1491 "*) ;;
1492       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1493          ac_unrecognized_sep=', ';;
1494     esac
1495     eval enable_$ac_useropt=\$ac_optarg ;;
1496 
1497   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1498   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1499   | --exec | --exe | --ex)
1500     ac_prev=exec_prefix ;;
1501   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1502   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1503   | --exec=* | --exe=* | --ex=*)
1504     exec_prefix=$ac_optarg ;;
1505 
1506   -gas | --gas | --ga | --g)
1507     # Obsolete; use --with-gas.
1508     with_gas=yes ;;
1509 
1510   -help | --help | --hel | --he | -h)
1511     ac_init_help=long ;;
1512   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1513     ac_init_help=recursive ;;
1514   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1515     ac_init_help=short ;;
1516 
1517   -host | --host | --hos | --ho)
1518     ac_prev=host_alias ;;
1519   -host=* | --host=* | --hos=* | --ho=*)
1520     host_alias=$ac_optarg ;;
1521 
1522   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1523     ac_prev=htmldir ;;
1524   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1525   | --ht=*)
1526     htmldir=$ac_optarg ;;
1527 
1528   -includedir | --includedir | --includedi | --included | --include \
1529   | --includ | --inclu | --incl | --inc)
1530     ac_prev=includedir ;;
1531   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1532   | --includ=* | --inclu=* | --incl=* | --inc=*)
1533     includedir=$ac_optarg ;;
1534 
1535   -infodir | --infodir | --infodi | --infod | --info | --inf)
1536     ac_prev=infodir ;;
1537   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1538     infodir=$ac_optarg ;;
1539 
1540   -libdir | --libdir | --libdi | --libd)
1541     ac_prev=libdir ;;
1542   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1543     libdir=$ac_optarg ;;
1544 
1545   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1546   | --libexe | --libex | --libe)
1547     ac_prev=libexecdir ;;
1548   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1549   | --libexe=* | --libex=* | --libe=*)
1550     libexecdir=$ac_optarg ;;
1551 
1552   -localedir | --localedir | --localedi | --localed | --locale)
1553     ac_prev=localedir ;;
1554   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1555     localedir=$ac_optarg ;;
1556 
1557   -localstatedir | --localstatedir | --localstatedi | --localstated \
1558   | --localstate | --localstat | --localsta | --localst | --locals)
1559     ac_prev=localstatedir ;;
1560   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1561   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1562     localstatedir=$ac_optarg ;;
1563 
1564   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1565     ac_prev=mandir ;;
1566   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1567     mandir=$ac_optarg ;;
1568 
1569   -nfp | --nfp | --nf)
1570     # Obsolete; use --without-fp.
1571     with_fp=no ;;
1572 
1573   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1574   | --no-cr | --no-c | -n)
1575     no_create=yes ;;
1576 
1577   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1578   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1579     no_recursion=yes ;;
1580 
1581   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1582   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1583   | --oldin | --oldi | --old | --ol | --o)
1584     ac_prev=oldincludedir ;;
1585   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1586   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1587   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1588     oldincludedir=$ac_optarg ;;
1589 
1590   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1591     ac_prev=prefix ;;
1592   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1593     prefix=$ac_optarg ;;
1594 
1595   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1596   | --program-pre | --program-pr | --program-p)
1597     ac_prev=program_prefix ;;
1598   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1599   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1600     program_prefix=$ac_optarg ;;
1601 
1602   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1603   | --program-suf | --program-su | --program-s)
1604     ac_prev=program_suffix ;;
1605   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1606   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1607     program_suffix=$ac_optarg ;;
1608 
1609   -program-transform-name | --program-transform-name \
1610   | --program-transform-nam | --program-transform-na \
1611   | --program-transform-n | --program-transform- \
1612   | --program-transform | --program-transfor \
1613   | --program-transfo | --program-transf \
1614   | --program-trans | --program-tran \
1615   | --progr-tra | --program-tr | --program-t)
1616     ac_prev=program_transform_name ;;
1617   -program-transform-name=* | --program-transform-name=* \
1618   | --program-transform-nam=* | --program-transform-na=* \
1619   | --program-transform-n=* | --program-transform-=* \
1620   | --program-transform=* | --program-transfor=* \
1621   | --program-transfo=* | --program-transf=* \
1622   | --program-trans=* | --program-tran=* \
1623   | --progr-tra=* | --program-tr=* | --program-t=*)
1624     program_transform_name=$ac_optarg ;;
1625 
1626   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1627     ac_prev=pdfdir ;;
1628   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1629     pdfdir=$ac_optarg ;;
1630 
1631   -psdir | --psdir | --psdi | --psd | --ps)
1632     ac_prev=psdir ;;
1633   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1634     psdir=$ac_optarg ;;
1635 
1636   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637   | -silent | --silent | --silen | --sile | --sil)
1638     silent=yes ;;
1639 
1640   -runstatedir | --runstatedir | --runstatedi | --runstated \
1641   | --runstate | --runstat | --runsta | --runst | --runs \
1642   | --run | --ru | --r)
1643     ac_prev=runstatedir ;;
1644   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1645   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1646   | --run=* | --ru=* | --r=*)
1647     runstatedir=$ac_optarg ;;
1648 
1649   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1650     ac_prev=sbindir ;;
1651   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1652   | --sbi=* | --sb=*)
1653     sbindir=$ac_optarg ;;
1654 
1655   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1656   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1657   | --sharedst | --shareds | --shared | --share | --shar \
1658   | --sha | --sh)
1659     ac_prev=sharedstatedir ;;
1660   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1661   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1662   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1663   | --sha=* | --sh=*)
1664     sharedstatedir=$ac_optarg ;;
1665 
1666   -site | --site | --sit)
1667     ac_prev=site ;;
1668   -site=* | --site=* | --sit=*)
1669     site=$ac_optarg ;;
1670 
1671   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1672     ac_prev=srcdir ;;
1673   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1674     srcdir=$ac_optarg ;;
1675 
1676   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1677   | --syscon | --sysco | --sysc | --sys | --sy)
1678     ac_prev=sysconfdir ;;
1679   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1680   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1681     sysconfdir=$ac_optarg ;;
1682 
1683   -target | --target | --targe | --targ | --tar | --ta | --t)
1684     ac_prev=target_alias ;;
1685   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1686     target_alias=$ac_optarg ;;
1687 
1688   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1689     verbose=yes ;;
1690 
1691   -version | --version | --versio | --versi | --vers | -V)
1692     ac_init_version=: ;;
1693 
1694   -with-* | --with-*)
1695     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1696     # Reject names that are not valid shell variable names.
1697     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1698       as_fn_error $? "invalid package name: $ac_useropt"
1699     ac_useropt_orig=$ac_useropt
1700     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1701     case $ac_user_opts in
1702       *"
1703 "with_$ac_useropt"
1704 "*) ;;
1705       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1706          ac_unrecognized_sep=', ';;
1707     esac
1708     eval with_$ac_useropt=\$ac_optarg ;;
1709 
1710   -without-* | --without-*)
1711     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1712     # Reject names that are not valid shell variable names.
1713     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1714       as_fn_error $? "invalid package name: $ac_useropt"
1715     ac_useropt_orig=$ac_useropt
1716     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1717     case $ac_user_opts in
1718       *"
1719 "with_$ac_useropt"
1720 "*) ;;
1721       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1722          ac_unrecognized_sep=', ';;
1723     esac
1724     eval with_$ac_useropt=no ;;
1725 
1726   --x)
1727     # Obsolete; use --with-x.
1728     with_x=yes ;;
1729 
1730   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1731   | --x-incl | --x-inc | --x-in | --x-i)
1732     ac_prev=x_includes ;;
1733   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1734   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1735     x_includes=$ac_optarg ;;
1736 
1737   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1738   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1739     ac_prev=x_libraries ;;
1740   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1741   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1742     x_libraries=$ac_optarg ;;
1743 
1744   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1745 Try \`$0 --help' for more information"
1746     ;;
1747 
1748   *=*)
1749     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1750     # Reject names that are not valid shell variable names.
1751     case $ac_envvar in #(
1752       '' | [0-9]* | *[!_$as_cr_alnum]* )
1753       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1754     esac
1755     eval $ac_envvar=\$ac_optarg
1756     export $ac_envvar ;;
1757 
1758   *)
1759     # FIXME: should be removed in autoconf 3.0.
1760     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1761     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1762       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1763     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1764     ;;
1765 
1766   esac
1767 done
1768 
1769 if test -n "$ac_prev"; then
1770   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1771   as_fn_error $? "missing argument to $ac_option"
1772 fi
1773 
1774 if test -n "$ac_unrecognized_opts"; then
1775   case $enable_option_checking in
1776     no) ;;
1777     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1778     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1779   esac
1780 fi
1781 
1782 # Check all directory arguments for consistency.
1783 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1784                 datadir sysconfdir sharedstatedir localstatedir includedir \
1785                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1786                 libdir localedir mandir runstatedir
1787 do
1788   eval ac_val=\$$ac_var
1789   # Remove trailing slashes.
1790   case $ac_val in
1791     */ )
1792       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1793       eval $ac_var=\$ac_val;;
1794   esac
1795   # Be sure to have absolute directory names.
1796   case $ac_val in
1797     [\\/$]* | ?:[\\/]* )  continue;;
1798     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1799   esac
1800   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1801 done
1802 
1803 # There might be people who depend on the old broken behavior: `$host'
1804 # used to hold the argument of --host etc.
1805 # FIXME: To remove some day.
1806 build=$build_alias
1807 host=$host_alias
1808 target=$target_alias
1809 
1810 # FIXME: To remove some day.
1811 if test "x$host_alias" != x; then
1812   if test "x$build_alias" = x; then
1813     cross_compiling=maybe
1814   elif test "x$build_alias" != "x$host_alias"; then
1815     cross_compiling=yes
1816   fi
1817 fi
1818 
1819 ac_tool_prefix=
1820 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1821 
1822 test "$silent" = yes && exec 6>/dev/null
1823 
1824 
1825 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1826 ac_ls_di=`ls -di .` &&
1827 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1828   as_fn_error $? "working directory cannot be determined"
1829 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1830   as_fn_error $? "pwd does not report name of working directory"
1831 
1832 
1833 # Find the source files, if location was not specified.
1834 if test -z "$srcdir"; then
1835   ac_srcdir_defaulted=yes
1836   # Try the directory containing this script, then the parent directory.
1837   ac_confdir=`$as_dirname -- "$as_myself" ||
1838 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1839          X"$as_myself" : 'X\(//\)[^/]' \| \
1840          X"$as_myself" : 'X\(//\)$' \| \
1841          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1842 $as_echo X"$as_myself" |
1843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1844             s//\1/
1845             q
1846           }
1847           /^X\(\/\/\)[^/].*/{
1848             s//\1/
1849             q
1850           }
1851           /^X\(\/\/\)$/{
1852             s//\1/
1853             q
1854           }
1855           /^X\(\/\).*/{
1856             s//\1/
1857             q
1858           }
1859           s/.*/./; q'`
1860   srcdir=$ac_confdir
1861   if test ! -r "$srcdir/$ac_unique_file"; then
1862     srcdir=..
1863   fi
1864 else
1865   ac_srcdir_defaulted=no
1866 fi
1867 if test ! -r "$srcdir/$ac_unique_file"; then
1868   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1869   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1870 fi
1871 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1872 ac_abs_confdir=`(
1873         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1874         pwd)`
1875 # When building in place, set srcdir=.
1876 if test "$ac_abs_confdir" = "$ac_pwd"; then
1877   srcdir=.
1878 fi
1879 # Remove unnecessary trailing slashes from srcdir.
1880 # Double slashes in file names in object file debugging info
1881 # mess up M-x gdb in Emacs.
1882 case $srcdir in
1883 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1884 esac
1885 for ac_var in $ac_precious_vars; do
1886   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1887   eval ac_env_${ac_var}_value=\$${ac_var}
1888   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1889   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1890 done
1891 
1892 #
1893 # Report the --help message.
1894 #
1895 if test "$ac_init_help" = "long"; then
1896   # Omit some internal or obsolete options to make the list less imposing.
1897   # This message is too long to be a string in the A/UX 3.1 sh.
1898   cat <<_ACEOF
1899 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1900 
1901 Usage: $0 [OPTION]... [VAR=VALUE]...
1902 
1903 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1904 VAR=VALUE.  See below for descriptions of some of the useful variables.
1905 
1906 Defaults for the options are specified in brackets.
1907 
1908 Configuration:
1909   -h, --help              display this help and exit
1910       --help=short        display options specific to this package
1911       --help=recursive    display the short help of all the included packages
1912   -V, --version           display version information and exit
1913   -q, --quiet, --silent   do not print \`checking ...' messages
1914       --cache-file=FILE   cache test results in FILE [disabled]
1915   -C, --config-cache      alias for \`--cache-file=config.cache'
1916   -n, --no-create         do not create output files
1917       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1918 
1919 Installation directories:
1920   --prefix=PREFIX         install architecture-independent files in PREFIX
1921                           [$ac_default_prefix]
1922   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1923                           [PREFIX]
1924 
1925 By default, \`make install' will install all the files in
1926 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1927 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1928 for instance \`--prefix=\$HOME'.
1929 
1930 For better control, use the options below.
1931 
1932 Fine tuning of the installation directories:
1933   --bindir=DIR            user executables [EPREFIX/bin]
1934   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1935   --libexecdir=DIR        program executables [EPREFIX/libexec]
1936   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1937   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1938   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1939   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
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   --enable-headless-only  only build headless (no GUI) support [disabled]
1983   --enable-full-docs      build complete documentation [enabled if all tools
1984                           found]
1985   --disable-unlimited-crypto
1986                           Disable unlimited crypto policy [enabled]
1987   --disable-keep-packaged-modules
1988                           Do not keep packaged modules in jdk image [enable]
1989   --enable-static-build   enable static library build [disabled]
1990   --disable-warnings-as-errors
1991                           do not consider native warnings to be an error
1992                           [enabled]
1993   --enable-debug-symbols  Deprecated. Option is kept for backwards
1994                           compatibility and is ignored
1995   --enable-zip-debug-info Deprecated. Option is kept for backwards
1996                           compatibility and is ignored
1997   --enable-native-coverage
1998                           enable native compilation with code coverage
1999                           data[disabled]
2000   --enable-asan           enable AddressSanitizer if possible [disabled]
2001   --enable-dtrace[=yes/no/auto]
2002                           enable dtrace. Default is auto, where dtrace is
2003                           enabled if all dependencies are present.
2004   --enable-aot[=yes/no/auto]
2005                           enable ahead of time compilation feature. Default is
2006                           auto, where aot is enabled if all dependencies are
2007                           present.
2008   --enable-cds[=yes/no]   enable class data sharing feature in non-minimal VM.
2009                           Default is yes.
2010   --disable-hotspot-gtest Disables building of the Hotspot unit tests
2011                           [enabled]
2012   --disable-freetype-bundling
2013                           disable bundling of the freetype library with the
2014                           build result [enabled on Windows or when using
2015                           --with-freetype, disabled otherwise]
2016   --enable-libffi-bundling
2017                           enable bundling of libffi.so to make the built JDK
2018                           runnable on more systems
2019   --enable-jtreg-failure-handler
2020                           forces build of the jtreg failure handler to be
2021                           enabled, missing dependencies become fatal errors.
2022                           Default is auto, where the failure handler is built
2023                           if all dependencies are present and otherwise just
2024                           disabled.
2025   --disable-generate-classlist
2026                           forces enabling or disabling of the generation of a
2027                           CDS classlist at build time. Default is to generate
2028                           it when either the server or client JVMs are built
2029                           and enable-cds is true.
2030   --enable-sjavac         use sjavac to do fast incremental compiles
2031                           [disabled]
2032   --disable-javac-server  disable javac server [enabled]
2033   --enable-icecc          enable distribted compilation of native code using
2034                           icecc/icecream [disabled]
2035   --disable-precompiled-headers
2036                           disable using precompiled headers when compiling C++
2037                           [enabled]
2038   --enable-ccache         enable using ccache to speed up recompilations
2039                           [disabled]
2040 
2041 Optional Packages:
2042   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2043   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2044   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2045                           support it), e.g. --with-target-bits=32 [guessed]
2046   --with-custom-make-dir  Deprecated. Option is kept for backwards
2047                           compatibility and is ignored
2048   --with-jdk-variant      JDK variant to build (normal) [normal]
2049   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2050                           optimized) [release]
2051   --with-jvm-variants     JVM variants (separated by commas) to build
2052                           (server,client,minimal,core,zero,custom) [server]
2053   --with-cpu-port         specify sources to use for Hotspot 64-bit ARM port
2054                           (arm64,aarch64) [aarch64]
2055   --with-devkit           use this devkit for compilers, tools and resources
2056   --with-sys-root         alias for --with-sysroot for backwards compatability
2057   --with-sysroot          use this directory as sysroot
2058   --with-tools-dir        alias for --with-toolchain-path for backwards
2059                           compatibility
2060   --with-toolchain-path   prepend these directories when searching for
2061                           toolchain binaries (compilers etc)
2062   --with-extra-path       prepend these directories to the default path
2063   --with-sdk-name         use the platform SDK of the given name. [macosx]
2064   --with-conf-name        use this as the name of the configuration [generated
2065                           from important configuration options]
2066   --with-output-sync      set make output sync type if supported by make.
2067                           [recurse]
2068   --with-default-make-target
2069                           set the default make target [exploded-image]
2070   --with-cacerts-file     specify alternative cacerts file
2071   --with-copyright-year   Set copyright year value for build [current year]
2072   --with-milestone        Deprecated. Option is kept for backwards
2073                           compatibility and is ignored
2074   --with-update-version   Deprecated. Option is kept for backwards
2075                           compatibility and is ignored
2076   --with-user-release-suffix
2077                           Deprecated. Option is kept for backwards
2078                           compatibility and is ignored
2079   --with-build-number     Deprecated. Option is kept for backwards
2080                           compatibility and is ignored
2081   --with-version-major    Deprecated. Option is kept for backwards
2082                           compatibility and is ignored
2083   --with-version-minor    Deprecated. Option is kept for backwards
2084                           compatibility and is ignored
2085   --with-version-security Deprecated. Option is kept for backwards
2086                           compatibility and is ignored
2087   --with-vendor-name      Set vendor name [not specified]
2088   --with-version-string   Set version string [calculated]
2089   --with-version-pre      Set the base part of the version 'PRE' field
2090                           (pre-release identifier) ['internal']
2091   --with-version-opt      Set version 'OPT' field (build metadata)
2092                           [<timestamp>.<user>.<dirname>]
2093   --with-version-build    Set version 'BUILD' field (build number) [not
2094                           specified]
2095   --with-version-feature  Set version 'FEATURE' field (first number) [current
2096                           source value]
2097   --with-version-interim  Set version 'INTERIM' field (second number) [current
2098                           source value]
2099   --with-version-update   Set version 'UPDATE' field (third number) [current
2100                           source value]
2101   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2102                           specified]
2103   --with-version-date     Set version date [current source value]
2104   --with-vendor-version-string
2105                           Set vendor version string [not specified]
2106   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2107   --with-build-jdk        path to JDK of same version as is being built[the
2108                           newly built JDK]
2109   --with-import-modules   import a set of prebuilt modules either as a zip
2110                           file or an exploded directory
2111   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2112                           to show possible values [platform dependent]
2113   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2114   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2115   --with-extra-ldflags    extra flags to be used when linking jdk
2116   --with-toolchain-version
2117                           the version of the toolchain to look for, use
2118                           '--help' to show possible values [platform
2119                           dependent]
2120   --with-build-devkit     Devkit to use for the build platform toolchain
2121   --with-jtreg            Regression Test Harness [probed]
2122   --with-jib              Jib dependency management tool [not used]
2123   --with-abi-profile      specify ABI profile for ARM builds
2124                           (arm-vfp-sflt,arm-vfp-hflt,arm-sflt,
2125                           armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64)
2126                           [toolchain dependent]
2127   --with-macosx-version-max
2128                           error on use of newer functionality. [macosx]
2129   --with-native-debug-symbols
2130                           set the native debug symbol configuration (none,
2131                           internal, external, zipped) [varying]
2132   --with-stdc++lib=<static>,<dynamic>,<default>
2133                           force linking of the C++ runtime on Linux to either
2134                           static or dynamic, default is static with dynamic as
2135                           fallback
2136   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2137                           (Windows only) [probed]
2138   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2139                           (Windows only) [probed]
2140   --with-x                use the X Window System
2141   --with-cups             specify prefix directory for the cups package
2142                           (expecting the headers under PATH/include)
2143   --with-cups-include     specify directory for the cups include files
2144   --with-fontconfig       specify prefix directory for the fontconfig package
2145                           (expecting the headers under PATH/include)
2146   --with-fontconfig-include
2147                           specify directory for the fontconfig include files
2148   --with-freetype         specify prefix directory for the freetype package
2149                           (expecting the libraries under PATH/lib and the
2150                           headers under PATH/include)
2151   --with-freetype-include specify directory for the freetype include files
2152   --with-freetype-lib     specify directory for the freetype library
2153   --with-freetype-src     specify directory with freetype sources to
2154                           automatically build the library (experimental,
2155                           Windows-only)
2156   --with-freetype-license if bundling freetype, also bundle this license file
2157   --with-alsa             specify prefix directory for the alsa package
2158                           (expecting the libraries under PATH/lib and the
2159                           headers under PATH/include)
2160   --with-alsa-include     specify directory for the alsa include files
2161   --with-alsa-lib         specify directory for the alsa library
2162   --with-libffi           specify prefix directory for the libffi package
2163                           (expecting the libraries under PATH/lib and the
2164                           headers under PATH/include)
2165   --with-libffi-include   specify directory for the libffi include files
2166   --with-libffi-lib       specify directory for the libffi library
2167   --with-libjpeg          use libjpeg from build system or OpenJDK source
2168                           (system, bundled) [bundled]
2169   --with-giflib           use giflib from build system or OpenJDK source
2170                           (system, bundled) [bundled]
2171   --with-libpng           use libpng from build system or OpenJDK source
2172                           (system, bundled) [bundled]
2173   --with-zlib             use zlib from build system or OpenJDK source
2174                           (system, bundled) [bundled]
2175   --with-lcms             use lcms2 from build system or OpenJDK source
2176                           (system, bundled) [bundled]
2177   --with-dxsdk            Deprecated. Option is kept for backwards
2178                           compatibility and is ignored
2179   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2180                           compatibility and is ignored
2181   --with-dxsdk-include    Deprecated. Option is kept for backwards
2182                           compatibility and is ignored
2183   --with-jvm-features     additional JVM features to enable (separated by
2184                           comma), use '--help' to show possible values [none]
2185   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2186                           compatibility and is ignored
2187   --with-num-cores        number of cores in the build system, e.g.
2188                           --with-num-cores=8 [probed]
2189   --with-memory-size      memory (in MB) available in the build system, e.g.
2190                           --with-memory-size=1024 [probed]
2191   --with-jobs             number of parallel jobs to let make run [calculated
2192                           based on cores and memory]
2193   --with-test-jobs        number of parallel tests jobs to run [based on build
2194                           jobs]
2195   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2196                           invocations of boot JDK, overriding the default
2197                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2198                           -enableassertions"
2199   --with-sjavac-server-java
2200                           use this java binary for running the sjavac
2201                           background server [Boot JDK java]
2202   --with-ccache-dir       where to store ccache files [~/.ccache]
2203 
2204 Some influential environment variables:
2205   BASENAME    Override default value for BASENAME
2206   BASH        Override default value for BASH
2207   CAT         Override default value for CAT
2208   CHMOD       Override default value for CHMOD
2209   CMP         Override default value for CMP
2210   COMM        Override default value for COMM
2211   CP          Override default value for CP
2212   CUT         Override default value for CUT
2213   DATE        Override default value for DATE
2214   DIFF        Override default value for DIFF
2215   DIRNAME     Override default value for DIRNAME
2216   ECHO        Override default value for ECHO
2217   EXPR        Override default value for EXPR
2218   FILE        Override default value for FILE
2219   FIND        Override default value for FIND
2220   HEAD        Override default value for HEAD
2221   GUNZIP      Override default value for GUNZIP
2222   GZIP        Override default value for GZIP
2223   LN          Override default value for LN
2224   LS          Override default value for LS
2225   MKDIR       Override default value for MKDIR
2226   MKTEMP      Override default value for MKTEMP
2227   MV          Override default value for MV
2228   NAWK        Override default value for NAWK
2229   PRINTF      Override default value for PRINTF
2230   RM          Override default value for RM
2231   RMDIR       Override default value for RMDIR
2232   SH          Override default value for SH
2233   SORT        Override default value for SORT
2234   TAIL        Override default value for TAIL
2235   TAR         Override default value for TAR
2236   TEE         Override default value for TEE
2237   TOUCH       Override default value for TOUCH
2238   TR          Override default value for TR
2239   UNAME       Override default value for UNAME
2240   UNIQ        Override default value for UNIQ
2241   WC          Override default value for WC
2242   WHICH       Override default value for WHICH
2243   XARGS       Override default value for XARGS
2244   AWK         Override default value for AWK
2245   GREP        Override default value for GREP
2246   EGREP       Override default value for EGREP
2247   FGREP       Override default value for FGREP
2248   SED         Override default value for SED
2249   CYGPATH     Override default value for CYGPATH
2250   READLINK    Override default value for READLINK
2251   DF          Override default value for DF
2252   CPIO        Override default value for CPIO
2253   NICE        Override default value for NICE
2254   PANDOC      Override default value for PANDOC
2255   MAKE        Override default value for MAKE
2256   UNZIP       Override default value for UNZIP
2257   ZIPEXE      Override default value for ZIPEXE
2258   LDD         Override default value for LDD
2259   READELF     Override default value for READELF
2260   DOT         Override default value for DOT
2261   HG          Override default value for HG
2262   STAT        Override default value for STAT
2263   TIME        Override default value for TIME
2264   FLOCK       Override default value for FLOCK
2265   DTRACE      Override default value for DTRACE
2266   PATCH       Override default value for PATCH
2267   DSYMUTIL    Override default value for DSYMUTIL
2268   XATTR       Override default value for XATTR
2269   CODESIGN    Override default value for CODESIGN
2270   SETFILE     Override default value for SETFILE
2271   PKG_CONFIG  path to pkg-config utility
2272   JAVA        Override default value for JAVA
2273   JAVAC       Override default value for JAVAC
2274   JAVAH       Override default value for JAVAH
2275   JAVADOC     Override default value for JAVADOC
2276   JAR         Override default value for JAR
2277   JARSIGNER   Override default value for JARSIGNER
2278   CC          C compiler command
2279   CFLAGS      C compiler flags
2280   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2281               nonstandard directory <lib dir>
2282   LIBS        libraries to pass to the linker, e.g. -l<library>
2283   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2284               you have headers in a nonstandard directory <include dir>
2285   CXX         C++ compiler command
2286   CXXFLAGS    C++ compiler flags
2287   CPP         C preprocessor
2288   CXXCPP      C++ preprocessor
2289   AS          Override default value for AS
2290   AR          Override default value for AR
2291   LIPO        Override default value for LIPO
2292   OTOOL       Override default value for OTOOL
2293   INSTALL_NAME_TOOL
2294               Override default value for INSTALL_NAME_TOOL
2295   STRIP       Override default value for STRIP
2296   NM          Override default value for NM
2297   GNM         Override default value for GNM
2298   OBJCOPY     Override default value for OBJCOPY
2299   OBJDUMP     Override default value for OBJDUMP
2300   BUILD_CC    Override default value for BUILD_CC
2301   BUILD_CXX   Override default value for BUILD_CXX
2302   BUILD_NM    Override default value for BUILD_NM
2303   BUILD_AR    Override default value for BUILD_AR
2304   BUILD_OBJCOPY
2305               Override default value for BUILD_OBJCOPY
2306   BUILD_STRIP Override default value for BUILD_STRIP
2307   JTREGEXE    Override default value for JTREGEXE
2308   XMKMF       Path to xmkmf, Makefile generator for X Window System
2309   FREETYPE_CFLAGS
2310               C compiler flags for FREETYPE, overriding pkg-config
2311   FREETYPE_LIBS
2312               linker flags for FREETYPE, overriding pkg-config
2313   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2314   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2315   LIBFFI_CFLAGS
2316               C compiler flags for LIBFFI, overriding pkg-config
2317   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2318   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2319   PNG_LIBS    linker flags for PNG, overriding pkg-config
2320   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2321   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2322   ICECC_CMD   Override default value for ICECC_CMD
2323   ICECC_CREATE_ENV
2324               Override default value for ICECC_CREATE_ENV
2325   ICECC_WRAPPER
2326               Override default value for ICECC_WRAPPER
2327   CCACHE      Override default value for CCACHE
2328 
2329 Use these variables to override the choices made by `configure' or to help
2330 it to find libraries and programs with nonstandard names/locations.
2331 
2332 Report bugs to <build-dev@openjdk.java.net>.
2333 OpenJDK home page: <http://openjdk.java.net>.
2334 _ACEOF
2335 ac_status=$?
2336 fi
2337 
2338 if test "$ac_init_help" = "recursive"; then
2339   # If there are subdirs, report their specific --help.
2340   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2341     test -d "$ac_dir" ||
2342       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2343       continue
2344     ac_builddir=.
2345 
2346 case "$ac_dir" in
2347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2348 *)
2349   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2350   # A ".." for each directory in $ac_dir_suffix.
2351   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2352   case $ac_top_builddir_sub in
2353   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2354   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2355   esac ;;
2356 esac
2357 ac_abs_top_builddir=$ac_pwd
2358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2359 # for backward compatibility:
2360 ac_top_builddir=$ac_top_build_prefix
2361 
2362 case $srcdir in
2363   .)  # We are building in place.
2364     ac_srcdir=.
2365     ac_top_srcdir=$ac_top_builddir_sub
2366     ac_abs_top_srcdir=$ac_pwd ;;
2367   [\\/]* | ?:[\\/]* )  # Absolute name.
2368     ac_srcdir=$srcdir$ac_dir_suffix;
2369     ac_top_srcdir=$srcdir
2370     ac_abs_top_srcdir=$srcdir ;;
2371   *) # Relative name.
2372     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2373     ac_top_srcdir=$ac_top_build_prefix$srcdir
2374     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2375 esac
2376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2377 
2378     cd "$ac_dir" || { ac_status=$?; continue; }
2379     # Check for guested configure.
2380     if test -f "$ac_srcdir/configure.gnu"; then
2381       echo &&
2382       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2383     elif test -f "$ac_srcdir/configure"; then
2384       echo &&
2385       $SHELL "$ac_srcdir/configure" --help=recursive
2386     else
2387       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2388     fi || ac_status=$?
2389     cd "$ac_pwd" || { ac_status=$?; break; }
2390   done
2391 fi
2392 
2393 test -n "$ac_init_help" && exit $ac_status
2394 if $ac_init_version; then
2395   cat <<\_ACEOF
2396 OpenJDK configure jdk9
2397 generated by GNU Autoconf 2.69
2398 
2399 Copyright (C) 2012 Free Software Foundation, Inc.
2400 This configure script is free software; the Free Software Foundation
2401 gives unlimited permission to copy, distribute and modify it.
2402 _ACEOF
2403   exit
2404 fi
2405 
2406 ## ------------------------ ##
2407 ## Autoconf initialization. ##
2408 ## ------------------------ ##
2409 
2410 # ac_fn_c_try_compile LINENO
2411 # --------------------------
2412 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2413 ac_fn_c_try_compile ()
2414 {
2415   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416   rm -f conftest.$ac_objext
2417   if { { ac_try="$ac_compile"
2418 case "(($ac_try" in
2419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420   *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424   (eval "$ac_compile") 2>conftest.err
2425   ac_status=$?
2426   if test -s conftest.err; then
2427     grep -v '^ *+' conftest.err >conftest.er1
2428     cat conftest.er1 >&5
2429     mv -f conftest.er1 conftest.err
2430   fi
2431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432   test $ac_status = 0; } && {
2433          test -z "$ac_c_werror_flag" ||
2434          test ! -s conftest.err
2435        } && test -s conftest.$ac_objext; then :
2436   ac_retval=0
2437 else
2438   $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440 
2441         ac_retval=1
2442 fi
2443   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444   as_fn_set_status $ac_retval
2445 
2446 } # ac_fn_c_try_compile
2447 
2448 # ac_fn_cxx_try_compile LINENO
2449 # ----------------------------
2450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2451 ac_fn_cxx_try_compile ()
2452 {
2453   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454   rm -f conftest.$ac_objext
2455   if { { ac_try="$ac_compile"
2456 case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2461 $as_echo "$ac_try_echo"; } >&5
2462   (eval "$ac_compile") 2>conftest.err
2463   ac_status=$?
2464   if test -s conftest.err; then
2465     grep -v '^ *+' conftest.err >conftest.er1
2466     cat conftest.er1 >&5
2467     mv -f conftest.er1 conftest.err
2468   fi
2469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2470   test $ac_status = 0; } && {
2471          test -z "$ac_cxx_werror_flag" ||
2472          test ! -s conftest.err
2473        } && test -s conftest.$ac_objext; then :
2474   ac_retval=0
2475 else
2476   $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478 
2479         ac_retval=1
2480 fi
2481   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482   as_fn_set_status $ac_retval
2483 
2484 } # ac_fn_cxx_try_compile
2485 
2486 # ac_fn_c_try_cpp LINENO
2487 # ----------------------
2488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2489 ac_fn_c_try_cpp ()
2490 {
2491   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492   if { { ac_try="$ac_cpp conftest.$ac_ext"
2493 case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2500   ac_status=$?
2501   if test -s conftest.err; then
2502     grep -v '^ *+' conftest.err >conftest.er1
2503     cat conftest.er1 >&5
2504     mv -f conftest.er1 conftest.err
2505   fi
2506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507   test $ac_status = 0; } > conftest.i && {
2508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2509          test ! -s conftest.err
2510        }; then :
2511   ac_retval=0
2512 else
2513   $as_echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515 
2516     ac_retval=1
2517 fi
2518   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519   as_fn_set_status $ac_retval
2520 
2521 } # ac_fn_c_try_cpp
2522 
2523 # ac_fn_cxx_try_cpp LINENO
2524 # ------------------------
2525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_cpp ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   if { { ac_try="$ac_cpp conftest.$ac_ext"
2530 case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2537   ac_status=$?
2538   if test -s conftest.err; then
2539     grep -v '^ *+' conftest.err >conftest.er1
2540     cat conftest.er1 >&5
2541     mv -f conftest.er1 conftest.err
2542   fi
2543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544   test $ac_status = 0; } > conftest.i && {
2545          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2546          test ! -s conftest.err
2547        }; then :
2548   ac_retval=0
2549 else
2550   $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552 
2553     ac_retval=1
2554 fi
2555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556   as_fn_set_status $ac_retval
2557 
2558 } # ac_fn_cxx_try_cpp
2559 
2560 # ac_fn_c_try_link LINENO
2561 # -----------------------
2562 # Try to link conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_c_try_link ()
2564 {
2565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566   rm -f conftest.$ac_objext conftest$ac_exeext
2567   if { { ac_try="$ac_link"
2568 case "(($ac_try" in
2569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570   *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574   (eval "$ac_link") 2>conftest.err
2575   ac_status=$?
2576   if test -s conftest.err; then
2577     grep -v '^ *+' conftest.err >conftest.er1
2578     cat conftest.er1 >&5
2579     mv -f conftest.er1 conftest.err
2580   fi
2581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582   test $ac_status = 0; } && {
2583          test -z "$ac_c_werror_flag" ||
2584          test ! -s conftest.err
2585        } && test -s conftest$ac_exeext && {
2586          test "$cross_compiling" = yes ||
2587          test -x conftest$ac_exeext
2588        }; then :
2589   ac_retval=0
2590 else
2591   $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593 
2594         ac_retval=1
2595 fi
2596   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598   # interfere with the next link command; also delete a directory that is
2599   # left behind by Apple's compiler.  We do this before executing the actions.
2600   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602   as_fn_set_status $ac_retval
2603 
2604 } # ac_fn_c_try_link
2605 
2606 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2607 # ---------------------------------------------------------
2608 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2609 # the include files in INCLUDES and setting the cache variable VAR
2610 # accordingly.
2611 ac_fn_cxx_check_header_mongrel ()
2612 {
2613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614   if eval \${$3+:} false; then :
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2616 $as_echo_n "checking for $2... " >&6; }
2617 if eval \${$3+:} false; then :
2618   $as_echo_n "(cached) " >&6
2619 fi
2620 eval ac_res=\$$3
2621                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2622 $as_echo "$ac_res" >&6; }
2623 else
2624   # Is the header compilable?
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2626 $as_echo_n "checking $2 usability... " >&6; }
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h.  */
2629 $4
2630 #include <$2>
2631 _ACEOF
2632 if ac_fn_cxx_try_compile "$LINENO"; then :
2633   ac_header_compiler=yes
2634 else
2635   ac_header_compiler=no
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2639 $as_echo "$ac_header_compiler" >&6; }
2640 
2641 # Is the header present?
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2643 $as_echo_n "checking $2 presence... " >&6; }
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h.  */
2646 #include <$2>
2647 _ACEOF
2648 if ac_fn_cxx_try_cpp "$LINENO"; then :
2649   ac_header_preproc=yes
2650 else
2651   ac_header_preproc=no
2652 fi
2653 rm -f conftest.err conftest.i conftest.$ac_ext
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2655 $as_echo "$ac_header_preproc" >&6; }
2656 
2657 # So?  What about this header?
2658 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2659   yes:no: )
2660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2661 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2662     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2663 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2664     ;;
2665   no:yes:* )
2666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2667 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2668     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2669 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2671 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2672     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2673 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2675 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2676 ( $as_echo "## ----------------------------------------- ##
2677 ## Report this to build-dev@openjdk.java.net ##
2678 ## ----------------------------------------- ##"
2679      ) | sed "s/^/$as_me: WARNING:     /" >&2
2680     ;;
2681 esac
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \${$3+:} false; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   eval "$3=\$ac_header_compiler"
2688 fi
2689 eval ac_res=\$$3
2690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 fi
2693   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694 
2695 } # ac_fn_cxx_check_header_mongrel
2696 
2697 # ac_fn_cxx_try_run LINENO
2698 # ------------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2700 # that executables *can* be run.
2701 ac_fn_cxx_try_run ()
2702 {
2703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704   if { { ac_try="$ac_link"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711   (eval "$ac_link") 2>&5
2712   ac_status=$?
2713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2715   { { case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721   (eval "$ac_try") 2>&5
2722   ac_status=$?
2723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724   test $ac_status = 0; }; }; then :
2725   ac_retval=0
2726 else
2727   $as_echo "$as_me: program exited with status $ac_status" >&5
2728        $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730 
2731        ac_retval=$ac_status
2732 fi
2733   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735   as_fn_set_status $ac_retval
2736 
2737 } # ac_fn_cxx_try_run
2738 
2739 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2740 # ---------------------------------------------------------
2741 # Tests whether HEADER exists and can be compiled using the include files in
2742 # INCLUDES, setting the cache variable VAR accordingly.
2743 ac_fn_cxx_check_header_compile ()
2744 {
2745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \${$3+:} false; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h.  */
2753 $4
2754 #include <$2>
2755 _ACEOF
2756 if ac_fn_cxx_try_compile "$LINENO"; then :
2757   eval "$3=yes"
2758 else
2759   eval "$3=no"
2760 fi
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 fi
2763 eval ac_res=\$$3
2764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767 
2768 } # ac_fn_cxx_check_header_compile
2769 
2770 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2771 # ----------------------------------------------
2772 # Tries to find the compile-time value of EXPR in a program that includes
2773 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2774 # computed
2775 ac_fn_cxx_compute_int ()
2776 {
2777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778   if test "$cross_compiling" = yes; then
2779     # Depending upon the size, compute the lo and hi bounds.
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h.  */
2782 $4
2783 int
2784 main ()
2785 {
2786 static int test_array [1 - 2 * !(($2) >= 0)];
2787 test_array [0] = 0;
2788 return test_array [0];
2789 
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_cxx_try_compile "$LINENO"; then :
2795   ac_lo=0 ac_mid=0
2796   while :; do
2797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h.  */
2799 $4
2800 int
2801 main ()
2802 {
2803 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2804 test_array [0] = 0;
2805 return test_array [0];
2806 
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_cxx_try_compile "$LINENO"; then :
2812   ac_hi=$ac_mid; break
2813 else
2814   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2815                         if test $ac_lo -le $ac_mid; then
2816                           ac_lo= ac_hi=
2817                           break
2818                         fi
2819                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822   done
2823 else
2824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h.  */
2826 $4
2827 int
2828 main ()
2829 {
2830 static int test_array [1 - 2 * !(($2) < 0)];
2831 test_array [0] = 0;
2832 return test_array [0];
2833 
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_cxx_try_compile "$LINENO"; then :
2839   ac_hi=-1 ac_mid=-1
2840   while :; do
2841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h.  */
2843 $4
2844 int
2845 main ()
2846 {
2847 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2848 test_array [0] = 0;
2849 return test_array [0];
2850 
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_cxx_try_compile "$LINENO"; then :
2856   ac_lo=$ac_mid; break
2857 else
2858   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859                         if test $ac_mid -le $ac_hi; then
2860                           ac_lo= ac_hi=
2861                           break
2862                         fi
2863                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866   done
2867 else
2868   ac_lo= ac_hi=
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 # Binary search between lo and hi bounds.
2874 while test "x$ac_lo" != "x$ac_hi"; do
2875   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h.  */
2878 $4
2879 int
2880 main ()
2881 {
2882 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2883 test_array [0] = 0;
2884 return test_array [0];
2885 
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 if ac_fn_cxx_try_compile "$LINENO"; then :
2891   ac_hi=$ac_mid
2892 else
2893   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894 fi
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897 case $ac_lo in #((
2898 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899 '') ac_retval=1 ;;
2900 esac
2901   else
2902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h.  */
2904 $4
2905 static long int longval () { return $2; }
2906 static unsigned long int ulongval () { return $2; }
2907 #include <stdio.h>
2908 #include <stdlib.h>
2909 int
2910 main ()
2911 {
2912 
2913   FILE *f = fopen ("conftest.val", "w");
2914   if (! f)
2915     return 1;
2916   if (($2) < 0)
2917     {
2918       long int i = longval ();
2919       if (i != ($2))
2920         return 1;
2921       fprintf (f, "%ld", i);
2922     }
2923   else
2924     {
2925       unsigned long int i = ulongval ();
2926       if (i != ($2))
2927         return 1;
2928       fprintf (f, "%lu", i);
2929     }
2930   /* Do not output a trailing newline, as this causes \r\n confusion
2931      on some platforms.  */
2932   return ferror (f) || fclose (f) != 0;
2933 
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_cxx_try_run "$LINENO"; then :
2939   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940 else
2941   ac_retval=1
2942 fi
2943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944   conftest.$ac_objext conftest.beam conftest.$ac_ext
2945 rm -f conftest.val
2946 
2947   fi
2948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949   as_fn_set_status $ac_retval
2950 
2951 } # ac_fn_cxx_compute_int
2952 
2953 # ac_fn_cxx_try_link LINENO
2954 # -------------------------
2955 # Try to link conftest.$ac_ext, and return whether this succeeded.
2956 ac_fn_cxx_try_link ()
2957 {
2958   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2959   rm -f conftest.$ac_objext conftest$ac_exeext
2960   if { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967   (eval "$ac_link") 2>conftest.err
2968   ac_status=$?
2969   if test -s conftest.err; then
2970     grep -v '^ *+' conftest.err >conftest.er1
2971     cat conftest.er1 >&5
2972     mv -f conftest.er1 conftest.err
2973   fi
2974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975   test $ac_status = 0; } && {
2976          test -z "$ac_cxx_werror_flag" ||
2977          test ! -s conftest.err
2978        } && test -s conftest$ac_exeext && {
2979          test "$cross_compiling" = yes ||
2980          test -x conftest$ac_exeext
2981        }; then :
2982   ac_retval=0
2983 else
2984   $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986 
2987         ac_retval=1
2988 fi
2989   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2990   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2991   # interfere with the next link command; also delete a directory that is
2992   # left behind by Apple's compiler.  We do this before executing the actions.
2993   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2995   as_fn_set_status $ac_retval
2996 
2997 } # ac_fn_cxx_try_link
2998 
2999 # ac_fn_cxx_check_func LINENO FUNC VAR
3000 # ------------------------------------
3001 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3002 ac_fn_cxx_check_func ()
3003 {
3004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3006 $as_echo_n "checking for $2... " >&6; }
3007 if eval \${$3+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3014 #define $2 innocuous_$2
3015 
3016 /* System header to define __stub macros and hopefully few prototypes,
3017     which can conflict with char $2 (); below.
3018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019     <limits.h> exists even on freestanding compilers.  */
3020 
3021 #ifdef __STDC__
3022 # include <limits.h>
3023 #else
3024 # include <assert.h>
3025 #endif
3026 
3027 #undef $2
3028 
3029 /* Override any GCC internal prototype to avoid an error.
3030    Use char because int might match the return type of a GCC
3031    builtin and then its argument prototype would still apply.  */
3032 #ifdef __cplusplus
3033 extern "C"
3034 #endif
3035 char $2 ();
3036 /* The GNU C library defines this for functions which it implements
3037     to always fail with ENOSYS.  Some functions are actually named
3038     something starting with __ and the normal name is an alias.  */
3039 #if defined __stub_$2 || defined __stub___$2
3040 choke me
3041 #endif
3042 
3043 int
3044 main ()
3045 {
3046 return $2 ();
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 if ac_fn_cxx_try_link "$LINENO"; then :
3052   eval "$3=yes"
3053 else
3054   eval "$3=no"
3055 fi
3056 rm -f core conftest.err conftest.$ac_objext \
3057     conftest$ac_exeext conftest.$ac_ext
3058 fi
3059 eval ac_res=\$$3
3060                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3061 $as_echo "$ac_res" >&6; }
3062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3063 
3064 } # ac_fn_cxx_check_func
3065 
3066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3067 # -------------------------------------------------------
3068 # Tests whether HEADER exists and can be compiled using the include files in
3069 # INCLUDES, setting the cache variable VAR accordingly.
3070 ac_fn_c_check_header_compile ()
3071 {
3072   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3074 $as_echo_n "checking for $2... " >&6; }
3075 if eval \${$3+:} false; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h.  */
3080 $4
3081 #include <$2>
3082 _ACEOF
3083 if ac_fn_c_try_compile "$LINENO"; then :
3084   eval "$3=yes"
3085 else
3086   eval "$3=no"
3087 fi
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090 eval ac_res=\$$3
3091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3092 $as_echo "$ac_res" >&6; }
3093   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3094 
3095 } # ac_fn_c_check_header_compile
3096 cat >config.log <<_ACEOF
3097 This file contains any messages produced by compilers while
3098 running configure, to aid debugging if configure makes a mistake.
3099 
3100 It was created by OpenJDK $as_me jdk9, which was
3101 generated by GNU Autoconf 2.69.  Invocation command line was
3102 
3103   $ $0 $@
3104 
3105 _ACEOF
3106 exec 5>>config.log
3107 {
3108 cat <<_ASUNAME
3109 ## --------- ##
3110 ## Platform. ##
3111 ## --------- ##
3112 
3113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3118 
3119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3120 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3121 
3122 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3123 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3125 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3126 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3127 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3128 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3129 
3130 _ASUNAME
3131 
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     $as_echo "PATH: $as_dir"
3138   done
3139 IFS=$as_save_IFS
3140 
3141 } >&5
3142 
3143 cat >&5 <<_ACEOF
3144 
3145 
3146 ## ----------- ##
3147 ## Core tests. ##
3148 ## ----------- ##
3149 
3150 _ACEOF
3151 
3152 
3153 # Keep a trace of the command line.
3154 # Strip out --no-create and --no-recursion so they do not pile up.
3155 # Strip out --silent because we don't want to record it for future runs.
3156 # Also quote any args containing shell meta-characters.
3157 # Make two passes to allow for proper duplicate-argument suppression.
3158 ac_configure_args=
3159 ac_configure_args0=
3160 ac_configure_args1=
3161 ac_must_keep_next=false
3162 for ac_pass in 1 2
3163 do
3164   for ac_arg
3165   do
3166     case $ac_arg in
3167     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3168     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3169     | -silent | --silent | --silen | --sile | --sil)
3170       continue ;;
3171     *\'*)
3172       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3173     esac
3174     case $ac_pass in
3175     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3176     2)
3177       as_fn_append ac_configure_args1 " '$ac_arg'"
3178       if test $ac_must_keep_next = true; then
3179         ac_must_keep_next=false # Got value, back to normal.
3180       else
3181         case $ac_arg in
3182           *=* | --config-cache | -C | -disable-* | --disable-* \
3183           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3184           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3185           | -with-* | --with-* | -without-* | --without-* | --x)
3186             case "$ac_configure_args0 " in
3187               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3188             esac
3189             ;;
3190           -* ) ac_must_keep_next=true ;;
3191         esac
3192       fi
3193       as_fn_append ac_configure_args " '$ac_arg'"
3194       ;;
3195     esac
3196   done
3197 done
3198 { ac_configure_args0=; unset ac_configure_args0;}
3199 { ac_configure_args1=; unset ac_configure_args1;}
3200 
3201 # When interrupted or exit'd, cleanup temporary files, and complete
3202 # config.log.  We remove comments because anyway the quotes in there
3203 # would cause problems or look ugly.
3204 # WARNING: Use '\'' to represent an apostrophe within the trap.
3205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3206 trap 'exit_status=$?
3207   # Save into config.log some information that might help in debugging.
3208   {
3209     echo
3210 
3211     $as_echo "## ---------------- ##
3212 ## Cache variables. ##
3213 ## ---------------- ##"
3214     echo
3215     # The following way of writing the cache mishandles newlines in values,
3216 (
3217   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3218     eval ac_val=\$$ac_var
3219     case $ac_val in #(
3220     *${as_nl}*)
3221       case $ac_var in #(
3222       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3223 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3224       esac
3225       case $ac_var in #(
3226       _ | IFS | as_nl) ;; #(
3227       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3228       *) { eval $ac_var=; unset $ac_var;} ;;
3229       esac ;;
3230     esac
3231   done
3232   (set) 2>&1 |
3233     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3234     *${as_nl}ac_space=\ *)
3235       sed -n \
3236         "s/'\''/'\''\\\\'\'''\''/g;
3237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3238       ;; #(
3239     *)
3240       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3241       ;;
3242     esac |
3243     sort
3244 )
3245     echo
3246 
3247     $as_echo "## ----------------- ##
3248 ## Output variables. ##
3249 ## ----------------- ##"
3250     echo
3251     for ac_var in $ac_subst_vars
3252     do
3253       eval ac_val=\$$ac_var
3254       case $ac_val in
3255       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256       esac
3257       $as_echo "$ac_var='\''$ac_val'\''"
3258     done | sort
3259     echo
3260 
3261     if test -n "$ac_subst_files"; then
3262       $as_echo "## ------------------- ##
3263 ## File substitutions. ##
3264 ## ------------------- ##"
3265       echo
3266       for ac_var in $ac_subst_files
3267       do
3268         eval ac_val=\$$ac_var
3269         case $ac_val in
3270         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271         esac
3272         $as_echo "$ac_var='\''$ac_val'\''"
3273       done | sort
3274       echo
3275     fi
3276 
3277     if test -s confdefs.h; then
3278       $as_echo "## ----------- ##
3279 ## confdefs.h. ##
3280 ## ----------- ##"
3281       echo
3282       cat confdefs.h
3283       echo
3284     fi
3285     test "$ac_signal" != 0 &&
3286       $as_echo "$as_me: caught signal $ac_signal"
3287     $as_echo "$as_me: exit $exit_status"
3288   } >&5
3289   rm -f core *.core core.conftest.* &&
3290     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3291     exit $exit_status
3292 ' 0
3293 for ac_signal in 1 2 13 15; do
3294   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3295 done
3296 ac_signal=0
3297 
3298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3299 rm -f -r conftest* confdefs.h
3300 
3301 $as_echo "/* confdefs.h */" > confdefs.h
3302 
3303 # Predefined preprocessor variables.
3304 
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE_NAME "$PACKAGE_NAME"
3307 _ACEOF
3308 
3309 cat >>confdefs.h <<_ACEOF
3310 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3311 _ACEOF
3312 
3313 cat >>confdefs.h <<_ACEOF
3314 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3315 _ACEOF
3316 
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE_STRING "$PACKAGE_STRING"
3319 _ACEOF
3320 
3321 cat >>confdefs.h <<_ACEOF
3322 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3323 _ACEOF
3324 
3325 cat >>confdefs.h <<_ACEOF
3326 #define PACKAGE_URL "$PACKAGE_URL"
3327 _ACEOF
3328 
3329 
3330 # Let the site file select an alternate cache file if it wants to.
3331 # Prefer an explicitly selected file to automatically selected ones.
3332 ac_site_file1=NONE
3333 ac_site_file2=NONE
3334 if test -n "$CONFIG_SITE"; then
3335   # We do not want a PATH search for config.site.
3336   case $CONFIG_SITE in #((
3337     -*)  ac_site_file1=./$CONFIG_SITE;;
3338     */*) ac_site_file1=$CONFIG_SITE;;
3339     *)   ac_site_file1=./$CONFIG_SITE;;
3340   esac
3341 elif test "x$prefix" != xNONE; then
3342   ac_site_file1=$prefix/share/config.site
3343   ac_site_file2=$prefix/etc/config.site
3344 else
3345   ac_site_file1=$ac_default_prefix/share/config.site
3346   ac_site_file2=$ac_default_prefix/etc/config.site
3347 fi
3348 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3349 do
3350   test "x$ac_site_file" = xNONE && continue
3351   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3352     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3353 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3354     sed 's/^/| /' "$ac_site_file" >&5
3355     . "$ac_site_file" \
3356       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "failed to load site script $ac_site_file
3359 See \`config.log' for more details" "$LINENO" 5; }
3360   fi
3361 done
3362 
3363 if test -r "$cache_file"; then
3364   # Some versions of bash will fail to source /dev/null (special files
3365   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3366   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3367     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3368 $as_echo "$as_me: loading cache $cache_file" >&6;}
3369     case $cache_file in
3370       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3371       *)                      . "./$cache_file";;
3372     esac
3373   fi
3374 else
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3376 $as_echo "$as_me: creating cache $cache_file" >&6;}
3377   >$cache_file
3378 fi
3379 
3380 # Check that the precious variables saved in the cache have kept the same
3381 # value.
3382 ac_cache_corrupted=false
3383 for ac_var in $ac_precious_vars; do
3384   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3385   eval ac_new_set=\$ac_env_${ac_var}_set
3386   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3387   eval ac_new_val=\$ac_env_${ac_var}_value
3388   case $ac_old_set,$ac_new_set in
3389     set,)
3390       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3391 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3392       ac_cache_corrupted=: ;;
3393     ,set)
3394       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3395 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3396       ac_cache_corrupted=: ;;
3397     ,);;
3398     *)
3399       if test "x$ac_old_val" != "x$ac_new_val"; then
3400         # differences in whitespace do not lead to failure.
3401         ac_old_val_w=`echo x $ac_old_val`
3402         ac_new_val_w=`echo x $ac_new_val`
3403         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3404           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3405 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3406           ac_cache_corrupted=:
3407         else
3408           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3409 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3410           eval $ac_var=\$ac_old_val
3411         fi
3412         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3413 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3414         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3415 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3416       fi;;
3417   esac
3418   # Pass precious variables to config.status.
3419   if test "$ac_new_set" = set; then
3420     case $ac_new_val in
3421     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3422     *) ac_arg=$ac_var=$ac_new_val ;;
3423     esac
3424     case " $ac_configure_args " in
3425       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3426       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3427     esac
3428   fi
3429 done
3430 if $ac_cache_corrupted; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3434 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3435   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3436 fi
3437 ## -------------------- ##
3438 ## Main body of script. ##
3439 ## -------------------- ##
3440 
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 
3447 
3448 
3449 ac_aux_dir=
3450 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do
3451   if test -f "$ac_dir/install-sh"; then
3452     ac_aux_dir=$ac_dir
3453     ac_install_sh="$ac_aux_dir/install-sh -c"
3454     break
3455   elif test -f "$ac_dir/install.sh"; then
3456     ac_aux_dir=$ac_dir
3457     ac_install_sh="$ac_aux_dir/install.sh -c"
3458     break
3459   elif test -f "$ac_dir/shtool"; then
3460     ac_aux_dir=$ac_dir
3461     ac_install_sh="$ac_aux_dir/shtool install -c"
3462     break
3463   fi
3464 done
3465 if test -z "$ac_aux_dir"; then
3466   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5
3467 fi
3468 
3469 # These three variables are undocumented and unsupported,
3470 # and are intended to be withdrawn in a future Autoconf release.
3471 # They can cause serious problems if a builder's source tree is in a directory
3472 # whose full name contains unusual characters.
3473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3475 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3476 
3477 
3478 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3479 
3480 #
3481 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3482 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3483 #
3484 # This code is free software; you can redistribute it and/or modify it
3485 # under the terms of the GNU General Public License version 2 only, as
3486 # published by the Free Software Foundation.  Oracle designates this
3487 # particular file as subject to the "Classpath" exception as provided
3488 # by Oracle in the LICENSE file that accompanied this code.
3489 #
3490 # This code is distributed in the hope that it will be useful, but WITHOUT
3491 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3492 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3493 # version 2 for more details (a copy is included in the LICENSE file that
3494 # accompanied this code).
3495 #
3496 # You should have received a copy of the GNU General Public License version
3497 # 2 along with this work; if not, write to the Free Software Foundation,
3498 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3499 #
3500 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3501 # or visit www.oracle.com if you need additional information or have any
3502 # questions.
3503 #
3504 
3505 #
3506 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3507 #
3508 # This program is free software; you can redistribute it and/or modify
3509 # it under the terms of the GNU General Public License as published by
3510 # the Free Software Foundation; either version 2 of the License, or
3511 # (at your option) any later version.
3512 #
3513 # This program is distributed in the hope that it will be useful, but
3514 # WITHOUT ANY WARRANTY; without even the implied warranty of
3515 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3516 # General Public License for more details.
3517 #
3518 # You should have received a copy of the GNU General Public License
3519 # along with this program; if not, write to the Free Software
3520 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3521 #
3522 # As a special exception to the GNU General Public License, if you
3523 # distribute this file as part of a program that contains a
3524 # configuration script generated by Autoconf, you may include it under
3525 # the same distribution terms that you use for the rest of that program.
3526 
3527 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3528 # ----------------------------------
3529 # PKG_PROG_PKG_CONFIG
3530 
3531 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3532 #
3533 # Check to see whether a particular set of modules exists.  Similar
3534 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3535 #
3536 #
3537 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3538 # this or PKG_CHECK_MODULES is called, or make sure to call
3539 # PKG_CHECK_EXISTS manually
3540 # --------------------------------------------------------------
3541 
3542 
3543 
3544 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3545 # ---------------------------------------------
3546 # _PKG_CONFIG
3547 
3548 # _PKG_SHORT_ERRORS_SUPPORTED
3549 # -----------------------------
3550 # _PKG_SHORT_ERRORS_SUPPORTED
3551 
3552 
3553 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3554 # [ACTION-IF-NOT-FOUND])
3555 #
3556 #
3557 # Note that if there is a possibility the first call to
3558 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3559 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3560 #
3561 #
3562 # --------------------------------------------------------------
3563 # PKG_CHECK_MODULES
3564 
3565 
3566 # Include these first...
3567 #
3568 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3569 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3570 #
3571 # This code is free software; you can redistribute it and/or modify it
3572 # under the terms of the GNU General Public License version 2 only, as
3573 # published by the Free Software Foundation.  Oracle designates this
3574 # particular file as subject to the "Classpath" exception as provided
3575 # by Oracle in the LICENSE file that accompanied this code.
3576 #
3577 # This code is distributed in the hope that it will be useful, but WITHOUT
3578 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3579 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3580 # version 2 for more details (a copy is included in the LICENSE file that
3581 # accompanied this code).
3582 #
3583 # You should have received a copy of the GNU General Public License version
3584 # 2 along with this work; if not, write to the Free Software Foundation,
3585 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3586 #
3587 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3588 # or visit www.oracle.com if you need additional information or have any
3589 # questions.
3590 #
3591 
3592 # Create a function/macro that takes a series of named arguments. The call is
3593 # similar to AC_DEFUN, but the setup of the function looks like this:
3594 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3595 # ... do something
3596 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3597 # ])
3598 # A star (*) in front of a named argument means that it is required and it's
3599 # presence will be verified. To pass e.g. the first value as a normal indexed
3600 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3601 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3602 # "ARG_FOO".
3603 #
3604 # The generated function can be called like this:
3605 # MYFUNC(FOO: [foo-val],
3606 #     BAR: [
3607 #         $ECHO hello world
3608 #     ])
3609 # Note that the argument value must start on the same line as the argument name.
3610 #
3611 # Argument 1: Name of the function to define
3612 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3613 # Argument 3: Argument array to treat as named, typically $@
3614 # Argument 4: The main function body
3615 
3616 
3617 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3618 # If so, then append $1 to $2 \
3619 # Also set JVM_ARG_OK to true/false depending on outcome.
3620 
3621 
3622 # Appends a string to a path variable, only adding the : when needed.
3623 
3624 
3625 # Prepends a string to a path variable, only adding the : when needed.
3626 
3627 
3628 # This will make sure the given variable points to a full and proper
3629 # path. This means:
3630 # 1) There will be no spaces in the path. On unix platforms,
3631 #    spaces in the path will result in an error. On Windows,
3632 #    the path will be rewritten using short-style to be space-free.
3633 # 2) The path will be absolute, and it will be in unix-style (on
3634 #     cygwin).
3635 # $1: The name of the variable to fix
3636 
3637 
3638 # This will make sure the given variable points to a executable
3639 # with a full and proper path. This means:
3640 # 1) There will be no spaces in the path. On unix platforms,
3641 #    spaces in the path will result in an error. On Windows,
3642 #    the path will be rewritten using short-style to be space-free.
3643 # 2) The path will be absolute, and it will be in unix-style (on
3644 #     cygwin).
3645 # Any arguments given to the executable is preserved.
3646 # If the input variable does not have a directory specification, then
3647 # it need to be in the PATH.
3648 # $1: The name of the variable to fix
3649 
3650 
3651 
3652 
3653 # Register a --with argument but mark it as deprecated
3654 # $1: The name of the with argument to deprecate, not including --with-
3655 
3656 
3657 # Register a --enable argument but mark it as deprecated
3658 # $1: The name of the with argument to deprecate, not including --enable-
3659 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3660 # $3: Messages to user.
3661 
3662 
3663 
3664 
3665 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3666 # $1: variable to check
3667 
3668 
3669 # Check that there are no unprocessed overridden variables left.
3670 # If so, they are an incorrect argument and we will exit with an error.
3671 
3672 
3673 # Setup a tool for the given variable. If correctly specified by the user,
3674 # use that value, otherwise search for the tool using the supplied code snippet.
3675 # $1: variable to set
3676 # $2: code snippet to call to look for the tool
3677 # $3: code snippet to call if variable was used to find tool
3678 
3679 
3680 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3681 # $1: variable to set
3682 # $2: executable name (or list of names) to look for
3683 # $3: [path]
3684 
3685 
3686 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3687 # $1: variable to set
3688 # $2: executable name (or list of names) to look for
3689 
3690 
3691 # Like BASIC_PATH_PROGS but fails if no tool was found.
3692 # $1: variable to set
3693 # $2: executable name (or list of names) to look for
3694 # $3: [path]
3695 
3696 
3697 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3698 # $1: variable to set
3699 # $2: autoconf macro to call to look for the special tool
3700 
3701 
3702 # Setup the most fundamental tools that relies on not much else to set up,
3703 # but is used by much of the early bootstrap code.
3704 
3705 
3706 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3707 
3708 
3709 # Evaluates platform specific overrides for devkit variables.
3710 # $1: Name of variable
3711 
3712 
3713 
3714 
3715 
3716 
3717 #%%% Simple tools %%%
3718 
3719 # Check if we have found a usable version of make
3720 # $1: the path to a potential make binary (or empty)
3721 # $2: the description on how we found this
3722 
3723 
3724 
3725 
3726 # Goes looking for a usable version of GNU make.
3727 
3728 
3729 
3730 
3731 
3732 
3733 
3734 
3735 
3736 
3737 # Check if build directory is on local disk. If not possible to determine,
3738 # we prefer to claim it's local.
3739 # Argument 1: directory to test
3740 # Argument 2: what to do if it is on local disk
3741 # Argument 3: what to do otherwise (remote disk or failure)
3742 
3743 
3744 # Check that source files have basic read permissions set. This might
3745 # not be the case in cygwin in certain conditions.
3746 
3747 
3748 
3749 
3750 # Check for support for specific options in bash
3751 
3752 
3753 ################################################################################
3754 #
3755 # Default make target
3756 #
3757 
3758 
3759 # Code to run after AC_OUTPUT
3760 
3761 
3762 #
3763 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3765 #
3766 # This code is free software; you can redistribute it and/or modify it
3767 # under the terms of the GNU General Public License version 2 only, as
3768 # published by the Free Software Foundation.  Oracle designates this
3769 # particular file as subject to the "Classpath" exception as provided
3770 # by Oracle in the LICENSE file that accompanied this code.
3771 #
3772 # This code is distributed in the hope that it will be useful, but WITHOUT
3773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3774 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3775 # version 2 for more details (a copy is included in the LICENSE file that
3776 # accompanied this code).
3777 #
3778 # You should have received a copy of the GNU General Public License version
3779 # 2 along with this work; if not, write to the Free Software Foundation,
3780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3781 #
3782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3783 # or visit www.oracle.com if you need additional information or have any
3784 # questions.
3785 #
3786 
3787 
3788 
3789 
3790 
3791 # Helper function which possibly converts a path using DOS-style short mode.
3792 # If so, the updated path is stored in $new_path.
3793 # $1: The path to check
3794 
3795 
3796 # Helper function which possibly converts a path using DOS-style short mode.
3797 # If so, the updated path is stored in $new_path.
3798 # $1: The path to check
3799 
3800 
3801 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3802 # and could probably be heavily simplified. However, all changes in this
3803 # area tend to need lot of testing in different scenarios, and in lack of
3804 # proper unit testing, cleaning this up has not been deemed worth the effort
3805 # at the moment.
3806 
3807 
3808 
3809 
3810 
3811 
3812 
3813 
3814 
3815 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3816 
3817 
3818 
3819 
3820 # ... then the rest
3821 #
3822 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
3823 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3824 #
3825 # This code is free software; you can redistribute it and/or modify it
3826 # under the terms of the GNU General Public License version 2 only, as
3827 # published by the Free Software Foundation.  Oracle designates this
3828 # particular file as subject to the "Classpath" exception as provided
3829 # by Oracle in the LICENSE file that accompanied this code.
3830 #
3831 # This code is distributed in the hope that it will be useful, but WITHOUT
3832 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3833 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3834 # version 2 for more details (a copy is included in the LICENSE file that
3835 # accompanied this code).
3836 #
3837 # You should have received a copy of the GNU General Public License version
3838 # 2 along with this work; if not, write to the Free Software Foundation,
3839 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3840 #
3841 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3842 # or visit www.oracle.com if you need additional information or have any
3843 # questions.
3844 #
3845 
3846 ########################################################################
3847 # This file handles detection of the Boot JDK. The Boot JDK detection
3848 # process has been developed as a response to solve a complex real-world
3849 # problem. Initially, it was simple, but it has grown as platform after
3850 # platform, idiosyncracy after idiosyncracy has been supported.
3851 #
3852 # The basic idea is this:
3853 # 1) You need an acceptable *) JDK to use as a Boot JDK
3854 # 2) There are several ways to locate a JDK, that are mostly platform
3855 #    dependent **)
3856 # 3) You can have multiple JDKs installed
3857 # 4) If possible, configure should try to dig out an acceptable JDK
3858 #    automatically, without having to resort to command-line options
3859 #
3860 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3861 #     javac) and not a JRE, etc.
3862 #
3863 # **) On Windows we typically use a well-known path.
3864 #     On MacOSX we typically use the tool java_home.
3865 #     On Linux we typically find javac in the $PATH, and then follow a
3866 #     chain of symlinks that often ends up in a real JDK.
3867 #
3868 # This leads to the code where we check in different ways to locate a
3869 # JDK, and if one is found, check if it is acceptable. If not, we print
3870 # our reasons for rejecting it (useful when debugging non-working
3871 # configure situations) and continue checking the next one.
3872 ########################################################################
3873 
3874 # Execute the check given as argument, and verify the result
3875 # If the Boot JDK was previously found, do nothing
3876 # $1 A command line (typically autoconf macro) to execute
3877 
3878 
3879 # Test: Is bootjdk explicitly set by command line arguments?
3880 
3881 
3882 # Test: Is $JAVA_HOME set?
3883 
3884 
3885 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3886 
3887 
3888 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3889 # $1: Argument to the java_home binary (optional)
3890 
3891 
3892 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3893 
3894 
3895 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3896 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3897 # $1 = Path to directory containing jdk installations.
3898 # $2 = String to append to the found JDK directory to get the proper JDK home
3899 
3900 
3901 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3902 # environmental variable as base for where to look.
3903 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3904 
3905 
3906 # Test: Is there a JDK installed in default, well-known locations?
3907 
3908 
3909 # Check that a command-line tool in the Boot JDK is correct
3910 # $1 = name of variable to assign
3911 # $2 = name of binary
3912 
3913 
3914 ###############################################################################
3915 #
3916 # We need a Boot JDK to bootstrap the build.
3917 #
3918 
3919 
3920 
3921 
3922 
3923 # BUILD_JDK: the location of the latest JDK that can run
3924 #   on the host system and supports the target class file version
3925 #   generated in this JDK build.  This variable should only be
3926 #   used after the launchers are built.
3927 #
3928 
3929 # Execute the check given as argument, and verify the result.
3930 # If the JDK was previously found, do nothing.
3931 # $1 A command line (typically autoconf macro) to execute
3932 
3933 
3934 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3935 # is different than the host system doing the build (e.g. cross-compilation),
3936 # a special BUILD_JDK is built as part of the build process.  An external
3937 # prebuilt BUILD_JDK can also be supplied.
3938 
3939 
3940 #
3941 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3942 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3943 #
3944 # This code is free software; you can redistribute it and/or modify it
3945 # under the terms of the GNU General Public License version 2 only, as
3946 # published by the Free Software Foundation.  Oracle designates this
3947 # particular file as subject to the "Classpath" exception as provided
3948 # by Oracle in the LICENSE file that accompanied this code.
3949 #
3950 # This code is distributed in the hope that it will be useful, but WITHOUT
3951 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3952 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3953 # version 2 for more details (a copy is included in the LICENSE file that
3954 # accompanied this code).
3955 #
3956 # You should have received a copy of the GNU General Public License version
3957 # 2 along with this work; if not, write to the Free Software Foundation,
3958 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3959 #
3960 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3961 # or visit www.oracle.com if you need additional information or have any
3962 # questions.
3963 #
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 ################################################################################
3982 #
3983 # Runs icecc-create-env once and prints the error if it fails
3984 #
3985 # $1: arguments to icecc-create-env
3986 # $2: log file
3987 #
3988 
3989 
3990 ################################################################################
3991 #
3992 # Optionally enable distributed compilation of native code using icecc/icecream
3993 #
3994 
3995 
3996 
3997 
3998 
3999 
4000 
4001 #
4002 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4003 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4004 #
4005 # This code is free software; you can redistribute it and/or modify it
4006 # under the terms of the GNU General Public License version 2 only, as
4007 # published by the Free Software Foundation.  Oracle designates this
4008 # particular file as subject to the "Classpath" exception as provided
4009 # by Oracle in the LICENSE file that accompanied this code.
4010 #
4011 # This code is distributed in the hope that it will be useful, but WITHOUT
4012 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4013 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4014 # version 2 for more details (a copy is included in the LICENSE file that
4015 # accompanied this code).
4016 #
4017 # You should have received a copy of the GNU General Public License version
4018 # 2 along with this work; if not, write to the Free Software Foundation,
4019 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4020 #
4021 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4022 # or visit www.oracle.com if you need additional information or have any
4023 # questions.
4024 #
4025 
4026 ################################################################################
4027 #
4028 # Setup ABI profile (for arm)
4029 #
4030 
4031 
4032 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
4033 # corresponding configure arguments instead
4034 
4035 
4036 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4037 # that configure can use them while detecting compilers.
4038 # TOOLCHAIN_TYPE is available here.
4039 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4040 
4041 
4042 
4043 
4044 
4045 
4046 # Documentation on common flags used for solstudio in HIGHEST.
4047 #
4048 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4049 #          done with care, there are some assumptions below that need to
4050 #          be understood about the use of pointers, and IEEE behavior.
4051 #
4052 # -fns: Use non-standard floating point mode (not IEEE 754)
4053 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4054 # -fsingle: Use single precision floating point with 'float'
4055 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4056 #   (Source with excessing pointer casting and data access with mixed
4057 #    pointer types are not recommended)
4058 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4059 #   (If you expect perfect errno behavior, do not use this)
4060 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4061 # -xrestrict: Pointer parameters to functions do not overlap
4062 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4063 #    If you pass in multiple pointers to the same data, do not use this)
4064 # -xlibmil: Inline some library routines
4065 #   (If you expect perfect errno behavior, do not use this)
4066 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4067 #   (If you expect perfect errno behavior, do not use this)
4068 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4069 
4070     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4071     # Bug?
4072     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4073     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4074     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4075     #fi
4076 
4077 
4078 
4079 
4080 
4081 
4082 ################################################################################
4083 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4084 #      conditionals against.
4085 # $2 - Optional prefix for each variable defined.
4086 
4087 
4088 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4089 #                                  IF_FALSE: [RUN-IF-FALSE])
4090 # ------------------------------------------------------------
4091 # Check that the C compiler supports an argument
4092 
4093 
4094 
4095 
4096 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4097 #                                    IF_FALSE: [RUN-IF-FALSE])
4098 # ------------------------------------------------------------
4099 # Check that the C++ compiler supports an argument
4100 
4101 
4102 
4103 
4104 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4105 #                                IF_FALSE: [RUN-IF-FALSE])
4106 # ------------------------------------------------------------
4107 # Check that the C and C++ compilers support an argument
4108 
4109 
4110 
4111 
4112 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4113 #                                   IF_FALSE: [RUN-IF-FALSE])
4114 # ------------------------------------------------------------
4115 # Check that the linker support an argument
4116 
4117 
4118 
4119 
4120 
4121 
4122 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX])
4123 # Arguments:
4124 # $1 - Optional prefix for each variable defined.
4125 
4126 
4127 #
4128 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4129 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4130 #
4131 # This code is free software; you can redistribute it and/or modify it
4132 # under the terms of the GNU General Public License version 2 only, as
4133 # published by the Free Software Foundation.  Oracle designates this
4134 # particular file as subject to the "Classpath" exception as provided
4135 # by Oracle in the LICENSE file that accompanied this code.
4136 #
4137 # This code is distributed in the hope that it will be useful, but WITHOUT
4138 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4139 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4140 # version 2 for more details (a copy is included in the LICENSE file that
4141 # accompanied this code).
4142 #
4143 # You should have received a copy of the GNU General Public License version
4144 # 2 along with this work; if not, write to the Free Software Foundation,
4145 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4146 #
4147 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4148 # or visit www.oracle.com if you need additional information or have any
4149 # questions.
4150 #
4151 
4152 
4153 
4154 
4155 
4156 cygwin_help() {
4157   case $1 in
4158     unzip)
4159       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4160       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4161       ;;
4162     zip)
4163       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4164       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4165       ;;
4166     make)
4167       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4168       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4169       ;;
4170     freetype)
4171       HELP_MSG="
4172 The freetype library can now be build during the configure process.
4173 Download the freetype sources and unpack them into an arbitrary directory:
4174 
4175 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4176 tar -xzf freetype-2.5.3.tar.gz
4177 
4178 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4179 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4180 builds or into '<freetype_src>/lib32' for 32-bit builds.
4181 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4182 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4183 
4184 Alternatively you can unpack the sources like this to use the default directory:
4185 
4186 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4187       ;;
4188   esac
4189 }
4190 
4191 msys_help() {
4192   PKGHANDLER_COMMAND=""
4193 }
4194 
4195 apt_help() {
4196   case $1 in
4197     reduced)
4198       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4199     devkit)
4200       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4201     openjdk)
4202       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4203     alsa)
4204       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4205     cups)
4206       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4207     fontconfig)
4208       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
4209     freetype)
4210       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4211     ffi)
4212       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4213     x11)
4214       PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4215     ccache)
4216       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4217     dtrace)
4218       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4219   esac
4220 }
4221 
4222 yum_help() {
4223   case $1 in
4224     devkit)
4225       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4226     openjdk)
4227       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4228     alsa)
4229       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4230     cups)
4231       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4232     fontconfig)
4233       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
4234     freetype)
4235       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4236     x11)
4237       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4238     ccache)
4239       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4240   esac
4241 }
4242 
4243 brew_help() {
4244   case $1 in
4245     openjdk)
4246       PKGHANDLER_COMMAND="brew cask install java" ;;
4247     freetype)
4248       PKGHANDLER_COMMAND="brew install freetype" ;;
4249     ccache)
4250       PKGHANDLER_COMMAND="brew install ccache" ;;
4251   esac
4252 }
4253 
4254 port_help() {
4255   PKGHANDLER_COMMAND=""
4256 }
4257 
4258 pkgutil_help() {
4259   PKGHANDLER_COMMAND=""
4260 }
4261 
4262 pkgadd_help() {
4263   PKGHANDLER_COMMAND=""
4264 }
4265 
4266 # This function will check if we're called from the "configure" wrapper while
4267 # printing --help. If so, we will print out additional information that can
4268 # only be extracted within the autoconf script, and then exit. This must be
4269 # called at the very beginning in configure.ac.
4270 
4271 
4272 
4273 
4274 
4275 
4276 #
4277 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4279 #
4280 # This code is free software; you can redistribute it and/or modify it
4281 # under the terms of the GNU General Public License version 2 only, as
4282 # published by the Free Software Foundation.  Oracle designates this
4283 # particular file as subject to the "Classpath" exception as provided
4284 # by Oracle in the LICENSE file that accompanied this code.
4285 #
4286 # This code is distributed in the hope that it will be useful, but WITHOUT
4287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4288 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4289 # version 2 for more details (a copy is included in the LICENSE file that
4290 # accompanied this code).
4291 #
4292 # You should have received a copy of the GNU General Public License version
4293 # 2 along with this work; if not, write to the Free Software Foundation,
4294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4295 #
4296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4297 # or visit www.oracle.com if you need additional information or have any
4298 # questions.
4299 #
4300 
4301 # All valid JVM features, regardless of platform
4302 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \
4303     graal vm-structs jni-check services management all-gcs nmt cds \
4304     static-build link-time-opt aot"
4305 
4306 # All valid JVM variants
4307 VALID_JVM_VARIANTS="server client minimal core zero custom"
4308 
4309 ###############################################################################
4310 # Check if the specified JVM variant should be built. To be used in shell if
4311 # constructs, like this:
4312 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4313 #
4314 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4315 
4316 # Definition kept in one line to allow inlining in if statements.
4317 # Additional [] needed to keep m4 from mangling shell constructs.
4318 
4319 
4320 ###############################################################################
4321 # Check if the specified JVM features are explicitly enabled. To be used in
4322 # shell if constructs, like this:
4323 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4324 #
4325 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4326 
4327 # Definition kept in one line to allow inlining in if statements.
4328 # Additional [] needed to keep m4 from mangling shell constructs.
4329 
4330 
4331 ###############################################################################
4332 # Check which variants of the JVM that we want to build. Available variants are:
4333 #   server: normal interpreter, and a tiered C1/C2 compiler
4334 #   client: normal interpreter, and C1 (no C2 compiler)
4335 #   minimal: reduced form of client with optional features stripped out
4336 #   core: normal interpreter only, no compiler
4337 #   zero: C++ based interpreter only, no compiler
4338 #   custom: baseline JVM with no default features
4339 #
4340 
4341 
4342 ###############################################################################
4343 # Check if dtrace should be enabled and has all prerequisites present.
4344 #
4345 
4346 
4347 ################################################################################
4348 # Check if AOT should be enabled
4349 #
4350 
4351 
4352 ################################################################################
4353 # Allow to disable CDS
4354 #
4355 
4356 
4357 ###############################################################################
4358 # Set up all JVM features for each JVM variant.
4359 #
4360 
4361 
4362 ###############################################################################
4363 # Validate JVM features once all setup is complete, including custom setup.
4364 #
4365 
4366 
4367 ################################################################################
4368 #
4369 # Specify which sources will be used to build the 64-bit ARM port
4370 #
4371 # --with-cpu-port=arm64   will use hotspot/src/cpu/arm
4372 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64
4373 #
4374 
4375 
4376 
4377 ################################################################################
4378 # Check if gtest should be built
4379 #
4380 
4381 
4382 #
4383 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4384 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4385 #
4386 # This code is free software; you can redistribute it and/or modify it
4387 # under the terms of the GNU General Public License version 2 only, as
4388 # published by the Free Software Foundation.  Oracle designates this
4389 # particular file as subject to the "Classpath" exception as provided
4390 # by Oracle in the LICENSE file that accompanied this code.
4391 #
4392 # This code is distributed in the hope that it will be useful, but WITHOUT
4393 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4394 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4395 # version 2 for more details (a copy is included in the LICENSE file that
4396 # accompanied this code).
4397 #
4398 # You should have received a copy of the GNU General Public License version
4399 # 2 along with this work; if not, write to the Free Software Foundation,
4400 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4401 #
4402 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4403 # or visit www.oracle.com if you need additional information or have any
4404 # questions.
4405 #
4406 
4407 ###############################################################################
4408 # Check which variant of the JDK that we want to build.
4409 # Currently we have:
4410 #    normal:   standard edition
4411 # but the custom make system may add other variants
4412 #
4413 # Effectively the JDK variant gives a name to a specific set of
4414 # modules to compile into the JDK.
4415 
4416 
4417 ###############################################################################
4418 # Set the debug level
4419 #    release: no debug information, all optimizations, no asserts.
4420 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4421 #    fastdebug: debug information (-g), all optimizations, all asserts
4422 #    slowdebug: debug information (-g), no optimizations, all asserts
4423 
4424 
4425 ###############################################################################
4426 #
4427 # Should we build only OpenJDK even if closed sources are present?
4428 #
4429 
4430 
4431 
4432 
4433 ###############################################################################
4434 #
4435 # Enable or disable the elliptic curve crypto implementation
4436 #
4437 
4438 
4439 
4440 
4441 ################################################################################
4442 #
4443 # Gcov coverage data for hotspot
4444 #
4445 
4446 
4447 ###############################################################################
4448 #
4449 # AddressSanitizer
4450 #
4451 
4452 
4453 ################################################################################
4454 #
4455 # Static build support.  When enabled will generate static
4456 # libraries instead of shared libraries for all JDK libs.
4457 #
4458 
4459 
4460 ################################################################################
4461 #
4462 # jlink options.
4463 # We always keep packaged modules in JDK image.
4464 #
4465 
4466 
4467 ################################################################################
4468 #
4469 # Check if building of the jtreg failure handler should be enabled.
4470 #
4471 
4472 
4473 ################################################################################
4474 #
4475 # Enable or disable generation of the classlist at build time
4476 #
4477 
4478 
4479 #
4480 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
4481 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4482 #
4483 # This code is free software; you can redistribute it and/or modify it
4484 # under the terms of the GNU General Public License version 2 only, as
4485 # published by the Free Software Foundation.  Oracle designates this
4486 # particular file as subject to the "Classpath" exception as provided
4487 # by Oracle in the LICENSE file that accompanied this code.
4488 #
4489 # This code is distributed in the hope that it will be useful, but WITHOUT
4490 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4491 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4492 # version 2 for more details (a copy is included in the LICENSE file that
4493 # accompanied this code).
4494 #
4495 # You should have received a copy of the GNU General Public License version
4496 # 2 along with this work; if not, write to the Free Software Foundation,
4497 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4498 #
4499 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4500 # or visit www.oracle.com if you need additional information or have any
4501 # questions.
4502 #
4503 
4504 ###############################################################################
4505 #
4506 # Setup version numbers
4507 #
4508 
4509 # Verify that a given string represents a valid version number, and assign it
4510 # to a variable.
4511 
4512 # Argument 1: the variable to assign to
4513 # Argument 2: the value given by the user
4514 
4515 
4516 
4517 
4518 #
4519 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4520 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4521 #
4522 # This code is free software; you can redistribute it and/or modify it
4523 # under the terms of the GNU General Public License version 2 only, as
4524 # published by the Free Software Foundation.  Oracle designates this
4525 # particular file as subject to the "Classpath" exception as provided
4526 # by Oracle in the LICENSE file that accompanied this code.
4527 #
4528 # This code is distributed in the hope that it will be useful, but WITHOUT
4529 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4530 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4531 # version 2 for more details (a copy is included in the LICENSE file that
4532 # accompanied this code).
4533 #
4534 # You should have received a copy of the GNU General Public License version
4535 # 2 along with this work; if not, write to the Free Software Foundation,
4536 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4537 #
4538 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4539 # or visit www.oracle.com if you need additional information or have any
4540 # questions.
4541 #
4542 
4543 # Major library component reside in separate files.
4544 #
4545 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4546 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4547 #
4548 # This code is free software; you can redistribute it and/or modify it
4549 # under the terms of the GNU General Public License version 2 only, as
4550 # published by the Free Software Foundation.  Oracle designates this
4551 # particular file as subject to the "Classpath" exception as provided
4552 # by Oracle in the LICENSE file that accompanied this code.
4553 #
4554 # This code is distributed in the hope that it will be useful, but WITHOUT
4555 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4556 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4557 # version 2 for more details (a copy is included in the LICENSE file that
4558 # accompanied this code).
4559 #
4560 # You should have received a copy of the GNU General Public License version
4561 # 2 along with this work; if not, write to the Free Software Foundation,
4562 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4563 #
4564 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4565 # or visit www.oracle.com if you need additional information or have any
4566 # questions.
4567 #
4568 
4569 ################################################################################
4570 # Setup alsa (Advanced Linux Sound Architecture)
4571 ################################################################################
4572 
4573 
4574 #
4575 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4576 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4577 #
4578 # This code is free software; you can redistribute it and/or modify it
4579 # under the terms of the GNU General Public License version 2 only, as
4580 # published by the Free Software Foundation.  Oracle designates this
4581 # particular file as subject to the "Classpath" exception as provided
4582 # by Oracle in the LICENSE file that accompanied this code.
4583 #
4584 # This code is distributed in the hope that it will be useful, but WITHOUT
4585 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4586 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4587 # version 2 for more details (a copy is included in the LICENSE file that
4588 # accompanied this code).
4589 #
4590 # You should have received a copy of the GNU General Public License version
4591 # 2 along with this work; if not, write to the Free Software Foundation,
4592 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4593 #
4594 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4595 # or visit www.oracle.com if you need additional information or have any
4596 # questions.
4597 #
4598 
4599 ################################################################################
4600 # Setup bundled libraries.
4601 #
4602 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4603 # OpenJDK repository. Default is to use these libraries as bundled, but they
4604 # might be replaced by en external version by the user.
4605 ################################################################################
4606 
4607 
4608 ################################################################################
4609 # Setup libjpeg
4610 ################################################################################
4611 
4612 
4613 ################################################################################
4614 # Setup giflib
4615 ################################################################################
4616 
4617 
4618 ################################################################################
4619 # Setup libpng
4620 ################################################################################
4621 
4622 
4623 ################################################################################
4624 # Setup zlib
4625 ################################################################################
4626 
4627 
4628 ################################################################################
4629 # Setup lcms (Little CMS)
4630 ################################################################################
4631 
4632 
4633 #
4634 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4635 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4636 #
4637 # This code is free software; you can redistribute it and/or modify it
4638 # under the terms of the GNU General Public License version 2 only, as
4639 # published by the Free Software Foundation.  Oracle designates this
4640 # particular file as subject to the "Classpath" exception as provided
4641 # by Oracle in the LICENSE file that accompanied this code.
4642 #
4643 # This code is distributed in the hope that it will be useful, but WITHOUT
4644 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4645 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4646 # version 2 for more details (a copy is included in the LICENSE file that
4647 # accompanied this code).
4648 #
4649 # You should have received a copy of the GNU General Public License version
4650 # 2 along with this work; if not, write to the Free Software Foundation,
4651 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4652 #
4653 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4654 # or visit www.oracle.com if you need additional information or have any
4655 # questions.
4656 #
4657 
4658 ################################################################################
4659 # Setup cups (Common Unix Printing System)
4660 ################################################################################
4661 
4662 
4663 #
4664 # Copyright (c) 2015, 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 libffi (Foreign Function Interface)
4690 ################################################################################
4691 
4692 
4693 #
4694 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4695 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4696 #
4697 # This code is free software; you can redistribute it and/or modify it
4698 # under the terms of the GNU General Public License version 2 only, as
4699 # published by the Free Software Foundation.  Oracle designates this
4700 # particular file as subject to the "Classpath" exception as provided
4701 # by Oracle in the LICENSE file that accompanied this code.
4702 #
4703 # This code is distributed in the hope that it will be useful, but WITHOUT
4704 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4705 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4706 # version 2 for more details (a copy is included in the LICENSE file that
4707 # accompanied this code).
4708 #
4709 # You should have received a copy of the GNU General Public License version
4710 # 2 along with this work; if not, write to the Free Software Foundation,
4711 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4712 #
4713 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4714 # or visit www.oracle.com if you need additional information or have any
4715 # questions.
4716 #
4717 
4718 ################################################################################
4719 # Build the freetype lib from source
4720 ################################################################################
4721 
4722 
4723 ################################################################################
4724 # Check if a potential freeype library match is correct and usable
4725 ################################################################################
4726 
4727 
4728 ################################################################################
4729 # Setup freetype (The FreeType2 font rendering library)
4730 ################################################################################
4731 
4732 
4733 #
4734 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4735 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4736 #
4737 # This code is free software; you can redistribute it and/or modify it
4738 # under the terms of the GNU General Public License version 2 only, as
4739 # published by the Free Software Foundation.  Oracle designates this
4740 # particular file as subject to the "Classpath" exception as provided
4741 # by Oracle in the LICENSE file that accompanied this code.
4742 #
4743 # This code is distributed in the hope that it will be useful, but WITHOUT
4744 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4745 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4746 # version 2 for more details (a copy is included in the LICENSE file that
4747 # accompanied this code).
4748 #
4749 # You should have received a copy of the GNU General Public License version
4750 # 2 along with this work; if not, write to the Free Software Foundation,
4751 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4752 #
4753 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4754 # or visit www.oracle.com if you need additional information or have any
4755 # questions.
4756 #
4757 
4758 ################################################################################
4759 # Setup the standard C/C++ runtime libraries.
4760 #
4761 # Most importantly, determine if stdc++ should be linked statically or
4762 # dynamically.
4763 ################################################################################
4764 
4765 
4766 #
4767 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4768 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4769 #
4770 # This code is free software; you can redistribute it and/or modify it
4771 # under the terms of the GNU General Public License version 2 only, as
4772 # published by the Free Software Foundation.  Oracle designates this
4773 # particular file as subject to the "Classpath" exception as provided
4774 # by Oracle in the LICENSE file that accompanied this code.
4775 #
4776 # This code is distributed in the hope that it will be useful, but WITHOUT
4777 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4778 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4779 # version 2 for more details (a copy is included in the LICENSE file that
4780 # accompanied this code).
4781 #
4782 # You should have received a copy of the GNU General Public License version
4783 # 2 along with this work; if not, write to the Free Software Foundation,
4784 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4785 #
4786 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4787 # or visit www.oracle.com if you need additional information or have any
4788 # questions.
4789 #
4790 
4791 ################################################################################
4792 # Setup X11 Windows system
4793 ################################################################################
4794 
4795 
4796 #
4797 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
4798 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4799 #
4800 # This code is free software; you can redistribute it and/or modify it
4801 # under the terms of the GNU General Public License version 2 only, as
4802 # published by the Free Software Foundation.  Oracle designates this
4803 # particular file as subject to the "Classpath" exception as provided
4804 # by Oracle in the LICENSE file that accompanied this code.
4805 #
4806 # This code is distributed in the hope that it will be useful, but WITHOUT
4807 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4808 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4809 # version 2 for more details (a copy is included in the LICENSE file that
4810 # accompanied this code).
4811 #
4812 # You should have received a copy of the GNU General Public License version
4813 # 2 along with this work; if not, write to the Free Software Foundation,
4814 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4815 #
4816 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4817 # or visit www.oracle.com if you need additional information or have any
4818 # questions.
4819 #
4820 
4821 ################################################################################
4822 # Setup fontconfig
4823 ################################################################################
4824 
4825 
4826 
4827 ################################################################################
4828 # Determine which libraries are needed for this configuration
4829 ################################################################################
4830 
4831 
4832 ################################################################################
4833 # Parse library options, and setup needed libraries
4834 ################################################################################
4835 
4836 
4837 ################################################################################
4838 # Setup various libraries, typically small system libraries
4839 ################################################################################
4840 
4841 
4842 ################################################################################
4843 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4844 # redistribute it in the test image.
4845 ################################################################################
4846 
4847 
4848 
4849 #
4850 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4851 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4852 #
4853 # This code is free software; you can redistribute it and/or modify it
4854 # under the terms of the GNU General Public License version 2 only, as
4855 # published by the Free Software Foundation.  Oracle designates this
4856 # particular file as subject to the "Classpath" exception as provided
4857 # by Oracle in the LICENSE file that accompanied this code.
4858 #
4859 # This code is distributed in the hope that it will be useful, but WITHOUT
4860 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4861 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4862 # version 2 for more details (a copy is included in the LICENSE file that
4863 # accompanied this code).
4864 #
4865 # You should have received a copy of the GNU General Public License version
4866 # 2 along with this work; if not, write to the Free Software Foundation,
4867 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4868 #
4869 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4870 # or visit www.oracle.com if you need additional information or have any
4871 # questions.
4872 #
4873 
4874 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4875 # Converts autoconf style CPU name to OpenJDK style, into
4876 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4877 
4878 
4879 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4880 # Converts autoconf style OS name to OpenJDK style, into
4881 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4882 
4883 
4884 # Expects $host_os $host_cpu $build_os and $build_cpu
4885 # and $with_target_bits to have been setup!
4886 #
4887 # Translate the standard triplet(quadruplet) definition
4888 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4889 # OPENJDK_BUILD_OS, etc.
4890 
4891 
4892 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4893 # accordingly. Must be done after setting up build and target system, but before
4894 # doing anything else with these values.
4895 
4896 
4897 # Setup the legacy variables, for controlling the old makefiles.
4898 #
4899 
4900 
4901 # $1 - Either TARGET or BUILD to setup the variables for.
4902 
4903 
4904 
4905 
4906 
4907 
4908 #%%% Build and target systems %%%
4909 
4910 
4911 
4912 
4913 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4914 # Add -mX to various FLAGS variables.
4915 
4916 
4917 
4918 
4919 
4920 
4921 #
4922 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4923 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4924 #
4925 # This code is free software; you can redistribute it and/or modify it
4926 # under the terms of the GNU General Public License version 2 only, as
4927 # published by the Free Software Foundation.  Oracle designates this
4928 # particular file as subject to the "Classpath" exception as provided
4929 # by Oracle in the LICENSE file that accompanied this code.
4930 #
4931 # This code is distributed in the hope that it will be useful, but WITHOUT
4932 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4933 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4934 # version 2 for more details (a copy is included in the LICENSE file that
4935 # accompanied this code).
4936 #
4937 # You should have received a copy of the GNU General Public License version
4938 # 2 along with this work; if not, write to the Free Software Foundation,
4939 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4940 #
4941 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4942 # or visit www.oracle.com if you need additional information or have any
4943 # questions.
4944 #
4945 
4946 
4947 
4948 ################################################################################
4949 # Define a mechanism for importing extra prebuilt modules
4950 #
4951 
4952 
4953 
4954 #
4955 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
4956 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4957 #
4958 # This code is free software; you can redistribute it and/or modify it
4959 # under the terms of the GNU General Public License version 2 only, as
4960 # published by the Free Software Foundation.  Oracle designates this
4961 # particular file as subject to the "Classpath" exception as provided
4962 # by Oracle in the LICENSE file that accompanied this code.
4963 #
4964 # This code is distributed in the hope that it will be useful, but WITHOUT
4965 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4966 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4967 # version 2 for more details (a copy is included in the LICENSE file that
4968 # accompanied this code).
4969 #
4970 # You should have received a copy of the GNU General Public License version
4971 # 2 along with this work; if not, write to the Free Software Foundation,
4972 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4973 #
4974 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4975 # or visit www.oracle.com if you need additional information or have any
4976 # questions.
4977 #
4978 
4979 ########################################################################
4980 # This file is responsible for detecting, verifying and setting up the
4981 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4982 # proper paths to the binaries, but it will not setup any flags.
4983 #
4984 # The binaries used is determined by the toolchain type, which is the family of
4985 # compilers and related tools that are used.
4986 ########################################################################
4987 
4988 
4989 # All valid toolchains, regardless of platform (used by help.m4)
4990 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4991 
4992 # These toolchains are valid on different platforms
4993 VALID_TOOLCHAINS_linux="gcc clang"
4994 VALID_TOOLCHAINS_solaris="solstudio"
4995 VALID_TOOLCHAINS_macosx="gcc clang"
4996 VALID_TOOLCHAINS_aix="xlc"
4997 VALID_TOOLCHAINS_windows="microsoft"
4998 
4999 # Toolchain descriptions
5000 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
5001 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
5002 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
5003 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
5004 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
5005 
5006 # Minimum supported versions, empty means unspecified
5007 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
5008 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7"
5009 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010
5010 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13"
5011 TOOLCHAIN_MINIMUM_VERSION_xlc=""
5012 
5013 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
5014 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
5015 # $1 - optional variable prefix for compiler and version variables (BUILD_)
5016 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
5017 
5018 
5019 # Check if the configured compiler (C and C++) is of a specific version or
5020 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
5021 #
5022 # Arguments:
5023 #   VERSION:   The version string to check against the found version
5024 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
5025 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
5026 #   PREFIX:   Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_)
5027 
5028 
5029 
5030 
5031 # Setup a number of variables describing how native output files are
5032 # named on this platform/toolchain.
5033 
5034 
5035 # Determine which toolchain type to use, and make sure it is valid for this
5036 # platform. Setup various information about the selected toolchain.
5037 
5038 
5039 # Before we start detecting the toolchain executables, we might need some
5040 # special setup, e.g. additional paths etc.
5041 
5042 
5043 # Restore path, etc
5044 
5045 
5046 # Check if a compiler is of the toolchain type we expect, and save the version
5047 # information from it. If the compiler does not match the expected type,
5048 # this function will abort using AC_MSG_ERROR. If it matches, the version will
5049 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
5050 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
5051 #
5052 # $1 = compiler to test (CC or CXX)
5053 # $2 = human readable name of compiler (C or C++)
5054 
5055 
5056 # Try to locate the given C or C++ compiler in the path, or otherwise.
5057 #
5058 # $1 = compiler to test (CC or CXX)
5059 # $2 = human readable name of compiler (C or C++)
5060 # $3 = compiler name to search for
5061 
5062 
5063 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
5064 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
5065 # archiver (AR). Verify that the compilers are correct according to the
5066 # toolchain type.
5067 
5068 
5069 # Setup additional tools that is considered a part of the toolchain, but not the
5070 # core part. Many of these are highly platform-specific and do not exist,
5071 # and/or are not needed on all platforms.
5072 
5073 
5074 # Setup the build tools (i.e, the compiler and linker used to build programs
5075 # that should be run on the build platform, not the target platform, as a build
5076 # helper). Since the non-cross-compile case uses the normal, target compilers
5077 # for this, we can only do this after these have been setup.
5078 
5079 
5080 # Do some additional checks on the detected tools.
5081 
5082 
5083 # Setup the JTReg Regression Test Harness.
5084 
5085 
5086 # Setup the JIB dependency resolver
5087 
5088 
5089 #
5090 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
5091 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5092 #
5093 # This code is free software; you can redistribute it and/or modify it
5094 # under the terms of the GNU General Public License version 2 only, as
5095 # published by the Free Software Foundation.  Oracle designates this
5096 # particular file as subject to the "Classpath" exception as provided
5097 # by Oracle in the LICENSE file that accompanied this code.
5098 #
5099 # This code is distributed in the hope that it will be useful, but WITHOUT
5100 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5101 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5102 # version 2 for more details (a copy is included in the LICENSE file that
5103 # accompanied this code).
5104 #
5105 # You should have received a copy of the GNU General Public License version
5106 # 2 along with this work; if not, write to the Free Software Foundation,
5107 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5108 #
5109 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5110 # or visit www.oracle.com if you need additional information or have any
5111 # questions.
5112 #
5113 
5114 ################################################################################
5115 # The order of these defines the priority by which we try to find them.
5116 VALID_VS_VERSIONS="2013 2012 2010"
5117 
5118 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5119 VS_VERSION_INTERNAL_2010=100
5120 VS_MSVCR_2010=msvcr100.dll
5121 # We don't use msvcp on Visual Studio 2010
5122 #VS_MSVCP_2010=msvcp100.dll
5123 VS_ENVVAR_2010="VS100COMNTOOLS"
5124 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5125 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5126 VS_VS_PLATFORM_NAME_2010="v100"
5127 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5128 
5129 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5130 VS_VERSION_INTERNAL_2012=110
5131 VS_MSVCR_2012=msvcr110.dll
5132 VS_MSVCP_2012=msvcp110.dll
5133 VS_ENVVAR_2012="VS110COMNTOOLS"
5134 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5135 VS_SDK_INSTALLDIR_2012=
5136 VS_VS_PLATFORM_NAME_2012="v110"
5137 VS_SDK_PLATFORM_NAME_2012=
5138 
5139 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5140 VS_VERSION_INTERNAL_2013=120
5141 VS_MSVCR_2013=msvcr120.dll
5142 VS_MSVCP_2013=msvcp120.dll
5143 VS_ENVVAR_2013="VS120COMNTOOLS"
5144 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5145 VS_SDK_INSTALLDIR_2013=
5146 VS_VS_PLATFORM_NAME_2013="v120"
5147 VS_SDK_PLATFORM_NAME_2013=
5148 
5149 ################################################################################
5150 
5151 
5152 
5153 ################################################################################
5154 
5155 
5156 
5157 ################################################################################
5158 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5159 # build environment and assigns it to VS_ENV_CMD
5160 
5161 
5162 ################################################################################
5163 
5164 
5165 
5166 ################################################################################
5167 # Check if the VS env variables were setup prior to running configure.
5168 # If not, then find vcvarsall.bat and run it automatically, and integrate
5169 # the set env variables into the spec file.
5170 
5171 
5172 
5173 
5174 
5175 
5176 
5177 
5178 
5179 
5180 
5181 
5182 
5183 
5184 # This line needs to be here, verbatim, after all includes and the dummy hook
5185 # definitions. It is replaced with custom functionality when building
5186 # custom sources.
5187 #CUSTOM_AUTOCONF_INCLUDE
5188 
5189 # Do not change or remove the following line, it is needed for consistency checks:
5190 DATE_WHEN_GENERATED=1513630820
5191 
5192 ###############################################################################
5193 #
5194 # Initialization / Boot-strapping
5195 #
5196 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5197 # thus it jumps back and forth, each time gaining something needed later on.
5198 #
5199 ###############################################################################
5200 
5201 # If we are requested to print additional help, do that and then exit.
5202 # This must be the very first call.
5203 
5204   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5205 
5206     # Print available toolchains
5207     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5208     $PRINTF "Which are valid to use depends on the build platform.\n"
5209     for toolchain in $VALID_TOOLCHAINS_all; do
5210       # Use indirect variable referencing
5211       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5212       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5213       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5214     done
5215     $PRINTF "\n"
5216 
5217     # Print available jvm features
5218     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5219     $PRINTF "Which are valid to use depends on the target platform.\n  "
5220     $PRINTF "%s " $VALID_JVM_FEATURES
5221     $PRINTF "\n"
5222 
5223     # And now exit directly
5224     exit 0
5225   fi
5226 
5227 
5228 # Basic initialization that must happen first of all in the normal process.
5229 
5230   # Save the original command line. This is passed to us by the wrapper configure script.
5231 
5232   # Save the path variable before it gets changed
5233   ORIGINAL_PATH="$PATH"
5234 
5235   DATE_WHEN_CONFIGURED=`LANG=C date`
5236 
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5238 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5240 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5241 
5242 
5243   # Start with tools that do not need have cross compilation support
5244   # and can be expected to be found in the default PATH. These tools are
5245   # used by configure.
5246 
5247   # First are all the simple required tools.
5248 
5249 
5250 
5251   # Publish this variable in the help.
5252 
5253 
5254   if [ -z "${BASENAME+x}" ]; then
5255     # The variable is not set by user, try to locate tool using the code snippet
5256     for ac_prog in basename
5257 do
5258   # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_path_BASENAME+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   case $BASENAME in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284 
5285   ;;
5286 esac
5287 fi
5288 BASENAME=$ac_cv_path_BASENAME
5289 if test -n "$BASENAME"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5291 $as_echo "$BASENAME" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296 
5297 
5298   test -n "$BASENAME" && break
5299 done
5300 
5301   else
5302     # The variable is set, but is it from the command line or the environment?
5303 
5304     # Try to remove the string !BASENAME! from our list.
5305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5307       # If it failed, the variable was not from the command line. Ignore it,
5308       # but warn the user (except for BASH, which is always set by the calling BASH).
5309       if test "xBASENAME" != xBASH; then
5310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5311 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5312       fi
5313       # Try to locate tool using the code snippet
5314       for ac_prog in basename
5315 do
5316   # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_BASENAME+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $BASENAME in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342 
5343   ;;
5344 esac
5345 fi
5346 BASENAME=$ac_cv_path_BASENAME
5347 if test -n "$BASENAME"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5349 $as_echo "$BASENAME" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354 
5355 
5356   test -n "$BASENAME" && break
5357 done
5358 
5359     else
5360       # If it succeeded, then it was overridden by the user. We will use it
5361       # for the tool.
5362 
5363       # First remove it from the list of overridden variables, so we can test
5364       # for unknown variables in the end.
5365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5366 
5367       # Check if we try to supply an empty value
5368       if test "x$BASENAME" = x; then
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5370 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5372 $as_echo_n "checking for BASENAME... " >&6; }
5373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5374 $as_echo "disabled" >&6; }
5375       else
5376         # Check if the provided tool contains a complete path.
5377         tool_specified="$BASENAME"
5378         tool_basename="${tool_specified##*/}"
5379         if test "x$tool_basename" = "x$tool_specified"; then
5380           # A command without a complete path is provided, search $PATH.
5381           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5382 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5383           # Extract the first word of "$tool_basename", so it can be a program name with args.
5384 set dummy $tool_basename; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_BASENAME+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   case $BASENAME in
5391   [\\/]* | ?:[\\/]*)
5392   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5393   ;;
5394   *)
5395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done
5408 IFS=$as_save_IFS
5409 
5410   ;;
5411 esac
5412 fi
5413 BASENAME=$ac_cv_path_BASENAME
5414 if test -n "$BASENAME"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5416 $as_echo "$BASENAME" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421 
5422 
5423           if test "x$BASENAME" = x; then
5424             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5425           fi
5426         else
5427           # Otherwise we believe it is a complete path. Use it as it is.
5428           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5429 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5430           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5431 $as_echo_n "checking for BASENAME... " >&6; }
5432           if test ! -x "$tool_specified"; then
5433             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5434 $as_echo "not found" >&6; }
5435             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5436           fi
5437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5438 $as_echo "$tool_specified" >&6; }
5439         fi
5440       fi
5441     fi
5442 
5443   fi
5444 
5445 
5446 
5447   if test "x$BASENAME" = x; then
5448     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5449   fi
5450 
5451 
5452 
5453 
5454 
5455   # Publish this variable in the help.
5456 
5457 
5458   if [ -z "${BASH+x}" ]; then
5459     # The variable is not set by user, try to locate tool using the code snippet
5460     for ac_prog in bash
5461 do
5462   # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 set dummy $ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_path_BASH+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   case $BASH in
5470   [\\/]* | ?:[\\/]*)
5471   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5472   ;;
5473   *)
5474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488 
5489   ;;
5490 esac
5491 fi
5492 BASH=$ac_cv_path_BASH
5493 if test -n "$BASH"; then
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5495 $as_echo "$BASH" >&6; }
5496 else
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500 
5501 
5502   test -n "$BASH" && break
5503 done
5504 
5505   else
5506     # The variable is set, but is it from the command line or the environment?
5507 
5508     # Try to remove the string !BASH! from our list.
5509     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5510     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5511       # If it failed, the variable was not from the command line. Ignore it,
5512       # but warn the user (except for BASH, which is always set by the calling BASH).
5513       if test "xBASH" != xBASH; then
5514         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5515 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5516       fi
5517       # Try to locate tool using the code snippet
5518       for ac_prog in bash
5519 do
5520   # Extract the first word of "$ac_prog", so it can be a program name with args.
5521 set dummy $ac_prog; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_BASH+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   case $BASH in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546 
5547   ;;
5548 esac
5549 fi
5550 BASH=$ac_cv_path_BASH
5551 if test -n "$BASH"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5553 $as_echo "$BASH" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558 
5559 
5560   test -n "$BASH" && break
5561 done
5562 
5563     else
5564       # If it succeeded, then it was overridden by the user. We will use it
5565       # for the tool.
5566 
5567       # First remove it from the list of overridden variables, so we can test
5568       # for unknown variables in the end.
5569       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5570 
5571       # Check if we try to supply an empty value
5572       if test "x$BASH" = x; then
5573         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5574 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5576 $as_echo_n "checking for BASH... " >&6; }
5577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5578 $as_echo "disabled" >&6; }
5579       else
5580         # Check if the provided tool contains a complete path.
5581         tool_specified="$BASH"
5582         tool_basename="${tool_specified##*/}"
5583         if test "x$tool_basename" = "x$tool_specified"; then
5584           # A command without a complete path is provided, search $PATH.
5585           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5586 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5587           # Extract the first word of "$tool_basename", so it can be a program name with args.
5588 set dummy $tool_basename; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_path_BASH+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   case $BASH in
5595   [\\/]* | ?:[\\/]*)
5596   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5597   ;;
5598   *)
5599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604     for ac_exec_ext in '' $ac_executable_extensions; do
5605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611   done
5612 IFS=$as_save_IFS
5613 
5614   ;;
5615 esac
5616 fi
5617 BASH=$ac_cv_path_BASH
5618 if test -n "$BASH"; then
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5620 $as_echo "$BASH" >&6; }
5621 else
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625 
5626 
5627           if test "x$BASH" = x; then
5628             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5629           fi
5630         else
5631           # Otherwise we believe it is a complete path. Use it as it is.
5632           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5633 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5634           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5635 $as_echo_n "checking for BASH... " >&6; }
5636           if test ! -x "$tool_specified"; then
5637             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5638 $as_echo "not found" >&6; }
5639             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5640           fi
5641           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5642 $as_echo "$tool_specified" >&6; }
5643         fi
5644       fi
5645     fi
5646 
5647   fi
5648 
5649 
5650 
5651   if test "x$BASH" = x; then
5652     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5653   fi
5654 
5655 
5656 
5657 
5658 
5659   # Publish this variable in the help.
5660 
5661 
5662   if [ -z "${CAT+x}" ]; then
5663     # The variable is not set by user, try to locate tool using the code snippet
5664     for ac_prog in cat
5665 do
5666   # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_path_CAT+:} false; then :
5671   $as_echo_n "(cached) " >&6
5672 else
5673   case $CAT in
5674   [\\/]* | ?:[\\/]*)
5675   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5676   ;;
5677   *)
5678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   test -z "$as_dir" && as_dir=.
5683     for ac_exec_ext in '' $ac_executable_extensions; do
5684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687     break 2
5688   fi
5689 done
5690   done
5691 IFS=$as_save_IFS
5692 
5693   ;;
5694 esac
5695 fi
5696 CAT=$ac_cv_path_CAT
5697 if test -n "$CAT"; then
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5699 $as_echo "$CAT" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704 
5705 
5706   test -n "$CAT" && break
5707 done
5708 
5709   else
5710     # The variable is set, but is it from the command line or the environment?
5711 
5712     # Try to remove the string !CAT! from our list.
5713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5715       # If it failed, the variable was not from the command line. Ignore it,
5716       # but warn the user (except for BASH, which is always set by the calling BASH).
5717       if test "xCAT" != xBASH; then
5718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5719 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5720       fi
5721       # Try to locate tool using the code snippet
5722       for ac_prog in cat
5723 do
5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_path_CAT+:} false; then :
5729   $as_echo_n "(cached) " >&6
5730 else
5731   case $CAT in
5732   [\\/]* | ?:[\\/]*)
5733   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5734   ;;
5735   *)
5736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741     for ac_exec_ext in '' $ac_executable_extensions; do
5742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748   done
5749 IFS=$as_save_IFS
5750 
5751   ;;
5752 esac
5753 fi
5754 CAT=$ac_cv_path_CAT
5755 if test -n "$CAT"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5757 $as_echo "$CAT" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762 
5763 
5764   test -n "$CAT" && break
5765 done
5766 
5767     else
5768       # If it succeeded, then it was overridden by the user. We will use it
5769       # for the tool.
5770 
5771       # First remove it from the list of overridden variables, so we can test
5772       # for unknown variables in the end.
5773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5774 
5775       # Check if we try to supply an empty value
5776       if test "x$CAT" = x; then
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5778 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5780 $as_echo_n "checking for CAT... " >&6; }
5781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5782 $as_echo "disabled" >&6; }
5783       else
5784         # Check if the provided tool contains a complete path.
5785         tool_specified="$CAT"
5786         tool_basename="${tool_specified##*/}"
5787         if test "x$tool_basename" = "x$tool_specified"; then
5788           # A command without a complete path is provided, search $PATH.
5789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5790 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5791           # Extract the first word of "$tool_basename", so it can be a program name with args.
5792 set dummy $tool_basename; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_CAT+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $CAT in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817 
5818   ;;
5819 esac
5820 fi
5821 CAT=$ac_cv_path_CAT
5822 if test -n "$CAT"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5824 $as_echo "$CAT" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829 
5830 
5831           if test "x$CAT" = x; then
5832             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5833           fi
5834         else
5835           # Otherwise we believe it is a complete path. Use it as it is.
5836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5837 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5838           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5839 $as_echo_n "checking for CAT... " >&6; }
5840           if test ! -x "$tool_specified"; then
5841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5842 $as_echo "not found" >&6; }
5843             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5844           fi
5845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5846 $as_echo "$tool_specified" >&6; }
5847         fi
5848       fi
5849     fi
5850 
5851   fi
5852 
5853 
5854 
5855   if test "x$CAT" = x; then
5856     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5857   fi
5858 
5859 
5860 
5861 
5862 
5863   # Publish this variable in the help.
5864 
5865 
5866   if [ -z "${CHMOD+x}" ]; then
5867     # The variable is not set by user, try to locate tool using the code snippet
5868     for ac_prog in chmod
5869 do
5870   # Extract the first word of "$ac_prog", so it can be a program name with args.
5871 set dummy $ac_prog; ac_word=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if ${ac_cv_path_CHMOD+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   case $CHMOD in
5878   [\\/]* | ?:[\\/]*)
5879   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5880   ;;
5881   *)
5882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887     for ac_exec_ext in '' $ac_executable_extensions; do
5888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894   done
5895 IFS=$as_save_IFS
5896 
5897   ;;
5898 esac
5899 fi
5900 CHMOD=$ac_cv_path_CHMOD
5901 if test -n "$CHMOD"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5903 $as_echo "$CHMOD" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908 
5909 
5910   test -n "$CHMOD" && break
5911 done
5912 
5913   else
5914     # The variable is set, but is it from the command line or the environment?
5915 
5916     # Try to remove the string !CHMOD! from our list.
5917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5919       # If it failed, the variable was not from the command line. Ignore it,
5920       # but warn the user (except for BASH, which is always set by the calling BASH).
5921       if test "xCHMOD" != xBASH; then
5922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5923 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5924       fi
5925       # Try to locate tool using the code snippet
5926       for ac_prog in chmod
5927 do
5928   # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if ${ac_cv_path_CHMOD+:} false; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   case $CHMOD in
5936   [\\/]* | ?:[\\/]*)
5937   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5938   ;;
5939   *)
5940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954 
5955   ;;
5956 esac
5957 fi
5958 CHMOD=$ac_cv_path_CHMOD
5959 if test -n "$CHMOD"; then
5960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5961 $as_echo "$CHMOD" >&6; }
5962 else
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5965 fi
5966 
5967 
5968   test -n "$CHMOD" && break
5969 done
5970 
5971     else
5972       # If it succeeded, then it was overridden by the user. We will use it
5973       # for the tool.
5974 
5975       # First remove it from the list of overridden variables, so we can test
5976       # for unknown variables in the end.
5977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5978 
5979       # Check if we try to supply an empty value
5980       if test "x$CHMOD" = x; then
5981         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5982 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5984 $as_echo_n "checking for CHMOD... " >&6; }
5985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5986 $as_echo "disabled" >&6; }
5987       else
5988         # Check if the provided tool contains a complete path.
5989         tool_specified="$CHMOD"
5990         tool_basename="${tool_specified##*/}"
5991         if test "x$tool_basename" = "x$tool_specified"; then
5992           # A command without a complete path is provided, search $PATH.
5993           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5994 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5995           # Extract the first word of "$tool_basename", so it can be a program name with args.
5996 set dummy $tool_basename; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_path_CHMOD+:} false; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   case $CHMOD in
6003   [\\/]* | ?:[\\/]*)
6004   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6005   ;;
6006   *)
6007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012     for ac_exec_ext in '' $ac_executable_extensions; do
6013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
6015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019   done
6020 IFS=$as_save_IFS
6021 
6022   ;;
6023 esac
6024 fi
6025 CHMOD=$ac_cv_path_CHMOD
6026 if test -n "$CHMOD"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6028 $as_echo "$CHMOD" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033 
6034 
6035           if test "x$CHMOD" = x; then
6036             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6037           fi
6038         else
6039           # Otherwise we believe it is a complete path. Use it as it is.
6040           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
6041 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
6042           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
6043 $as_echo_n "checking for CHMOD... " >&6; }
6044           if test ! -x "$tool_specified"; then
6045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6046 $as_echo "not found" >&6; }
6047             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
6048           fi
6049           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6050 $as_echo "$tool_specified" >&6; }
6051         fi
6052       fi
6053     fi
6054 
6055   fi
6056 
6057 
6058 
6059   if test "x$CHMOD" = x; then
6060     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
6061   fi
6062 
6063 
6064 
6065 
6066 
6067   # Publish this variable in the help.
6068 
6069 
6070   if [ -z "${CMP+x}" ]; then
6071     # The variable is not set by user, try to locate tool using the code snippet
6072     for ac_prog in cmp
6073 do
6074   # Extract the first word of "$ac_prog", so it can be a program name with args.
6075 set dummy $ac_prog; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_path_CMP+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   case $CMP in
6082   [\\/]* | ?:[\\/]*)
6083   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6084   ;;
6085   *)
6086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091     for ac_exec_ext in '' $ac_executable_extensions; do
6092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098   done
6099 IFS=$as_save_IFS
6100 
6101   ;;
6102 esac
6103 fi
6104 CMP=$ac_cv_path_CMP
6105 if test -n "$CMP"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6107 $as_echo "$CMP" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112 
6113 
6114   test -n "$CMP" && break
6115 done
6116 
6117   else
6118     # The variable is set, but is it from the command line or the environment?
6119 
6120     # Try to remove the string !CMP! from our list.
6121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6123       # If it failed, the variable was not from the command line. Ignore it,
6124       # but warn the user (except for BASH, which is always set by the calling BASH).
6125       if test "xCMP" != xBASH; then
6126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6127 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6128       fi
6129       # Try to locate tool using the code snippet
6130       for ac_prog in cmp
6131 do
6132   # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_path_CMP+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   case $CMP in
6140   [\\/]* | ?:[\\/]*)
6141   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6142   ;;
6143   *)
6144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156   done
6157 IFS=$as_save_IFS
6158 
6159   ;;
6160 esac
6161 fi
6162 CMP=$ac_cv_path_CMP
6163 if test -n "$CMP"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6165 $as_echo "$CMP" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170 
6171 
6172   test -n "$CMP" && break
6173 done
6174 
6175     else
6176       # If it succeeded, then it was overridden by the user. We will use it
6177       # for the tool.
6178 
6179       # First remove it from the list of overridden variables, so we can test
6180       # for unknown variables in the end.
6181       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6182 
6183       # Check if we try to supply an empty value
6184       if test "x$CMP" = x; then
6185         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6186 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6188 $as_echo_n "checking for CMP... " >&6; }
6189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6190 $as_echo "disabled" >&6; }
6191       else
6192         # Check if the provided tool contains a complete path.
6193         tool_specified="$CMP"
6194         tool_basename="${tool_specified##*/}"
6195         if test "x$tool_basename" = "x$tool_specified"; then
6196           # A command without a complete path is provided, search $PATH.
6197           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6198 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6199           # Extract the first word of "$tool_basename", so it can be a program name with args.
6200 set dummy $tool_basename; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_path_CMP+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   case $CMP in
6207   [\\/]* | ?:[\\/]*)
6208   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6209   ;;
6210   *)
6211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216     for ac_exec_ext in '' $ac_executable_extensions; do
6217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223   done
6224 IFS=$as_save_IFS
6225 
6226   ;;
6227 esac
6228 fi
6229 CMP=$ac_cv_path_CMP
6230 if test -n "$CMP"; then
6231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6232 $as_echo "$CMP" >&6; }
6233 else
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237 
6238 
6239           if test "x$CMP" = x; then
6240             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6241           fi
6242         else
6243           # Otherwise we believe it is a complete path. Use it as it is.
6244           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6245 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6246           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6247 $as_echo_n "checking for CMP... " >&6; }
6248           if test ! -x "$tool_specified"; then
6249             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6250 $as_echo "not found" >&6; }
6251             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6252           fi
6253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6254 $as_echo "$tool_specified" >&6; }
6255         fi
6256       fi
6257     fi
6258 
6259   fi
6260 
6261 
6262 
6263   if test "x$CMP" = x; then
6264     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6265   fi
6266 
6267 
6268 
6269 
6270 
6271   # Publish this variable in the help.
6272 
6273 
6274   if [ -z "${COMM+x}" ]; then
6275     # The variable is not set by user, try to locate tool using the code snippet
6276     for ac_prog in comm
6277 do
6278   # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_path_COMM+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   case $COMM in
6286   [\\/]* | ?:[\\/]*)
6287   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6288   ;;
6289   *)
6290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304 
6305   ;;
6306 esac
6307 fi
6308 COMM=$ac_cv_path_COMM
6309 if test -n "$COMM"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6311 $as_echo "$COMM" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316 
6317 
6318   test -n "$COMM" && break
6319 done
6320 
6321   else
6322     # The variable is set, but is it from the command line or the environment?
6323 
6324     # Try to remove the string !COMM! from our list.
6325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6327       # If it failed, the variable was not from the command line. Ignore it,
6328       # but warn the user (except for BASH, which is always set by the calling BASH).
6329       if test "xCOMM" != xBASH; then
6330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6331 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6332       fi
6333       # Try to locate tool using the code snippet
6334       for ac_prog in comm
6335 do
6336   # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_path_COMM+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   case $COMM in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353     for ac_exec_ext in '' $ac_executable_extensions; do
6354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360   done
6361 IFS=$as_save_IFS
6362 
6363   ;;
6364 esac
6365 fi
6366 COMM=$ac_cv_path_COMM
6367 if test -n "$COMM"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6369 $as_echo "$COMM" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374 
6375 
6376   test -n "$COMM" && break
6377 done
6378 
6379     else
6380       # If it succeeded, then it was overridden by the user. We will use it
6381       # for the tool.
6382 
6383       # First remove it from the list of overridden variables, so we can test
6384       # for unknown variables in the end.
6385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6386 
6387       # Check if we try to supply an empty value
6388       if test "x$COMM" = x; then
6389         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6390 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6392 $as_echo_n "checking for COMM... " >&6; }
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6394 $as_echo "disabled" >&6; }
6395       else
6396         # Check if the provided tool contains a complete path.
6397         tool_specified="$COMM"
6398         tool_basename="${tool_specified##*/}"
6399         if test "x$tool_basename" = "x$tool_specified"; then
6400           # A command without a complete path is provided, search $PATH.
6401           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6402 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6403           # Extract the first word of "$tool_basename", so it can be a program name with args.
6404 set dummy $tool_basename; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_path_COMM+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   case $COMM in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420     for ac_exec_ext in '' $ac_executable_extensions; do
6421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6422     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427   done
6428 IFS=$as_save_IFS
6429 
6430   ;;
6431 esac
6432 fi
6433 COMM=$ac_cv_path_COMM
6434 if test -n "$COMM"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6436 $as_echo "$COMM" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441 
6442 
6443           if test "x$COMM" = x; then
6444             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6445           fi
6446         else
6447           # Otherwise we believe it is a complete path. Use it as it is.
6448           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6449 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6450           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6451 $as_echo_n "checking for COMM... " >&6; }
6452           if test ! -x "$tool_specified"; then
6453             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6454 $as_echo "not found" >&6; }
6455             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6456           fi
6457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6458 $as_echo "$tool_specified" >&6; }
6459         fi
6460       fi
6461     fi
6462 
6463   fi
6464 
6465 
6466 
6467   if test "x$COMM" = x; then
6468     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6469   fi
6470 
6471 
6472 
6473 
6474 
6475   # Publish this variable in the help.
6476 
6477 
6478   if [ -z "${CP+x}" ]; then
6479     # The variable is not set by user, try to locate tool using the code snippet
6480     for ac_prog in cp
6481 do
6482   # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_path_CP+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   case $CP in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508 
6509   ;;
6510 esac
6511 fi
6512 CP=$ac_cv_path_CP
6513 if test -n "$CP"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6515 $as_echo "$CP" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520 
6521 
6522   test -n "$CP" && break
6523 done
6524 
6525   else
6526     # The variable is set, but is it from the command line or the environment?
6527 
6528     # Try to remove the string !CP! from our list.
6529     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6530     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6531       # If it failed, the variable was not from the command line. Ignore it,
6532       # but warn the user (except for BASH, which is always set by the calling BASH).
6533       if test "xCP" != xBASH; then
6534         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6535 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6536       fi
6537       # Try to locate tool using the code snippet
6538       for ac_prog in cp
6539 do
6540   # Extract the first word of "$ac_prog", so it can be a program name with args.
6541 set dummy $ac_prog; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_path_CP+:} false; then :
6545   $as_echo_n "(cached) " >&6
6546 else
6547   case $CP in
6548   [\\/]* | ?:[\\/]*)
6549   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6550   ;;
6551   *)
6552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555   IFS=$as_save_IFS
6556   test -z "$as_dir" && as_dir=.
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566 
6567   ;;
6568 esac
6569 fi
6570 CP=$ac_cv_path_CP
6571 if test -n "$CP"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6573 $as_echo "$CP" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578 
6579 
6580   test -n "$CP" && break
6581 done
6582 
6583     else
6584       # If it succeeded, then it was overridden by the user. We will use it
6585       # for the tool.
6586 
6587       # First remove it from the list of overridden variables, so we can test
6588       # for unknown variables in the end.
6589       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6590 
6591       # Check if we try to supply an empty value
6592       if test "x$CP" = x; then
6593         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6594 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6596 $as_echo_n "checking for CP... " >&6; }
6597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6598 $as_echo "disabled" >&6; }
6599       else
6600         # Check if the provided tool contains a complete path.
6601         tool_specified="$CP"
6602         tool_basename="${tool_specified##*/}"
6603         if test "x$tool_basename" = "x$tool_specified"; then
6604           # A command without a complete path is provided, search $PATH.
6605           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6606 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6607           # Extract the first word of "$tool_basename", so it can be a program name with args.
6608 set dummy $tool_basename; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_path_CP+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   case $CP in
6615   [\\/]* | ?:[\\/]*)
6616   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6617   ;;
6618   *)
6619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633 
6634   ;;
6635 esac
6636 fi
6637 CP=$ac_cv_path_CP
6638 if test -n "$CP"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6640 $as_echo "$CP" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645 
6646 
6647           if test "x$CP" = x; then
6648             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6649           fi
6650         else
6651           # Otherwise we believe it is a complete path. Use it as it is.
6652           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6653 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6654           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6655 $as_echo_n "checking for CP... " >&6; }
6656           if test ! -x "$tool_specified"; then
6657             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6658 $as_echo "not found" >&6; }
6659             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6660           fi
6661           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6662 $as_echo "$tool_specified" >&6; }
6663         fi
6664       fi
6665     fi
6666 
6667   fi
6668 
6669 
6670 
6671   if test "x$CP" = x; then
6672     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6673   fi
6674 
6675 
6676 
6677 
6678 
6679   # Publish this variable in the help.
6680 
6681 
6682   if [ -z "${CUT+x}" ]; then
6683     # The variable is not set by user, try to locate tool using the code snippet
6684     for ac_prog in cut
6685 do
6686   # Extract the first word of "$ac_prog", so it can be a program name with args.
6687 set dummy $ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_path_CUT+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   case $CUT in
6694   [\\/]* | ?:[\\/]*)
6695   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6696   ;;
6697   *)
6698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6700 do
6701   IFS=$as_save_IFS
6702   test -z "$as_dir" && as_dir=.
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712 
6713   ;;
6714 esac
6715 fi
6716 CUT=$ac_cv_path_CUT
6717 if test -n "$CUT"; then
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6719 $as_echo "$CUT" >&6; }
6720 else
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724 
6725 
6726   test -n "$CUT" && break
6727 done
6728 
6729   else
6730     # The variable is set, but is it from the command line or the environment?
6731 
6732     # Try to remove the string !CUT! from our list.
6733     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6734     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6735       # If it failed, the variable was not from the command line. Ignore it,
6736       # but warn the user (except for BASH, which is always set by the calling BASH).
6737       if test "xCUT" != xBASH; then
6738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6739 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6740       fi
6741       # Try to locate tool using the code snippet
6742       for ac_prog in cut
6743 do
6744   # Extract the first word of "$ac_prog", so it can be a program name with args.
6745 set dummy $ac_prog; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_path_CUT+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   case $CUT in
6752   [\\/]* | ?:[\\/]*)
6753   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6754   ;;
6755   *)
6756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770 
6771   ;;
6772 esac
6773 fi
6774 CUT=$ac_cv_path_CUT
6775 if test -n "$CUT"; then
6776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6777 $as_echo "$CUT" >&6; }
6778 else
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782 
6783 
6784   test -n "$CUT" && break
6785 done
6786 
6787     else
6788       # If it succeeded, then it was overridden by the user. We will use it
6789       # for the tool.
6790 
6791       # First remove it from the list of overridden variables, so we can test
6792       # for unknown variables in the end.
6793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6794 
6795       # Check if we try to supply an empty value
6796       if test "x$CUT" = x; then
6797         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6798 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6800 $as_echo_n "checking for CUT... " >&6; }
6801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6802 $as_echo "disabled" >&6; }
6803       else
6804         # Check if the provided tool contains a complete path.
6805         tool_specified="$CUT"
6806         tool_basename="${tool_specified##*/}"
6807         if test "x$tool_basename" = "x$tool_specified"; then
6808           # A command without a complete path is provided, search $PATH.
6809           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6810 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6811           # Extract the first word of "$tool_basename", so it can be a program name with args.
6812 set dummy $tool_basename; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_path_CUT+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   case $CUT in
6819   [\\/]* | ?:[\\/]*)
6820   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6821   ;;
6822   *)
6823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835   done
6836 IFS=$as_save_IFS
6837 
6838   ;;
6839 esac
6840 fi
6841 CUT=$ac_cv_path_CUT
6842 if test -n "$CUT"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6844 $as_echo "$CUT" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849 
6850 
6851           if test "x$CUT" = x; then
6852             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6853           fi
6854         else
6855           # Otherwise we believe it is a complete path. Use it as it is.
6856           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6857 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6859 $as_echo_n "checking for CUT... " >&6; }
6860           if test ! -x "$tool_specified"; then
6861             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6862 $as_echo "not found" >&6; }
6863             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6864           fi
6865           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6866 $as_echo "$tool_specified" >&6; }
6867         fi
6868       fi
6869     fi
6870 
6871   fi
6872 
6873 
6874 
6875   if test "x$CUT" = x; then
6876     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6877   fi
6878 
6879 
6880 
6881 
6882 
6883   # Publish this variable in the help.
6884 
6885 
6886   if [ -z "${DATE+x}" ]; then
6887     # The variable is not set by user, try to locate tool using the code snippet
6888     for ac_prog in date
6889 do
6890   # Extract the first word of "$ac_prog", so it can be a program name with args.
6891 set dummy $ac_prog; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_path_DATE+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   case $DATE in
6898   [\\/]* | ?:[\\/]*)
6899   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6900   ;;
6901   *)
6902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916 
6917   ;;
6918 esac
6919 fi
6920 DATE=$ac_cv_path_DATE
6921 if test -n "$DATE"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6923 $as_echo "$DATE" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928 
6929 
6930   test -n "$DATE" && break
6931 done
6932 
6933   else
6934     # The variable is set, but is it from the command line or the environment?
6935 
6936     # Try to remove the string !DATE! from our list.
6937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6939       # If it failed, the variable was not from the command line. Ignore it,
6940       # but warn the user (except for BASH, which is always set by the calling BASH).
6941       if test "xDATE" != xBASH; then
6942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6943 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6944       fi
6945       # Try to locate tool using the code snippet
6946       for ac_prog in date
6947 do
6948   # Extract the first word of "$ac_prog", so it can be a program name with args.
6949 set dummy $ac_prog; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_path_DATE+:} false; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   case $DATE in
6956   [\\/]* | ?:[\\/]*)
6957   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6958   ;;
6959   *)
6960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974 
6975   ;;
6976 esac
6977 fi
6978 DATE=$ac_cv_path_DATE
6979 if test -n "$DATE"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6981 $as_echo "$DATE" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986 
6987 
6988   test -n "$DATE" && break
6989 done
6990 
6991     else
6992       # If it succeeded, then it was overridden by the user. We will use it
6993       # for the tool.
6994 
6995       # First remove it from the list of overridden variables, so we can test
6996       # for unknown variables in the end.
6997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6998 
6999       # Check if we try to supply an empty value
7000       if test "x$DATE" = x; then
7001         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
7002 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
7003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7004 $as_echo_n "checking for DATE... " >&6; }
7005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7006 $as_echo "disabled" >&6; }
7007       else
7008         # Check if the provided tool contains a complete path.
7009         tool_specified="$DATE"
7010         tool_basename="${tool_specified##*/}"
7011         if test "x$tool_basename" = "x$tool_specified"; then
7012           # A command without a complete path is provided, search $PATH.
7013           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
7014 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
7015           # Extract the first word of "$tool_basename", so it can be a program name with args.
7016 set dummy $tool_basename; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if ${ac_cv_path_DATE+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   case $DATE in
7023   [\\/]* | ?:[\\/]*)
7024   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
7025   ;;
7026   *)
7027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041 
7042   ;;
7043 esac
7044 fi
7045 DATE=$ac_cv_path_DATE
7046 if test -n "$DATE"; then
7047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
7048 $as_echo "$DATE" >&6; }
7049 else
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053 
7054 
7055           if test "x$DATE" = x; then
7056             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7057           fi
7058         else
7059           # Otherwise we believe it is a complete path. Use it as it is.
7060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
7061 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
7062           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
7063 $as_echo_n "checking for DATE... " >&6; }
7064           if test ! -x "$tool_specified"; then
7065             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7066 $as_echo "not found" >&6; }
7067             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
7068           fi
7069           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7070 $as_echo "$tool_specified" >&6; }
7071         fi
7072       fi
7073     fi
7074 
7075   fi
7076 
7077 
7078 
7079   if test "x$DATE" = x; then
7080     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
7081   fi
7082 
7083 
7084 
7085 
7086 
7087   # Publish this variable in the help.
7088 
7089 
7090   if [ -z "${DIFF+x}" ]; then
7091     # The variable is not set by user, try to locate tool using the code snippet
7092     for ac_prog in gdiff diff
7093 do
7094   # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_path_DIFF+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   case $DIFF in
7102   [\\/]* | ?:[\\/]*)
7103   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7104   ;;
7105   *)
7106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120 
7121   ;;
7122 esac
7123 fi
7124 DIFF=$ac_cv_path_DIFF
7125 if test -n "$DIFF"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7127 $as_echo "$DIFF" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132 
7133 
7134   test -n "$DIFF" && break
7135 done
7136 
7137   else
7138     # The variable is set, but is it from the command line or the environment?
7139 
7140     # Try to remove the string !DIFF! from our list.
7141     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7142     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7143       # If it failed, the variable was not from the command line. Ignore it,
7144       # but warn the user (except for BASH, which is always set by the calling BASH).
7145       if test "xDIFF" != xBASH; then
7146         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7147 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7148       fi
7149       # Try to locate tool using the code snippet
7150       for ac_prog in gdiff diff
7151 do
7152   # Extract the first word of "$ac_prog", so it can be a program name with args.
7153 set dummy $ac_prog; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if ${ac_cv_path_DIFF+:} false; then :
7157   $as_echo_n "(cached) " >&6
7158 else
7159   case $DIFF in
7160   [\\/]* | ?:[\\/]*)
7161   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7162   ;;
7163   *)
7164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169     for ac_exec_ext in '' $ac_executable_extensions; do
7170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176   done
7177 IFS=$as_save_IFS
7178 
7179   ;;
7180 esac
7181 fi
7182 DIFF=$ac_cv_path_DIFF
7183 if test -n "$DIFF"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7185 $as_echo "$DIFF" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190 
7191 
7192   test -n "$DIFF" && break
7193 done
7194 
7195     else
7196       # If it succeeded, then it was overridden by the user. We will use it
7197       # for the tool.
7198 
7199       # First remove it from the list of overridden variables, so we can test
7200       # for unknown variables in the end.
7201       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7202 
7203       # Check if we try to supply an empty value
7204       if test "x$DIFF" = x; then
7205         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7206 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7208 $as_echo_n "checking for DIFF... " >&6; }
7209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7210 $as_echo "disabled" >&6; }
7211       else
7212         # Check if the provided tool contains a complete path.
7213         tool_specified="$DIFF"
7214         tool_basename="${tool_specified##*/}"
7215         if test "x$tool_basename" = "x$tool_specified"; then
7216           # A command without a complete path is provided, search $PATH.
7217           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7218 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7219           # Extract the first word of "$tool_basename", so it can be a program name with args.
7220 set dummy $tool_basename; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_path_DIFF+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   case $DIFF in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236     for ac_exec_ext in '' $ac_executable_extensions; do
7237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243   done
7244 IFS=$as_save_IFS
7245 
7246   ;;
7247 esac
7248 fi
7249 DIFF=$ac_cv_path_DIFF
7250 if test -n "$DIFF"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7252 $as_echo "$DIFF" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257 
7258 
7259           if test "x$DIFF" = x; then
7260             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7261           fi
7262         else
7263           # Otherwise we believe it is a complete path. Use it as it is.
7264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7265 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7266           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7267 $as_echo_n "checking for DIFF... " >&6; }
7268           if test ! -x "$tool_specified"; then
7269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7270 $as_echo "not found" >&6; }
7271             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7272           fi
7273           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7274 $as_echo "$tool_specified" >&6; }
7275         fi
7276       fi
7277     fi
7278 
7279   fi
7280 
7281 
7282 
7283   if test "x$DIFF" = x; then
7284     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7285   fi
7286 
7287 
7288 
7289 
7290 
7291   # Publish this variable in the help.
7292 
7293 
7294   if [ -z "${DIRNAME+x}" ]; then
7295     # The variable is not set by user, try to locate tool using the code snippet
7296     for ac_prog in dirname
7297 do
7298   # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 set dummy $ac_prog; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_path_DIRNAME+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   case $DIRNAME in
7306   [\\/]* | ?:[\\/]*)
7307   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7308   ;;
7309   *)
7310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315     for ac_exec_ext in '' $ac_executable_extensions; do
7316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322   done
7323 IFS=$as_save_IFS
7324 
7325   ;;
7326 esac
7327 fi
7328 DIRNAME=$ac_cv_path_DIRNAME
7329 if test -n "$DIRNAME"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7331 $as_echo "$DIRNAME" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336 
7337 
7338   test -n "$DIRNAME" && break
7339 done
7340 
7341   else
7342     # The variable is set, but is it from the command line or the environment?
7343 
7344     # Try to remove the string !DIRNAME! from our list.
7345     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7346     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7347       # If it failed, the variable was not from the command line. Ignore it,
7348       # but warn the user (except for BASH, which is always set by the calling BASH).
7349       if test "xDIRNAME" != xBASH; then
7350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7351 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7352       fi
7353       # Try to locate tool using the code snippet
7354       for ac_prog in dirname
7355 do
7356   # Extract the first word of "$ac_prog", so it can be a program name with args.
7357 set dummy $ac_prog; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_path_DIRNAME+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   case $DIRNAME in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382 
7383   ;;
7384 esac
7385 fi
7386 DIRNAME=$ac_cv_path_DIRNAME
7387 if test -n "$DIRNAME"; then
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7389 $as_echo "$DIRNAME" >&6; }
7390 else
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7393 fi
7394 
7395 
7396   test -n "$DIRNAME" && break
7397 done
7398 
7399     else
7400       # If it succeeded, then it was overridden by the user. We will use it
7401       # for the tool.
7402 
7403       # First remove it from the list of overridden variables, so we can test
7404       # for unknown variables in the end.
7405       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7406 
7407       # Check if we try to supply an empty value
7408       if test "x$DIRNAME" = x; then
7409         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7410 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7412 $as_echo_n "checking for DIRNAME... " >&6; }
7413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7414 $as_echo "disabled" >&6; }
7415       else
7416         # Check if the provided tool contains a complete path.
7417         tool_specified="$DIRNAME"
7418         tool_basename="${tool_specified##*/}"
7419         if test "x$tool_basename" = "x$tool_specified"; then
7420           # A command without a complete path is provided, search $PATH.
7421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7422 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7423           # Extract the first word of "$tool_basename", so it can be a program name with args.
7424 set dummy $tool_basename; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_path_DIRNAME+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   case $DIRNAME in
7431   [\\/]* | ?:[\\/]*)
7432   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7433   ;;
7434   *)
7435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449 
7450   ;;
7451 esac
7452 fi
7453 DIRNAME=$ac_cv_path_DIRNAME
7454 if test -n "$DIRNAME"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7456 $as_echo "$DIRNAME" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461 
7462 
7463           if test "x$DIRNAME" = x; then
7464             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7465           fi
7466         else
7467           # Otherwise we believe it is a complete path. Use it as it is.
7468           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7469 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7471 $as_echo_n "checking for DIRNAME... " >&6; }
7472           if test ! -x "$tool_specified"; then
7473             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7474 $as_echo "not found" >&6; }
7475             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7476           fi
7477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7478 $as_echo "$tool_specified" >&6; }
7479         fi
7480       fi
7481     fi
7482 
7483   fi
7484 
7485 
7486 
7487   if test "x$DIRNAME" = x; then
7488     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7489   fi
7490 
7491 
7492 
7493 
7494 
7495   # Publish this variable in the help.
7496 
7497 
7498   if [ -z "${ECHO+x}" ]; then
7499     # The variable is not set by user, try to locate tool using the code snippet
7500     for ac_prog in echo
7501 do
7502   # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_path_ECHO+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   case $ECHO in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519     for ac_exec_ext in '' $ac_executable_extensions; do
7520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526   done
7527 IFS=$as_save_IFS
7528 
7529   ;;
7530 esac
7531 fi
7532 ECHO=$ac_cv_path_ECHO
7533 if test -n "$ECHO"; then
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7535 $as_echo "$ECHO" >&6; }
7536 else
7537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540 
7541 
7542   test -n "$ECHO" && break
7543 done
7544 
7545   else
7546     # The variable is set, but is it from the command line or the environment?
7547 
7548     # Try to remove the string !ECHO! from our list.
7549     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7550     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7551       # If it failed, the variable was not from the command line. Ignore it,
7552       # but warn the user (except for BASH, which is always set by the calling BASH).
7553       if test "xECHO" != xBASH; then
7554         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7555 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7556       fi
7557       # Try to locate tool using the code snippet
7558       for ac_prog in echo
7559 do
7560   # Extract the first word of "$ac_prog", so it can be a program name with args.
7561 set dummy $ac_prog; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_path_ECHO+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   case $ECHO in
7568   [\\/]* | ?:[\\/]*)
7569   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7570   ;;
7571   *)
7572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586 
7587   ;;
7588 esac
7589 fi
7590 ECHO=$ac_cv_path_ECHO
7591 if test -n "$ECHO"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7593 $as_echo "$ECHO" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598 
7599 
7600   test -n "$ECHO" && break
7601 done
7602 
7603     else
7604       # If it succeeded, then it was overridden by the user. We will use it
7605       # for the tool.
7606 
7607       # First remove it from the list of overridden variables, so we can test
7608       # for unknown variables in the end.
7609       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7610 
7611       # Check if we try to supply an empty value
7612       if test "x$ECHO" = x; then
7613         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7614 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7616 $as_echo_n "checking for ECHO... " >&6; }
7617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7618 $as_echo "disabled" >&6; }
7619       else
7620         # Check if the provided tool contains a complete path.
7621         tool_specified="$ECHO"
7622         tool_basename="${tool_specified##*/}"
7623         if test "x$tool_basename" = "x$tool_specified"; then
7624           # A command without a complete path is provided, search $PATH.
7625           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7626 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7627           # Extract the first word of "$tool_basename", so it can be a program name with args.
7628 set dummy $tool_basename; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_path_ECHO+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   case $ECHO in
7635   [\\/]* | ?:[\\/]*)
7636   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7637   ;;
7638   *)
7639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653 
7654   ;;
7655 esac
7656 fi
7657 ECHO=$ac_cv_path_ECHO
7658 if test -n "$ECHO"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7660 $as_echo "$ECHO" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7664 fi
7665 
7666 
7667           if test "x$ECHO" = x; then
7668             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7669           fi
7670         else
7671           # Otherwise we believe it is a complete path. Use it as it is.
7672           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7673 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7674           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7675 $as_echo_n "checking for ECHO... " >&6; }
7676           if test ! -x "$tool_specified"; then
7677             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7678 $as_echo "not found" >&6; }
7679             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7680           fi
7681           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7682 $as_echo "$tool_specified" >&6; }
7683         fi
7684       fi
7685     fi
7686 
7687   fi
7688 
7689 
7690 
7691   if test "x$ECHO" = x; then
7692     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7693   fi
7694 
7695 
7696 
7697 
7698 
7699   # Publish this variable in the help.
7700 
7701 
7702   if [ -z "${EXPR+x}" ]; then
7703     # The variable is not set by user, try to locate tool using the code snippet
7704     for ac_prog in expr
7705 do
7706   # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_path_EXPR+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   case $EXPR in
7714   [\\/]* | ?:[\\/]*)
7715   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7716   ;;
7717   *)
7718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721   IFS=$as_save_IFS
7722   test -z "$as_dir" && as_dir=.
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727     break 2
7728   fi
7729 done
7730   done
7731 IFS=$as_save_IFS
7732 
7733   ;;
7734 esac
7735 fi
7736 EXPR=$ac_cv_path_EXPR
7737 if test -n "$EXPR"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7739 $as_echo "$EXPR" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744 
7745 
7746   test -n "$EXPR" && break
7747 done
7748 
7749   else
7750     # The variable is set, but is it from the command line or the environment?
7751 
7752     # Try to remove the string !EXPR! from our list.
7753     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7754     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7755       # If it failed, the variable was not from the command line. Ignore it,
7756       # but warn the user (except for BASH, which is always set by the calling BASH).
7757       if test "xEXPR" != xBASH; then
7758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7759 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7760       fi
7761       # Try to locate tool using the code snippet
7762       for ac_prog in expr
7763 do
7764   # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_path_EXPR+:} false; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   case $EXPR in
7772   [\\/]* | ?:[\\/]*)
7773   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7774   ;;
7775   *)
7776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779   IFS=$as_save_IFS
7780   test -z "$as_dir" && as_dir=.
7781     for ac_exec_ext in '' $ac_executable_extensions; do
7782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785     break 2
7786   fi
7787 done
7788   done
7789 IFS=$as_save_IFS
7790 
7791   ;;
7792 esac
7793 fi
7794 EXPR=$ac_cv_path_EXPR
7795 if test -n "$EXPR"; then
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7797 $as_echo "$EXPR" >&6; }
7798 else
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802 
7803 
7804   test -n "$EXPR" && break
7805 done
7806 
7807     else
7808       # If it succeeded, then it was overridden by the user. We will use it
7809       # for the tool.
7810 
7811       # First remove it from the list of overridden variables, so we can test
7812       # for unknown variables in the end.
7813       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7814 
7815       # Check if we try to supply an empty value
7816       if test "x$EXPR" = x; then
7817         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7818 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7820 $as_echo_n "checking for EXPR... " >&6; }
7821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7822 $as_echo "disabled" >&6; }
7823       else
7824         # Check if the provided tool contains a complete path.
7825         tool_specified="$EXPR"
7826         tool_basename="${tool_specified##*/}"
7827         if test "x$tool_basename" = "x$tool_specified"; then
7828           # A command without a complete path is provided, search $PATH.
7829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7830 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7831           # Extract the first word of "$tool_basename", so it can be a program name with args.
7832 set dummy $tool_basename; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_path_EXPR+:} false; then :
7836   $as_echo_n "(cached) " >&6
7837 else
7838   case $EXPR in
7839   [\\/]* | ?:[\\/]*)
7840   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7841   ;;
7842   *)
7843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846   IFS=$as_save_IFS
7847   test -z "$as_dir" && as_dir=.
7848     for ac_exec_ext in '' $ac_executable_extensions; do
7849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852     break 2
7853   fi
7854 done
7855   done
7856 IFS=$as_save_IFS
7857 
7858   ;;
7859 esac
7860 fi
7861 EXPR=$ac_cv_path_EXPR
7862 if test -n "$EXPR"; then
7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7864 $as_echo "$EXPR" >&6; }
7865 else
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868 fi
7869 
7870 
7871           if test "x$EXPR" = x; then
7872             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7873           fi
7874         else
7875           # Otherwise we believe it is a complete path. Use it as it is.
7876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7877 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7878           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7879 $as_echo_n "checking for EXPR... " >&6; }
7880           if test ! -x "$tool_specified"; then
7881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7882 $as_echo "not found" >&6; }
7883             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7884           fi
7885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7886 $as_echo "$tool_specified" >&6; }
7887         fi
7888       fi
7889     fi
7890 
7891   fi
7892 
7893 
7894 
7895   if test "x$EXPR" = x; then
7896     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7897   fi
7898 
7899 
7900 
7901 
7902 
7903   # Publish this variable in the help.
7904 
7905 
7906   if [ -z "${FILE+x}" ]; then
7907     # The variable is not set by user, try to locate tool using the code snippet
7908     for ac_prog in file
7909 do
7910   # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_path_FILE+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   case $FILE in
7918   [\\/]* | ?:[\\/]*)
7919   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7920   ;;
7921   *)
7922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927     for ac_exec_ext in '' $ac_executable_extensions; do
7928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934   done
7935 IFS=$as_save_IFS
7936 
7937   ;;
7938 esac
7939 fi
7940 FILE=$ac_cv_path_FILE
7941 if test -n "$FILE"; then
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7943 $as_echo "$FILE" >&6; }
7944 else
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948 
7949 
7950   test -n "$FILE" && break
7951 done
7952 
7953   else
7954     # The variable is set, but is it from the command line or the environment?
7955 
7956     # Try to remove the string !FILE! from our list.
7957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7959       # If it failed, the variable was not from the command line. Ignore it,
7960       # but warn the user (except for BASH, which is always set by the calling BASH).
7961       if test "xFILE" != xBASH; then
7962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7963 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7964       fi
7965       # Try to locate tool using the code snippet
7966       for ac_prog in file
7967 do
7968   # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_path_FILE+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   case $FILE in
7976   [\\/]* | ?:[\\/]*)
7977   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7978   ;;
7979   *)
7980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985     for ac_exec_ext in '' $ac_executable_extensions; do
7986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992   done
7993 IFS=$as_save_IFS
7994 
7995   ;;
7996 esac
7997 fi
7998 FILE=$ac_cv_path_FILE
7999 if test -n "$FILE"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8001 $as_echo "$FILE" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006 
8007 
8008   test -n "$FILE" && break
8009 done
8010 
8011     else
8012       # If it succeeded, then it was overridden by the user. We will use it
8013       # for the tool.
8014 
8015       # First remove it from the list of overridden variables, so we can test
8016       # for unknown variables in the end.
8017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8018 
8019       # Check if we try to supply an empty value
8020       if test "x$FILE" = x; then
8021         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
8022 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
8023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8024 $as_echo_n "checking for FILE... " >&6; }
8025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8026 $as_echo "disabled" >&6; }
8027       else
8028         # Check if the provided tool contains a complete path.
8029         tool_specified="$FILE"
8030         tool_basename="${tool_specified##*/}"
8031         if test "x$tool_basename" = "x$tool_specified"; then
8032           # A command without a complete path is provided, search $PATH.
8033           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
8034 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
8035           # Extract the first word of "$tool_basename", so it can be a program name with args.
8036 set dummy $tool_basename; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_path_FILE+:} false; then :
8040   $as_echo_n "(cached) " >&6
8041 else
8042   case $FILE in
8043   [\\/]* | ?:[\\/]*)
8044   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
8045   ;;
8046   *)
8047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050   IFS=$as_save_IFS
8051   test -z "$as_dir" && as_dir=.
8052     for ac_exec_ext in '' $ac_executable_extensions; do
8053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
8055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056     break 2
8057   fi
8058 done
8059   done
8060 IFS=$as_save_IFS
8061 
8062   ;;
8063 esac
8064 fi
8065 FILE=$ac_cv_path_FILE
8066 if test -n "$FILE"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
8068 $as_echo "$FILE" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073 
8074 
8075           if test "x$FILE" = x; then
8076             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8077           fi
8078         else
8079           # Otherwise we believe it is a complete path. Use it as it is.
8080           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
8081 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
8082           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
8083 $as_echo_n "checking for FILE... " >&6; }
8084           if test ! -x "$tool_specified"; then
8085             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8086 $as_echo "not found" >&6; }
8087             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
8088           fi
8089           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8090 $as_echo "$tool_specified" >&6; }
8091         fi
8092       fi
8093     fi
8094 
8095   fi
8096 
8097 
8098 
8099   if test "x$FILE" = x; then
8100     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
8101   fi
8102 
8103 
8104 
8105 
8106 
8107   # Publish this variable in the help.
8108 
8109 
8110   if [ -z "${FIND+x}" ]; then
8111     # The variable is not set by user, try to locate tool using the code snippet
8112     for ac_prog in find
8113 do
8114   # Extract the first word of "$ac_prog", so it can be a program name with args.
8115 set dummy $ac_prog; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if ${ac_cv_path_FIND+:} false; then :
8119   $as_echo_n "(cached) " >&6
8120 else
8121   case $FIND in
8122   [\\/]* | ?:[\\/]*)
8123   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8124   ;;
8125   *)
8126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129   IFS=$as_save_IFS
8130   test -z "$as_dir" && as_dir=.
8131     for ac_exec_ext in '' $ac_executable_extensions; do
8132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135     break 2
8136   fi
8137 done
8138   done
8139 IFS=$as_save_IFS
8140 
8141   ;;
8142 esac
8143 fi
8144 FIND=$ac_cv_path_FIND
8145 if test -n "$FIND"; then
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8147 $as_echo "$FIND" >&6; }
8148 else
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8151 fi
8152 
8153 
8154   test -n "$FIND" && break
8155 done
8156 
8157   else
8158     # The variable is set, but is it from the command line or the environment?
8159 
8160     # Try to remove the string !FIND! from our list.
8161     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8162     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8163       # If it failed, the variable was not from the command line. Ignore it,
8164       # but warn the user (except for BASH, which is always set by the calling BASH).
8165       if test "xFIND" != xBASH; then
8166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8167 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8168       fi
8169       # Try to locate tool using the code snippet
8170       for ac_prog in find
8171 do
8172   # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_path_FIND+:} false; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   case $FIND in
8180   [\\/]* | ?:[\\/]*)
8181   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8182   ;;
8183   *)
8184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187   IFS=$as_save_IFS
8188   test -z "$as_dir" && as_dir=.
8189     for ac_exec_ext in '' $ac_executable_extensions; do
8190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193     break 2
8194   fi
8195 done
8196   done
8197 IFS=$as_save_IFS
8198 
8199   ;;
8200 esac
8201 fi
8202 FIND=$ac_cv_path_FIND
8203 if test -n "$FIND"; then
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8205 $as_echo "$FIND" >&6; }
8206 else
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210 
8211 
8212   test -n "$FIND" && break
8213 done
8214 
8215     else
8216       # If it succeeded, then it was overridden by the user. We will use it
8217       # for the tool.
8218 
8219       # First remove it from the list of overridden variables, so we can test
8220       # for unknown variables in the end.
8221       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8222 
8223       # Check if we try to supply an empty value
8224       if test "x$FIND" = x; then
8225         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8226 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8228 $as_echo_n "checking for FIND... " >&6; }
8229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8230 $as_echo "disabled" >&6; }
8231       else
8232         # Check if the provided tool contains a complete path.
8233         tool_specified="$FIND"
8234         tool_basename="${tool_specified##*/}"
8235         if test "x$tool_basename" = "x$tool_specified"; then
8236           # A command without a complete path is provided, search $PATH.
8237           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8238 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8239           # Extract the first word of "$tool_basename", so it can be a program name with args.
8240 set dummy $tool_basename; ac_word=$2
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8242 $as_echo_n "checking for $ac_word... " >&6; }
8243 if ${ac_cv_path_FIND+:} false; then :
8244   $as_echo_n "(cached) " >&6
8245 else
8246   case $FIND in
8247   [\\/]* | ?:[\\/]*)
8248   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8249   ;;
8250   *)
8251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 for as_dir in $PATH
8253 do
8254   IFS=$as_save_IFS
8255   test -z "$as_dir" && as_dir=.
8256     for ac_exec_ext in '' $ac_executable_extensions; do
8257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260     break 2
8261   fi
8262 done
8263   done
8264 IFS=$as_save_IFS
8265 
8266   ;;
8267 esac
8268 fi
8269 FIND=$ac_cv_path_FIND
8270 if test -n "$FIND"; then
8271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8272 $as_echo "$FIND" >&6; }
8273 else
8274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8276 fi
8277 
8278 
8279           if test "x$FIND" = x; then
8280             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8281           fi
8282         else
8283           # Otherwise we believe it is a complete path. Use it as it is.
8284           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8285 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8286           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8287 $as_echo_n "checking for FIND... " >&6; }
8288           if test ! -x "$tool_specified"; then
8289             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8290 $as_echo "not found" >&6; }
8291             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8292           fi
8293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8294 $as_echo "$tool_specified" >&6; }
8295         fi
8296       fi
8297     fi
8298 
8299   fi
8300 
8301 
8302 
8303   if test "x$FIND" = x; then
8304     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8305   fi
8306 
8307 
8308 
8309 
8310 
8311   # Publish this variable in the help.
8312 
8313 
8314   if [ -z "${HEAD+x}" ]; then
8315     # The variable is not set by user, try to locate tool using the code snippet
8316     for ac_prog in head
8317 do
8318   # Extract the first word of "$ac_prog", so it can be a program name with args.
8319 set dummy $ac_prog; ac_word=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if ${ac_cv_path_HEAD+:} false; then :
8323   $as_echo_n "(cached) " >&6
8324 else
8325   case $HEAD in
8326   [\\/]* | ?:[\\/]*)
8327   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8328   ;;
8329   *)
8330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333   IFS=$as_save_IFS
8334   test -z "$as_dir" && as_dir=.
8335     for ac_exec_ext in '' $ac_executable_extensions; do
8336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339     break 2
8340   fi
8341 done
8342   done
8343 IFS=$as_save_IFS
8344 
8345   ;;
8346 esac
8347 fi
8348 HEAD=$ac_cv_path_HEAD
8349 if test -n "$HEAD"; then
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8351 $as_echo "$HEAD" >&6; }
8352 else
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 fi
8356 
8357 
8358   test -n "$HEAD" && break
8359 done
8360 
8361   else
8362     # The variable is set, but is it from the command line or the environment?
8363 
8364     # Try to remove the string !HEAD! from our list.
8365     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8366     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8367       # If it failed, the variable was not from the command line. Ignore it,
8368       # but warn the user (except for BASH, which is always set by the calling BASH).
8369       if test "xHEAD" != xBASH; then
8370         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8371 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8372       fi
8373       # Try to locate tool using the code snippet
8374       for ac_prog in head
8375 do
8376   # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_path_HEAD+:} false; then :
8381   $as_echo_n "(cached) " >&6
8382 else
8383   case $HEAD in
8384   [\\/]* | ?:[\\/]*)
8385   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8386   ;;
8387   *)
8388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391   IFS=$as_save_IFS
8392   test -z "$as_dir" && as_dir=.
8393     for ac_exec_ext in '' $ac_executable_extensions; do
8394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397     break 2
8398   fi
8399 done
8400   done
8401 IFS=$as_save_IFS
8402 
8403   ;;
8404 esac
8405 fi
8406 HEAD=$ac_cv_path_HEAD
8407 if test -n "$HEAD"; then
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8409 $as_echo "$HEAD" >&6; }
8410 else
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414 
8415 
8416   test -n "$HEAD" && break
8417 done
8418 
8419     else
8420       # If it succeeded, then it was overridden by the user. We will use it
8421       # for the tool.
8422 
8423       # First remove it from the list of overridden variables, so we can test
8424       # for unknown variables in the end.
8425       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8426 
8427       # Check if we try to supply an empty value
8428       if test "x$HEAD" = x; then
8429         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8430 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8432 $as_echo_n "checking for HEAD... " >&6; }
8433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8434 $as_echo "disabled" >&6; }
8435       else
8436         # Check if the provided tool contains a complete path.
8437         tool_specified="$HEAD"
8438         tool_basename="${tool_specified##*/}"
8439         if test "x$tool_basename" = "x$tool_specified"; then
8440           # A command without a complete path is provided, search $PATH.
8441           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8442 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8443           # Extract the first word of "$tool_basename", so it can be a program name with args.
8444 set dummy $tool_basename; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if ${ac_cv_path_HEAD+:} false; then :
8448   $as_echo_n "(cached) " >&6
8449 else
8450   case $HEAD in
8451   [\\/]* | ?:[\\/]*)
8452   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8453   ;;
8454   *)
8455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458   IFS=$as_save_IFS
8459   test -z "$as_dir" && as_dir=.
8460     for ac_exec_ext in '' $ac_executable_extensions; do
8461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464     break 2
8465   fi
8466 done
8467   done
8468 IFS=$as_save_IFS
8469 
8470   ;;
8471 esac
8472 fi
8473 HEAD=$ac_cv_path_HEAD
8474 if test -n "$HEAD"; then
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8476 $as_echo "$HEAD" >&6; }
8477 else
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481 
8482 
8483           if test "x$HEAD" = x; then
8484             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8485           fi
8486         else
8487           # Otherwise we believe it is a complete path. Use it as it is.
8488           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8489 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8491 $as_echo_n "checking for HEAD... " >&6; }
8492           if test ! -x "$tool_specified"; then
8493             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8494 $as_echo "not found" >&6; }
8495             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8496           fi
8497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8498 $as_echo "$tool_specified" >&6; }
8499         fi
8500       fi
8501     fi
8502 
8503   fi
8504 
8505 
8506 
8507   if test "x$HEAD" = x; then
8508     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8509   fi
8510 
8511 
8512 
8513 
8514 
8515   # Publish this variable in the help.
8516 
8517 
8518   if [ -z "${GUNZIP+x}" ]; then
8519     # The variable is not set by user, try to locate tool using the code snippet
8520     for ac_prog in gunzip
8521 do
8522   # Extract the first word of "$ac_prog", so it can be a program name with args.
8523 set dummy $ac_prog; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if ${ac_cv_path_GUNZIP+:} false; then :
8527   $as_echo_n "(cached) " >&6
8528 else
8529   case $GUNZIP in
8530   [\\/]* | ?:[\\/]*)
8531   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8532   ;;
8533   *)
8534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537   IFS=$as_save_IFS
8538   test -z "$as_dir" && as_dir=.
8539     for ac_exec_ext in '' $ac_executable_extensions; do
8540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543     break 2
8544   fi
8545 done
8546   done
8547 IFS=$as_save_IFS
8548 
8549   ;;
8550 esac
8551 fi
8552 GUNZIP=$ac_cv_path_GUNZIP
8553 if test -n "$GUNZIP"; then
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8555 $as_echo "$GUNZIP" >&6; }
8556 else
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560 
8561 
8562   test -n "$GUNZIP" && break
8563 done
8564 
8565   else
8566     # The variable is set, but is it from the command line or the environment?
8567 
8568     # Try to remove the string !GUNZIP! from our list.
8569     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/}
8570     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8571       # If it failed, the variable was not from the command line. Ignore it,
8572       # but warn the user (except for BASH, which is always set by the calling BASH).
8573       if test "xGUNZIP" != xBASH; then
8574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5
8575 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;}
8576       fi
8577       # Try to locate tool using the code snippet
8578       for ac_prog in gunzip
8579 do
8580   # Extract the first word of "$ac_prog", so it can be a program name with args.
8581 set dummy $ac_prog; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_path_GUNZIP+:} false; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   case $GUNZIP in
8588   [\\/]* | ?:[\\/]*)
8589   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8590   ;;
8591   *)
8592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597     for ac_exec_ext in '' $ac_executable_extensions; do
8598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8599     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601     break 2
8602   fi
8603 done
8604   done
8605 IFS=$as_save_IFS
8606 
8607   ;;
8608 esac
8609 fi
8610 GUNZIP=$ac_cv_path_GUNZIP
8611 if test -n "$GUNZIP"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8613 $as_echo "$GUNZIP" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618 
8619 
8620   test -n "$GUNZIP" && break
8621 done
8622 
8623     else
8624       # If it succeeded, then it was overridden by the user. We will use it
8625       # for the tool.
8626 
8627       # First remove it from the list of overridden variables, so we can test
8628       # for unknown variables in the end.
8629       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8630 
8631       # Check if we try to supply an empty value
8632       if test "x$GUNZIP" = x; then
8633         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5
8634 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;}
8635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8636 $as_echo_n "checking for GUNZIP... " >&6; }
8637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8638 $as_echo "disabled" >&6; }
8639       else
8640         # Check if the provided tool contains a complete path.
8641         tool_specified="$GUNZIP"
8642         tool_basename="${tool_specified##*/}"
8643         if test "x$tool_basename" = "x$tool_specified"; then
8644           # A command without a complete path is provided, search $PATH.
8645           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5
8646 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;}
8647           # Extract the first word of "$tool_basename", so it can be a program name with args.
8648 set dummy $tool_basename; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_GUNZIP+:} false; then :
8652   $as_echo_n "(cached) " >&6
8653 else
8654   case $GUNZIP in
8655   [\\/]* | ?:[\\/]*)
8656   ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
8657   ;;
8658   *)
8659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8661 do
8662   IFS=$as_save_IFS
8663   test -z "$as_dir" && as_dir=.
8664     for ac_exec_ext in '' $ac_executable_extensions; do
8665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666     ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668     break 2
8669   fi
8670 done
8671   done
8672 IFS=$as_save_IFS
8673 
8674   ;;
8675 esac
8676 fi
8677 GUNZIP=$ac_cv_path_GUNZIP
8678 if test -n "$GUNZIP"; then
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
8680 $as_echo "$GUNZIP" >&6; }
8681 else
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8684 fi
8685 
8686 
8687           if test "x$GUNZIP" = x; then
8688             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8689           fi
8690         else
8691           # Otherwise we believe it is a complete path. Use it as it is.
8692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5
8693 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;}
8694           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5
8695 $as_echo_n "checking for GUNZIP... " >&6; }
8696           if test ! -x "$tool_specified"; then
8697             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8698 $as_echo "not found" >&6; }
8699             as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8700           fi
8701           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8702 $as_echo "$tool_specified" >&6; }
8703         fi
8704       fi
8705     fi
8706 
8707   fi
8708 
8709 
8710 
8711   if test "x$GUNZIP" = x; then
8712     as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5
8713   fi
8714 
8715 
8716 
8717 
8718 
8719   # Publish this variable in the help.
8720 
8721 
8722   if [ -z "${GZIP+x}" ]; then
8723     # The variable is not set by user, try to locate tool using the code snippet
8724     for ac_prog in pigz gzip
8725 do
8726   # Extract the first word of "$ac_prog", so it can be a program name with args.
8727 set dummy $ac_prog; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_path_GZIP+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   case $GZIP in
8734   [\\/]* | ?:[\\/]*)
8735   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8736   ;;
8737   *)
8738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741   IFS=$as_save_IFS
8742   test -z "$as_dir" && as_dir=.
8743     for ac_exec_ext in '' $ac_executable_extensions; do
8744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747     break 2
8748   fi
8749 done
8750   done
8751 IFS=$as_save_IFS
8752 
8753   ;;
8754 esac
8755 fi
8756 GZIP=$ac_cv_path_GZIP
8757 if test -n "$GZIP"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8759 $as_echo "$GZIP" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764 
8765 
8766   test -n "$GZIP" && break
8767 done
8768 
8769   else
8770     # The variable is set, but is it from the command line or the environment?
8771 
8772     # Try to remove the string !GZIP! from our list.
8773     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/}
8774     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8775       # If it failed, the variable was not from the command line. Ignore it,
8776       # but warn the user (except for BASH, which is always set by the calling BASH).
8777       if test "xGZIP" != xBASH; then
8778         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5
8779 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;}
8780       fi
8781       # Try to locate tool using the code snippet
8782       for ac_prog in pigz gzip
8783 do
8784   # Extract the first word of "$ac_prog", so it can be a program name with args.
8785 set dummy $ac_prog; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_path_GZIP+:} false; then :
8789   $as_echo_n "(cached) " >&6
8790 else
8791   case $GZIP in
8792   [\\/]* | ?:[\\/]*)
8793   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8794   ;;
8795   *)
8796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799   IFS=$as_save_IFS
8800   test -z "$as_dir" && as_dir=.
8801     for ac_exec_ext in '' $ac_executable_extensions; do
8802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805     break 2
8806   fi
8807 done
8808   done
8809 IFS=$as_save_IFS
8810 
8811   ;;
8812 esac
8813 fi
8814 GZIP=$ac_cv_path_GZIP
8815 if test -n "$GZIP"; then
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8817 $as_echo "$GZIP" >&6; }
8818 else
8819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822 
8823 
8824   test -n "$GZIP" && break
8825 done
8826 
8827     else
8828       # If it succeeded, then it was overridden by the user. We will use it
8829       # for the tool.
8830 
8831       # First remove it from the list of overridden variables, so we can test
8832       # for unknown variables in the end.
8833       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8834 
8835       # Check if we try to supply an empty value
8836       if test "x$GZIP" = x; then
8837         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5
8838 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;}
8839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8840 $as_echo_n "checking for GZIP... " >&6; }
8841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8842 $as_echo "disabled" >&6; }
8843       else
8844         # Check if the provided tool contains a complete path.
8845         tool_specified="$GZIP"
8846         tool_basename="${tool_specified##*/}"
8847         if test "x$tool_basename" = "x$tool_specified"; then
8848           # A command without a complete path is provided, search $PATH.
8849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5
8850 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;}
8851           # Extract the first word of "$tool_basename", so it can be a program name with args.
8852 set dummy $tool_basename; ac_word=$2
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854 $as_echo_n "checking for $ac_word... " >&6; }
8855 if ${ac_cv_path_GZIP+:} false; then :
8856   $as_echo_n "(cached) " >&6
8857 else
8858   case $GZIP in
8859   [\\/]* | ?:[\\/]*)
8860   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8861   ;;
8862   *)
8863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868     for ac_exec_ext in '' $ac_executable_extensions; do
8869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875   done
8876 IFS=$as_save_IFS
8877 
8878   ;;
8879 esac
8880 fi
8881 GZIP=$ac_cv_path_GZIP
8882 if test -n "$GZIP"; then
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
8884 $as_echo "$GZIP" >&6; }
8885 else
8886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889 
8890 
8891           if test "x$GZIP" = x; then
8892             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8893           fi
8894         else
8895           # Otherwise we believe it is a complete path. Use it as it is.
8896           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5
8897 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;}
8898           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5
8899 $as_echo_n "checking for GZIP... " >&6; }
8900           if test ! -x "$tool_specified"; then
8901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8902 $as_echo "not found" >&6; }
8903             as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
8904           fi
8905           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8906 $as_echo "$tool_specified" >&6; }
8907         fi
8908       fi
8909     fi
8910 
8911   fi
8912 
8913 
8914 
8915   if test "x$GZIP" = x; then
8916     as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5
8917   fi
8918 
8919 
8920 
8921 
8922 
8923   # Publish this variable in the help.
8924 
8925 
8926   if [ -z "${LN+x}" ]; then
8927     # The variable is not set by user, try to locate tool using the code snippet
8928     for ac_prog in ln
8929 do
8930   # Extract the first word of "$ac_prog", so it can be a program name with args.
8931 set dummy $ac_prog; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if ${ac_cv_path_LN+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   case $LN in
8938   [\\/]* | ?:[\\/]*)
8939   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8940   ;;
8941   *)
8942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8944 do
8945   IFS=$as_save_IFS
8946   test -z "$as_dir" && as_dir=.
8947     for ac_exec_ext in '' $ac_executable_extensions; do
8948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8949     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951     break 2
8952   fi
8953 done
8954   done
8955 IFS=$as_save_IFS
8956 
8957   ;;
8958 esac
8959 fi
8960 LN=$ac_cv_path_LN
8961 if test -n "$LN"; then
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8963 $as_echo "$LN" >&6; }
8964 else
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8967 fi
8968 
8969 
8970   test -n "$LN" && break
8971 done
8972 
8973   else
8974     # The variable is set, but is it from the command line or the environment?
8975 
8976     # Try to remove the string !LN! from our list.
8977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8979       # If it failed, the variable was not from the command line. Ignore it,
8980       # but warn the user (except for BASH, which is always set by the calling BASH).
8981       if test "xLN" != xBASH; then
8982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8983 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8984       fi
8985       # Try to locate tool using the code snippet
8986       for ac_prog in ln
8987 do
8988   # Extract the first word of "$ac_prog", so it can be a program name with args.
8989 set dummy $ac_prog; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_path_LN+:} false; then :
8993   $as_echo_n "(cached) " >&6
8994 else
8995   case $LN in
8996   [\\/]* | ?:[\\/]*)
8997   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8998   ;;
8999   *)
9000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005     for ac_exec_ext in '' $ac_executable_extensions; do
9006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012   done
9013 IFS=$as_save_IFS
9014 
9015   ;;
9016 esac
9017 fi
9018 LN=$ac_cv_path_LN
9019 if test -n "$LN"; then
9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9021 $as_echo "$LN" >&6; }
9022 else
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9025 fi
9026 
9027 
9028   test -n "$LN" && break
9029 done
9030 
9031     else
9032       # If it succeeded, then it was overridden by the user. We will use it
9033       # for the tool.
9034 
9035       # First remove it from the list of overridden variables, so we can test
9036       # for unknown variables in the end.
9037       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9038 
9039       # Check if we try to supply an empty value
9040       if test "x$LN" = x; then
9041         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
9042 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
9043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9044 $as_echo_n "checking for LN... " >&6; }
9045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9046 $as_echo "disabled" >&6; }
9047       else
9048         # Check if the provided tool contains a complete path.
9049         tool_specified="$LN"
9050         tool_basename="${tool_specified##*/}"
9051         if test "x$tool_basename" = "x$tool_specified"; then
9052           # A command without a complete path is provided, search $PATH.
9053           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
9054 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
9055           # Extract the first word of "$tool_basename", so it can be a program name with args.
9056 set dummy $tool_basename; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_path_LN+:} false; then :
9060   $as_echo_n "(cached) " >&6
9061 else
9062   case $LN in
9063   [\\/]* | ?:[\\/]*)
9064   ac_cv_path_LN="$LN" # Let the user override the test with a path.
9065   ;;
9066   *)
9067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9069 do
9070   IFS=$as_save_IFS
9071   test -z "$as_dir" && as_dir=.
9072     for ac_exec_ext in '' $ac_executable_extensions; do
9073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076     break 2
9077   fi
9078 done
9079   done
9080 IFS=$as_save_IFS
9081 
9082   ;;
9083 esac
9084 fi
9085 LN=$ac_cv_path_LN
9086 if test -n "$LN"; then
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9088 $as_echo "$LN" >&6; }
9089 else
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 fi
9093 
9094 
9095           if test "x$LN" = x; then
9096             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9097           fi
9098         else
9099           # Otherwise we believe it is a complete path. Use it as it is.
9100           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
9101 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
9102           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
9103 $as_echo_n "checking for LN... " >&6; }
9104           if test ! -x "$tool_specified"; then
9105             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9106 $as_echo "not found" >&6; }
9107             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
9108           fi
9109           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9110 $as_echo "$tool_specified" >&6; }
9111         fi
9112       fi
9113     fi
9114 
9115   fi
9116 
9117 
9118 
9119   if test "x$LN" = x; then
9120     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
9121   fi
9122 
9123 
9124 
9125 
9126 
9127   # Publish this variable in the help.
9128 
9129 
9130   if [ -z "${LS+x}" ]; then
9131     # The variable is not set by user, try to locate tool using the code snippet
9132     for ac_prog in ls
9133 do
9134   # Extract the first word of "$ac_prog", so it can be a program name with args.
9135 set dummy $ac_prog; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_path_LS+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   case $LS in
9142   [\\/]* | ?:[\\/]*)
9143   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9144   ;;
9145   *)
9146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149   IFS=$as_save_IFS
9150   test -z "$as_dir" && as_dir=.
9151     for ac_exec_ext in '' $ac_executable_extensions; do
9152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155     break 2
9156   fi
9157 done
9158   done
9159 IFS=$as_save_IFS
9160 
9161   ;;
9162 esac
9163 fi
9164 LS=$ac_cv_path_LS
9165 if test -n "$LS"; then
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9167 $as_echo "$LS" >&6; }
9168 else
9169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9171 fi
9172 
9173 
9174   test -n "$LS" && break
9175 done
9176 
9177   else
9178     # The variable is set, but is it from the command line or the environment?
9179 
9180     # Try to remove the string !LS! from our list.
9181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
9182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9183       # If it failed, the variable was not from the command line. Ignore it,
9184       # but warn the user (except for BASH, which is always set by the calling BASH).
9185       if test "xLS" != xBASH; then
9186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
9187 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
9188       fi
9189       # Try to locate tool using the code snippet
9190       for ac_prog in ls
9191 do
9192   # Extract the first word of "$ac_prog", so it can be a program name with args.
9193 set dummy $ac_prog; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if ${ac_cv_path_LS+:} false; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199   case $LS in
9200   [\\/]* | ?:[\\/]*)
9201   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9202   ;;
9203   *)
9204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9206 do
9207   IFS=$as_save_IFS
9208   test -z "$as_dir" && as_dir=.
9209     for ac_exec_ext in '' $ac_executable_extensions; do
9210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9211     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213     break 2
9214   fi
9215 done
9216   done
9217 IFS=$as_save_IFS
9218 
9219   ;;
9220 esac
9221 fi
9222 LS=$ac_cv_path_LS
9223 if test -n "$LS"; then
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9225 $as_echo "$LS" >&6; }
9226 else
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9229 fi
9230 
9231 
9232   test -n "$LS" && break
9233 done
9234 
9235     else
9236       # If it succeeded, then it was overridden by the user. We will use it
9237       # for the tool.
9238 
9239       # First remove it from the list of overridden variables, so we can test
9240       # for unknown variables in the end.
9241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9242 
9243       # Check if we try to supply an empty value
9244       if test "x$LS" = x; then
9245         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
9246 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9248 $as_echo_n "checking for LS... " >&6; }
9249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9250 $as_echo "disabled" >&6; }
9251       else
9252         # Check if the provided tool contains a complete path.
9253         tool_specified="$LS"
9254         tool_basename="${tool_specified##*/}"
9255         if test "x$tool_basename" = "x$tool_specified"; then
9256           # A command without a complete path is provided, search $PATH.
9257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
9258 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
9259           # Extract the first word of "$tool_basename", so it can be a program name with args.
9260 set dummy $tool_basename; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if ${ac_cv_path_LS+:} false; then :
9264   $as_echo_n "(cached) " >&6
9265 else
9266   case $LS in
9267   [\\/]* | ?:[\\/]*)
9268   ac_cv_path_LS="$LS" # Let the user override the test with a path.
9269   ;;
9270   *)
9271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9273 do
9274   IFS=$as_save_IFS
9275   test -z "$as_dir" && as_dir=.
9276     for ac_exec_ext in '' $ac_executable_extensions; do
9277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9278     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
9279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280     break 2
9281   fi
9282 done
9283   done
9284 IFS=$as_save_IFS
9285 
9286   ;;
9287 esac
9288 fi
9289 LS=$ac_cv_path_LS
9290 if test -n "$LS"; then
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
9292 $as_echo "$LS" >&6; }
9293 else
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297 
9298 
9299           if test "x$LS" = x; then
9300             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9301           fi
9302         else
9303           # Otherwise we believe it is a complete path. Use it as it is.
9304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
9305 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
9306           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
9307 $as_echo_n "checking for LS... " >&6; }
9308           if test ! -x "$tool_specified"; then
9309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9310 $as_echo "not found" >&6; }
9311             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
9312           fi
9313           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9314 $as_echo "$tool_specified" >&6; }
9315         fi
9316       fi
9317     fi
9318 
9319   fi
9320 
9321 
9322 
9323   if test "x$LS" = x; then
9324     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
9325   fi
9326 
9327 
9328 
9329 
9330 
9331   # Publish this variable in the help.
9332 
9333 
9334   if [ -z "${MKDIR+x}" ]; then
9335     # The variable is not set by user, try to locate tool using the code snippet
9336     for ac_prog in mkdir
9337 do
9338   # Extract the first word of "$ac_prog", so it can be a program name with args.
9339 set dummy $ac_prog; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_path_MKDIR+:} false; then :
9343   $as_echo_n "(cached) " >&6
9344 else
9345   case $MKDIR in
9346   [\\/]* | ?:[\\/]*)
9347   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9348   ;;
9349   *)
9350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355     for ac_exec_ext in '' $ac_executable_extensions; do
9356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362   done
9363 IFS=$as_save_IFS
9364 
9365   ;;
9366 esac
9367 fi
9368 MKDIR=$ac_cv_path_MKDIR
9369 if test -n "$MKDIR"; then
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9371 $as_echo "$MKDIR" >&6; }
9372 else
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376 
9377 
9378   test -n "$MKDIR" && break
9379 done
9380 
9381   else
9382     # The variable is set, but is it from the command line or the environment?
9383 
9384     # Try to remove the string !MKDIR! from our list.
9385     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
9386     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9387       # If it failed, the variable was not from the command line. Ignore it,
9388       # but warn the user (except for BASH, which is always set by the calling BASH).
9389       if test "xMKDIR" != xBASH; then
9390         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
9391 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
9392       fi
9393       # Try to locate tool using the code snippet
9394       for ac_prog in mkdir
9395 do
9396   # Extract the first word of "$ac_prog", so it can be a program name with args.
9397 set dummy $ac_prog; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_MKDIR+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   case $MKDIR in
9404   [\\/]* | ?:[\\/]*)
9405   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9406   ;;
9407   *)
9408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411   IFS=$as_save_IFS
9412   test -z "$as_dir" && as_dir=.
9413     for ac_exec_ext in '' $ac_executable_extensions; do
9414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417     break 2
9418   fi
9419 done
9420   done
9421 IFS=$as_save_IFS
9422 
9423   ;;
9424 esac
9425 fi
9426 MKDIR=$ac_cv_path_MKDIR
9427 if test -n "$MKDIR"; then
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9429 $as_echo "$MKDIR" >&6; }
9430 else
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434 
9435 
9436   test -n "$MKDIR" && break
9437 done
9438 
9439     else
9440       # If it succeeded, then it was overridden by the user. We will use it
9441       # for the tool.
9442 
9443       # First remove it from the list of overridden variables, so we can test
9444       # for unknown variables in the end.
9445       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9446 
9447       # Check if we try to supply an empty value
9448       if test "x$MKDIR" = x; then
9449         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
9450 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
9451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9452 $as_echo_n "checking for MKDIR... " >&6; }
9453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9454 $as_echo "disabled" >&6; }
9455       else
9456         # Check if the provided tool contains a complete path.
9457         tool_specified="$MKDIR"
9458         tool_basename="${tool_specified##*/}"
9459         if test "x$tool_basename" = "x$tool_specified"; then
9460           # A command without a complete path is provided, search $PATH.
9461           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
9462 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
9463           # Extract the first word of "$tool_basename", so it can be a program name with args.
9464 set dummy $tool_basename; ac_word=$2
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if ${ac_cv_path_MKDIR+:} false; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470   case $MKDIR in
9471   [\\/]* | ?:[\\/]*)
9472   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
9473   ;;
9474   *)
9475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9477 do
9478   IFS=$as_save_IFS
9479   test -z "$as_dir" && as_dir=.
9480     for ac_exec_ext in '' $ac_executable_extensions; do
9481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
9483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484     break 2
9485   fi
9486 done
9487   done
9488 IFS=$as_save_IFS
9489 
9490   ;;
9491 esac
9492 fi
9493 MKDIR=$ac_cv_path_MKDIR
9494 if test -n "$MKDIR"; then
9495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
9496 $as_echo "$MKDIR" >&6; }
9497 else
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 fi
9501 
9502 
9503           if test "x$MKDIR" = x; then
9504             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9505           fi
9506         else
9507           # Otherwise we believe it is a complete path. Use it as it is.
9508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
9509 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
9510           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
9511 $as_echo_n "checking for MKDIR... " >&6; }
9512           if test ! -x "$tool_specified"; then
9513             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9514 $as_echo "not found" >&6; }
9515             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9516           fi
9517           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9518 $as_echo "$tool_specified" >&6; }
9519         fi
9520       fi
9521     fi
9522 
9523   fi
9524 
9525 
9526 
9527   if test "x$MKDIR" = x; then
9528     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9529   fi
9530 
9531 
9532 
9533 
9534 
9535   # Publish this variable in the help.
9536 
9537 
9538   if [ -z "${MKTEMP+x}" ]; then
9539     # The variable is not set by user, try to locate tool using the code snippet
9540     for ac_prog in mktemp
9541 do
9542   # Extract the first word of "$ac_prog", so it can be a program name with args.
9543 set dummy $ac_prog; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if ${ac_cv_path_MKTEMP+:} false; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549   case $MKTEMP in
9550   [\\/]* | ?:[\\/]*)
9551   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9552   ;;
9553   *)
9554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 for as_dir in $PATH
9556 do
9557   IFS=$as_save_IFS
9558   test -z "$as_dir" && as_dir=.
9559     for ac_exec_ext in '' $ac_executable_extensions; do
9560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9561     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563     break 2
9564   fi
9565 done
9566   done
9567 IFS=$as_save_IFS
9568 
9569   ;;
9570 esac
9571 fi
9572 MKTEMP=$ac_cv_path_MKTEMP
9573 if test -n "$MKTEMP"; then
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9575 $as_echo "$MKTEMP" >&6; }
9576 else
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9579 fi
9580 
9581 
9582   test -n "$MKTEMP" && break
9583 done
9584 
9585   else
9586     # The variable is set, but is it from the command line or the environment?
9587 
9588     # Try to remove the string !MKTEMP! from our list.
9589     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9590     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9591       # If it failed, the variable was not from the command line. Ignore it,
9592       # but warn the user (except for BASH, which is always set by the calling BASH).
9593       if test "xMKTEMP" != xBASH; then
9594         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9595 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9596       fi
9597       # Try to locate tool using the code snippet
9598       for ac_prog in mktemp
9599 do
9600   # Extract the first word of "$ac_prog", so it can be a program name with args.
9601 set dummy $ac_prog; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if ${ac_cv_path_MKTEMP+:} false; then :
9605   $as_echo_n "(cached) " >&6
9606 else
9607   case $MKTEMP in
9608   [\\/]* | ?:[\\/]*)
9609   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9610   ;;
9611   *)
9612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615   IFS=$as_save_IFS
9616   test -z "$as_dir" && as_dir=.
9617     for ac_exec_ext in '' $ac_executable_extensions; do
9618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621     break 2
9622   fi
9623 done
9624   done
9625 IFS=$as_save_IFS
9626 
9627   ;;
9628 esac
9629 fi
9630 MKTEMP=$ac_cv_path_MKTEMP
9631 if test -n "$MKTEMP"; then
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9633 $as_echo "$MKTEMP" >&6; }
9634 else
9635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638 
9639 
9640   test -n "$MKTEMP" && break
9641 done
9642 
9643     else
9644       # If it succeeded, then it was overridden by the user. We will use it
9645       # for the tool.
9646 
9647       # First remove it from the list of overridden variables, so we can test
9648       # for unknown variables in the end.
9649       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9650 
9651       # Check if we try to supply an empty value
9652       if test "x$MKTEMP" = x; then
9653         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9654 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9656 $as_echo_n "checking for MKTEMP... " >&6; }
9657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9658 $as_echo "disabled" >&6; }
9659       else
9660         # Check if the provided tool contains a complete path.
9661         tool_specified="$MKTEMP"
9662         tool_basename="${tool_specified##*/}"
9663         if test "x$tool_basename" = "x$tool_specified"; then
9664           # A command without a complete path is provided, search $PATH.
9665           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9666 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9667           # Extract the first word of "$tool_basename", so it can be a program name with args.
9668 set dummy $tool_basename; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_path_MKTEMP+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   case $MKTEMP in
9675   [\\/]* | ?:[\\/]*)
9676   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9677   ;;
9678   *)
9679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682   IFS=$as_save_IFS
9683   test -z "$as_dir" && as_dir=.
9684     for ac_exec_ext in '' $ac_executable_extensions; do
9685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688     break 2
9689   fi
9690 done
9691   done
9692 IFS=$as_save_IFS
9693 
9694   ;;
9695 esac
9696 fi
9697 MKTEMP=$ac_cv_path_MKTEMP
9698 if test -n "$MKTEMP"; then
9699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9700 $as_echo "$MKTEMP" >&6; }
9701 else
9702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9704 fi
9705 
9706 
9707           if test "x$MKTEMP" = x; then
9708             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9709           fi
9710         else
9711           # Otherwise we believe it is a complete path. Use it as it is.
9712           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9713 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9714           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9715 $as_echo_n "checking for MKTEMP... " >&6; }
9716           if test ! -x "$tool_specified"; then
9717             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9718 $as_echo "not found" >&6; }
9719             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9720           fi
9721           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9722 $as_echo "$tool_specified" >&6; }
9723         fi
9724       fi
9725     fi
9726 
9727   fi
9728 
9729 
9730 
9731   if test "x$MKTEMP" = x; then
9732     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9733   fi
9734 
9735 
9736 
9737 
9738 
9739   # Publish this variable in the help.
9740 
9741 
9742   if [ -z "${MV+x}" ]; then
9743     # The variable is not set by user, try to locate tool using the code snippet
9744     for ac_prog in mv
9745 do
9746   # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if ${ac_cv_path_MV+:} false; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   case $MV in
9754   [\\/]* | ?:[\\/]*)
9755   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9756   ;;
9757   *)
9758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759 for as_dir in $PATH
9760 do
9761   IFS=$as_save_IFS
9762   test -z "$as_dir" && as_dir=.
9763     for ac_exec_ext in '' $ac_executable_extensions; do
9764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9765     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9767     break 2
9768   fi
9769 done
9770   done
9771 IFS=$as_save_IFS
9772 
9773   ;;
9774 esac
9775 fi
9776 MV=$ac_cv_path_MV
9777 if test -n "$MV"; then
9778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9779 $as_echo "$MV" >&6; }
9780 else
9781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9783 fi
9784 
9785 
9786   test -n "$MV" && break
9787 done
9788 
9789   else
9790     # The variable is set, but is it from the command line or the environment?
9791 
9792     # Try to remove the string !MV! from our list.
9793     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9794     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9795       # If it failed, the variable was not from the command line. Ignore it,
9796       # but warn the user (except for BASH, which is always set by the calling BASH).
9797       if test "xMV" != xBASH; then
9798         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9799 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9800       fi
9801       # Try to locate tool using the code snippet
9802       for ac_prog in mv
9803 do
9804   # Extract the first word of "$ac_prog", so it can be a program name with args.
9805 set dummy $ac_prog; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_path_MV+:} false; then :
9809   $as_echo_n "(cached) " >&6
9810 else
9811   case $MV in
9812   [\\/]* | ?:[\\/]*)
9813   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9814   ;;
9815   *)
9816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9818 do
9819   IFS=$as_save_IFS
9820   test -z "$as_dir" && as_dir=.
9821     for ac_exec_ext in '' $ac_executable_extensions; do
9822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825     break 2
9826   fi
9827 done
9828   done
9829 IFS=$as_save_IFS
9830 
9831   ;;
9832 esac
9833 fi
9834 MV=$ac_cv_path_MV
9835 if test -n "$MV"; then
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9837 $as_echo "$MV" >&6; }
9838 else
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9841 fi
9842 
9843 
9844   test -n "$MV" && break
9845 done
9846 
9847     else
9848       # If it succeeded, then it was overridden by the user. We will use it
9849       # for the tool.
9850 
9851       # First remove it from the list of overridden variables, so we can test
9852       # for unknown variables in the end.
9853       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9854 
9855       # Check if we try to supply an empty value
9856       if test "x$MV" = x; then
9857         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9858 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9860 $as_echo_n "checking for MV... " >&6; }
9861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9862 $as_echo "disabled" >&6; }
9863       else
9864         # Check if the provided tool contains a complete path.
9865         tool_specified="$MV"
9866         tool_basename="${tool_specified##*/}"
9867         if test "x$tool_basename" = "x$tool_specified"; then
9868           # A command without a complete path is provided, search $PATH.
9869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9870 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9871           # Extract the first word of "$tool_basename", so it can be a program name with args.
9872 set dummy $tool_basename; ac_word=$2
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874 $as_echo_n "checking for $ac_word... " >&6; }
9875 if ${ac_cv_path_MV+:} false; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   case $MV in
9879   [\\/]* | ?:[\\/]*)
9880   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9881   ;;
9882   *)
9883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886   IFS=$as_save_IFS
9887   test -z "$as_dir" && as_dir=.
9888     for ac_exec_ext in '' $ac_executable_extensions; do
9889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892     break 2
9893   fi
9894 done
9895   done
9896 IFS=$as_save_IFS
9897 
9898   ;;
9899 esac
9900 fi
9901 MV=$ac_cv_path_MV
9902 if test -n "$MV"; then
9903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9904 $as_echo "$MV" >&6; }
9905 else
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9908 fi
9909 
9910 
9911           if test "x$MV" = x; then
9912             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9913           fi
9914         else
9915           # Otherwise we believe it is a complete path. Use it as it is.
9916           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9917 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9918           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9919 $as_echo_n "checking for MV... " >&6; }
9920           if test ! -x "$tool_specified"; then
9921             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9922 $as_echo "not found" >&6; }
9923             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9924           fi
9925           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9926 $as_echo "$tool_specified" >&6; }
9927         fi
9928       fi
9929     fi
9930 
9931   fi
9932 
9933 
9934 
9935   if test "x$MV" = x; then
9936     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9937   fi
9938 
9939 
9940 
9941 
9942 
9943   # Publish this variable in the help.
9944 
9945 
9946   if [ -z "${NAWK+x}" ]; then
9947     # The variable is not set by user, try to locate tool using the code snippet
9948     for ac_prog in nawk gawk awk
9949 do
9950   # Extract the first word of "$ac_prog", so it can be a program name with args.
9951 set dummy $ac_prog; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_path_NAWK+:} false; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   case $NAWK in
9958   [\\/]* | ?:[\\/]*)
9959   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9960   ;;
9961   *)
9962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965   IFS=$as_save_IFS
9966   test -z "$as_dir" && as_dir=.
9967     for ac_exec_ext in '' $ac_executable_extensions; do
9968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971     break 2
9972   fi
9973 done
9974   done
9975 IFS=$as_save_IFS
9976 
9977   ;;
9978 esac
9979 fi
9980 NAWK=$ac_cv_path_NAWK
9981 if test -n "$NAWK"; then
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9983 $as_echo "$NAWK" >&6; }
9984 else
9985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987 fi
9988 
9989 
9990   test -n "$NAWK" && break
9991 done
9992 
9993   else
9994     # The variable is set, but is it from the command line or the environment?
9995 
9996     # Try to remove the string !NAWK! from our list.
9997     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9998     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9999       # If it failed, the variable was not from the command line. Ignore it,
10000       # but warn the user (except for BASH, which is always set by the calling BASH).
10001       if test "xNAWK" != xBASH; then
10002         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
10003 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
10004       fi
10005       # Try to locate tool using the code snippet
10006       for ac_prog in nawk gawk awk
10007 do
10008   # Extract the first word of "$ac_prog", so it can be a program name with args.
10009 set dummy $ac_prog; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_path_NAWK+:} false; then :
10013   $as_echo_n "(cached) " >&6
10014 else
10015   case $NAWK in
10016   [\\/]* | ?:[\\/]*)
10017   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10018   ;;
10019   *)
10020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10027     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034 
10035   ;;
10036 esac
10037 fi
10038 NAWK=$ac_cv_path_NAWK
10039 if test -n "$NAWK"; then
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10041 $as_echo "$NAWK" >&6; }
10042 else
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10045 fi
10046 
10047 
10048   test -n "$NAWK" && break
10049 done
10050 
10051     else
10052       # If it succeeded, then it was overridden by the user. We will use it
10053       # for the tool.
10054 
10055       # First remove it from the list of overridden variables, so we can test
10056       # for unknown variables in the end.
10057       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10058 
10059       # Check if we try to supply an empty value
10060       if test "x$NAWK" = x; then
10061         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
10062 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
10063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10064 $as_echo_n "checking for NAWK... " >&6; }
10065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10066 $as_echo "disabled" >&6; }
10067       else
10068         # Check if the provided tool contains a complete path.
10069         tool_specified="$NAWK"
10070         tool_basename="${tool_specified##*/}"
10071         if test "x$tool_basename" = "x$tool_specified"; then
10072           # A command without a complete path is provided, search $PATH.
10073           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
10074 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
10075           # Extract the first word of "$tool_basename", so it can be a program name with args.
10076 set dummy $tool_basename; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_path_NAWK+:} false; then :
10080   $as_echo_n "(cached) " >&6
10081 else
10082   case $NAWK in
10083   [\\/]* | ?:[\\/]*)
10084   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
10085   ;;
10086   *)
10087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10089 do
10090   IFS=$as_save_IFS
10091   test -z "$as_dir" && as_dir=.
10092     for ac_exec_ext in '' $ac_executable_extensions; do
10093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
10095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096     break 2
10097   fi
10098 done
10099   done
10100 IFS=$as_save_IFS
10101 
10102   ;;
10103 esac
10104 fi
10105 NAWK=$ac_cv_path_NAWK
10106 if test -n "$NAWK"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
10108 $as_echo "$NAWK" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113 
10114 
10115           if test "x$NAWK" = x; then
10116             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10117           fi
10118         else
10119           # Otherwise we believe it is a complete path. Use it as it is.
10120           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
10121 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
10122           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
10123 $as_echo_n "checking for NAWK... " >&6; }
10124           if test ! -x "$tool_specified"; then
10125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10126 $as_echo "not found" >&6; }
10127             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
10128           fi
10129           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10130 $as_echo "$tool_specified" >&6; }
10131         fi
10132       fi
10133     fi
10134 
10135   fi
10136 
10137 
10138 
10139   if test "x$NAWK" = x; then
10140     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
10141   fi
10142 
10143 
10144 
10145 
10146 
10147   # Publish this variable in the help.
10148 
10149 
10150   if [ -z "${PRINTF+x}" ]; then
10151     # The variable is not set by user, try to locate tool using the code snippet
10152     for ac_prog in printf
10153 do
10154   # Extract the first word of "$ac_prog", so it can be a program name with args.
10155 set dummy $ac_prog; ac_word=$2
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if ${ac_cv_path_PRINTF+:} false; then :
10159   $as_echo_n "(cached) " >&6
10160 else
10161   case $PRINTF in
10162   [\\/]* | ?:[\\/]*)
10163   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10164   ;;
10165   *)
10166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171     for ac_exec_ext in '' $ac_executable_extensions; do
10172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178   done
10179 IFS=$as_save_IFS
10180 
10181   ;;
10182 esac
10183 fi
10184 PRINTF=$ac_cv_path_PRINTF
10185 if test -n "$PRINTF"; then
10186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10187 $as_echo "$PRINTF" >&6; }
10188 else
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192 
10193 
10194   test -n "$PRINTF" && break
10195 done
10196 
10197   else
10198     # The variable is set, but is it from the command line or the environment?
10199 
10200     # Try to remove the string !PRINTF! from our list.
10201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
10202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10203       # If it failed, the variable was not from the command line. Ignore it,
10204       # but warn the user (except for BASH, which is always set by the calling BASH).
10205       if test "xPRINTF" != xBASH; then
10206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
10207 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
10208       fi
10209       # Try to locate tool using the code snippet
10210       for ac_prog in printf
10211 do
10212   # Extract the first word of "$ac_prog", so it can be a program name with args.
10213 set dummy $ac_prog; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if ${ac_cv_path_PRINTF+:} false; then :
10217   $as_echo_n "(cached) " >&6
10218 else
10219   case $PRINTF in
10220   [\\/]* | ?:[\\/]*)
10221   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10222   ;;
10223   *)
10224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10226 do
10227   IFS=$as_save_IFS
10228   test -z "$as_dir" && as_dir=.
10229     for ac_exec_ext in '' $ac_executable_extensions; do
10230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233     break 2
10234   fi
10235 done
10236   done
10237 IFS=$as_save_IFS
10238 
10239   ;;
10240 esac
10241 fi
10242 PRINTF=$ac_cv_path_PRINTF
10243 if test -n "$PRINTF"; then
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10245 $as_echo "$PRINTF" >&6; }
10246 else
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250 
10251 
10252   test -n "$PRINTF" && break
10253 done
10254 
10255     else
10256       # If it succeeded, then it was overridden by the user. We will use it
10257       # for the tool.
10258 
10259       # First remove it from the list of overridden variables, so we can test
10260       # for unknown variables in the end.
10261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10262 
10263       # Check if we try to supply an empty value
10264       if test "x$PRINTF" = x; then
10265         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
10266 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
10267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10268 $as_echo_n "checking for PRINTF... " >&6; }
10269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10270 $as_echo "disabled" >&6; }
10271       else
10272         # Check if the provided tool contains a complete path.
10273         tool_specified="$PRINTF"
10274         tool_basename="${tool_specified##*/}"
10275         if test "x$tool_basename" = "x$tool_specified"; then
10276           # A command without a complete path is provided, search $PATH.
10277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
10278 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
10279           # Extract the first word of "$tool_basename", so it can be a program name with args.
10280 set dummy $tool_basename; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if ${ac_cv_path_PRINTF+:} false; then :
10284   $as_echo_n "(cached) " >&6
10285 else
10286   case $PRINTF in
10287   [\\/]* | ?:[\\/]*)
10288   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
10289   ;;
10290   *)
10291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296     for ac_exec_ext in '' $ac_executable_extensions; do
10297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
10299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303   done
10304 IFS=$as_save_IFS
10305 
10306   ;;
10307 esac
10308 fi
10309 PRINTF=$ac_cv_path_PRINTF
10310 if test -n "$PRINTF"; then
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
10312 $as_echo "$PRINTF" >&6; }
10313 else
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10316 fi
10317 
10318 
10319           if test "x$PRINTF" = x; then
10320             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10321           fi
10322         else
10323           # Otherwise we believe it is a complete path. Use it as it is.
10324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
10325 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
10326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
10327 $as_echo_n "checking for PRINTF... " >&6; }
10328           if test ! -x "$tool_specified"; then
10329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10330 $as_echo "not found" >&6; }
10331             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
10332           fi
10333           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10334 $as_echo "$tool_specified" >&6; }
10335         fi
10336       fi
10337     fi
10338 
10339   fi
10340 
10341 
10342 
10343   if test "x$PRINTF" = x; then
10344     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
10345   fi
10346 
10347 
10348 
10349 
10350 
10351   # Publish this variable in the help.
10352 
10353 
10354   if [ -z "${RM+x}" ]; then
10355     # The variable is not set by user, try to locate tool using the code snippet
10356     for ac_prog in rm
10357 do
10358   # Extract the first word of "$ac_prog", so it can be a program name with args.
10359 set dummy $ac_prog; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_path_RM+:} false; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   case $RM in
10366   [\\/]* | ?:[\\/]*)
10367   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10368   ;;
10369   *)
10370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373   IFS=$as_save_IFS
10374   test -z "$as_dir" && as_dir=.
10375     for ac_exec_ext in '' $ac_executable_extensions; do
10376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379     break 2
10380   fi
10381 done
10382   done
10383 IFS=$as_save_IFS
10384 
10385   ;;
10386 esac
10387 fi
10388 RM=$ac_cv_path_RM
10389 if test -n "$RM"; then
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10391 $as_echo "$RM" >&6; }
10392 else
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395 fi
10396 
10397 
10398   test -n "$RM" && break
10399 done
10400 
10401   else
10402     # The variable is set, but is it from the command line or the environment?
10403 
10404     # Try to remove the string !RM! from our list.
10405     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
10406     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10407       # If it failed, the variable was not from the command line. Ignore it,
10408       # but warn the user (except for BASH, which is always set by the calling BASH).
10409       if test "xRM" != xBASH; then
10410         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
10411 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
10412       fi
10413       # Try to locate tool using the code snippet
10414       for ac_prog in rm
10415 do
10416   # Extract the first word of "$ac_prog", so it can be a program name with args.
10417 set dummy $ac_prog; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10419 $as_echo_n "checking for $ac_word... " >&6; }
10420 if ${ac_cv_path_RM+:} false; then :
10421   $as_echo_n "(cached) " >&6
10422 else
10423   case $RM in
10424   [\\/]* | ?:[\\/]*)
10425   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10426   ;;
10427   *)
10428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10430 do
10431   IFS=$as_save_IFS
10432   test -z "$as_dir" && as_dir=.
10433     for ac_exec_ext in '' $ac_executable_extensions; do
10434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10435     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437     break 2
10438   fi
10439 done
10440   done
10441 IFS=$as_save_IFS
10442 
10443   ;;
10444 esac
10445 fi
10446 RM=$ac_cv_path_RM
10447 if test -n "$RM"; then
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10449 $as_echo "$RM" >&6; }
10450 else
10451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }
10453 fi
10454 
10455 
10456   test -n "$RM" && break
10457 done
10458 
10459     else
10460       # If it succeeded, then it was overridden by the user. We will use it
10461       # for the tool.
10462 
10463       # First remove it from the list of overridden variables, so we can test
10464       # for unknown variables in the end.
10465       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10466 
10467       # Check if we try to supply an empty value
10468       if test "x$RM" = x; then
10469         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
10470 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
10471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10472 $as_echo_n "checking for RM... " >&6; }
10473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10474 $as_echo "disabled" >&6; }
10475       else
10476         # Check if the provided tool contains a complete path.
10477         tool_specified="$RM"
10478         tool_basename="${tool_specified##*/}"
10479         if test "x$tool_basename" = "x$tool_specified"; then
10480           # A command without a complete path is provided, search $PATH.
10481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
10482 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
10483           # Extract the first word of "$tool_basename", so it can be a program name with args.
10484 set dummy $tool_basename; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if ${ac_cv_path_RM+:} false; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   case $RM in
10491   [\\/]* | ?:[\\/]*)
10492   ac_cv_path_RM="$RM" # Let the user override the test with a path.
10493   ;;
10494   *)
10495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498   IFS=$as_save_IFS
10499   test -z "$as_dir" && as_dir=.
10500     for ac_exec_ext in '' $ac_executable_extensions; do
10501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10502     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504     break 2
10505   fi
10506 done
10507   done
10508 IFS=$as_save_IFS
10509 
10510   ;;
10511 esac
10512 fi
10513 RM=$ac_cv_path_RM
10514 if test -n "$RM"; then
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
10516 $as_echo "$RM" >&6; }
10517 else
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520 fi
10521 
10522 
10523           if test "x$RM" = x; then
10524             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10525           fi
10526         else
10527           # Otherwise we believe it is a complete path. Use it as it is.
10528           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10529 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10530           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10531 $as_echo_n "checking for RM... " >&6; }
10532           if test ! -x "$tool_specified"; then
10533             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10534 $as_echo "not found" >&6; }
10535             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10536           fi
10537           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10538 $as_echo "$tool_specified" >&6; }
10539         fi
10540       fi
10541     fi
10542 
10543   fi
10544 
10545 
10546 
10547   if test "x$RM" = x; then
10548     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10549   fi
10550 
10551 
10552 
10553 
10554 
10555   # Publish this variable in the help.
10556 
10557 
10558   if [ -z "${RMDIR+x}" ]; then
10559     # The variable is not set by user, try to locate tool using the code snippet
10560     for ac_prog in rmdir
10561 do
10562   # Extract the first word of "$ac_prog", so it can be a program name with args.
10563 set dummy $ac_prog; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if ${ac_cv_path_RMDIR+:} false; then :
10567   $as_echo_n "(cached) " >&6
10568 else
10569   case $RMDIR in
10570   [\\/]* | ?:[\\/]*)
10571   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10572   ;;
10573   *)
10574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577   IFS=$as_save_IFS
10578   test -z "$as_dir" && as_dir=.
10579     for ac_exec_ext in '' $ac_executable_extensions; do
10580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583     break 2
10584   fi
10585 done
10586   done
10587 IFS=$as_save_IFS
10588 
10589   ;;
10590 esac
10591 fi
10592 RMDIR=$ac_cv_path_RMDIR
10593 if test -n "$RMDIR"; then
10594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10595 $as_echo "$RMDIR" >&6; }
10596 else
10597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 fi
10600 
10601 
10602   test -n "$RMDIR" && break
10603 done
10604 
10605   else
10606     # The variable is set, but is it from the command line or the environment?
10607 
10608     # Try to remove the string !RMDIR! from our list.
10609     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10610     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10611       # If it failed, the variable was not from the command line. Ignore it,
10612       # but warn the user (except for BASH, which is always set by the calling BASH).
10613       if test "xRMDIR" != xBASH; then
10614         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10615 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10616       fi
10617       # Try to locate tool using the code snippet
10618       for ac_prog in rmdir
10619 do
10620   # Extract the first word of "$ac_prog", so it can be a program name with args.
10621 set dummy $ac_prog; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if ${ac_cv_path_RMDIR+:} false; then :
10625   $as_echo_n "(cached) " >&6
10626 else
10627   case $RMDIR in
10628   [\\/]* | ?:[\\/]*)
10629   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10630   ;;
10631   *)
10632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10634 do
10635   IFS=$as_save_IFS
10636   test -z "$as_dir" && as_dir=.
10637     for ac_exec_ext in '' $ac_executable_extensions; do
10638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641     break 2
10642   fi
10643 done
10644   done
10645 IFS=$as_save_IFS
10646 
10647   ;;
10648 esac
10649 fi
10650 RMDIR=$ac_cv_path_RMDIR
10651 if test -n "$RMDIR"; then
10652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10653 $as_echo "$RMDIR" >&6; }
10654 else
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658 
10659 
10660   test -n "$RMDIR" && break
10661 done
10662 
10663     else
10664       # If it succeeded, then it was overridden by the user. We will use it
10665       # for the tool.
10666 
10667       # First remove it from the list of overridden variables, so we can test
10668       # for unknown variables in the end.
10669       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10670 
10671       # Check if we try to supply an empty value
10672       if test "x$RMDIR" = x; then
10673         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10674 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10676 $as_echo_n "checking for RMDIR... " >&6; }
10677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10678 $as_echo "disabled" >&6; }
10679       else
10680         # Check if the provided tool contains a complete path.
10681         tool_specified="$RMDIR"
10682         tool_basename="${tool_specified##*/}"
10683         if test "x$tool_basename" = "x$tool_specified"; then
10684           # A command without a complete path is provided, search $PATH.
10685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10686 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10687           # Extract the first word of "$tool_basename", so it can be a program name with args.
10688 set dummy $tool_basename; ac_word=$2
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10690 $as_echo_n "checking for $ac_word... " >&6; }
10691 if ${ac_cv_path_RMDIR+:} false; then :
10692   $as_echo_n "(cached) " >&6
10693 else
10694   case $RMDIR in
10695   [\\/]* | ?:[\\/]*)
10696   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10697   ;;
10698   *)
10699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702   IFS=$as_save_IFS
10703   test -z "$as_dir" && as_dir=.
10704     for ac_exec_ext in '' $ac_executable_extensions; do
10705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708     break 2
10709   fi
10710 done
10711   done
10712 IFS=$as_save_IFS
10713 
10714   ;;
10715 esac
10716 fi
10717 RMDIR=$ac_cv_path_RMDIR
10718 if test -n "$RMDIR"; then
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10720 $as_echo "$RMDIR" >&6; }
10721 else
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10724 fi
10725 
10726 
10727           if test "x$RMDIR" = x; then
10728             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10729           fi
10730         else
10731           # Otherwise we believe it is a complete path. Use it as it is.
10732           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10733 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10735 $as_echo_n "checking for RMDIR... " >&6; }
10736           if test ! -x "$tool_specified"; then
10737             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10738 $as_echo "not found" >&6; }
10739             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10740           fi
10741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10742 $as_echo "$tool_specified" >&6; }
10743         fi
10744       fi
10745     fi
10746 
10747   fi
10748 
10749 
10750 
10751   if test "x$RMDIR" = x; then
10752     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10753   fi
10754 
10755 
10756 
10757 
10758 
10759   # Publish this variable in the help.
10760 
10761 
10762   if [ -z "${SH+x}" ]; then
10763     # The variable is not set by user, try to locate tool using the code snippet
10764     for ac_prog in sh
10765 do
10766   # Extract the first word of "$ac_prog", so it can be a program name with args.
10767 set dummy $ac_prog; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_path_SH+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   case $SH in
10774   [\\/]* | ?:[\\/]*)
10775   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10776   ;;
10777   *)
10778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783     for ac_exec_ext in '' $ac_executable_extensions; do
10784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790   done
10791 IFS=$as_save_IFS
10792 
10793   ;;
10794 esac
10795 fi
10796 SH=$ac_cv_path_SH
10797 if test -n "$SH"; then
10798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10799 $as_echo "$SH" >&6; }
10800 else
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 fi
10804 
10805 
10806   test -n "$SH" && break
10807 done
10808 
10809   else
10810     # The variable is set, but is it from the command line or the environment?
10811 
10812     # Try to remove the string !SH! from our list.
10813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10815       # If it failed, the variable was not from the command line. Ignore it,
10816       # but warn the user (except for BASH, which is always set by the calling BASH).
10817       if test "xSH" != xBASH; then
10818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10819 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10820       fi
10821       # Try to locate tool using the code snippet
10822       for ac_prog in sh
10823 do
10824   # Extract the first word of "$ac_prog", so it can be a program name with args.
10825 set dummy $ac_prog; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_SH+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   case $SH in
10832   [\\/]* | ?:[\\/]*)
10833   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10834   ;;
10835   *)
10836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841     for ac_exec_ext in '' $ac_executable_extensions; do
10842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848   done
10849 IFS=$as_save_IFS
10850 
10851   ;;
10852 esac
10853 fi
10854 SH=$ac_cv_path_SH
10855 if test -n "$SH"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10857 $as_echo "$SH" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862 
10863 
10864   test -n "$SH" && break
10865 done
10866 
10867     else
10868       # If it succeeded, then it was overridden by the user. We will use it
10869       # for the tool.
10870 
10871       # First remove it from the list of overridden variables, so we can test
10872       # for unknown variables in the end.
10873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10874 
10875       # Check if we try to supply an empty value
10876       if test "x$SH" = x; then
10877         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10878 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10880 $as_echo_n "checking for SH... " >&6; }
10881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10882 $as_echo "disabled" >&6; }
10883       else
10884         # Check if the provided tool contains a complete path.
10885         tool_specified="$SH"
10886         tool_basename="${tool_specified##*/}"
10887         if test "x$tool_basename" = "x$tool_specified"; then
10888           # A command without a complete path is provided, search $PATH.
10889           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10890 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10891           # Extract the first word of "$tool_basename", so it can be a program name with args.
10892 set dummy $tool_basename; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if ${ac_cv_path_SH+:} false; then :
10896   $as_echo_n "(cached) " >&6
10897 else
10898   case $SH in
10899   [\\/]* | ?:[\\/]*)
10900   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10901   ;;
10902   *)
10903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10905 do
10906   IFS=$as_save_IFS
10907   test -z "$as_dir" && as_dir=.
10908     for ac_exec_ext in '' $ac_executable_extensions; do
10909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912     break 2
10913   fi
10914 done
10915   done
10916 IFS=$as_save_IFS
10917 
10918   ;;
10919 esac
10920 fi
10921 SH=$ac_cv_path_SH
10922 if test -n "$SH"; then
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10924 $as_echo "$SH" >&6; }
10925 else
10926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 fi
10929 
10930 
10931           if test "x$SH" = x; then
10932             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10933           fi
10934         else
10935           # Otherwise we believe it is a complete path. Use it as it is.
10936           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10937 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10938           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10939 $as_echo_n "checking for SH... " >&6; }
10940           if test ! -x "$tool_specified"; then
10941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10942 $as_echo "not found" >&6; }
10943             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10944           fi
10945           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10946 $as_echo "$tool_specified" >&6; }
10947         fi
10948       fi
10949     fi
10950 
10951   fi
10952 
10953 
10954 
10955   if test "x$SH" = x; then
10956     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10957   fi
10958 
10959 
10960 
10961 
10962 
10963   # Publish this variable in the help.
10964 
10965 
10966   if [ -z "${SORT+x}" ]; then
10967     # The variable is not set by user, try to locate tool using the code snippet
10968     for ac_prog in sort
10969 do
10970   # Extract the first word of "$ac_prog", so it can be a program name with args.
10971 set dummy $ac_prog; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_path_SORT+:} false; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977   case $SORT in
10978   [\\/]* | ?:[\\/]*)
10979   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10980   ;;
10981   *)
10982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10984 do
10985   IFS=$as_save_IFS
10986   test -z "$as_dir" && as_dir=.
10987     for ac_exec_ext in '' $ac_executable_extensions; do
10988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991     break 2
10992   fi
10993 done
10994   done
10995 IFS=$as_save_IFS
10996 
10997   ;;
10998 esac
10999 fi
11000 SORT=$ac_cv_path_SORT
11001 if test -n "$SORT"; then
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11003 $as_echo "$SORT" >&6; }
11004 else
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008 
11009 
11010   test -n "$SORT" && break
11011 done
11012 
11013   else
11014     # The variable is set, but is it from the command line or the environment?
11015 
11016     # Try to remove the string !SORT! from our list.
11017     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
11018     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11019       # If it failed, the variable was not from the command line. Ignore it,
11020       # but warn the user (except for BASH, which is always set by the calling BASH).
11021       if test "xSORT" != xBASH; then
11022         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
11023 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
11024       fi
11025       # Try to locate tool using the code snippet
11026       for ac_prog in sort
11027 do
11028   # Extract the first word of "$ac_prog", so it can be a program name with args.
11029 set dummy $ac_prog; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if ${ac_cv_path_SORT+:} false; then :
11033   $as_echo_n "(cached) " >&6
11034 else
11035   case $SORT in
11036   [\\/]* | ?:[\\/]*)
11037   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11038   ;;
11039   *)
11040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043   IFS=$as_save_IFS
11044   test -z "$as_dir" && as_dir=.
11045     for ac_exec_ext in '' $ac_executable_extensions; do
11046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11049     break 2
11050   fi
11051 done
11052   done
11053 IFS=$as_save_IFS
11054 
11055   ;;
11056 esac
11057 fi
11058 SORT=$ac_cv_path_SORT
11059 if test -n "$SORT"; then
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11061 $as_echo "$SORT" >&6; }
11062 else
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066 
11067 
11068   test -n "$SORT" && break
11069 done
11070 
11071     else
11072       # If it succeeded, then it was overridden by the user. We will use it
11073       # for the tool.
11074 
11075       # First remove it from the list of overridden variables, so we can test
11076       # for unknown variables in the end.
11077       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11078 
11079       # Check if we try to supply an empty value
11080       if test "x$SORT" = x; then
11081         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
11082 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
11083         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11084 $as_echo_n "checking for SORT... " >&6; }
11085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11086 $as_echo "disabled" >&6; }
11087       else
11088         # Check if the provided tool contains a complete path.
11089         tool_specified="$SORT"
11090         tool_basename="${tool_specified##*/}"
11091         if test "x$tool_basename" = "x$tool_specified"; then
11092           # A command without a complete path is provided, search $PATH.
11093           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
11094 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
11095           # Extract the first word of "$tool_basename", so it can be a program name with args.
11096 set dummy $tool_basename; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if ${ac_cv_path_SORT+:} false; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   case $SORT in
11103   [\\/]* | ?:[\\/]*)
11104   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
11105   ;;
11106   *)
11107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110   IFS=$as_save_IFS
11111   test -z "$as_dir" && as_dir=.
11112     for ac_exec_ext in '' $ac_executable_extensions; do
11113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11114     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
11115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116     break 2
11117   fi
11118 done
11119   done
11120 IFS=$as_save_IFS
11121 
11122   ;;
11123 esac
11124 fi
11125 SORT=$ac_cv_path_SORT
11126 if test -n "$SORT"; then
11127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
11128 $as_echo "$SORT" >&6; }
11129 else
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11132 fi
11133 
11134 
11135           if test "x$SORT" = x; then
11136             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11137           fi
11138         else
11139           # Otherwise we believe it is a complete path. Use it as it is.
11140           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
11141 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
11142           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
11143 $as_echo_n "checking for SORT... " >&6; }
11144           if test ! -x "$tool_specified"; then
11145             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11146 $as_echo "not found" >&6; }
11147             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
11148           fi
11149           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11150 $as_echo "$tool_specified" >&6; }
11151         fi
11152       fi
11153     fi
11154 
11155   fi
11156 
11157 
11158 
11159   if test "x$SORT" = x; then
11160     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
11161   fi
11162 
11163 
11164 
11165 
11166 
11167   # Publish this variable in the help.
11168 
11169 
11170   if [ -z "${TAIL+x}" ]; then
11171     # The variable is not set by user, try to locate tool using the code snippet
11172     for ac_prog in tail
11173 do
11174   # Extract the first word of "$ac_prog", so it can be a program name with args.
11175 set dummy $ac_prog; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_path_TAIL+:} false; then :
11179   $as_echo_n "(cached) " >&6
11180 else
11181   case $TAIL in
11182   [\\/]* | ?:[\\/]*)
11183   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11184   ;;
11185   *)
11186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11188 do
11189   IFS=$as_save_IFS
11190   test -z "$as_dir" && as_dir=.
11191     for ac_exec_ext in '' $ac_executable_extensions; do
11192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11195     break 2
11196   fi
11197 done
11198   done
11199 IFS=$as_save_IFS
11200 
11201   ;;
11202 esac
11203 fi
11204 TAIL=$ac_cv_path_TAIL
11205 if test -n "$TAIL"; then
11206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11207 $as_echo "$TAIL" >&6; }
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212 
11213 
11214   test -n "$TAIL" && break
11215 done
11216 
11217   else
11218     # The variable is set, but is it from the command line or the environment?
11219 
11220     # Try to remove the string !TAIL! from our list.
11221     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
11222     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11223       # If it failed, the variable was not from the command line. Ignore it,
11224       # but warn the user (except for BASH, which is always set by the calling BASH).
11225       if test "xTAIL" != xBASH; then
11226         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
11227 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
11228       fi
11229       # Try to locate tool using the code snippet
11230       for ac_prog in tail
11231 do
11232   # Extract the first word of "$ac_prog", so it can be a program name with args.
11233 set dummy $ac_prog; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_path_TAIL+:} false; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   case $TAIL in
11240   [\\/]* | ?:[\\/]*)
11241   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11242   ;;
11243   *)
11244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11246 do
11247   IFS=$as_save_IFS
11248   test -z "$as_dir" && as_dir=.
11249     for ac_exec_ext in '' $ac_executable_extensions; do
11250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253     break 2
11254   fi
11255 done
11256   done
11257 IFS=$as_save_IFS
11258 
11259   ;;
11260 esac
11261 fi
11262 TAIL=$ac_cv_path_TAIL
11263 if test -n "$TAIL"; then
11264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11265 $as_echo "$TAIL" >&6; }
11266 else
11267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11269 fi
11270 
11271 
11272   test -n "$TAIL" && break
11273 done
11274 
11275     else
11276       # If it succeeded, then it was overridden by the user. We will use it
11277       # for the tool.
11278 
11279       # First remove it from the list of overridden variables, so we can test
11280       # for unknown variables in the end.
11281       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11282 
11283       # Check if we try to supply an empty value
11284       if test "x$TAIL" = x; then
11285         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
11286 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
11287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11288 $as_echo_n "checking for TAIL... " >&6; }
11289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11290 $as_echo "disabled" >&6; }
11291       else
11292         # Check if the provided tool contains a complete path.
11293         tool_specified="$TAIL"
11294         tool_basename="${tool_specified##*/}"
11295         if test "x$tool_basename" = "x$tool_specified"; then
11296           # A command without a complete path is provided, search $PATH.
11297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
11298 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
11299           # Extract the first word of "$tool_basename", so it can be a program name with args.
11300 set dummy $tool_basename; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_TAIL+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   case $TAIL in
11307   [\\/]* | ?:[\\/]*)
11308   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
11309   ;;
11310   *)
11311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316     for ac_exec_ext in '' $ac_executable_extensions; do
11317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
11319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323   done
11324 IFS=$as_save_IFS
11325 
11326   ;;
11327 esac
11328 fi
11329 TAIL=$ac_cv_path_TAIL
11330 if test -n "$TAIL"; then
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
11332 $as_echo "$TAIL" >&6; }
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337 
11338 
11339           if test "x$TAIL" = x; then
11340             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11341           fi
11342         else
11343           # Otherwise we believe it is a complete path. Use it as it is.
11344           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
11345 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
11346           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
11347 $as_echo_n "checking for TAIL... " >&6; }
11348           if test ! -x "$tool_specified"; then
11349             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11350 $as_echo "not found" >&6; }
11351             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
11352           fi
11353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11354 $as_echo "$tool_specified" >&6; }
11355         fi
11356       fi
11357     fi
11358 
11359   fi
11360 
11361 
11362 
11363   if test "x$TAIL" = x; then
11364     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
11365   fi
11366 
11367 
11368 
11369 
11370 
11371   # Publish this variable in the help.
11372 
11373 
11374   if [ -z "${TAR+x}" ]; then
11375     # The variable is not set by user, try to locate tool using the code snippet
11376     for ac_prog in gtar tar
11377 do
11378   # Extract the first word of "$ac_prog", so it can be a program name with args.
11379 set dummy $ac_prog; ac_word=$2
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11381 $as_echo_n "checking for $ac_word... " >&6; }
11382 if ${ac_cv_path_TAR+:} false; then :
11383   $as_echo_n "(cached) " >&6
11384 else
11385   case $TAR in
11386   [\\/]* | ?:[\\/]*)
11387   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11388   ;;
11389   *)
11390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393   IFS=$as_save_IFS
11394   test -z "$as_dir" && as_dir=.
11395     for ac_exec_ext in '' $ac_executable_extensions; do
11396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399     break 2
11400   fi
11401 done
11402   done
11403 IFS=$as_save_IFS
11404 
11405   ;;
11406 esac
11407 fi
11408 TAR=$ac_cv_path_TAR
11409 if test -n "$TAR"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11411 $as_echo "$TAR" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416 
11417 
11418   test -n "$TAR" && break
11419 done
11420 
11421   else
11422     # The variable is set, but is it from the command line or the environment?
11423 
11424     # Try to remove the string !TAR! from our list.
11425     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
11426     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11427       # If it failed, the variable was not from the command line. Ignore it,
11428       # but warn the user (except for BASH, which is always set by the calling BASH).
11429       if test "xTAR" != xBASH; then
11430         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
11431 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
11432       fi
11433       # Try to locate tool using the code snippet
11434       for ac_prog in gtar tar
11435 do
11436   # Extract the first word of "$ac_prog", so it can be a program name with args.
11437 set dummy $ac_prog; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_path_TAR+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   case $TAR in
11444   [\\/]* | ?:[\\/]*)
11445   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11446   ;;
11447   *)
11448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453     for ac_exec_ext in '' $ac_executable_extensions; do
11454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460   done
11461 IFS=$as_save_IFS
11462 
11463   ;;
11464 esac
11465 fi
11466 TAR=$ac_cv_path_TAR
11467 if test -n "$TAR"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11469 $as_echo "$TAR" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474 
11475 
11476   test -n "$TAR" && break
11477 done
11478 
11479     else
11480       # If it succeeded, then it was overridden by the user. We will use it
11481       # for the tool.
11482 
11483       # First remove it from the list of overridden variables, so we can test
11484       # for unknown variables in the end.
11485       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11486 
11487       # Check if we try to supply an empty value
11488       if test "x$TAR" = x; then
11489         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
11490 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
11491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11492 $as_echo_n "checking for TAR... " >&6; }
11493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11494 $as_echo "disabled" >&6; }
11495       else
11496         # Check if the provided tool contains a complete path.
11497         tool_specified="$TAR"
11498         tool_basename="${tool_specified##*/}"
11499         if test "x$tool_basename" = "x$tool_specified"; then
11500           # A command without a complete path is provided, search $PATH.
11501           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
11502 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
11503           # Extract the first word of "$tool_basename", so it can be a program name with args.
11504 set dummy $tool_basename; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_path_TAR+:} false; then :
11508   $as_echo_n "(cached) " >&6
11509 else
11510   case $TAR in
11511   [\\/]* | ?:[\\/]*)
11512   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11513   ;;
11514   *)
11515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11517 do
11518   IFS=$as_save_IFS
11519   test -z "$as_dir" && as_dir=.
11520     for ac_exec_ext in '' $ac_executable_extensions; do
11521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524     break 2
11525   fi
11526 done
11527   done
11528 IFS=$as_save_IFS
11529 
11530   ;;
11531 esac
11532 fi
11533 TAR=$ac_cv_path_TAR
11534 if test -n "$TAR"; then
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11536 $as_echo "$TAR" >&6; }
11537 else
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540 fi
11541 
11542 
11543           if test "x$TAR" = x; then
11544             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11545           fi
11546         else
11547           # Otherwise we believe it is a complete path. Use it as it is.
11548           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11549 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11550           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11551 $as_echo_n "checking for TAR... " >&6; }
11552           if test ! -x "$tool_specified"; then
11553             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11554 $as_echo "not found" >&6; }
11555             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11556           fi
11557           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11558 $as_echo "$tool_specified" >&6; }
11559         fi
11560       fi
11561     fi
11562 
11563   fi
11564 
11565 
11566 
11567   if test "x$TAR" = x; then
11568     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11569   fi
11570 
11571 
11572 
11573 
11574 
11575   # Publish this variable in the help.
11576 
11577 
11578   if [ -z "${TEE+x}" ]; then
11579     # The variable is not set by user, try to locate tool using the code snippet
11580     for ac_prog in tee
11581 do
11582   # Extract the first word of "$ac_prog", so it can be a program name with args.
11583 set dummy $ac_prog; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_path_TEE+:} false; then :
11587   $as_echo_n "(cached) " >&6
11588 else
11589   case $TEE in
11590   [\\/]* | ?:[\\/]*)
11591   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11592   ;;
11593   *)
11594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597   IFS=$as_save_IFS
11598   test -z "$as_dir" && as_dir=.
11599     for ac_exec_ext in '' $ac_executable_extensions; do
11600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603     break 2
11604   fi
11605 done
11606   done
11607 IFS=$as_save_IFS
11608 
11609   ;;
11610 esac
11611 fi
11612 TEE=$ac_cv_path_TEE
11613 if test -n "$TEE"; then
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11615 $as_echo "$TEE" >&6; }
11616 else
11617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620 
11621 
11622   test -n "$TEE" && break
11623 done
11624 
11625   else
11626     # The variable is set, but is it from the command line or the environment?
11627 
11628     # Try to remove the string !TEE! from our list.
11629     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11630     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11631       # If it failed, the variable was not from the command line. Ignore it,
11632       # but warn the user (except for BASH, which is always set by the calling BASH).
11633       if test "xTEE" != xBASH; then
11634         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11635 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11636       fi
11637       # Try to locate tool using the code snippet
11638       for ac_prog in tee
11639 do
11640   # Extract the first word of "$ac_prog", so it can be a program name with args.
11641 set dummy $ac_prog; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if ${ac_cv_path_TEE+:} false; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   case $TEE in
11648   [\\/]* | ?:[\\/]*)
11649   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11650   ;;
11651   *)
11652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655   IFS=$as_save_IFS
11656   test -z "$as_dir" && as_dir=.
11657     for ac_exec_ext in '' $ac_executable_extensions; do
11658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11659     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661     break 2
11662   fi
11663 done
11664   done
11665 IFS=$as_save_IFS
11666 
11667   ;;
11668 esac
11669 fi
11670 TEE=$ac_cv_path_TEE
11671 if test -n "$TEE"; then
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11673 $as_echo "$TEE" >&6; }
11674 else
11675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678 
11679 
11680   test -n "$TEE" && break
11681 done
11682 
11683     else
11684       # If it succeeded, then it was overridden by the user. We will use it
11685       # for the tool.
11686 
11687       # First remove it from the list of overridden variables, so we can test
11688       # for unknown variables in the end.
11689       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11690 
11691       # Check if we try to supply an empty value
11692       if test "x$TEE" = x; then
11693         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11694 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11695         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11696 $as_echo_n "checking for TEE... " >&6; }
11697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11698 $as_echo "disabled" >&6; }
11699       else
11700         # Check if the provided tool contains a complete path.
11701         tool_specified="$TEE"
11702         tool_basename="${tool_specified##*/}"
11703         if test "x$tool_basename" = "x$tool_specified"; then
11704           # A command without a complete path is provided, search $PATH.
11705           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11706 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11707           # Extract the first word of "$tool_basename", so it can be a program name with args.
11708 set dummy $tool_basename; ac_word=$2
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if ${ac_cv_path_TEE+:} false; then :
11712   $as_echo_n "(cached) " >&6
11713 else
11714   case $TEE in
11715   [\\/]* | ?:[\\/]*)
11716   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11717   ;;
11718   *)
11719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724     for ac_exec_ext in '' $ac_executable_extensions; do
11725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731   done
11732 IFS=$as_save_IFS
11733 
11734   ;;
11735 esac
11736 fi
11737 TEE=$ac_cv_path_TEE
11738 if test -n "$TEE"; then
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11740 $as_echo "$TEE" >&6; }
11741 else
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745 
11746 
11747           if test "x$TEE" = x; then
11748             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11749           fi
11750         else
11751           # Otherwise we believe it is a complete path. Use it as it is.
11752           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11753 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11754           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11755 $as_echo_n "checking for TEE... " >&6; }
11756           if test ! -x "$tool_specified"; then
11757             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11758 $as_echo "not found" >&6; }
11759             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11760           fi
11761           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11762 $as_echo "$tool_specified" >&6; }
11763         fi
11764       fi
11765     fi
11766 
11767   fi
11768 
11769 
11770 
11771   if test "x$TEE" = x; then
11772     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11773   fi
11774 
11775 
11776 
11777 
11778 
11779   # Publish this variable in the help.
11780 
11781 
11782   if [ -z "${TOUCH+x}" ]; then
11783     # The variable is not set by user, try to locate tool using the code snippet
11784     for ac_prog in touch
11785 do
11786   # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy $ac_prog; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_path_TOUCH+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   case $TOUCH in
11794   [\\/]* | ?:[\\/]*)
11795   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11796   ;;
11797   *)
11798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11800 do
11801   IFS=$as_save_IFS
11802   test -z "$as_dir" && as_dir=.
11803     for ac_exec_ext in '' $ac_executable_extensions; do
11804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807     break 2
11808   fi
11809 done
11810   done
11811 IFS=$as_save_IFS
11812 
11813   ;;
11814 esac
11815 fi
11816 TOUCH=$ac_cv_path_TOUCH
11817 if test -n "$TOUCH"; then
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11819 $as_echo "$TOUCH" >&6; }
11820 else
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 fi
11824 
11825 
11826   test -n "$TOUCH" && break
11827 done
11828 
11829   else
11830     # The variable is set, but is it from the command line or the environment?
11831 
11832     # Try to remove the string !TOUCH! from our list.
11833     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11834     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11835       # If it failed, the variable was not from the command line. Ignore it,
11836       # but warn the user (except for BASH, which is always set by the calling BASH).
11837       if test "xTOUCH" != xBASH; then
11838         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11839 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11840       fi
11841       # Try to locate tool using the code snippet
11842       for ac_prog in touch
11843 do
11844   # Extract the first word of "$ac_prog", so it can be a program name with args.
11845 set dummy $ac_prog; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_path_TOUCH+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851   case $TOUCH in
11852   [\\/]* | ?:[\\/]*)
11853   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11854   ;;
11855   *)
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861     for ac_exec_ext in '' $ac_executable_extensions; do
11862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11863     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865     break 2
11866   fi
11867 done
11868   done
11869 IFS=$as_save_IFS
11870 
11871   ;;
11872 esac
11873 fi
11874 TOUCH=$ac_cv_path_TOUCH
11875 if test -n "$TOUCH"; then
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11877 $as_echo "$TOUCH" >&6; }
11878 else
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882 
11883 
11884   test -n "$TOUCH" && break
11885 done
11886 
11887     else
11888       # If it succeeded, then it was overridden by the user. We will use it
11889       # for the tool.
11890 
11891       # First remove it from the list of overridden variables, so we can test
11892       # for unknown variables in the end.
11893       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11894 
11895       # Check if we try to supply an empty value
11896       if test "x$TOUCH" = x; then
11897         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11898 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11900 $as_echo_n "checking for TOUCH... " >&6; }
11901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11902 $as_echo "disabled" >&6; }
11903       else
11904         # Check if the provided tool contains a complete path.
11905         tool_specified="$TOUCH"
11906         tool_basename="${tool_specified##*/}"
11907         if test "x$tool_basename" = "x$tool_specified"; then
11908           # A command without a complete path is provided, search $PATH.
11909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11910 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11911           # Extract the first word of "$tool_basename", so it can be a program name with args.
11912 set dummy $tool_basename; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_TOUCH+:} false; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   case $TOUCH in
11919   [\\/]* | ?:[\\/]*)
11920   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11921   ;;
11922   *)
11923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926   IFS=$as_save_IFS
11927   test -z "$as_dir" && as_dir=.
11928     for ac_exec_ext in '' $ac_executable_extensions; do
11929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932     break 2
11933   fi
11934 done
11935   done
11936 IFS=$as_save_IFS
11937 
11938   ;;
11939 esac
11940 fi
11941 TOUCH=$ac_cv_path_TOUCH
11942 if test -n "$TOUCH"; then
11943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11944 $as_echo "$TOUCH" >&6; }
11945 else
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949 
11950 
11951           if test "x$TOUCH" = x; then
11952             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11953           fi
11954         else
11955           # Otherwise we believe it is a complete path. Use it as it is.
11956           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11957 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11958           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11959 $as_echo_n "checking for TOUCH... " >&6; }
11960           if test ! -x "$tool_specified"; then
11961             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11962 $as_echo "not found" >&6; }
11963             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11964           fi
11965           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11966 $as_echo "$tool_specified" >&6; }
11967         fi
11968       fi
11969     fi
11970 
11971   fi
11972 
11973 
11974 
11975   if test "x$TOUCH" = x; then
11976     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11977   fi
11978 
11979 
11980 
11981 
11982 
11983   # Publish this variable in the help.
11984 
11985 
11986   if [ -z "${TR+x}" ]; then
11987     # The variable is not set by user, try to locate tool using the code snippet
11988     for ac_prog in tr
11989 do
11990   # Extract the first word of "$ac_prog", so it can be a program name with args.
11991 set dummy $ac_prog; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_TR+:} false; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997   case $TR in
11998   [\\/]* | ?:[\\/]*)
11999   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12000   ;;
12001   *)
12002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007     for ac_exec_ext in '' $ac_executable_extensions; do
12008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011     break 2
12012   fi
12013 done
12014   done
12015 IFS=$as_save_IFS
12016 
12017   ;;
12018 esac
12019 fi
12020 TR=$ac_cv_path_TR
12021 if test -n "$TR"; then
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12023 $as_echo "$TR" >&6; }
12024 else
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12027 fi
12028 
12029 
12030   test -n "$TR" && break
12031 done
12032 
12033   else
12034     # The variable is set, but is it from the command line or the environment?
12035 
12036     # Try to remove the string !TR! from our list.
12037     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
12038     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12039       # If it failed, the variable was not from the command line. Ignore it,
12040       # but warn the user (except for BASH, which is always set by the calling BASH).
12041       if test "xTR" != xBASH; then
12042         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
12043 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
12044       fi
12045       # Try to locate tool using the code snippet
12046       for ac_prog in tr
12047 do
12048   # Extract the first word of "$ac_prog", so it can be a program name with args.
12049 set dummy $ac_prog; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_path_TR+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   case $TR in
12056   [\\/]* | ?:[\\/]*)
12057   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12058   ;;
12059   *)
12060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12062 do
12063   IFS=$as_save_IFS
12064   test -z "$as_dir" && as_dir=.
12065     for ac_exec_ext in '' $ac_executable_extensions; do
12066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069     break 2
12070   fi
12071 done
12072   done
12073 IFS=$as_save_IFS
12074 
12075   ;;
12076 esac
12077 fi
12078 TR=$ac_cv_path_TR
12079 if test -n "$TR"; then
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12081 $as_echo "$TR" >&6; }
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086 
12087 
12088   test -n "$TR" && break
12089 done
12090 
12091     else
12092       # If it succeeded, then it was overridden by the user. We will use it
12093       # for the tool.
12094 
12095       # First remove it from the list of overridden variables, so we can test
12096       # for unknown variables in the end.
12097       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12098 
12099       # Check if we try to supply an empty value
12100       if test "x$TR" = x; then
12101         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
12102 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
12103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12104 $as_echo_n "checking for TR... " >&6; }
12105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12106 $as_echo "disabled" >&6; }
12107       else
12108         # Check if the provided tool contains a complete path.
12109         tool_specified="$TR"
12110         tool_basename="${tool_specified##*/}"
12111         if test "x$tool_basename" = "x$tool_specified"; then
12112           # A command without a complete path is provided, search $PATH.
12113           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
12114 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
12115           # Extract the first word of "$tool_basename", so it can be a program name with args.
12116 set dummy $tool_basename; ac_word=$2
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118 $as_echo_n "checking for $ac_word... " >&6; }
12119 if ${ac_cv_path_TR+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   case $TR in
12123   [\\/]* | ?:[\\/]*)
12124   ac_cv_path_TR="$TR" # Let the user override the test with a path.
12125   ;;
12126   *)
12127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130   IFS=$as_save_IFS
12131   test -z "$as_dir" && as_dir=.
12132     for ac_exec_ext in '' $ac_executable_extensions; do
12133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
12135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136     break 2
12137   fi
12138 done
12139   done
12140 IFS=$as_save_IFS
12141 
12142   ;;
12143 esac
12144 fi
12145 TR=$ac_cv_path_TR
12146 if test -n "$TR"; then
12147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
12148 $as_echo "$TR" >&6; }
12149 else
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12152 fi
12153 
12154 
12155           if test "x$TR" = x; then
12156             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12157           fi
12158         else
12159           # Otherwise we believe it is a complete path. Use it as it is.
12160           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
12161 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
12162           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
12163 $as_echo_n "checking for TR... " >&6; }
12164           if test ! -x "$tool_specified"; then
12165             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12166 $as_echo "not found" >&6; }
12167             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
12168           fi
12169           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12170 $as_echo "$tool_specified" >&6; }
12171         fi
12172       fi
12173     fi
12174 
12175   fi
12176 
12177 
12178 
12179   if test "x$TR" = x; then
12180     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
12181   fi
12182 
12183 
12184 
12185 
12186 
12187   # Publish this variable in the help.
12188 
12189 
12190   if [ -z "${UNAME+x}" ]; then
12191     # The variable is not set by user, try to locate tool using the code snippet
12192     for ac_prog in uname
12193 do
12194   # Extract the first word of "$ac_prog", so it can be a program name with args.
12195 set dummy $ac_prog; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_path_UNAME+:} false; then :
12199   $as_echo_n "(cached) " >&6
12200 else
12201   case $UNAME in
12202   [\\/]* | ?:[\\/]*)
12203   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12204   ;;
12205   *)
12206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209   IFS=$as_save_IFS
12210   test -z "$as_dir" && as_dir=.
12211     for ac_exec_ext in '' $ac_executable_extensions; do
12212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215     break 2
12216   fi
12217 done
12218   done
12219 IFS=$as_save_IFS
12220 
12221   ;;
12222 esac
12223 fi
12224 UNAME=$ac_cv_path_UNAME
12225 if test -n "$UNAME"; then
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12227 $as_echo "$UNAME" >&6; }
12228 else
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 $as_echo "no" >&6; }
12231 fi
12232 
12233 
12234   test -n "$UNAME" && break
12235 done
12236 
12237   else
12238     # The variable is set, but is it from the command line or the environment?
12239 
12240     # Try to remove the string !UNAME! from our list.
12241     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
12242     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12243       # If it failed, the variable was not from the command line. Ignore it,
12244       # but warn the user (except for BASH, which is always set by the calling BASH).
12245       if test "xUNAME" != xBASH; then
12246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
12247 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
12248       fi
12249       # Try to locate tool using the code snippet
12250       for ac_prog in uname
12251 do
12252   # Extract the first word of "$ac_prog", so it can be a program name with args.
12253 set dummy $ac_prog; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if ${ac_cv_path_UNAME+:} false; then :
12257   $as_echo_n "(cached) " >&6
12258 else
12259   case $UNAME in
12260   [\\/]* | ?:[\\/]*)
12261   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12262   ;;
12263   *)
12264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12271     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278 
12279   ;;
12280 esac
12281 fi
12282 UNAME=$ac_cv_path_UNAME
12283 if test -n "$UNAME"; then
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12285 $as_echo "$UNAME" >&6; }
12286 else
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290 
12291 
12292   test -n "$UNAME" && break
12293 done
12294 
12295     else
12296       # If it succeeded, then it was overridden by the user. We will use it
12297       # for the tool.
12298 
12299       # First remove it from the list of overridden variables, so we can test
12300       # for unknown variables in the end.
12301       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12302 
12303       # Check if we try to supply an empty value
12304       if test "x$UNAME" = x; then
12305         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
12306 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
12307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12308 $as_echo_n "checking for UNAME... " >&6; }
12309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12310 $as_echo "disabled" >&6; }
12311       else
12312         # Check if the provided tool contains a complete path.
12313         tool_specified="$UNAME"
12314         tool_basename="${tool_specified##*/}"
12315         if test "x$tool_basename" = "x$tool_specified"; then
12316           # A command without a complete path is provided, search $PATH.
12317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
12318 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
12319           # Extract the first word of "$tool_basename", so it can be a program name with args.
12320 set dummy $tool_basename; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_path_UNAME+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   case $UNAME in
12327   [\\/]* | ?:[\\/]*)
12328   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
12329   ;;
12330   *)
12331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $PATH
12333 do
12334   IFS=$as_save_IFS
12335   test -z "$as_dir" && as_dir=.
12336     for ac_exec_ext in '' $ac_executable_extensions; do
12337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12338     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
12339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340     break 2
12341   fi
12342 done
12343   done
12344 IFS=$as_save_IFS
12345 
12346   ;;
12347 esac
12348 fi
12349 UNAME=$ac_cv_path_UNAME
12350 if test -n "$UNAME"; then
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
12352 $as_echo "$UNAME" >&6; }
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357 
12358 
12359           if test "x$UNAME" = x; then
12360             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12361           fi
12362         else
12363           # Otherwise we believe it is a complete path. Use it as it is.
12364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
12365 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
12366           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
12367 $as_echo_n "checking for UNAME... " >&6; }
12368           if test ! -x "$tool_specified"; then
12369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12370 $as_echo "not found" >&6; }
12371             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
12372           fi
12373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12374 $as_echo "$tool_specified" >&6; }
12375         fi
12376       fi
12377     fi
12378 
12379   fi
12380 
12381 
12382 
12383   if test "x$UNAME" = x; then
12384     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
12385   fi
12386 
12387 
12388 
12389 
12390 
12391   # Publish this variable in the help.
12392 
12393 
12394   if [ -z "${UNIQ+x}" ]; then
12395     # The variable is not set by user, try to locate tool using the code snippet
12396     for ac_prog in uniq
12397 do
12398   # Extract the first word of "$ac_prog", so it can be a program name with args.
12399 set dummy $ac_prog; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if ${ac_cv_path_UNIQ+:} false; then :
12403   $as_echo_n "(cached) " >&6
12404 else
12405   case $UNIQ in
12406   [\\/]* | ?:[\\/]*)
12407   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12408   ;;
12409   *)
12410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12412 do
12413   IFS=$as_save_IFS
12414   test -z "$as_dir" && as_dir=.
12415     for ac_exec_ext in '' $ac_executable_extensions; do
12416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12419     break 2
12420   fi
12421 done
12422   done
12423 IFS=$as_save_IFS
12424 
12425   ;;
12426 esac
12427 fi
12428 UNIQ=$ac_cv_path_UNIQ
12429 if test -n "$UNIQ"; then
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12431 $as_echo "$UNIQ" >&6; }
12432 else
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12435 fi
12436 
12437 
12438   test -n "$UNIQ" && break
12439 done
12440 
12441   else
12442     # The variable is set, but is it from the command line or the environment?
12443 
12444     # Try to remove the string !UNIQ! from our list.
12445     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
12446     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12447       # If it failed, the variable was not from the command line. Ignore it,
12448       # but warn the user (except for BASH, which is always set by the calling BASH).
12449       if test "xUNIQ" != xBASH; then
12450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
12451 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
12452       fi
12453       # Try to locate tool using the code snippet
12454       for ac_prog in uniq
12455 do
12456   # Extract the first word of "$ac_prog", so it can be a program name with args.
12457 set dummy $ac_prog; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if ${ac_cv_path_UNIQ+:} false; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   case $UNIQ in
12464   [\\/]* | ?:[\\/]*)
12465   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12466   ;;
12467   *)
12468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12470 do
12471   IFS=$as_save_IFS
12472   test -z "$as_dir" && as_dir=.
12473     for ac_exec_ext in '' $ac_executable_extensions; do
12474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477     break 2
12478   fi
12479 done
12480   done
12481 IFS=$as_save_IFS
12482 
12483   ;;
12484 esac
12485 fi
12486 UNIQ=$ac_cv_path_UNIQ
12487 if test -n "$UNIQ"; then
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12489 $as_echo "$UNIQ" >&6; }
12490 else
12491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493 fi
12494 
12495 
12496   test -n "$UNIQ" && break
12497 done
12498 
12499     else
12500       # If it succeeded, then it was overridden by the user. We will use it
12501       # for the tool.
12502 
12503       # First remove it from the list of overridden variables, so we can test
12504       # for unknown variables in the end.
12505       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12506 
12507       # Check if we try to supply an empty value
12508       if test "x$UNIQ" = x; then
12509         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
12510 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
12511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12512 $as_echo_n "checking for UNIQ... " >&6; }
12513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12514 $as_echo "disabled" >&6; }
12515       else
12516         # Check if the provided tool contains a complete path.
12517         tool_specified="$UNIQ"
12518         tool_basename="${tool_specified##*/}"
12519         if test "x$tool_basename" = "x$tool_specified"; then
12520           # A command without a complete path is provided, search $PATH.
12521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12522 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12523           # Extract the first word of "$tool_basename", so it can be a program name with args.
12524 set dummy $tool_basename; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_path_UNIQ+:} false; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530   case $UNIQ in
12531   [\\/]* | ?:[\\/]*)
12532   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12533   ;;
12534   *)
12535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536 for as_dir in $PATH
12537 do
12538   IFS=$as_save_IFS
12539   test -z "$as_dir" && as_dir=.
12540     for ac_exec_ext in '' $ac_executable_extensions; do
12541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12542     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544     break 2
12545   fi
12546 done
12547   done
12548 IFS=$as_save_IFS
12549 
12550   ;;
12551 esac
12552 fi
12553 UNIQ=$ac_cv_path_UNIQ
12554 if test -n "$UNIQ"; then
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12556 $as_echo "$UNIQ" >&6; }
12557 else
12558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12560 fi
12561 
12562 
12563           if test "x$UNIQ" = x; then
12564             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12565           fi
12566         else
12567           # Otherwise we believe it is a complete path. Use it as it is.
12568           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12569 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12570           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12571 $as_echo_n "checking for UNIQ... " >&6; }
12572           if test ! -x "$tool_specified"; then
12573             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12574 $as_echo "not found" >&6; }
12575             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12576           fi
12577           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12578 $as_echo "$tool_specified" >&6; }
12579         fi
12580       fi
12581     fi
12582 
12583   fi
12584 
12585 
12586 
12587   if test "x$UNIQ" = x; then
12588     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12589   fi
12590 
12591 
12592 
12593 
12594 
12595   # Publish this variable in the help.
12596 
12597 
12598   if [ -z "${WC+x}" ]; then
12599     # The variable is not set by user, try to locate tool using the code snippet
12600     for ac_prog in wc
12601 do
12602   # Extract the first word of "$ac_prog", so it can be a program name with args.
12603 set dummy $ac_prog; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if ${ac_cv_path_WC+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   case $WC in
12610   [\\/]* | ?:[\\/]*)
12611   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12612   ;;
12613   *)
12614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617   IFS=$as_save_IFS
12618   test -z "$as_dir" && as_dir=.
12619     for ac_exec_ext in '' $ac_executable_extensions; do
12620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623     break 2
12624   fi
12625 done
12626   done
12627 IFS=$as_save_IFS
12628 
12629   ;;
12630 esac
12631 fi
12632 WC=$ac_cv_path_WC
12633 if test -n "$WC"; then
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12635 $as_echo "$WC" >&6; }
12636 else
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 fi
12640 
12641 
12642   test -n "$WC" && break
12643 done
12644 
12645   else
12646     # The variable is set, but is it from the command line or the environment?
12647 
12648     # Try to remove the string !WC! from our list.
12649     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12650     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12651       # If it failed, the variable was not from the command line. Ignore it,
12652       # but warn the user (except for BASH, which is always set by the calling BASH).
12653       if test "xWC" != xBASH; then
12654         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12655 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12656       fi
12657       # Try to locate tool using the code snippet
12658       for ac_prog in wc
12659 do
12660   # Extract the first word of "$ac_prog", so it can be a program name with args.
12661 set dummy $ac_prog; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_path_WC+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   case $WC in
12668   [\\/]* | ?:[\\/]*)
12669   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12670   ;;
12671   *)
12672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12674 do
12675   IFS=$as_save_IFS
12676   test -z "$as_dir" && as_dir=.
12677     for ac_exec_ext in '' $ac_executable_extensions; do
12678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681     break 2
12682   fi
12683 done
12684   done
12685 IFS=$as_save_IFS
12686 
12687   ;;
12688 esac
12689 fi
12690 WC=$ac_cv_path_WC
12691 if test -n "$WC"; then
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12693 $as_echo "$WC" >&6; }
12694 else
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697 fi
12698 
12699 
12700   test -n "$WC" && break
12701 done
12702 
12703     else
12704       # If it succeeded, then it was overridden by the user. We will use it
12705       # for the tool.
12706 
12707       # First remove it from the list of overridden variables, so we can test
12708       # for unknown variables in the end.
12709       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12710 
12711       # Check if we try to supply an empty value
12712       if test "x$WC" = x; then
12713         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12714 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12716 $as_echo_n "checking for WC... " >&6; }
12717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12718 $as_echo "disabled" >&6; }
12719       else
12720         # Check if the provided tool contains a complete path.
12721         tool_specified="$WC"
12722         tool_basename="${tool_specified##*/}"
12723         if test "x$tool_basename" = "x$tool_specified"; then
12724           # A command without a complete path is provided, search $PATH.
12725           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12726 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12727           # Extract the first word of "$tool_basename", so it can be a program name with args.
12728 set dummy $tool_basename; ac_word=$2
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730 $as_echo_n "checking for $ac_word... " >&6; }
12731 if ${ac_cv_path_WC+:} false; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   case $WC in
12735   [\\/]* | ?:[\\/]*)
12736   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12737   ;;
12738   *)
12739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12741 do
12742   IFS=$as_save_IFS
12743   test -z "$as_dir" && as_dir=.
12744     for ac_exec_ext in '' $ac_executable_extensions; do
12745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12746     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748     break 2
12749   fi
12750 done
12751   done
12752 IFS=$as_save_IFS
12753 
12754   ;;
12755 esac
12756 fi
12757 WC=$ac_cv_path_WC
12758 if test -n "$WC"; then
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12760 $as_echo "$WC" >&6; }
12761 else
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765 
12766 
12767           if test "x$WC" = x; then
12768             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12769           fi
12770         else
12771           # Otherwise we believe it is a complete path. Use it as it is.
12772           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12773 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12774           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12775 $as_echo_n "checking for WC... " >&6; }
12776           if test ! -x "$tool_specified"; then
12777             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12778 $as_echo "not found" >&6; }
12779             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12780           fi
12781           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12782 $as_echo "$tool_specified" >&6; }
12783         fi
12784       fi
12785     fi
12786 
12787   fi
12788 
12789 
12790 
12791   if test "x$WC" = x; then
12792     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12793   fi
12794 
12795 
12796 
12797 
12798 
12799   # Publish this variable in the help.
12800 
12801 
12802   if [ -z "${WHICH+x}" ]; then
12803     # The variable is not set by user, try to locate tool using the code snippet
12804     for ac_prog in which
12805 do
12806   # Extract the first word of "$ac_prog", so it can be a program name with args.
12807 set dummy $ac_prog; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_path_WHICH+:} false; then :
12811   $as_echo_n "(cached) " >&6
12812 else
12813   case $WHICH in
12814   [\\/]* | ?:[\\/]*)
12815   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12816   ;;
12817   *)
12818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821   IFS=$as_save_IFS
12822   test -z "$as_dir" && as_dir=.
12823     for ac_exec_ext in '' $ac_executable_extensions; do
12824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827     break 2
12828   fi
12829 done
12830   done
12831 IFS=$as_save_IFS
12832 
12833   ;;
12834 esac
12835 fi
12836 WHICH=$ac_cv_path_WHICH
12837 if test -n "$WHICH"; then
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12839 $as_echo "$WHICH" >&6; }
12840 else
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842 $as_echo "no" >&6; }
12843 fi
12844 
12845 
12846   test -n "$WHICH" && break
12847 done
12848 
12849   else
12850     # The variable is set, but is it from the command line or the environment?
12851 
12852     # Try to remove the string !WHICH! from our list.
12853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12855       # If it failed, the variable was not from the command line. Ignore it,
12856       # but warn the user (except for BASH, which is always set by the calling BASH).
12857       if test "xWHICH" != xBASH; then
12858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12859 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12860       fi
12861       # Try to locate tool using the code snippet
12862       for ac_prog in which
12863 do
12864   # Extract the first word of "$ac_prog", so it can be a program name with args.
12865 set dummy $ac_prog; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_path_WHICH+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   case $WHICH in
12872   [\\/]* | ?:[\\/]*)
12873   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12874   ;;
12875   *)
12876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12878 do
12879   IFS=$as_save_IFS
12880   test -z "$as_dir" && as_dir=.
12881     for ac_exec_ext in '' $ac_executable_extensions; do
12882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885     break 2
12886   fi
12887 done
12888   done
12889 IFS=$as_save_IFS
12890 
12891   ;;
12892 esac
12893 fi
12894 WHICH=$ac_cv_path_WHICH
12895 if test -n "$WHICH"; then
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12897 $as_echo "$WHICH" >&6; }
12898 else
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902 
12903 
12904   test -n "$WHICH" && break
12905 done
12906 
12907     else
12908       # If it succeeded, then it was overridden by the user. We will use it
12909       # for the tool.
12910 
12911       # First remove it from the list of overridden variables, so we can test
12912       # for unknown variables in the end.
12913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12914 
12915       # Check if we try to supply an empty value
12916       if test "x$WHICH" = x; then
12917         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12918 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12920 $as_echo_n "checking for WHICH... " >&6; }
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12922 $as_echo "disabled" >&6; }
12923       else
12924         # Check if the provided tool contains a complete path.
12925         tool_specified="$WHICH"
12926         tool_basename="${tool_specified##*/}"
12927         if test "x$tool_basename" = "x$tool_specified"; then
12928           # A command without a complete path is provided, search $PATH.
12929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12930 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12931           # Extract the first word of "$tool_basename", so it can be a program name with args.
12932 set dummy $tool_basename; ac_word=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_WHICH+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938   case $WHICH in
12939   [\\/]* | ?:[\\/]*)
12940   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12941   ;;
12942   *)
12943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12945 do
12946   IFS=$as_save_IFS
12947   test -z "$as_dir" && as_dir=.
12948     for ac_exec_ext in '' $ac_executable_extensions; do
12949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952     break 2
12953   fi
12954 done
12955   done
12956 IFS=$as_save_IFS
12957 
12958   ;;
12959 esac
12960 fi
12961 WHICH=$ac_cv_path_WHICH
12962 if test -n "$WHICH"; then
12963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12964 $as_echo "$WHICH" >&6; }
12965 else
12966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 fi
12969 
12970 
12971           if test "x$WHICH" = x; then
12972             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12973           fi
12974         else
12975           # Otherwise we believe it is a complete path. Use it as it is.
12976           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12977 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12978           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12979 $as_echo_n "checking for WHICH... " >&6; }
12980           if test ! -x "$tool_specified"; then
12981             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12982 $as_echo "not found" >&6; }
12983             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12984           fi
12985           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12986 $as_echo "$tool_specified" >&6; }
12987         fi
12988       fi
12989     fi
12990 
12991   fi
12992 
12993 
12994 
12995   if test "x$WHICH" = x; then
12996     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12997   fi
12998 
12999 
13000 
13001 
13002 
13003   # Publish this variable in the help.
13004 
13005 
13006   if [ -z "${XARGS+x}" ]; then
13007     # The variable is not set by user, try to locate tool using the code snippet
13008     for ac_prog in xargs
13009 do
13010   # Extract the first word of "$ac_prog", so it can be a program name with args.
13011 set dummy $ac_prog; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if ${ac_cv_path_XARGS+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   case $XARGS in
13018   [\\/]* | ?:[\\/]*)
13019   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13020   ;;
13021   *)
13022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13024 do
13025   IFS=$as_save_IFS
13026   test -z "$as_dir" && as_dir=.
13027     for ac_exec_ext in '' $ac_executable_extensions; do
13028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13029     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13031     break 2
13032   fi
13033 done
13034   done
13035 IFS=$as_save_IFS
13036 
13037   ;;
13038 esac
13039 fi
13040 XARGS=$ac_cv_path_XARGS
13041 if test -n "$XARGS"; then
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13043 $as_echo "$XARGS" >&6; }
13044 else
13045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13047 fi
13048 
13049 
13050   test -n "$XARGS" && break
13051 done
13052 
13053   else
13054     # The variable is set, but is it from the command line or the environment?
13055 
13056     # Try to remove the string !XARGS! from our list.
13057     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
13058     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13059       # If it failed, the variable was not from the command line. Ignore it,
13060       # but warn the user (except for BASH, which is always set by the calling BASH).
13061       if test "xXARGS" != xBASH; then
13062         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
13063 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
13064       fi
13065       # Try to locate tool using the code snippet
13066       for ac_prog in xargs
13067 do
13068   # Extract the first word of "$ac_prog", so it can be a program name with args.
13069 set dummy $ac_prog; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if ${ac_cv_path_XARGS+:} false; then :
13073   $as_echo_n "(cached) " >&6
13074 else
13075   case $XARGS in
13076   [\\/]* | ?:[\\/]*)
13077   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13078   ;;
13079   *)
13080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13082 do
13083   IFS=$as_save_IFS
13084   test -z "$as_dir" && as_dir=.
13085     for ac_exec_ext in '' $ac_executable_extensions; do
13086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13087     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089     break 2
13090   fi
13091 done
13092   done
13093 IFS=$as_save_IFS
13094 
13095   ;;
13096 esac
13097 fi
13098 XARGS=$ac_cv_path_XARGS
13099 if test -n "$XARGS"; then
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13101 $as_echo "$XARGS" >&6; }
13102 else
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13105 fi
13106 
13107 
13108   test -n "$XARGS" && break
13109 done
13110 
13111     else
13112       # If it succeeded, then it was overridden by the user. We will use it
13113       # for the tool.
13114 
13115       # First remove it from the list of overridden variables, so we can test
13116       # for unknown variables in the end.
13117       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13118 
13119       # Check if we try to supply an empty value
13120       if test "x$XARGS" = x; then
13121         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
13122 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
13123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13124 $as_echo_n "checking for XARGS... " >&6; }
13125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13126 $as_echo "disabled" >&6; }
13127       else
13128         # Check if the provided tool contains a complete path.
13129         tool_specified="$XARGS"
13130         tool_basename="${tool_specified##*/}"
13131         if test "x$tool_basename" = "x$tool_specified"; then
13132           # A command without a complete path is provided, search $PATH.
13133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
13134 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
13135           # Extract the first word of "$tool_basename", so it can be a program name with args.
13136 set dummy $tool_basename; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_path_XARGS+:} false; then :
13140   $as_echo_n "(cached) " >&6
13141 else
13142   case $XARGS in
13143   [\\/]* | ?:[\\/]*)
13144   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
13145   ;;
13146   *)
13147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150   IFS=$as_save_IFS
13151   test -z "$as_dir" && as_dir=.
13152     for ac_exec_ext in '' $ac_executable_extensions; do
13153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
13155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156     break 2
13157   fi
13158 done
13159   done
13160 IFS=$as_save_IFS
13161 
13162   ;;
13163 esac
13164 fi
13165 XARGS=$ac_cv_path_XARGS
13166 if test -n "$XARGS"; then
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
13168 $as_echo "$XARGS" >&6; }
13169 else
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13172 fi
13173 
13174 
13175           if test "x$XARGS" = x; then
13176             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13177           fi
13178         else
13179           # Otherwise we believe it is a complete path. Use it as it is.
13180           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
13181 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
13182           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
13183 $as_echo_n "checking for XARGS... " >&6; }
13184           if test ! -x "$tool_specified"; then
13185             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13186 $as_echo "not found" >&6; }
13187             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
13188           fi
13189           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13190 $as_echo "$tool_specified" >&6; }
13191         fi
13192       fi
13193     fi
13194 
13195   fi
13196 
13197 
13198 
13199   if test "x$XARGS" = x; then
13200     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
13201   fi
13202 
13203 
13204 
13205   # Then required tools that require some special treatment.
13206 
13207 
13208   # Publish this variable in the help.
13209 
13210 
13211   if [ -z "${AWK+x}" ]; then
13212     # The variable is not set by user, try to locate tool using the code snippet
13213     for ac_prog in gawk mawk nawk awk
13214 do
13215   # Extract the first word of "$ac_prog", so it can be a program name with args.
13216 set dummy $ac_prog; ac_word=$2
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13218 $as_echo_n "checking for $ac_word... " >&6; }
13219 if ${ac_cv_prog_AWK+:} false; then :
13220   $as_echo_n "(cached) " >&6
13221 else
13222   if test -n "$AWK"; then
13223   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13224 else
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230     for ac_exec_ext in '' $ac_executable_extensions; do
13231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13232     ac_cv_prog_AWK="$ac_prog"
13233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237   done
13238 IFS=$as_save_IFS
13239 
13240 fi
13241 fi
13242 AWK=$ac_cv_prog_AWK
13243 if test -n "$AWK"; then
13244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13245 $as_echo "$AWK" >&6; }
13246 else
13247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13249 fi
13250 
13251 
13252   test -n "$AWK" && break
13253 done
13254 
13255   else
13256     # The variable is set, but is it from the command line or the environment?
13257 
13258     # Try to remove the string !AWK! from our list.
13259     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
13260     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13261       # If it failed, the variable was not from the command line. Ignore it,
13262       # but warn the user (except for BASH, which is always set by the calling BASH).
13263       if test "xAWK" != xBASH; then
13264         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
13265 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
13266       fi
13267       # Try to locate tool using the code snippet
13268       for ac_prog in gawk mawk nawk awk
13269 do
13270   # Extract the first word of "$ac_prog", so it can be a program name with args.
13271 set dummy $ac_prog; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if ${ac_cv_prog_AWK+:} false; then :
13275   $as_echo_n "(cached) " >&6
13276 else
13277   if test -n "$AWK"; then
13278   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13279 else
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13282 do
13283   IFS=$as_save_IFS
13284   test -z "$as_dir" && as_dir=.
13285     for ac_exec_ext in '' $ac_executable_extensions; do
13286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13287     ac_cv_prog_AWK="$ac_prog"
13288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289     break 2
13290   fi
13291 done
13292   done
13293 IFS=$as_save_IFS
13294 
13295 fi
13296 fi
13297 AWK=$ac_cv_prog_AWK
13298 if test -n "$AWK"; then
13299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13300 $as_echo "$AWK" >&6; }
13301 else
13302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 $as_echo "no" >&6; }
13304 fi
13305 
13306 
13307   test -n "$AWK" && break
13308 done
13309 
13310     else
13311       # If it succeeded, then it was overridden by the user. We will use it
13312       # for the tool.
13313 
13314       # First remove it from the list of overridden variables, so we can test
13315       # for unknown variables in the end.
13316       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13317 
13318       # Check if we try to supply an empty value
13319       if test "x$AWK" = x; then
13320         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
13321 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
13322         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13323 $as_echo_n "checking for AWK... " >&6; }
13324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13325 $as_echo "disabled" >&6; }
13326       else
13327         # Check if the provided tool contains a complete path.
13328         tool_specified="$AWK"
13329         tool_basename="${tool_specified##*/}"
13330         if test "x$tool_basename" = "x$tool_specified"; then
13331           # A command without a complete path is provided, search $PATH.
13332           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
13333 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
13334           # Extract the first word of "$tool_basename", so it can be a program name with args.
13335 set dummy $tool_basename; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_AWK+:} false; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   case $AWK in
13342   [\\/]* | ?:[\\/]*)
13343   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
13344   ;;
13345   *)
13346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13348 do
13349   IFS=$as_save_IFS
13350   test -z "$as_dir" && as_dir=.
13351     for ac_exec_ext in '' $ac_executable_extensions; do
13352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
13354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355     break 2
13356   fi
13357 done
13358   done
13359 IFS=$as_save_IFS
13360 
13361   ;;
13362 esac
13363 fi
13364 AWK=$ac_cv_path_AWK
13365 if test -n "$AWK"; then
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13367 $as_echo "$AWK" >&6; }
13368 else
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372 
13373 
13374           if test "x$AWK" = x; then
13375             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13376           fi
13377         else
13378           # Otherwise we believe it is a complete path. Use it as it is.
13379           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
13380 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
13381           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
13382 $as_echo_n "checking for AWK... " >&6; }
13383           if test ! -x "$tool_specified"; then
13384             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13385 $as_echo "not found" >&6; }
13386             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
13387           fi
13388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13389 $as_echo "$tool_specified" >&6; }
13390         fi
13391       fi
13392     fi
13393 
13394   fi
13395 
13396 
13397   if test "x$AWK" = x; then
13398     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
13399   fi
13400 
13401 
13402 
13403 
13404   # Publish this variable in the help.
13405 
13406 
13407   if [ -z "${GREP+x}" ]; then
13408     # The variable is not set by user, try to locate tool using the code snippet
13409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13410 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13411 if ${ac_cv_path_GREP+:} false; then :
13412   $as_echo_n "(cached) " >&6
13413 else
13414   if test -z "$GREP"; then
13415   ac_path_GREP_found=false
13416   # Loop through the user's path and test for each of PROGNAME-LIST
13417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13419 do
13420   IFS=$as_save_IFS
13421   test -z "$as_dir" && as_dir=.
13422     for ac_prog in grep ggrep; do
13423     for ac_exec_ext in '' $ac_executable_extensions; do
13424       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13425       as_fn_executable_p "$ac_path_GREP" || continue
13426 # Check for GNU ac_path_GREP and select it if it is found.
13427   # Check for GNU $ac_path_GREP
13428 case `"$ac_path_GREP" --version 2>&1` in
13429 *GNU*)
13430   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13431 *)
13432   ac_count=0
13433   $as_echo_n 0123456789 >"conftest.in"
13434   while :
13435   do
13436     cat "conftest.in" "conftest.in" >"conftest.tmp"
13437     mv "conftest.tmp" "conftest.in"
13438     cp "conftest.in" "conftest.nl"
13439     $as_echo 'GREP' >> "conftest.nl"
13440     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13441     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13442     as_fn_arith $ac_count + 1 && ac_count=$as_val
13443     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13444       # Best one so far, save it but keep looking for a better one
13445       ac_cv_path_GREP="$ac_path_GREP"
13446       ac_path_GREP_max=$ac_count
13447     fi
13448     # 10*(2^10) chars as input seems more than enough
13449     test $ac_count -gt 10 && break
13450   done
13451   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13452 esac
13453 
13454       $ac_path_GREP_found && break 3
13455     done
13456   done
13457   done
13458 IFS=$as_save_IFS
13459   if test -z "$ac_cv_path_GREP"; then
13460     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13461   fi
13462 else
13463   ac_cv_path_GREP=$GREP
13464 fi
13465 
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13468 $as_echo "$ac_cv_path_GREP" >&6; }
13469  GREP="$ac_cv_path_GREP"
13470 
13471 
13472   else
13473     # The variable is set, but is it from the command line or the environment?
13474 
13475     # Try to remove the string !GREP! from our list.
13476     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
13477     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13478       # If it failed, the variable was not from the command line. Ignore it,
13479       # but warn the user (except for BASH, which is always set by the calling BASH).
13480       if test "xGREP" != xBASH; then
13481         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
13482 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
13483       fi
13484       # Try to locate tool using the code snippet
13485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
13486 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
13487 if ${ac_cv_path_GREP+:} false; then :
13488   $as_echo_n "(cached) " >&6
13489 else
13490   if test -z "$GREP"; then
13491   ac_path_GREP_found=false
13492   # Loop through the user's path and test for each of PROGNAME-LIST
13493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13495 do
13496   IFS=$as_save_IFS
13497   test -z "$as_dir" && as_dir=.
13498     for ac_prog in grep ggrep; do
13499     for ac_exec_ext in '' $ac_executable_extensions; do
13500       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
13501       as_fn_executable_p "$ac_path_GREP" || continue
13502 # Check for GNU ac_path_GREP and select it if it is found.
13503   # Check for GNU $ac_path_GREP
13504 case `"$ac_path_GREP" --version 2>&1` in
13505 *GNU*)
13506   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
13507 *)
13508   ac_count=0
13509   $as_echo_n 0123456789 >"conftest.in"
13510   while :
13511   do
13512     cat "conftest.in" "conftest.in" >"conftest.tmp"
13513     mv "conftest.tmp" "conftest.in"
13514     cp "conftest.in" "conftest.nl"
13515     $as_echo 'GREP' >> "conftest.nl"
13516     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13518     as_fn_arith $ac_count + 1 && ac_count=$as_val
13519     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13520       # Best one so far, save it but keep looking for a better one
13521       ac_cv_path_GREP="$ac_path_GREP"
13522       ac_path_GREP_max=$ac_count
13523     fi
13524     # 10*(2^10) chars as input seems more than enough
13525     test $ac_count -gt 10 && break
13526   done
13527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13528 esac
13529 
13530       $ac_path_GREP_found && break 3
13531     done
13532   done
13533   done
13534 IFS=$as_save_IFS
13535   if test -z "$ac_cv_path_GREP"; then
13536     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13537   fi
13538 else
13539   ac_cv_path_GREP=$GREP
13540 fi
13541 
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13544 $as_echo "$ac_cv_path_GREP" >&6; }
13545  GREP="$ac_cv_path_GREP"
13546 
13547 
13548     else
13549       # If it succeeded, then it was overridden by the user. We will use it
13550       # for the tool.
13551 
13552       # First remove it from the list of overridden variables, so we can test
13553       # for unknown variables in the end.
13554       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13555 
13556       # Check if we try to supply an empty value
13557       if test "x$GREP" = x; then
13558         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13559 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13561 $as_echo_n "checking for GREP... " >&6; }
13562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13563 $as_echo "disabled" >&6; }
13564       else
13565         # Check if the provided tool contains a complete path.
13566         tool_specified="$GREP"
13567         tool_basename="${tool_specified##*/}"
13568         if test "x$tool_basename" = "x$tool_specified"; then
13569           # A command without a complete path is provided, search $PATH.
13570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13571 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13572           # Extract the first word of "$tool_basename", so it can be a program name with args.
13573 set dummy $tool_basename; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if ${ac_cv_path_GREP+:} false; then :
13577   $as_echo_n "(cached) " >&6
13578 else
13579   case $GREP in
13580   [\\/]* | ?:[\\/]*)
13581   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13582   ;;
13583   *)
13584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587   IFS=$as_save_IFS
13588   test -z "$as_dir" && as_dir=.
13589     for ac_exec_ext in '' $ac_executable_extensions; do
13590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593     break 2
13594   fi
13595 done
13596   done
13597 IFS=$as_save_IFS
13598 
13599   ;;
13600 esac
13601 fi
13602 GREP=$ac_cv_path_GREP
13603 if test -n "$GREP"; then
13604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13605 $as_echo "$GREP" >&6; }
13606 else
13607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610 
13611 
13612           if test "x$GREP" = x; then
13613             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13614           fi
13615         else
13616           # Otherwise we believe it is a complete path. Use it as it is.
13617           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13618 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13619           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13620 $as_echo_n "checking for GREP... " >&6; }
13621           if test ! -x "$tool_specified"; then
13622             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13623 $as_echo "not found" >&6; }
13624             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13625           fi
13626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13627 $as_echo "$tool_specified" >&6; }
13628         fi
13629       fi
13630     fi
13631 
13632   fi
13633 
13634 
13635   if test "x$GREP" = x; then
13636     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13637   fi
13638 
13639 
13640 
13641 
13642   # Publish this variable in the help.
13643 
13644 
13645   if [ -z "${EGREP+x}" ]; then
13646     # The variable is not set by user, try to locate tool using the code snippet
13647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13648 $as_echo_n "checking for egrep... " >&6; }
13649 if ${ac_cv_path_EGREP+:} false; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13653    then ac_cv_path_EGREP="$GREP -E"
13654    else
13655      if test -z "$EGREP"; then
13656   ac_path_EGREP_found=false
13657   # Loop through the user's path and test for each of PROGNAME-LIST
13658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663     for ac_prog in egrep; do
13664     for ac_exec_ext in '' $ac_executable_extensions; do
13665       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13666       as_fn_executable_p "$ac_path_EGREP" || continue
13667 # Check for GNU ac_path_EGREP and select it if it is found.
13668   # Check for GNU $ac_path_EGREP
13669 case `"$ac_path_EGREP" --version 2>&1` in
13670 *GNU*)
13671   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13672 *)
13673   ac_count=0
13674   $as_echo_n 0123456789 >"conftest.in"
13675   while :
13676   do
13677     cat "conftest.in" "conftest.in" >"conftest.tmp"
13678     mv "conftest.tmp" "conftest.in"
13679     cp "conftest.in" "conftest.nl"
13680     $as_echo 'EGREP' >> "conftest.nl"
13681     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13683     as_fn_arith $ac_count + 1 && ac_count=$as_val
13684     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13685       # Best one so far, save it but keep looking for a better one
13686       ac_cv_path_EGREP="$ac_path_EGREP"
13687       ac_path_EGREP_max=$ac_count
13688     fi
13689     # 10*(2^10) chars as input seems more than enough
13690     test $ac_count -gt 10 && break
13691   done
13692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13693 esac
13694 
13695       $ac_path_EGREP_found && break 3
13696     done
13697   done
13698   done
13699 IFS=$as_save_IFS
13700   if test -z "$ac_cv_path_EGREP"; then
13701     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13702   fi
13703 else
13704   ac_cv_path_EGREP=$EGREP
13705 fi
13706 
13707    fi
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13710 $as_echo "$ac_cv_path_EGREP" >&6; }
13711  EGREP="$ac_cv_path_EGREP"
13712 
13713 
13714   else
13715     # The variable is set, but is it from the command line or the environment?
13716 
13717     # Try to remove the string !EGREP! from our list.
13718     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13719     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13720       # If it failed, the variable was not from the command line. Ignore it,
13721       # but warn the user (except for BASH, which is always set by the calling BASH).
13722       if test "xEGREP" != xBASH; then
13723         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13724 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13725       fi
13726       # Try to locate tool using the code snippet
13727       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13728 $as_echo_n "checking for egrep... " >&6; }
13729 if ${ac_cv_path_EGREP+:} false; then :
13730   $as_echo_n "(cached) " >&6
13731 else
13732   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13733    then ac_cv_path_EGREP="$GREP -E"
13734    else
13735      if test -z "$EGREP"; then
13736   ac_path_EGREP_found=false
13737   # Loop through the user's path and test for each of PROGNAME-LIST
13738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13740 do
13741   IFS=$as_save_IFS
13742   test -z "$as_dir" && as_dir=.
13743     for ac_prog in egrep; do
13744     for ac_exec_ext in '' $ac_executable_extensions; do
13745       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13746       as_fn_executable_p "$ac_path_EGREP" || continue
13747 # Check for GNU ac_path_EGREP and select it if it is found.
13748   # Check for GNU $ac_path_EGREP
13749 case `"$ac_path_EGREP" --version 2>&1` in
13750 *GNU*)
13751   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13752 *)
13753   ac_count=0
13754   $as_echo_n 0123456789 >"conftest.in"
13755   while :
13756   do
13757     cat "conftest.in" "conftest.in" >"conftest.tmp"
13758     mv "conftest.tmp" "conftest.in"
13759     cp "conftest.in" "conftest.nl"
13760     $as_echo 'EGREP' >> "conftest.nl"
13761     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13762     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13763     as_fn_arith $ac_count + 1 && ac_count=$as_val
13764     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13765       # Best one so far, save it but keep looking for a better one
13766       ac_cv_path_EGREP="$ac_path_EGREP"
13767       ac_path_EGREP_max=$ac_count
13768     fi
13769     # 10*(2^10) chars as input seems more than enough
13770     test $ac_count -gt 10 && break
13771   done
13772   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13773 esac
13774 
13775       $ac_path_EGREP_found && break 3
13776     done
13777   done
13778   done
13779 IFS=$as_save_IFS
13780   if test -z "$ac_cv_path_EGREP"; then
13781     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13782   fi
13783 else
13784   ac_cv_path_EGREP=$EGREP
13785 fi
13786 
13787    fi
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13790 $as_echo "$ac_cv_path_EGREP" >&6; }
13791  EGREP="$ac_cv_path_EGREP"
13792 
13793 
13794     else
13795       # If it succeeded, then it was overridden by the user. We will use it
13796       # for the tool.
13797 
13798       # First remove it from the list of overridden variables, so we can test
13799       # for unknown variables in the end.
13800       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13801 
13802       # Check if we try to supply an empty value
13803       if test "x$EGREP" = x; then
13804         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13805 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13807 $as_echo_n "checking for EGREP... " >&6; }
13808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13809 $as_echo "disabled" >&6; }
13810       else
13811         # Check if the provided tool contains a complete path.
13812         tool_specified="$EGREP"
13813         tool_basename="${tool_specified##*/}"
13814         if test "x$tool_basename" = "x$tool_specified"; then
13815           # A command without a complete path is provided, search $PATH.
13816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13817 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13818           # Extract the first word of "$tool_basename", so it can be a program name with args.
13819 set dummy $tool_basename; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821 $as_echo_n "checking for $ac_word... " >&6; }
13822 if ${ac_cv_path_EGREP+:} false; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825   case $EGREP in
13826   [\\/]* | ?:[\\/]*)
13827   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13828   ;;
13829   *)
13830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833   IFS=$as_save_IFS
13834   test -z "$as_dir" && as_dir=.
13835     for ac_exec_ext in '' $ac_executable_extensions; do
13836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839     break 2
13840   fi
13841 done
13842   done
13843 IFS=$as_save_IFS
13844 
13845   ;;
13846 esac
13847 fi
13848 EGREP=$ac_cv_path_EGREP
13849 if test -n "$EGREP"; then
13850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13851 $as_echo "$EGREP" >&6; }
13852 else
13853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 fi
13856 
13857 
13858           if test "x$EGREP" = x; then
13859             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13860           fi
13861         else
13862           # Otherwise we believe it is a complete path. Use it as it is.
13863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13864 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13865           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13866 $as_echo_n "checking for EGREP... " >&6; }
13867           if test ! -x "$tool_specified"; then
13868             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13869 $as_echo "not found" >&6; }
13870             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13871           fi
13872           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13873 $as_echo "$tool_specified" >&6; }
13874         fi
13875       fi
13876     fi
13877 
13878   fi
13879 
13880 
13881   if test "x$EGREP" = x; then
13882     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13883   fi
13884 
13885 
13886 
13887 
13888   # Publish this variable in the help.
13889 
13890 
13891   if [ -z "${FGREP+x}" ]; then
13892     # The variable is not set by user, try to locate tool using the code snippet
13893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13894 $as_echo_n "checking for fgrep... " >&6; }
13895 if ${ac_cv_path_FGREP+:} false; then :
13896   $as_echo_n "(cached) " >&6
13897 else
13898   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13899    then ac_cv_path_FGREP="$GREP -F"
13900    else
13901      if test -z "$FGREP"; then
13902   ac_path_FGREP_found=false
13903   # Loop through the user's path and test for each of PROGNAME-LIST
13904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13906 do
13907   IFS=$as_save_IFS
13908   test -z "$as_dir" && as_dir=.
13909     for ac_prog in fgrep; do
13910     for ac_exec_ext in '' $ac_executable_extensions; do
13911       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13912       as_fn_executable_p "$ac_path_FGREP" || continue
13913 # Check for GNU ac_path_FGREP and select it if it is found.
13914   # Check for GNU $ac_path_FGREP
13915 case `"$ac_path_FGREP" --version 2>&1` in
13916 *GNU*)
13917   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13918 *)
13919   ac_count=0
13920   $as_echo_n 0123456789 >"conftest.in"
13921   while :
13922   do
13923     cat "conftest.in" "conftest.in" >"conftest.tmp"
13924     mv "conftest.tmp" "conftest.in"
13925     cp "conftest.in" "conftest.nl"
13926     $as_echo 'FGREP' >> "conftest.nl"
13927     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13928     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13929     as_fn_arith $ac_count + 1 && ac_count=$as_val
13930     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13931       # Best one so far, save it but keep looking for a better one
13932       ac_cv_path_FGREP="$ac_path_FGREP"
13933       ac_path_FGREP_max=$ac_count
13934     fi
13935     # 10*(2^10) chars as input seems more than enough
13936     test $ac_count -gt 10 && break
13937   done
13938   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13939 esac
13940 
13941       $ac_path_FGREP_found && break 3
13942     done
13943   done
13944   done
13945 IFS=$as_save_IFS
13946   if test -z "$ac_cv_path_FGREP"; then
13947     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13948   fi
13949 else
13950   ac_cv_path_FGREP=$FGREP
13951 fi
13952 
13953    fi
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13956 $as_echo "$ac_cv_path_FGREP" >&6; }
13957  FGREP="$ac_cv_path_FGREP"
13958 
13959 
13960   else
13961     # The variable is set, but is it from the command line or the environment?
13962 
13963     # Try to remove the string !FGREP! from our list.
13964     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13965     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13966       # If it failed, the variable was not from the command line. Ignore it,
13967       # but warn the user (except for BASH, which is always set by the calling BASH).
13968       if test "xFGREP" != xBASH; then
13969         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13970 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13971       fi
13972       # Try to locate tool using the code snippet
13973       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13974 $as_echo_n "checking for fgrep... " >&6; }
13975 if ${ac_cv_path_FGREP+:} false; then :
13976   $as_echo_n "(cached) " >&6
13977 else
13978   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13979    then ac_cv_path_FGREP="$GREP -F"
13980    else
13981      if test -z "$FGREP"; then
13982   ac_path_FGREP_found=false
13983   # Loop through the user's path and test for each of PROGNAME-LIST
13984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13986 do
13987   IFS=$as_save_IFS
13988   test -z "$as_dir" && as_dir=.
13989     for ac_prog in fgrep; do
13990     for ac_exec_ext in '' $ac_executable_extensions; do
13991       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13992       as_fn_executable_p "$ac_path_FGREP" || continue
13993 # Check for GNU ac_path_FGREP and select it if it is found.
13994   # Check for GNU $ac_path_FGREP
13995 case `"$ac_path_FGREP" --version 2>&1` in
13996 *GNU*)
13997   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13998 *)
13999   ac_count=0
14000   $as_echo_n 0123456789 >"conftest.in"
14001   while :
14002   do
14003     cat "conftest.in" "conftest.in" >"conftest.tmp"
14004     mv "conftest.tmp" "conftest.in"
14005     cp "conftest.in" "conftest.nl"
14006     $as_echo 'FGREP' >> "conftest.nl"
14007     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14008     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14009     as_fn_arith $ac_count + 1 && ac_count=$as_val
14010     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14011       # Best one so far, save it but keep looking for a better one
14012       ac_cv_path_FGREP="$ac_path_FGREP"
14013       ac_path_FGREP_max=$ac_count
14014     fi
14015     # 10*(2^10) chars as input seems more than enough
14016     test $ac_count -gt 10 && break
14017   done
14018   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14019 esac
14020 
14021       $ac_path_FGREP_found && break 3
14022     done
14023   done
14024   done
14025 IFS=$as_save_IFS
14026   if test -z "$ac_cv_path_FGREP"; then
14027     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14028   fi
14029 else
14030   ac_cv_path_FGREP=$FGREP
14031 fi
14032 
14033    fi
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14036 $as_echo "$ac_cv_path_FGREP" >&6; }
14037  FGREP="$ac_cv_path_FGREP"
14038 
14039 
14040     else
14041       # If it succeeded, then it was overridden by the user. We will use it
14042       # for the tool.
14043 
14044       # First remove it from the list of overridden variables, so we can test
14045       # for unknown variables in the end.
14046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14047 
14048       # Check if we try to supply an empty value
14049       if test "x$FGREP" = x; then
14050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
14051 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
14052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14053 $as_echo_n "checking for FGREP... " >&6; }
14054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14055 $as_echo "disabled" >&6; }
14056       else
14057         # Check if the provided tool contains a complete path.
14058         tool_specified="$FGREP"
14059         tool_basename="${tool_specified##*/}"
14060         if test "x$tool_basename" = "x$tool_specified"; then
14061           # A command without a complete path is provided, search $PATH.
14062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
14063 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
14064           # Extract the first word of "$tool_basename", so it can be a program name with args.
14065 set dummy $tool_basename; ac_word=$2
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14067 $as_echo_n "checking for $ac_word... " >&6; }
14068 if ${ac_cv_path_FGREP+:} false; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   case $FGREP in
14072   [\\/]* | ?:[\\/]*)
14073   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
14074   ;;
14075   *)
14076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14078 do
14079   IFS=$as_save_IFS
14080   test -z "$as_dir" && as_dir=.
14081     for ac_exec_ext in '' $ac_executable_extensions; do
14082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
14084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085     break 2
14086   fi
14087 done
14088   done
14089 IFS=$as_save_IFS
14090 
14091   ;;
14092 esac
14093 fi
14094 FGREP=$ac_cv_path_FGREP
14095 if test -n "$FGREP"; then
14096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
14097 $as_echo "$FGREP" >&6; }
14098 else
14099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100 $as_echo "no" >&6; }
14101 fi
14102 
14103 
14104           if test "x$FGREP" = x; then
14105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14106           fi
14107         else
14108           # Otherwise we believe it is a complete path. Use it as it is.
14109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
14110 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
14111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
14112 $as_echo_n "checking for FGREP... " >&6; }
14113           if test ! -x "$tool_specified"; then
14114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14115 $as_echo "not found" >&6; }
14116             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
14117           fi
14118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14119 $as_echo "$tool_specified" >&6; }
14120         fi
14121       fi
14122     fi
14123 
14124   fi
14125 
14126 
14127   if test "x$FGREP" = x; then
14128     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
14129   fi
14130 
14131 
14132 
14133 
14134   # Publish this variable in the help.
14135 
14136 
14137   if [ -z "${SED+x}" ]; then
14138     # The variable is not set by user, try to locate tool using the code snippet
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14140 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14141 if ${ac_cv_path_SED+:} false; then :
14142   $as_echo_n "(cached) " >&6
14143 else
14144             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14145      for ac_i in 1 2 3 4 5 6 7; do
14146        ac_script="$ac_script$as_nl$ac_script"
14147      done
14148      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14149      { ac_script=; unset ac_script;}
14150      if test -z "$SED"; then
14151   ac_path_SED_found=false
14152   # Loop through the user's path and test for each of PROGNAME-LIST
14153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14155 do
14156   IFS=$as_save_IFS
14157   test -z "$as_dir" && as_dir=.
14158     for ac_prog in sed gsed; do
14159     for ac_exec_ext in '' $ac_executable_extensions; do
14160       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14161       as_fn_executable_p "$ac_path_SED" || continue
14162 # Check for GNU ac_path_SED and select it if it is found.
14163   # Check for GNU $ac_path_SED
14164 case `"$ac_path_SED" --version 2>&1` in
14165 *GNU*)
14166   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14167 *)
14168   ac_count=0
14169   $as_echo_n 0123456789 >"conftest.in"
14170   while :
14171   do
14172     cat "conftest.in" "conftest.in" >"conftest.tmp"
14173     mv "conftest.tmp" "conftest.in"
14174     cp "conftest.in" "conftest.nl"
14175     $as_echo '' >> "conftest.nl"
14176     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14177     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14178     as_fn_arith $ac_count + 1 && ac_count=$as_val
14179     if test $ac_count -gt ${ac_path_SED_max-0}; then
14180       # Best one so far, save it but keep looking for a better one
14181       ac_cv_path_SED="$ac_path_SED"
14182       ac_path_SED_max=$ac_count
14183     fi
14184     # 10*(2^10) chars as input seems more than enough
14185     test $ac_count -gt 10 && break
14186   done
14187   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14188 esac
14189 
14190       $ac_path_SED_found && break 3
14191     done
14192   done
14193   done
14194 IFS=$as_save_IFS
14195   if test -z "$ac_cv_path_SED"; then
14196     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14197   fi
14198 else
14199   ac_cv_path_SED=$SED
14200 fi
14201 
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14204 $as_echo "$ac_cv_path_SED" >&6; }
14205  SED="$ac_cv_path_SED"
14206   rm -f conftest.sed
14207 
14208   else
14209     # The variable is set, but is it from the command line or the environment?
14210 
14211     # Try to remove the string !SED! from our list.
14212     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
14213     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14214       # If it failed, the variable was not from the command line. Ignore it,
14215       # but warn the user (except for BASH, which is always set by the calling BASH).
14216       if test "xSED" != xBASH; then
14217         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
14218 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
14219       fi
14220       # Try to locate tool using the code snippet
14221       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14222 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14223 if ${ac_cv_path_SED+:} false; then :
14224   $as_echo_n "(cached) " >&6
14225 else
14226             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14227      for ac_i in 1 2 3 4 5 6 7; do
14228        ac_script="$ac_script$as_nl$ac_script"
14229      done
14230      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14231      { ac_script=; unset ac_script;}
14232      if test -z "$SED"; then
14233   ac_path_SED_found=false
14234   # Loop through the user's path and test for each of PROGNAME-LIST
14235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238   IFS=$as_save_IFS
14239   test -z "$as_dir" && as_dir=.
14240     for ac_prog in sed gsed; do
14241     for ac_exec_ext in '' $ac_executable_extensions; do
14242       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14243       as_fn_executable_p "$ac_path_SED" || continue
14244 # Check for GNU ac_path_SED and select it if it is found.
14245   # Check for GNU $ac_path_SED
14246 case `"$ac_path_SED" --version 2>&1` in
14247 *GNU*)
14248   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14249 *)
14250   ac_count=0
14251   $as_echo_n 0123456789 >"conftest.in"
14252   while :
14253   do
14254     cat "conftest.in" "conftest.in" >"conftest.tmp"
14255     mv "conftest.tmp" "conftest.in"
14256     cp "conftest.in" "conftest.nl"
14257     $as_echo '' >> "conftest.nl"
14258     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14260     as_fn_arith $ac_count + 1 && ac_count=$as_val
14261     if test $ac_count -gt ${ac_path_SED_max-0}; then
14262       # Best one so far, save it but keep looking for a better one
14263       ac_cv_path_SED="$ac_path_SED"
14264       ac_path_SED_max=$ac_count
14265     fi
14266     # 10*(2^10) chars as input seems more than enough
14267     test $ac_count -gt 10 && break
14268   done
14269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14270 esac
14271 
14272       $ac_path_SED_found && break 3
14273     done
14274   done
14275   done
14276 IFS=$as_save_IFS
14277   if test -z "$ac_cv_path_SED"; then
14278     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14279   fi
14280 else
14281   ac_cv_path_SED=$SED
14282 fi
14283 
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14286 $as_echo "$ac_cv_path_SED" >&6; }
14287  SED="$ac_cv_path_SED"
14288   rm -f conftest.sed
14289 
14290     else
14291       # If it succeeded, then it was overridden by the user. We will use it
14292       # for the tool.
14293 
14294       # First remove it from the list of overridden variables, so we can test
14295       # for unknown variables in the end.
14296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14297 
14298       # Check if we try to supply an empty value
14299       if test "x$SED" = x; then
14300         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
14301 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
14302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14303 $as_echo_n "checking for SED... " >&6; }
14304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14305 $as_echo "disabled" >&6; }
14306       else
14307         # Check if the provided tool contains a complete path.
14308         tool_specified="$SED"
14309         tool_basename="${tool_specified##*/}"
14310         if test "x$tool_basename" = "x$tool_specified"; then
14311           # A command without a complete path is provided, search $PATH.
14312           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
14313 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
14314           # Extract the first word of "$tool_basename", so it can be a program name with args.
14315 set dummy $tool_basename; ac_word=$2
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14317 $as_echo_n "checking for $ac_word... " >&6; }
14318 if ${ac_cv_path_SED+:} false; then :
14319   $as_echo_n "(cached) " >&6
14320 else
14321   case $SED in
14322   [\\/]* | ?:[\\/]*)
14323   ac_cv_path_SED="$SED" # Let the user override the test with a path.
14324   ;;
14325   *)
14326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329   IFS=$as_save_IFS
14330   test -z "$as_dir" && as_dir=.
14331     for ac_exec_ext in '' $ac_executable_extensions; do
14332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14333     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
14334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335     break 2
14336   fi
14337 done
14338   done
14339 IFS=$as_save_IFS
14340 
14341   ;;
14342 esac
14343 fi
14344 SED=$ac_cv_path_SED
14345 if test -n "$SED"; then
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
14347 $as_echo "$SED" >&6; }
14348 else
14349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14351 fi
14352 
14353 
14354           if test "x$SED" = x; then
14355             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14356           fi
14357         else
14358           # Otherwise we believe it is a complete path. Use it as it is.
14359           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
14360 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
14361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
14362 $as_echo_n "checking for SED... " >&6; }
14363           if test ! -x "$tool_specified"; then
14364             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14365 $as_echo "not found" >&6; }
14366             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
14367           fi
14368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14369 $as_echo "$tool_specified" >&6; }
14370         fi
14371       fi
14372     fi
14373 
14374   fi
14375 
14376 
14377   if test "x$SED" = x; then
14378     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
14379   fi
14380 
14381 
14382 
14383   # Always force rm.
14384   RM="$RM -f"
14385 
14386   # pwd behaves differently on various platforms and some don't support the -L flag.
14387   # Always use the bash builtin pwd to get uniform behavior.
14388   THEPWDCMD=pwd
14389 
14390   # These are not required on all platforms
14391 
14392 
14393   # Publish this variable in the help.
14394 
14395 
14396   if [ -z "${CYGPATH+x}" ]; then
14397     # The variable is not set by user, try to locate tool using the code snippet
14398     for ac_prog in cygpath
14399 do
14400   # Extract the first word of "$ac_prog", so it can be a program name with args.
14401 set dummy $ac_prog; ac_word=$2
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14403 $as_echo_n "checking for $ac_word... " >&6; }
14404 if ${ac_cv_path_CYGPATH+:} false; then :
14405   $as_echo_n "(cached) " >&6
14406 else
14407   case $CYGPATH in
14408   [\\/]* | ?:[\\/]*)
14409   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14410   ;;
14411   *)
14412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14414 do
14415   IFS=$as_save_IFS
14416   test -z "$as_dir" && as_dir=.
14417     for ac_exec_ext in '' $ac_executable_extensions; do
14418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14419     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14421     break 2
14422   fi
14423 done
14424   done
14425 IFS=$as_save_IFS
14426 
14427   ;;
14428 esac
14429 fi
14430 CYGPATH=$ac_cv_path_CYGPATH
14431 if test -n "$CYGPATH"; then
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14433 $as_echo "$CYGPATH" >&6; }
14434 else
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 fi
14438 
14439 
14440   test -n "$CYGPATH" && break
14441 done
14442 
14443   else
14444     # The variable is set, but is it from the command line or the environment?
14445 
14446     # Try to remove the string !CYGPATH! from our list.
14447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
14448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14449       # If it failed, the variable was not from the command line. Ignore it,
14450       # but warn the user (except for BASH, which is always set by the calling BASH).
14451       if test "xCYGPATH" != xBASH; then
14452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
14453 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
14454       fi
14455       # Try to locate tool using the code snippet
14456       for ac_prog in cygpath
14457 do
14458   # Extract the first word of "$ac_prog", so it can be a program name with args.
14459 set dummy $ac_prog; ac_word=$2
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14461 $as_echo_n "checking for $ac_word... " >&6; }
14462 if ${ac_cv_path_CYGPATH+:} false; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   case $CYGPATH in
14466   [\\/]* | ?:[\\/]*)
14467   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14468   ;;
14469   *)
14470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14472 do
14473   IFS=$as_save_IFS
14474   test -z "$as_dir" && as_dir=.
14475     for ac_exec_ext in '' $ac_executable_extensions; do
14476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14477     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14479     break 2
14480   fi
14481 done
14482   done
14483 IFS=$as_save_IFS
14484 
14485   ;;
14486 esac
14487 fi
14488 CYGPATH=$ac_cv_path_CYGPATH
14489 if test -n "$CYGPATH"; then
14490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14491 $as_echo "$CYGPATH" >&6; }
14492 else
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494 $as_echo "no" >&6; }
14495 fi
14496 
14497 
14498   test -n "$CYGPATH" && break
14499 done
14500 
14501     else
14502       # If it succeeded, then it was overridden by the user. We will use it
14503       # for the tool.
14504 
14505       # First remove it from the list of overridden variables, so we can test
14506       # for unknown variables in the end.
14507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14508 
14509       # Check if we try to supply an empty value
14510       if test "x$CYGPATH" = x; then
14511         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
14512 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
14513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14514 $as_echo_n "checking for CYGPATH... " >&6; }
14515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14516 $as_echo "disabled" >&6; }
14517       else
14518         # Check if the provided tool contains a complete path.
14519         tool_specified="$CYGPATH"
14520         tool_basename="${tool_specified##*/}"
14521         if test "x$tool_basename" = "x$tool_specified"; then
14522           # A command without a complete path is provided, search $PATH.
14523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14524 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14525           # Extract the first word of "$tool_basename", so it can be a program name with args.
14526 set dummy $tool_basename; ac_word=$2
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14528 $as_echo_n "checking for $ac_word... " >&6; }
14529 if ${ac_cv_path_CYGPATH+:} false; then :
14530   $as_echo_n "(cached) " >&6
14531 else
14532   case $CYGPATH in
14533   [\\/]* | ?:[\\/]*)
14534   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14535   ;;
14536   *)
14537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $PATH
14539 do
14540   IFS=$as_save_IFS
14541   test -z "$as_dir" && as_dir=.
14542     for ac_exec_ext in '' $ac_executable_extensions; do
14543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14544     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546     break 2
14547   fi
14548 done
14549   done
14550 IFS=$as_save_IFS
14551 
14552   ;;
14553 esac
14554 fi
14555 CYGPATH=$ac_cv_path_CYGPATH
14556 if test -n "$CYGPATH"; then
14557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14558 $as_echo "$CYGPATH" >&6; }
14559 else
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14562 fi
14563 
14564 
14565           if test "x$CYGPATH" = x; then
14566             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14567           fi
14568         else
14569           # Otherwise we believe it is a complete path. Use it as it is.
14570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14571 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14573 $as_echo_n "checking for CYGPATH... " >&6; }
14574           if test ! -x "$tool_specified"; then
14575             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14576 $as_echo "not found" >&6; }
14577             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14578           fi
14579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14580 $as_echo "$tool_specified" >&6; }
14581         fi
14582       fi
14583     fi
14584 
14585   fi
14586 
14587 
14588 
14589 
14590   # Publish this variable in the help.
14591 
14592 
14593   if [ -z "${READLINK+x}" ]; then
14594     # The variable is not set by user, try to locate tool using the code snippet
14595     for ac_prog in greadlink readlink
14596 do
14597   # Extract the first word of "$ac_prog", so it can be a program name with args.
14598 set dummy $ac_prog; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if ${ac_cv_path_READLINK+:} false; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604   case $READLINK in
14605   [\\/]* | ?:[\\/]*)
14606   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14607   ;;
14608   *)
14609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14611 do
14612   IFS=$as_save_IFS
14613   test -z "$as_dir" && as_dir=.
14614     for ac_exec_ext in '' $ac_executable_extensions; do
14615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14616     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14618     break 2
14619   fi
14620 done
14621   done
14622 IFS=$as_save_IFS
14623 
14624   ;;
14625 esac
14626 fi
14627 READLINK=$ac_cv_path_READLINK
14628 if test -n "$READLINK"; then
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14630 $as_echo "$READLINK" >&6; }
14631 else
14632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633 $as_echo "no" >&6; }
14634 fi
14635 
14636 
14637   test -n "$READLINK" && break
14638 done
14639 
14640   else
14641     # The variable is set, but is it from the command line or the environment?
14642 
14643     # Try to remove the string !READLINK! from our list.
14644     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14645     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14646       # If it failed, the variable was not from the command line. Ignore it,
14647       # but warn the user (except for BASH, which is always set by the calling BASH).
14648       if test "xREADLINK" != xBASH; then
14649         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14650 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14651       fi
14652       # Try to locate tool using the code snippet
14653       for ac_prog in greadlink readlink
14654 do
14655   # Extract the first word of "$ac_prog", so it can be a program name with args.
14656 set dummy $ac_prog; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if ${ac_cv_path_READLINK+:} false; then :
14660   $as_echo_n "(cached) " >&6
14661 else
14662   case $READLINK in
14663   [\\/]* | ?:[\\/]*)
14664   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14665   ;;
14666   *)
14667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14669 do
14670   IFS=$as_save_IFS
14671   test -z "$as_dir" && as_dir=.
14672     for ac_exec_ext in '' $ac_executable_extensions; do
14673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676     break 2
14677   fi
14678 done
14679   done
14680 IFS=$as_save_IFS
14681 
14682   ;;
14683 esac
14684 fi
14685 READLINK=$ac_cv_path_READLINK
14686 if test -n "$READLINK"; then
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14688 $as_echo "$READLINK" >&6; }
14689 else
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693 
14694 
14695   test -n "$READLINK" && break
14696 done
14697 
14698     else
14699       # If it succeeded, then it was overridden by the user. We will use it
14700       # for the tool.
14701 
14702       # First remove it from the list of overridden variables, so we can test
14703       # for unknown variables in the end.
14704       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14705 
14706       # Check if we try to supply an empty value
14707       if test "x$READLINK" = x; then
14708         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14709 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14711 $as_echo_n "checking for READLINK... " >&6; }
14712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14713 $as_echo "disabled" >&6; }
14714       else
14715         # Check if the provided tool contains a complete path.
14716         tool_specified="$READLINK"
14717         tool_basename="${tool_specified##*/}"
14718         if test "x$tool_basename" = "x$tool_specified"; then
14719           # A command without a complete path is provided, search $PATH.
14720           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14721 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14722           # Extract the first word of "$tool_basename", so it can be a program name with args.
14723 set dummy $tool_basename; ac_word=$2
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14725 $as_echo_n "checking for $ac_word... " >&6; }
14726 if ${ac_cv_path_READLINK+:} false; then :
14727   $as_echo_n "(cached) " >&6
14728 else
14729   case $READLINK in
14730   [\\/]* | ?:[\\/]*)
14731   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14732   ;;
14733   *)
14734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14736 do
14737   IFS=$as_save_IFS
14738   test -z "$as_dir" && as_dir=.
14739     for ac_exec_ext in '' $ac_executable_extensions; do
14740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14743     break 2
14744   fi
14745 done
14746   done
14747 IFS=$as_save_IFS
14748 
14749   ;;
14750 esac
14751 fi
14752 READLINK=$ac_cv_path_READLINK
14753 if test -n "$READLINK"; then
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14755 $as_echo "$READLINK" >&6; }
14756 else
14757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14759 fi
14760 
14761 
14762           if test "x$READLINK" = x; then
14763             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14764           fi
14765         else
14766           # Otherwise we believe it is a complete path. Use it as it is.
14767           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14768 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14769           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14770 $as_echo_n "checking for READLINK... " >&6; }
14771           if test ! -x "$tool_specified"; then
14772             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14773 $as_echo "not found" >&6; }
14774             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14775           fi
14776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14777 $as_echo "$tool_specified" >&6; }
14778         fi
14779       fi
14780     fi
14781 
14782   fi
14783 
14784 
14785 
14786 
14787   # Publish this variable in the help.
14788 
14789 
14790   if [ -z "${DF+x}" ]; then
14791     # The variable is not set by user, try to locate tool using the code snippet
14792     for ac_prog in df
14793 do
14794   # Extract the first word of "$ac_prog", so it can be a program name with args.
14795 set dummy $ac_prog; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if ${ac_cv_path_DF+:} false; then :
14799   $as_echo_n "(cached) " >&6
14800 else
14801   case $DF in
14802   [\\/]* | ?:[\\/]*)
14803   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14804   ;;
14805   *)
14806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14808 do
14809   IFS=$as_save_IFS
14810   test -z "$as_dir" && as_dir=.
14811     for ac_exec_ext in '' $ac_executable_extensions; do
14812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815     break 2
14816   fi
14817 done
14818   done
14819 IFS=$as_save_IFS
14820 
14821   ;;
14822 esac
14823 fi
14824 DF=$ac_cv_path_DF
14825 if test -n "$DF"; then
14826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14827 $as_echo "$DF" >&6; }
14828 else
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832 
14833 
14834   test -n "$DF" && break
14835 done
14836 
14837   else
14838     # The variable is set, but is it from the command line or the environment?
14839 
14840     # Try to remove the string !DF! from our list.
14841     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14842     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14843       # If it failed, the variable was not from the command line. Ignore it,
14844       # but warn the user (except for BASH, which is always set by the calling BASH).
14845       if test "xDF" != xBASH; then
14846         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14847 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14848       fi
14849       # Try to locate tool using the code snippet
14850       for ac_prog in df
14851 do
14852   # Extract the first word of "$ac_prog", so it can be a program name with args.
14853 set dummy $ac_prog; ac_word=$2
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14855 $as_echo_n "checking for $ac_word... " >&6; }
14856 if ${ac_cv_path_DF+:} false; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   case $DF in
14860   [\\/]* | ?:[\\/]*)
14861   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14862   ;;
14863   *)
14864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14866 do
14867   IFS=$as_save_IFS
14868   test -z "$as_dir" && as_dir=.
14869     for ac_exec_ext in '' $ac_executable_extensions; do
14870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14873     break 2
14874   fi
14875 done
14876   done
14877 IFS=$as_save_IFS
14878 
14879   ;;
14880 esac
14881 fi
14882 DF=$ac_cv_path_DF
14883 if test -n "$DF"; then
14884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14885 $as_echo "$DF" >&6; }
14886 else
14887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14888 $as_echo "no" >&6; }
14889 fi
14890 
14891 
14892   test -n "$DF" && break
14893 done
14894 
14895     else
14896       # If it succeeded, then it was overridden by the user. We will use it
14897       # for the tool.
14898 
14899       # First remove it from the list of overridden variables, so we can test
14900       # for unknown variables in the end.
14901       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14902 
14903       # Check if we try to supply an empty value
14904       if test "x$DF" = x; then
14905         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14906 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14908 $as_echo_n "checking for DF... " >&6; }
14909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14910 $as_echo "disabled" >&6; }
14911       else
14912         # Check if the provided tool contains a complete path.
14913         tool_specified="$DF"
14914         tool_basename="${tool_specified##*/}"
14915         if test "x$tool_basename" = "x$tool_specified"; then
14916           # A command without a complete path is provided, search $PATH.
14917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14918 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14919           # Extract the first word of "$tool_basename", so it can be a program name with args.
14920 set dummy $tool_basename; ac_word=$2
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922 $as_echo_n "checking for $ac_word... " >&6; }
14923 if ${ac_cv_path_DF+:} false; then :
14924   $as_echo_n "(cached) " >&6
14925 else
14926   case $DF in
14927   [\\/]* | ?:[\\/]*)
14928   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14929   ;;
14930   *)
14931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14933 do
14934   IFS=$as_save_IFS
14935   test -z "$as_dir" && as_dir=.
14936     for ac_exec_ext in '' $ac_executable_extensions; do
14937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14940     break 2
14941   fi
14942 done
14943   done
14944 IFS=$as_save_IFS
14945 
14946   ;;
14947 esac
14948 fi
14949 DF=$ac_cv_path_DF
14950 if test -n "$DF"; then
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14952 $as_echo "$DF" >&6; }
14953 else
14954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14955 $as_echo "no" >&6; }
14956 fi
14957 
14958 
14959           if test "x$DF" = x; then
14960             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14961           fi
14962         else
14963           # Otherwise we believe it is a complete path. Use it as it is.
14964           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14965 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14966           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14967 $as_echo_n "checking for DF... " >&6; }
14968           if test ! -x "$tool_specified"; then
14969             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14970 $as_echo "not found" >&6; }
14971             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14972           fi
14973           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14974 $as_echo "$tool_specified" >&6; }
14975         fi
14976       fi
14977     fi
14978 
14979   fi
14980 
14981 
14982 
14983 
14984   # Publish this variable in the help.
14985 
14986 
14987   if [ -z "${CPIO+x}" ]; then
14988     # The variable is not set by user, try to locate tool using the code snippet
14989     for ac_prog in cpio bsdcpio
14990 do
14991   # Extract the first word of "$ac_prog", so it can be a program name with args.
14992 set dummy $ac_prog; ac_word=$2
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14994 $as_echo_n "checking for $ac_word... " >&6; }
14995 if ${ac_cv_path_CPIO+:} false; then :
14996   $as_echo_n "(cached) " >&6
14997 else
14998   case $CPIO in
14999   [\\/]* | ?:[\\/]*)
15000   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15001   ;;
15002   *)
15003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004 for as_dir in $PATH
15005 do
15006   IFS=$as_save_IFS
15007   test -z "$as_dir" && as_dir=.
15008     for ac_exec_ext in '' $ac_executable_extensions; do
15009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15010     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15012     break 2
15013   fi
15014 done
15015   done
15016 IFS=$as_save_IFS
15017 
15018   ;;
15019 esac
15020 fi
15021 CPIO=$ac_cv_path_CPIO
15022 if test -n "$CPIO"; then
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15024 $as_echo "$CPIO" >&6; }
15025 else
15026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15028 fi
15029 
15030 
15031   test -n "$CPIO" && break
15032 done
15033 
15034   else
15035     # The variable is set, but is it from the command line or the environment?
15036 
15037     # Try to remove the string !CPIO! from our list.
15038     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
15039     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15040       # If it failed, the variable was not from the command line. Ignore it,
15041       # but warn the user (except for BASH, which is always set by the calling BASH).
15042       if test "xCPIO" != xBASH; then
15043         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
15044 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
15045       fi
15046       # Try to locate tool using the code snippet
15047       for ac_prog in cpio bsdcpio
15048 do
15049   # Extract the first word of "$ac_prog", so it can be a program name with args.
15050 set dummy $ac_prog; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052 $as_echo_n "checking for $ac_word... " >&6; }
15053 if ${ac_cv_path_CPIO+:} false; then :
15054   $as_echo_n "(cached) " >&6
15055 else
15056   case $CPIO in
15057   [\\/]* | ?:[\\/]*)
15058   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15059   ;;
15060   *)
15061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $PATH
15063 do
15064   IFS=$as_save_IFS
15065   test -z "$as_dir" && as_dir=.
15066     for ac_exec_ext in '' $ac_executable_extensions; do
15067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15070     break 2
15071   fi
15072 done
15073   done
15074 IFS=$as_save_IFS
15075 
15076   ;;
15077 esac
15078 fi
15079 CPIO=$ac_cv_path_CPIO
15080 if test -n "$CPIO"; then
15081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15082 $as_echo "$CPIO" >&6; }
15083 else
15084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 $as_echo "no" >&6; }
15086 fi
15087 
15088 
15089   test -n "$CPIO" && break
15090 done
15091 
15092     else
15093       # If it succeeded, then it was overridden by the user. We will use it
15094       # for the tool.
15095 
15096       # First remove it from the list of overridden variables, so we can test
15097       # for unknown variables in the end.
15098       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15099 
15100       # Check if we try to supply an empty value
15101       if test "x$CPIO" = x; then
15102         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
15103 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
15104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15105 $as_echo_n "checking for CPIO... " >&6; }
15106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15107 $as_echo "disabled" >&6; }
15108       else
15109         # Check if the provided tool contains a complete path.
15110         tool_specified="$CPIO"
15111         tool_basename="${tool_specified##*/}"
15112         if test "x$tool_basename" = "x$tool_specified"; then
15113           # A command without a complete path is provided, search $PATH.
15114           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
15115 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
15116           # Extract the first word of "$tool_basename", so it can be a program name with args.
15117 set dummy $tool_basename; ac_word=$2
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15119 $as_echo_n "checking for $ac_word... " >&6; }
15120 if ${ac_cv_path_CPIO+:} false; then :
15121   $as_echo_n "(cached) " >&6
15122 else
15123   case $CPIO in
15124   [\\/]* | ?:[\\/]*)
15125   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
15126   ;;
15127   *)
15128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129 for as_dir in $PATH
15130 do
15131   IFS=$as_save_IFS
15132   test -z "$as_dir" && as_dir=.
15133     for ac_exec_ext in '' $ac_executable_extensions; do
15134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
15136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15137     break 2
15138   fi
15139 done
15140   done
15141 IFS=$as_save_IFS
15142 
15143   ;;
15144 esac
15145 fi
15146 CPIO=$ac_cv_path_CPIO
15147 if test -n "$CPIO"; then
15148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
15149 $as_echo "$CPIO" >&6; }
15150 else
15151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 $as_echo "no" >&6; }
15153 fi
15154 
15155 
15156           if test "x$CPIO" = x; then
15157             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15158           fi
15159         else
15160           # Otherwise we believe it is a complete path. Use it as it is.
15161           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
15162 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
15163           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
15164 $as_echo_n "checking for CPIO... " >&6; }
15165           if test ! -x "$tool_specified"; then
15166             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15167 $as_echo "not found" >&6; }
15168             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
15169           fi
15170           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15171 $as_echo "$tool_specified" >&6; }
15172         fi
15173       fi
15174     fi
15175 
15176   fi
15177 
15178 
15179 
15180 
15181   # Publish this variable in the help.
15182 
15183 
15184   if [ -z "${NICE+x}" ]; then
15185     # The variable is not set by user, try to locate tool using the code snippet
15186     for ac_prog in nice
15187 do
15188   # Extract the first word of "$ac_prog", so it can be a program name with args.
15189 set dummy $ac_prog; ac_word=$2
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191 $as_echo_n "checking for $ac_word... " >&6; }
15192 if ${ac_cv_path_NICE+:} false; then :
15193   $as_echo_n "(cached) " >&6
15194 else
15195   case $NICE in
15196   [\\/]* | ?:[\\/]*)
15197   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15198   ;;
15199   *)
15200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $PATH
15202 do
15203   IFS=$as_save_IFS
15204   test -z "$as_dir" && as_dir=.
15205     for ac_exec_ext in '' $ac_executable_extensions; do
15206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15209     break 2
15210   fi
15211 done
15212   done
15213 IFS=$as_save_IFS
15214 
15215   ;;
15216 esac
15217 fi
15218 NICE=$ac_cv_path_NICE
15219 if test -n "$NICE"; then
15220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15221 $as_echo "$NICE" >&6; }
15222 else
15223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15225 fi
15226 
15227 
15228   test -n "$NICE" && break
15229 done
15230 
15231   else
15232     # The variable is set, but is it from the command line or the environment?
15233 
15234     # Try to remove the string !NICE! from our list.
15235     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
15236     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15237       # If it failed, the variable was not from the command line. Ignore it,
15238       # but warn the user (except for BASH, which is always set by the calling BASH).
15239       if test "xNICE" != xBASH; then
15240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
15241 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
15242       fi
15243       # Try to locate tool using the code snippet
15244       for ac_prog in nice
15245 do
15246   # Extract the first word of "$ac_prog", so it can be a program name with args.
15247 set dummy $ac_prog; ac_word=$2
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249 $as_echo_n "checking for $ac_word... " >&6; }
15250 if ${ac_cv_path_NICE+:} false; then :
15251   $as_echo_n "(cached) " >&6
15252 else
15253   case $NICE in
15254   [\\/]* | ?:[\\/]*)
15255   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15256   ;;
15257   *)
15258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15260 do
15261   IFS=$as_save_IFS
15262   test -z "$as_dir" && as_dir=.
15263     for ac_exec_ext in '' $ac_executable_extensions; do
15264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15267     break 2
15268   fi
15269 done
15270   done
15271 IFS=$as_save_IFS
15272 
15273   ;;
15274 esac
15275 fi
15276 NICE=$ac_cv_path_NICE
15277 if test -n "$NICE"; then
15278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15279 $as_echo "$NICE" >&6; }
15280 else
15281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15282 $as_echo "no" >&6; }
15283 fi
15284 
15285 
15286   test -n "$NICE" && break
15287 done
15288 
15289     else
15290       # If it succeeded, then it was overridden by the user. We will use it
15291       # for the tool.
15292 
15293       # First remove it from the list of overridden variables, so we can test
15294       # for unknown variables in the end.
15295       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15296 
15297       # Check if we try to supply an empty value
15298       if test "x$NICE" = x; then
15299         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
15300 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
15301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15302 $as_echo_n "checking for NICE... " >&6; }
15303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15304 $as_echo "disabled" >&6; }
15305       else
15306         # Check if the provided tool contains a complete path.
15307         tool_specified="$NICE"
15308         tool_basename="${tool_specified##*/}"
15309         if test "x$tool_basename" = "x$tool_specified"; then
15310           # A command without a complete path is provided, search $PATH.
15311           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
15312 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
15313           # Extract the first word of "$tool_basename", so it can be a program name with args.
15314 set dummy $tool_basename; ac_word=$2
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15316 $as_echo_n "checking for $ac_word... " >&6; }
15317 if ${ac_cv_path_NICE+:} false; then :
15318   $as_echo_n "(cached) " >&6
15319 else
15320   case $NICE in
15321   [\\/]* | ?:[\\/]*)
15322   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
15323   ;;
15324   *)
15325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15326 for as_dir in $PATH
15327 do
15328   IFS=$as_save_IFS
15329   test -z "$as_dir" && as_dir=.
15330     for ac_exec_ext in '' $ac_executable_extensions; do
15331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15332     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
15333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15334     break 2
15335   fi
15336 done
15337   done
15338 IFS=$as_save_IFS
15339 
15340   ;;
15341 esac
15342 fi
15343 NICE=$ac_cv_path_NICE
15344 if test -n "$NICE"; then
15345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
15346 $as_echo "$NICE" >&6; }
15347 else
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15350 fi
15351 
15352 
15353           if test "x$NICE" = x; then
15354             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15355           fi
15356         else
15357           # Otherwise we believe it is a complete path. Use it as it is.
15358           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
15359 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
15360           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
15361 $as_echo_n "checking for NICE... " >&6; }
15362           if test ! -x "$tool_specified"; then
15363             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15364 $as_echo "not found" >&6; }
15365             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
15366           fi
15367           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15368 $as_echo "$tool_specified" >&6; }
15369         fi
15370       fi
15371     fi
15372 
15373   fi
15374 
15375 
15376 
15377 
15378   # Publish this variable in the help.
15379 
15380 
15381   if [ -z "${PANDOC+x}" ]; then
15382     # The variable is not set by user, try to locate tool using the code snippet
15383     for ac_prog in pandoc
15384 do
15385   # Extract the first word of "$ac_prog", so it can be a program name with args.
15386 set dummy $ac_prog; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if ${ac_cv_path_PANDOC+:} false; then :
15390   $as_echo_n "(cached) " >&6
15391 else
15392   case $PANDOC in
15393   [\\/]* | ?:[\\/]*)
15394   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15395   ;;
15396   *)
15397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15398 for as_dir in $PATH
15399 do
15400   IFS=$as_save_IFS
15401   test -z "$as_dir" && as_dir=.
15402     for ac_exec_ext in '' $ac_executable_extensions; do
15403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15404     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15406     break 2
15407   fi
15408 done
15409   done
15410 IFS=$as_save_IFS
15411 
15412   ;;
15413 esac
15414 fi
15415 PANDOC=$ac_cv_path_PANDOC
15416 if test -n "$PANDOC"; then
15417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15418 $as_echo "$PANDOC" >&6; }
15419 else
15420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15422 fi
15423 
15424 
15425   test -n "$PANDOC" && break
15426 done
15427 
15428   else
15429     # The variable is set, but is it from the command line or the environment?
15430 
15431     # Try to remove the string !PANDOC! from our list.
15432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/}
15433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
15434       # If it failed, the variable was not from the command line. Ignore it,
15435       # but warn the user (except for BASH, which is always set by the calling BASH).
15436       if test "xPANDOC" != xBASH; then
15437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5
15438 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;}
15439       fi
15440       # Try to locate tool using the code snippet
15441       for ac_prog in pandoc
15442 do
15443   # Extract the first word of "$ac_prog", so it can be a program name with args.
15444 set dummy $ac_prog; ac_word=$2
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15446 $as_echo_n "checking for $ac_word... " >&6; }
15447 if ${ac_cv_path_PANDOC+:} false; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   case $PANDOC in
15451   [\\/]* | ?:[\\/]*)
15452   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15453   ;;
15454   *)
15455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456 for as_dir in $PATH
15457 do
15458   IFS=$as_save_IFS
15459   test -z "$as_dir" && as_dir=.
15460     for ac_exec_ext in '' $ac_executable_extensions; do
15461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15462     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15464     break 2
15465   fi
15466 done
15467   done
15468 IFS=$as_save_IFS
15469 
15470   ;;
15471 esac
15472 fi
15473 PANDOC=$ac_cv_path_PANDOC
15474 if test -n "$PANDOC"; then
15475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15476 $as_echo "$PANDOC" >&6; }
15477 else
15478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15479 $as_echo "no" >&6; }
15480 fi
15481 
15482 
15483   test -n "$PANDOC" && break
15484 done
15485 
15486     else
15487       # If it succeeded, then it was overridden by the user. We will use it
15488       # for the tool.
15489 
15490       # First remove it from the list of overridden variables, so we can test
15491       # for unknown variables in the end.
15492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
15493 
15494       # Check if we try to supply an empty value
15495       if test "x$PANDOC" = x; then
15496         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5
15497 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;}
15498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15499 $as_echo_n "checking for PANDOC... " >&6; }
15500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15501 $as_echo "disabled" >&6; }
15502       else
15503         # Check if the provided tool contains a complete path.
15504         tool_specified="$PANDOC"
15505         tool_basename="${tool_specified##*/}"
15506         if test "x$tool_basename" = "x$tool_specified"; then
15507           # A command without a complete path is provided, search $PATH.
15508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5
15509 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;}
15510           # Extract the first word of "$tool_basename", so it can be a program name with args.
15511 set dummy $tool_basename; ac_word=$2
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15513 $as_echo_n "checking for $ac_word... " >&6; }
15514 if ${ac_cv_path_PANDOC+:} false; then :
15515   $as_echo_n "(cached) " >&6
15516 else
15517   case $PANDOC in
15518   [\\/]* | ?:[\\/]*)
15519   ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path.
15520   ;;
15521   *)
15522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 for as_dir in $PATH
15524 do
15525   IFS=$as_save_IFS
15526   test -z "$as_dir" && as_dir=.
15527     for ac_exec_ext in '' $ac_executable_extensions; do
15528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15529     ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext"
15530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15531     break 2
15532   fi
15533 done
15534   done
15535 IFS=$as_save_IFS
15536 
15537   ;;
15538 esac
15539 fi
15540 PANDOC=$ac_cv_path_PANDOC
15541 if test -n "$PANDOC"; then
15542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
15543 $as_echo "$PANDOC" >&6; }
15544 else
15545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15546 $as_echo "no" >&6; }
15547 fi
15548 
15549 
15550           if test "x$PANDOC" = x; then
15551             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
15552           fi
15553         else
15554           # Otherwise we believe it is a complete path. Use it as it is.
15555           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5
15556 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;}
15557           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5
15558 $as_echo_n "checking for PANDOC... " >&6; }
15559           if test ! -x "$tool_specified"; then
15560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15561 $as_echo "not found" >&6; }
15562             as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5
15563           fi
15564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
15565 $as_echo "$tool_specified" >&6; }
15566         fi
15567       fi
15568     fi
15569 
15570   fi
15571 
15572 
15573 
15574 
15575 # Now we can determine OpenJDK build and target platforms. This is required to
15576 # have early on.
15577 # Make sure we can run config.sub.
15578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
15579   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
15580 
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
15582 $as_echo_n "checking build system type... " >&6; }
15583 if ${ac_cv_build+:} false; then :
15584   $as_echo_n "(cached) " >&6
15585 else
15586   ac_build_alias=$build_alias
15587 test "x$ac_build_alias" = x &&
15588   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
15589 test "x$ac_build_alias" = x &&
15590   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
15591 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
15592   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
15593 
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
15596 $as_echo "$ac_cv_build" >&6; }
15597 case $ac_cv_build in
15598 *-*-*) ;;
15599 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
15600 esac
15601 build=$ac_cv_build
15602 ac_save_IFS=$IFS; IFS='-'
15603 set x $ac_cv_build
15604 shift
15605 build_cpu=$1
15606 build_vendor=$2
15607 shift; shift
15608 # Remember, the first character of IFS is used to create $*,
15609 # except with old shells:
15610 build_os=$*
15611 IFS=$ac_save_IFS
15612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
15613 
15614 
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
15616 $as_echo_n "checking host system type... " >&6; }
15617 if ${ac_cv_host+:} false; then :
15618   $as_echo_n "(cached) " >&6
15619 else
15620   if test "x$host_alias" = x; then
15621   ac_cv_host=$ac_cv_build
15622 else
15623   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15624     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
15625 fi
15626 
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
15629 $as_echo "$ac_cv_host" >&6; }
15630 case $ac_cv_host in
15631 *-*-*) ;;
15632 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
15633 esac
15634 host=$ac_cv_host
15635 ac_save_IFS=$IFS; IFS='-'
15636 set x $ac_cv_host
15637 shift
15638 host_cpu=$1
15639 host_vendor=$2
15640 shift; shift
15641 # Remember, the first character of IFS is used to create $*,
15642 # except with old shells:
15643 host_os=$*
15644 IFS=$ac_save_IFS
15645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15646 
15647 
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15649 $as_echo_n "checking target system type... " >&6; }
15650 if ${ac_cv_target+:} false; then :
15651   $as_echo_n "(cached) " >&6
15652 else
15653   if test "x$target_alias" = x; then
15654   ac_cv_target=$ac_cv_host
15655 else
15656   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
15657     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
15658 fi
15659 
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15662 $as_echo "$ac_cv_target" >&6; }
15663 case $ac_cv_target in
15664 *-*-*) ;;
15665 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15666 esac
15667 target=$ac_cv_target
15668 ac_save_IFS=$IFS; IFS='-'
15669 set x $ac_cv_target
15670 shift
15671 target_cpu=$1
15672 target_vendor=$2
15673 shift; shift
15674 # Remember, the first character of IFS is used to create $*,
15675 # except with old shells:
15676 target_os=$*
15677 IFS=$ac_save_IFS
15678 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15679 
15680 
15681 # The aliases save the names the user supplied, while $host etc.
15682 # will get canonicalized.
15683 test -n "$target_alias" &&
15684   test "$program_prefix$program_suffix$program_transform_name" = \
15685     NONENONEs,x,x, &&
15686   program_prefix=${target_alias}-
15687 
15688   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
15689   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
15690   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
15691   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
15692   # to use the configure naming style.
15693 
15694 
15695 
15696 
15697 
15698   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
15699   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
15700   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
15701   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
15702   OPENJDK_TARGET_AUTOCONF_NAME="$host"
15703   OPENJDK_BUILD_AUTOCONF_NAME="$build"
15704 
15705 
15706 
15707   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15708 
15709   case "$build_os" in
15710     *linux*)
15711       VAR_OS=linux
15712       VAR_OS_TYPE=unix
15713       ;;
15714     *solaris*)
15715       VAR_OS=solaris
15716       VAR_OS_TYPE=unix
15717       ;;
15718     *darwin*)
15719       VAR_OS=macosx
15720       VAR_OS_TYPE=unix
15721       ;;
15722     *bsd*)
15723       VAR_OS=bsd
15724       VAR_OS_TYPE=unix
15725       ;;
15726     *cygwin*)
15727       VAR_OS=windows
15728       VAR_OS_ENV=windows.cygwin
15729       ;;
15730     *mingw*)
15731       VAR_OS=windows
15732       VAR_OS_ENV=windows.msys
15733       ;;
15734     *aix*)
15735       VAR_OS=aix
15736       VAR_OS_TYPE=unix
15737       ;;
15738     *)
15739       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15740       ;;
15741   esac
15742 
15743 
15744   # First argument is the cpu name from the trip/quad
15745   case "$build_cpu" in
15746     x86_64)
15747       VAR_CPU=x86_64
15748       VAR_CPU_ARCH=x86
15749       VAR_CPU_BITS=64
15750       VAR_CPU_ENDIAN=little
15751       ;;
15752     i?86)
15753       VAR_CPU=x86
15754       VAR_CPU_ARCH=x86
15755       VAR_CPU_BITS=32
15756       VAR_CPU_ENDIAN=little
15757       ;;
15758     alpha*)
15759       VAR_CPU=alpha
15760       VAR_CPU_ARCH=alpha
15761       VAR_CPU_BITS=64
15762       VAR_CPU_ENDIAN=little
15763       ;;
15764     arm*)
15765       VAR_CPU=arm
15766       VAR_CPU_ARCH=arm
15767       VAR_CPU_BITS=32
15768       VAR_CPU_ENDIAN=little
15769       ;;
15770     aarch64)
15771       VAR_CPU=aarch64
15772       VAR_CPU_ARCH=aarch64
15773       VAR_CPU_BITS=64
15774       VAR_CPU_ENDIAN=little
15775       ;;
15776     m68k)
15777       VAR_CPU=m68k
15778       VAR_CPU_ARCH=m68k
15779       VAR_CPU_BITS=32
15780       VAR_CPU_ENDIAN=big
15781       ;;
15782     mips)
15783       VAR_CPU=mips
15784       VAR_CPU_ARCH=mips
15785       VAR_CPU_BITS=32
15786       VAR_CPU_ENDIAN=big
15787       ;;
15788     mipsel)
15789       VAR_CPU=mipsel
15790       VAR_CPU_ARCH=mipsel
15791       VAR_CPU_BITS=32
15792       VAR_CPU_ENDIAN=little
15793       ;;
15794     mips64)
15795       VAR_CPU=mips64
15796       VAR_CPU_ARCH=mips64
15797       VAR_CPU_BITS=64
15798       VAR_CPU_ENDIAN=big
15799       ;;
15800     mips64el)
15801       VAR_CPU=mips64el
15802       VAR_CPU_ARCH=mips64el
15803       VAR_CPU_BITS=64
15804       VAR_CPU_ENDIAN=little
15805       ;;
15806     powerpc)
15807       VAR_CPU=ppc
15808       VAR_CPU_ARCH=ppc
15809       VAR_CPU_BITS=32
15810       VAR_CPU_ENDIAN=big
15811       ;;
15812     powerpc64)
15813       VAR_CPU=ppc64
15814       VAR_CPU_ARCH=ppc
15815       VAR_CPU_BITS=64
15816       VAR_CPU_ENDIAN=big
15817       ;;
15818     powerpc64le)
15819       VAR_CPU=ppc64le
15820       VAR_CPU_ARCH=ppc
15821       VAR_CPU_BITS=64
15822       VAR_CPU_ENDIAN=little
15823       ;;
15824     s390)
15825       VAR_CPU=s390
15826       VAR_CPU_ARCH=s390
15827       VAR_CPU_BITS=32
15828       VAR_CPU_ENDIAN=big
15829       ;;
15830     s390x)
15831       VAR_CPU=s390x
15832       VAR_CPU_ARCH=s390
15833       VAR_CPU_BITS=64
15834       VAR_CPU_ENDIAN=big
15835       ;;
15836     sh*eb)
15837       VAR_CPU=sh
15838       VAR_CPU_ARCH=sh
15839       VAR_CPU_BITS=32
15840       VAR_CPU_ENDIAN=big
15841       ;;
15842     sh*)
15843       VAR_CPU=sh
15844       VAR_CPU_ARCH=sh
15845       VAR_CPU_BITS=32
15846       VAR_CPU_ENDIAN=little
15847       ;;
15848     sparc)
15849       VAR_CPU=sparc
15850       VAR_CPU_ARCH=sparc
15851       VAR_CPU_BITS=32
15852       VAR_CPU_ENDIAN=big
15853       ;;
15854     sparcv9|sparc64)
15855       VAR_CPU=sparcv9
15856       VAR_CPU_ARCH=sparc
15857       VAR_CPU_BITS=64
15858       VAR_CPU_ENDIAN=big
15859       ;;
15860     *)
15861       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15862       ;;
15863   esac
15864 
15865   # ..and setup our own variables. (Do this explicitly to facilitate searching)
15866   OPENJDK_BUILD_OS="$VAR_OS"
15867   if test "x$VAR_OS_TYPE" != x; then
15868     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15869   else
15870     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15871   fi
15872   if test "x$VAR_OS_ENV" != x; then
15873     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15874   else
15875     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15876   fi
15877   OPENJDK_BUILD_CPU="$VAR_CPU"
15878   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15879   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15880   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15881 
15882 
15883 
15884 
15885 
15886 
15887 
15888 
15889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15890 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15892 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15893 
15894   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15895 
15896   case "$host_os" in
15897     *linux*)
15898       VAR_OS=linux
15899       VAR_OS_TYPE=unix
15900       ;;
15901     *solaris*)
15902       VAR_OS=solaris
15903       VAR_OS_TYPE=unix
15904       ;;
15905     *darwin*)
15906       VAR_OS=macosx
15907       VAR_OS_TYPE=unix
15908       ;;
15909     *bsd*)
15910       VAR_OS=bsd
15911       VAR_OS_TYPE=unix
15912       ;;
15913     *cygwin*)
15914       VAR_OS=windows
15915       VAR_OS_ENV=windows.cygwin
15916       ;;
15917     *mingw*)
15918       VAR_OS=windows
15919       VAR_OS_ENV=windows.msys
15920       ;;
15921     *aix*)
15922       VAR_OS=aix
15923       VAR_OS_TYPE=unix
15924       ;;
15925     *)
15926       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15927       ;;
15928   esac
15929 
15930 
15931   # First argument is the cpu name from the trip/quad
15932   case "$host_cpu" in
15933     x86_64)
15934       VAR_CPU=x86_64
15935       VAR_CPU_ARCH=x86
15936       VAR_CPU_BITS=64
15937       VAR_CPU_ENDIAN=little
15938       ;;
15939     i?86)
15940       VAR_CPU=x86
15941       VAR_CPU_ARCH=x86
15942       VAR_CPU_BITS=32
15943       VAR_CPU_ENDIAN=little
15944       ;;
15945     alpha*)
15946       VAR_CPU=alpha
15947       VAR_CPU_ARCH=alpha
15948       VAR_CPU_BITS=64
15949       VAR_CPU_ENDIAN=little
15950       ;;
15951     arm*)
15952       VAR_CPU=arm
15953       VAR_CPU_ARCH=arm
15954       VAR_CPU_BITS=32
15955       VAR_CPU_ENDIAN=little
15956       ;;
15957     aarch64)
15958       VAR_CPU=aarch64
15959       VAR_CPU_ARCH=aarch64
15960       VAR_CPU_BITS=64
15961       VAR_CPU_ENDIAN=little
15962       ;;
15963     m68k)
15964       VAR_CPU=m68k
15965       VAR_CPU_ARCH=m68k
15966       VAR_CPU_BITS=32
15967       VAR_CPU_ENDIAN=big
15968       ;;
15969     mips)
15970       VAR_CPU=mips
15971       VAR_CPU_ARCH=mips
15972       VAR_CPU_BITS=32
15973       VAR_CPU_ENDIAN=big
15974       ;;
15975     mipsel)
15976       VAR_CPU=mipsel
15977       VAR_CPU_ARCH=mipsel
15978       VAR_CPU_BITS=32
15979       VAR_CPU_ENDIAN=little
15980       ;;
15981     mips64)
15982       VAR_CPU=mips64
15983       VAR_CPU_ARCH=mips64
15984       VAR_CPU_BITS=64
15985       VAR_CPU_ENDIAN=big
15986       ;;
15987     mips64el)
15988       VAR_CPU=mips64el
15989       VAR_CPU_ARCH=mips64el
15990       VAR_CPU_BITS=64
15991       VAR_CPU_ENDIAN=little
15992       ;;
15993     powerpc)
15994       VAR_CPU=ppc
15995       VAR_CPU_ARCH=ppc
15996       VAR_CPU_BITS=32
15997       VAR_CPU_ENDIAN=big
15998       ;;
15999     powerpc64)
16000       VAR_CPU=ppc64
16001       VAR_CPU_ARCH=ppc
16002       VAR_CPU_BITS=64
16003       VAR_CPU_ENDIAN=big
16004       ;;
16005     powerpc64le)
16006       VAR_CPU=ppc64le
16007       VAR_CPU_ARCH=ppc
16008       VAR_CPU_BITS=64
16009       VAR_CPU_ENDIAN=little
16010       ;;
16011     s390)
16012       VAR_CPU=s390
16013       VAR_CPU_ARCH=s390
16014       VAR_CPU_BITS=32
16015       VAR_CPU_ENDIAN=big
16016       ;;
16017     s390x)
16018       VAR_CPU=s390x
16019       VAR_CPU_ARCH=s390
16020       VAR_CPU_BITS=64
16021       VAR_CPU_ENDIAN=big
16022       ;;
16023     sh*eb)
16024       VAR_CPU=sh
16025       VAR_CPU_ARCH=sh
16026       VAR_CPU_BITS=32
16027       VAR_CPU_ENDIAN=big
16028       ;;
16029     sh*)
16030       VAR_CPU=sh
16031       VAR_CPU_ARCH=sh
16032       VAR_CPU_BITS=32
16033       VAR_CPU_ENDIAN=little
16034       ;;
16035     sparc)
16036       VAR_CPU=sparc
16037       VAR_CPU_ARCH=sparc
16038       VAR_CPU_BITS=32
16039       VAR_CPU_ENDIAN=big
16040       ;;
16041     sparcv9|sparc64)
16042       VAR_CPU=sparcv9
16043       VAR_CPU_ARCH=sparc
16044       VAR_CPU_BITS=64
16045       VAR_CPU_ENDIAN=big
16046       ;;
16047     *)
16048       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
16049       ;;
16050   esac
16051 
16052   # ... and setup our own variables. (Do this explicitly to facilitate searching)
16053   OPENJDK_TARGET_OS="$VAR_OS"
16054   if test "x$VAR_OS_TYPE" != x; then
16055     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
16056   else
16057     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
16058   fi
16059   if test "x$VAR_OS_ENV" != x; then
16060     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
16061   else
16062     OPENJDK_TARGET_OS_ENV="$VAR_OS"
16063   fi
16064   OPENJDK_TARGET_CPU="$VAR_CPU"
16065   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
16066   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
16067   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
16068 
16069 
16070 
16071 
16072 
16073 
16074 
16075 
16076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
16077 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
16078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
16079 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
16080 
16081 
16082 
16083 # Check whether --with-target-bits was given.
16084 if test "${with_target_bits+set}" = set; then :
16085   withval=$with_target_bits;
16086 fi
16087 
16088 
16089   # We have three types of compiles:
16090   # native  == normal compilation, target system == build system
16091   # cross   == traditional cross compilation, target system != build system; special toolchain needed
16092   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
16093   #
16094   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
16095     # We're doing a proper cross-compilation
16096     COMPILE_TYPE="cross"
16097   else
16098     COMPILE_TYPE="native"
16099   fi
16100 
16101   if test "x$with_target_bits" != x; then
16102     if test "x$COMPILE_TYPE" = "xcross"; then
16103       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
16104     fi
16105 
16106     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16107       # A reduced build is requested
16108       COMPILE_TYPE="reduced"
16109       OPENJDK_TARGET_CPU_BITS=32
16110       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
16111         OPENJDK_TARGET_CPU=x86
16112       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
16113         OPENJDK_TARGET_CPU=sparc
16114       else
16115         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
16116       fi
16117     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
16118       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
16119     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
16120       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
16121 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
16122     else
16123       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
16124     fi
16125   fi
16126 
16127 
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
16129 $as_echo_n "checking compilation type... " >&6; }
16130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
16131 $as_echo "$COMPILE_TYPE" >&6; }
16132 
16133 
16134   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16135     OPENJDK_MODULE_TARGET_OS_NAME="macos"
16136   else
16137     OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS"
16138   fi
16139 
16140   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16141     OPENJDK_MODULE_TARGET_OS_ARCH="amd64"
16142   else
16143     OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU"
16144   fi
16145 
16146   OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}"
16147 
16148 
16149 
16150   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
16151     RELEASE_FILE_OS_NAME=SunOS
16152   fi
16153   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
16154     RELEASE_FILE_OS_NAME=Linux
16155   fi
16156   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16157     RELEASE_FILE_OS_NAME=Windows
16158   fi
16159   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16160     RELEASE_FILE_OS_NAME="Darwin"
16161   fi
16162   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
16163     RELEASE_FILE_OS_NAME="AIX"
16164   fi
16165   RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU}
16166 
16167 
16168 
16169 
16170 
16171 
16172   # Also store the legacy naming of the cpu.
16173   # Ie i586 and amd64 instead of x86 and x86_64
16174   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
16175   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16176     OPENJDK_TARGET_CPU_LEGACY="i586"
16177   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16178     # On all platforms except MacOSX replace x86_64 with amd64.
16179     OPENJDK_TARGET_CPU_LEGACY="amd64"
16180   elif test "x$OPENJDK_TARGET_CPU" = xalpha; then
16181     # Avoid name collisions with variables named alpha
16182     OPENJDK_TARGET_CPU_LEGACY="_alpha_"
16183   elif test "x$OPENJDK_TARGET_CPU" = xsh; then
16184     # Avoid name collisions with variables named sh
16185     OPENJDK_TARGET_CPU_LEGACY="_sh_"
16186   fi
16187 
16188 
16189   # And the second legacy naming of the cpu.
16190   # Ie i386 and amd64 instead of x86 and x86_64.
16191   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
16192   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16193     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
16194   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16195     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
16196   fi
16197 
16198 
16199   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16200   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16201   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
16202   OPENJDK_TARGET_CPU_ISADIR=""
16203   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
16204     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16205       OPENJDK_TARGET_CPU_ISADIR="/amd64"
16206     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16207       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
16208     fi
16209   fi
16210 
16211 
16212   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
16213   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
16214   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
16215     # On linux only, we replace x86 with i386.
16216     OPENJDK_TARGET_CPU_OSARCH="i386"
16217   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16218     # On all platforms except macosx, we replace x86_64 with amd64.
16219     OPENJDK_TARGET_CPU_OSARCH="amd64"
16220   fi
16221 
16222 
16223   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
16224   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16225     OPENJDK_TARGET_CPU_JLI="i386"
16226   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16227     # On all platforms except macosx, we replace x86_64 with amd64.
16228     OPENJDK_TARGET_CPU_JLI="amd64"
16229   fi
16230 
16231   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16232   # Macosx is osx and x86_64 is x64
16233   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16234     OPENJDK_TARGET_OS_BUNDLE="osx"
16235   else
16236     OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS"
16237   fi
16238   if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16239     OPENJDK_TARGET_CPU_BUNDLE="x64"
16240   else
16241     OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU"
16242   fi
16243   OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}"
16244 
16245 
16246   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
16247     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16248     # unpack200.exe. This variable is used in
16249     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16250     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
16251       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
16252     fi
16253   fi
16254 
16255   if test "x$COMPILE_TYPE" = "xcross"; then
16256     # FIXME: ... or should this include reduced builds..?
16257     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
16258   else
16259     DEFINE_CROSS_COMPILE_ARCH=""
16260   fi
16261 
16262 
16263   # Convert openjdk platform names to hotspot names
16264 
16265   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
16266   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
16267     HOTSPOT_TARGET_OS=bsd
16268   fi
16269 
16270 
16271   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
16272   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
16273     HOTSPOT_TARGET_OS_TYPE=posix
16274   fi
16275 
16276 
16277   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
16278   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16279     HOTSPOT_TARGET_CPU=x86_32
16280   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16281     HOTSPOT_TARGET_CPU=sparc
16282   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16283     HOTSPOT_TARGET_CPU=ppc_64
16284   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16285     HOTSPOT_TARGET_CPU=ppc_64
16286   fi
16287 
16288 
16289   # This is identical with OPENJDK_*, but define anyway for consistency.
16290   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
16291 
16292 
16293   # Setup HOTSPOT_TARGET_CPU_DEFINE
16294   if test "x$OPENJDK_TARGET_CPU" = xx86; then
16295     HOTSPOT_TARGET_CPU_DEFINE=IA32
16296   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
16297     HOTSPOT_TARGET_CPU_DEFINE=AMD64
16298   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
16299     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16300   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
16301     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
16302   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
16303     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16304   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
16305     HOTSPOT_TARGET_CPU_DEFINE=PPC64
16306 
16307   # The cpu defines below are for zero, we don't support them directly.
16308   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
16309     HOTSPOT_TARGET_CPU_DEFINE=SPARC
16310   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
16311     HOTSPOT_TARGET_CPU_DEFINE=PPC32
16312   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
16313     HOTSPOT_TARGET_CPU_DEFINE=S390
16314   elif test "x$OPENJDK_TARGET_CPU" = xs390x; then
16315     HOTSPOT_TARGET_CPU_DEFINE=S390
16316   elif test "x$OPENJDK_TARGET_CPU" != x; then
16317     HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z)
16318   fi
16319 
16320 
16321 
16322 
16323   # Also store the legacy naming of the cpu.
16324   # Ie i586 and amd64 instead of x86 and x86_64
16325   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
16326   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16327     OPENJDK_BUILD_CPU_LEGACY="i586"
16328   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16329     # On all platforms except MacOSX replace x86_64 with amd64.
16330     OPENJDK_BUILD_CPU_LEGACY="amd64"
16331   elif test "x$OPENJDK_BUILD_CPU" = xalpha; then
16332     # Avoid name collisions with variables named alpha
16333     OPENJDK_BUILD_CPU_LEGACY="_alpha_"
16334   elif test "x$OPENJDK_BUILD_CPU" = xsh; then
16335     # Avoid name collisions with variables named sh
16336     OPENJDK_BUILD_CPU_LEGACY="_sh_"
16337   fi
16338 
16339 
16340   # And the second legacy naming of the cpu.
16341   # Ie i386 and amd64 instead of x86 and x86_64.
16342   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
16343   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16344     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
16345   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16346     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
16347   fi
16348 
16349 
16350   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
16351   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
16352   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
16353   OPENJDK_BUILD_CPU_ISADIR=""
16354   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
16355     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16356       OPENJDK_BUILD_CPU_ISADIR="/amd64"
16357     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16358       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
16359     fi
16360   fi
16361 
16362 
16363   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
16364   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
16365   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
16366     # On linux only, we replace x86 with i386.
16367     OPENJDK_BUILD_CPU_OSARCH="i386"
16368   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16369     # On all platforms except macosx, we replace x86_64 with amd64.
16370     OPENJDK_BUILD_CPU_OSARCH="amd64"
16371   fi
16372 
16373 
16374   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
16375   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16376     OPENJDK_BUILD_CPU_JLI="i386"
16377   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16378     # On all platforms except macosx, we replace x86_64 with amd64.
16379     OPENJDK_BUILD_CPU_JLI="amd64"
16380   fi
16381 
16382   # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles
16383   # Macosx is osx and x86_64 is x64
16384   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16385     OPENJDK_BUILD_OS_BUNDLE="osx"
16386   else
16387     OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS"
16388   fi
16389   if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16390     OPENJDK_BUILD_CPU_BUNDLE="x64"
16391   else
16392     OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU"
16393   fi
16394   OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}"
16395 
16396 
16397   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
16398     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
16399     # unpack200.exe. This variable is used in
16400     # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER.
16401     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
16402       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
16403     fi
16404   fi
16405 
16406   if test "x$COMPILE_TYPE" = "xcross"; then
16407     # FIXME: ... or should this include reduced builds..?
16408     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
16409   else
16410     DEFINE_CROSS_COMPILE_ARCH=""
16411   fi
16412 
16413 
16414   # Convert openjdk platform names to hotspot names
16415 
16416   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
16417   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
16418     HOTSPOT_BUILD_OS=bsd
16419   fi
16420 
16421 
16422   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
16423   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
16424     HOTSPOT_BUILD_OS_TYPE=posix
16425   fi
16426 
16427 
16428   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
16429   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16430     HOTSPOT_BUILD_CPU=x86_32
16431   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16432     HOTSPOT_BUILD_CPU=sparc
16433   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16434     HOTSPOT_BUILD_CPU=ppc_64
16435   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16436     HOTSPOT_BUILD_CPU=ppc_64
16437   fi
16438 
16439 
16440   # This is identical with OPENJDK_*, but define anyway for consistency.
16441   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
16442 
16443 
16444   # Setup HOTSPOT_BUILD_CPU_DEFINE
16445   if test "x$OPENJDK_BUILD_CPU" = xx86; then
16446     HOTSPOT_BUILD_CPU_DEFINE=IA32
16447   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
16448     HOTSPOT_BUILD_CPU_DEFINE=AMD64
16449   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
16450     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16451   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
16452     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
16453   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
16454     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16455   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
16456     HOTSPOT_BUILD_CPU_DEFINE=PPC64
16457 
16458   # The cpu defines below are for zero, we don't support them directly.
16459   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
16460     HOTSPOT_BUILD_CPU_DEFINE=SPARC
16461   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
16462     HOTSPOT_BUILD_CPU_DEFINE=PPC32
16463   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
16464     HOTSPOT_BUILD_CPU_DEFINE=S390
16465   elif test "x$OPENJDK_BUILD_CPU" = xs390x; then
16466     HOTSPOT_BUILD_CPU_DEFINE=S390
16467   elif test "x$OPENJDK_BUILD_CPU" != x; then
16468     HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z)
16469   fi
16470 
16471 
16472 
16473 
16474 
16475 
16476 # Continue setting up basic stuff. Most remaining code require fundamental tools.
16477 
16478   # Save the current directory this script was started from
16479   CURDIR="$PWD"
16480 
16481   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
16482   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
16483   # was not available at that time.
16484   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
16485   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
16486     ORIGINAL_PATH="$REWRITTEN_PATH"
16487     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
16488 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
16489   fi
16490 
16491   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16492     PATH_SEP=";"
16493 
16494   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
16495   if test $SRC_ROOT_LENGTH -gt 100; then
16496     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
16497   fi
16498 
16499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
16501 $as_echo_n "checking cygwin release... " >&6; }
16502     CYGWIN_VERSION=`$UNAME -r`
16503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
16504 $as_echo "$CYGWIN_VERSION" >&6; }
16505     WINDOWS_ENV_VENDOR='cygwin'
16506     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
16507 
16508     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
16509     if test "x$CYGWIN_VERSION_OLD" != x; then
16510       { $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
16511 $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;}
16512       as_fn_error $? "Cannot continue" "$LINENO" 5
16513     fi
16514     if test "x$CYGPATH" = x; then
16515       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
16516     fi
16517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
16518 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
16519     # The cmd output ends with Windows line endings (CR/LF)
16520     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
16521     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
16522     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
16523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
16524 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
16525     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
16526     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
16527     if test "x$test_cygdrive_prefix" = x; then
16528       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
16529     fi
16530   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
16532 $as_echo_n "checking msys release... " >&6; }
16533     MSYS_VERSION=`$UNAME -r`
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
16535 $as_echo "$MSYS_VERSION" >&6; }
16536 
16537     WINDOWS_ENV_VENDOR='msys'
16538     WINDOWS_ENV_VERSION="$MSYS_VERSION"
16539 
16540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
16541 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
16542     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
16543     MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"`
16544 
16545   windows_path="$MSYS_ROOT_PATH"
16546   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16547     unix_path=`$CYGPATH -u "$windows_path"`
16548     MSYS_ROOT_PATH="$unix_path"
16549   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16550     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16551     MSYS_ROOT_PATH="$unix_path"
16552   fi
16553 
16554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
16555 $as_echo "$MSYS_ROOT_PATH" >&6; }
16556     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
16557   else
16558     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
16559   fi
16560 
16561   # Test if windows or unix (cygwin/msys) find is first in path.
16562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
16563 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
16564   FIND_BINARY_OUTPUT=`find --version 2>&1`
16565   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
16566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
16567 $as_echo "unix style" >&6; }
16568   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
16569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
16570 $as_echo "Windows" >&6; }
16571     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
16572 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
16573     { $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
16574 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
16575     as_fn_error $? "Cannot continue" "$LINENO" 5
16576   else
16577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
16578 $as_echo "unknown" >&6; }
16579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
16580 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
16581   fi
16582 
16583   else
16584     PATH_SEP=":"
16585   fi
16586 
16587 
16588   # We get the top-level directory from the supporting wrappers.
16589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
16590 $as_echo_n "checking for top-level directory... " >&6; }
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
16592 $as_echo "$TOPDIR" >&6; }
16593 
16594 
16595   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
16596 
16597   # Only process if variable expands to non-empty
16598 
16599   if test "x$CURDIR" != x; then
16600     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16601 
16602   # Input might be given as Windows format, start by converting to
16603   # unix format.
16604   path="$CURDIR"
16605   new_path=`$CYGPATH -u "$path"`
16606 
16607   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16608   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16609   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16610   # "foo.exe" is OK but "foo" is an error.
16611   #
16612   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16613   # It is also a way to make sure we got the proper file name for the real test later on.
16614   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16615   if test "x$test_shortpath" = x; then
16616     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16617 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16618     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
16619   fi
16620 
16621   # Call helper function which possibly converts this using DOS-style short mode.
16622   # If so, the updated path is stored in $new_path.
16623 
16624   input_path="$new_path"
16625   # Check if we need to convert this using DOS-style short mode. If the path
16626   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16627   # take no chances and rewrite it.
16628   # Note: m4 eats our [], so we need to use [ and ] instead.
16629   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16630   if test "x$has_forbidden_chars" != x; then
16631     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16632     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16633     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16634     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16635       # Going to short mode and back again did indeed matter. Since short mode is
16636       # case insensitive, let's make it lowercase to improve readability.
16637       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16638       # Now convert it back to Unix-style (cygpath)
16639       input_path=`$CYGPATH -u "$shortmode_path"`
16640       new_path="$input_path"
16641     fi
16642   fi
16643 
16644   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16645   if test "x$test_cygdrive_prefix" = x; then
16646     # As a simple fix, exclude /usr/bin since it's not a real path.
16647     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16648       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16649       # a path prefixed by /cygdrive for fixpath to work.
16650       new_path="$CYGWIN_ROOT_PATH$input_path"
16651     fi
16652   fi
16653 
16654 
16655   if test "x$path" != "x$new_path"; then
16656     CURDIR="$new_path"
16657     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16658 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16659   fi
16660 
16661     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16662 
16663   path="$CURDIR"
16664   has_colon=`$ECHO $path | $GREP ^.:`
16665   new_path="$path"
16666   if test "x$has_colon" = x; then
16667     # Not in mixed or Windows style, start by that.
16668     new_path=`cmd //c echo $path`
16669   fi
16670 
16671 
16672   input_path="$new_path"
16673   # Check if we need to convert this using DOS-style short mode. If the path
16674   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16675   # take no chances and rewrite it.
16676   # Note: m4 eats our [], so we need to use [ and ] instead.
16677   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16678   if test "x$has_forbidden_chars" != x; then
16679     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16680     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16681   fi
16682 
16683 
16684   windows_path="$new_path"
16685   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16686     unix_path=`$CYGPATH -u "$windows_path"`
16687     new_path="$unix_path"
16688   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16689     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16690     new_path="$unix_path"
16691   fi
16692 
16693   if test "x$path" != "x$new_path"; then
16694     CURDIR="$new_path"
16695     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
16696 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
16697   fi
16698 
16699   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16700   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16701 
16702     else
16703       # We're on a unix platform. Hooray! :)
16704       path="$CURDIR"
16705       has_space=`$ECHO "$path" | $GREP " "`
16706       if test "x$has_space" != x; then
16707         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
16708 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
16709         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16710       fi
16711 
16712       # Use eval to expand a potential ~
16713       eval path="$path"
16714       if test ! -f "$path" && test ! -d "$path"; then
16715         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16716       fi
16717 
16718       if test -d "$path"; then
16719         CURDIR="`cd "$path"; $THEPWDCMD -L`"
16720       else
16721         dir="`$DIRNAME "$path"`"
16722         base="`$BASENAME "$path"`"
16723         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16724       fi
16725     fi
16726   fi
16727 
16728 
16729   # Only process if variable expands to non-empty
16730 
16731   if test "x$TOPDIR" != x; then
16732     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16733 
16734   # Input might be given as Windows format, start by converting to
16735   # unix format.
16736   path="$TOPDIR"
16737   new_path=`$CYGPATH -u "$path"`
16738 
16739   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16740   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16741   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16742   # "foo.exe" is OK but "foo" is an error.
16743   #
16744   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16745   # It is also a way to make sure we got the proper file name for the real test later on.
16746   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16747   if test "x$test_shortpath" = x; then
16748     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16749 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16750     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
16751   fi
16752 
16753   # Call helper function which possibly converts this using DOS-style short mode.
16754   # If so, the updated path is stored in $new_path.
16755 
16756   input_path="$new_path"
16757   # Check if we need to convert this using DOS-style short mode. If the path
16758   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16759   # take no chances and rewrite it.
16760   # Note: m4 eats our [], so we need to use [ and ] instead.
16761   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16762   if test "x$has_forbidden_chars" != x; then
16763     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16764     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16765     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16766     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16767       # Going to short mode and back again did indeed matter. Since short mode is
16768       # case insensitive, let's make it lowercase to improve readability.
16769       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16770       # Now convert it back to Unix-style (cygpath)
16771       input_path=`$CYGPATH -u "$shortmode_path"`
16772       new_path="$input_path"
16773     fi
16774   fi
16775 
16776   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16777   if test "x$test_cygdrive_prefix" = x; then
16778     # As a simple fix, exclude /usr/bin since it's not a real path.
16779     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16780       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16781       # a path prefixed by /cygdrive for fixpath to work.
16782       new_path="$CYGWIN_ROOT_PATH$input_path"
16783     fi
16784   fi
16785 
16786 
16787   if test "x$path" != "x$new_path"; then
16788     TOPDIR="$new_path"
16789     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16790 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16791   fi
16792 
16793     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16794 
16795   path="$TOPDIR"
16796   has_colon=`$ECHO $path | $GREP ^.:`
16797   new_path="$path"
16798   if test "x$has_colon" = x; then
16799     # Not in mixed or Windows style, start by that.
16800     new_path=`cmd //c echo $path`
16801   fi
16802 
16803 
16804   input_path="$new_path"
16805   # Check if we need to convert this using DOS-style short mode. If the path
16806   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16807   # take no chances and rewrite it.
16808   # Note: m4 eats our [], so we need to use [ and ] instead.
16809   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16810   if test "x$has_forbidden_chars" != x; then
16811     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16812     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16813   fi
16814 
16815 
16816   windows_path="$new_path"
16817   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16818     unix_path=`$CYGPATH -u "$windows_path"`
16819     new_path="$unix_path"
16820   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16821     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16822     new_path="$unix_path"
16823   fi
16824 
16825   if test "x$path" != "x$new_path"; then
16826     TOPDIR="$new_path"
16827     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16828 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16829   fi
16830 
16831   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16832   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16833 
16834     else
16835       # We're on a unix platform. Hooray! :)
16836       path="$TOPDIR"
16837       has_space=`$ECHO "$path" | $GREP " "`
16838       if test "x$has_space" != x; then
16839         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16840 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16841         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16842       fi
16843 
16844       # Use eval to expand a potential ~
16845       eval path="$path"
16846       if test ! -f "$path" && test ! -d "$path"; then
16847         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16848       fi
16849 
16850       if test -d "$path"; then
16851         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16852       else
16853         dir="`$DIRNAME "$path"`"
16854         base="`$BASENAME "$path"`"
16855         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16856       fi
16857     fi
16858   fi
16859 
16860 
16861   # Locate the directory of this script.
16862   AUTOCONF_DIR=$TOPDIR/make/autoconf
16863 
16864   # Setup username (for use in adhoc version strings etc)
16865   # Outer [ ] to quote m4.
16866    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16867 
16868 
16869 
16870 # Check if it's a pure open build or if custom sources are to be used.
16871 
16872   # Check whether --enable-openjdk-only was given.
16873 if test "${enable_openjdk_only+set}" = set; then :
16874   enableval=$enable_openjdk_only;
16875 else
16876   enable_openjdk_only="no"
16877 fi
16878 
16879 
16880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5
16881 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; }
16882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5
16883 $as_echo "$enable_openjdk_only" >&6; }
16884   if test "x$enable_openjdk_only" = "xyes"; then
16885     SUPPRESS_CUSTOM_EXTENSIONS="true"
16886   elif test "x$enable_openjdk_only" = "xno"; then
16887     SUPPRESS_CUSTOM_EXTENSIONS="false"
16888   else
16889     as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5
16890   fi
16891 
16892   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16893   # the IncludeCustomExtension macro.
16894 
16895 
16896 # Check whether --with-custom-make-dir was given.
16897 if test "${with_custom_make_dir+set}" = set; then :
16898   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
16899 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16900 fi
16901 
16902 
16903 
16904 
16905 # These are needed to be able to create a configuration name (and thus the output directory)
16906 
16907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16908 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16909 
16910 # Check whether --with-jdk-variant was given.
16911 if test "${with_jdk_variant+set}" = set; then :
16912   withval=$with_jdk_variant;
16913 fi
16914 
16915 
16916   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16917     JDK_VARIANT="normal"
16918   else
16919     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16920   fi
16921 
16922 
16923 
16924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16925 $as_echo "$JDK_VARIANT" >&6; }
16926 
16927 
16928   DEBUG_LEVEL="release"
16929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16930 $as_echo_n "checking which debug level to use... " >&6; }
16931   # Check whether --enable-debug was given.
16932 if test "${enable_debug+set}" = set; then :
16933   enableval=$enable_debug;
16934         ENABLE_DEBUG="${enableval}"
16935         DEBUG_LEVEL="fastdebug"
16936 
16937 else
16938   ENABLE_DEBUG="no"
16939 fi
16940 
16941 
16942 
16943 # Check whether --with-debug-level was given.
16944 if test "${with_debug_level+set}" = set; then :
16945   withval=$with_debug_level;
16946         DEBUG_LEVEL="${withval}"
16947         if test "x$ENABLE_DEBUG" = xyes; then
16948           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16949         fi
16950 
16951 fi
16952 
16953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16954 $as_echo "$DEBUG_LEVEL" >&6; }
16955 
16956   if test "x$DEBUG_LEVEL" != xrelease && \
16957       test "x$DEBUG_LEVEL" != xoptimized && \
16958       test "x$DEBUG_LEVEL" != xfastdebug && \
16959       test "x$DEBUG_LEVEL" != xslowdebug; then
16960     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16961   fi
16962 
16963   # Translate DEBUG_LEVEL to debug level used by Hotspot
16964   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16965   if test "x$DEBUG_LEVEL" = xrelease; then
16966     HOTSPOT_DEBUG_LEVEL="product"
16967   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16968     HOTSPOT_DEBUG_LEVEL="debug"
16969   fi
16970 
16971   if test "x$DEBUG_LEVEL" = xoptimized; then
16972     # The debug level 'optimized' is a little special because it is currently only
16973     # applicable to the HotSpot build where it means to build a completely
16974     # optimized version of the VM without any debugging code (like for the
16975     # 'release' debug level which is called 'product' in the HotSpot build) but
16976     # with the exception that it can contain additional code which is otherwise
16977     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16978     # test new and/or experimental features which are not intended for customer
16979     # shipment. Because these new features need to be tested and benchmarked in
16980     # real world scenarios, we want to build the containing JDK at the 'release'
16981     # debug level.
16982     DEBUG_LEVEL="release"
16983   fi
16984 
16985 
16986 
16987 
16988 
16989 
16990 # Check whether --with-jvm-variants was given.
16991 if test "${with_jvm_variants+set}" = set; then :
16992   withval=$with_jvm_variants;
16993 fi
16994 
16995 
16996 
16997 
16998 # Check whether --with-cpu-port was given.
16999 if test "${with_cpu_port+set}" = set; then :
17000   withval=$with_cpu_port;
17001 fi
17002 
17003 
17004   if test "x$with_cpu_port" != x; then
17005     if test "x$OPENJDK_TARGET_CPU" != xaarch64; then
17006       as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5
17007     fi
17008     if test "x$with_cpu_port" != xarm64 && \
17009         test "x$with_cpu_port" != xaarch64; then
17010       as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5
17011     fi
17012     HOTSPOT_TARGET_CPU_PORT="$with_cpu_port"
17013   fi
17014 
17015 
17016   if test "x$with_jvm_variants" = x; then
17017     with_jvm_variants="server"
17018   fi
17019   JVM_VARIANTS_OPT="$with_jvm_variants"
17020 
17021   # Has the user listed more than one variant?
17022   # Additional [] needed to keep m4 from mangling shell constructs.
17023   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
17024     BUILDING_MULTIPLE_JVM_VARIANTS=true
17025   else
17026     BUILDING_MULTIPLE_JVM_VARIANTS=false
17027   fi
17028   # Replace the commas with AND for use in the build directory name.
17029   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
17030 
17031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
17032 $as_echo_n "checking which variants of the JVM to build... " >&6; }
17033   # JVM_VARIANTS is a space-separated list.
17034   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
17035   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
17036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
17037 $as_echo "$JVM_VARIANTS" >&6; }
17038 
17039   # Check that the selected variants are valid
17040 
17041   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
17042   # Notice that the original variant failes on SLES 10 and 11
17043   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
17044   STACK=${JVM_VARIANTS// /$'\n'}
17045   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17046   if test "x$INVALID_VARIANTS" != x; then
17047     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
17048 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
17049     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
17050   fi
17051 
17052   # All "special" variants share the same output directory ("server")
17053   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
17054   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
17055   STACK=${JVM_VARIANTS// /$'\n'}
17056   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
17057   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
17058     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
17059   fi
17060 
17061   # The "main" variant is the one used by other libs to link against during the
17062   # build.
17063   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then
17064     MAIN_VARIANT_PRIO_ORDER="server client minimal"
17065     for variant in $MAIN_VARIANT_PRIO_ORDER; do
17066       if   [[ " $JVM_VARIANTS " =~ " $variant " ]]  ; then
17067         JVM_VARIANT_MAIN="$variant"
17068         break
17069       fi
17070     done
17071   else
17072     JVM_VARIANT_MAIN="$JVM_VARIANTS"
17073   fi
17074 
17075 
17076 
17077 
17078 
17079   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
17080     # zero behaves as a platform and rewrites these values. This is really weird. :(
17081     # We are guaranteed that we do not build any other variants when building zero.
17082     HOTSPOT_TARGET_CPU=zero
17083     HOTSPOT_TARGET_CPU_ARCH=zero
17084   fi
17085 
17086 
17087 # With basic setup done, call the custom early hook.
17088 
17089 
17090 # Check if we have devkits, extra paths or sysroot set.
17091 
17092 
17093 # Check whether --with-devkit was given.
17094 if test "${with_devkit+set}" = set; then :
17095   withval=$with_devkit;
17096 
17097   # Only process if variable expands to non-empty
17098 
17099   if test "x$with_devkit" != x; then
17100     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17101 
17102   # Input might be given as Windows format, start by converting to
17103   # unix format.
17104   path="$with_devkit"
17105   new_path=`$CYGPATH -u "$path"`
17106 
17107   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17108   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17109   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17110   # "foo.exe" is OK but "foo" is an error.
17111   #
17112   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17113   # It is also a way to make sure we got the proper file name for the real test later on.
17114   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17115   if test "x$test_shortpath" = x; then
17116     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17117 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17118     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
17119   fi
17120 
17121   # Call helper function which possibly converts this using DOS-style short mode.
17122   # If so, the updated path is stored in $new_path.
17123 
17124   input_path="$new_path"
17125   # Check if we need to convert this using DOS-style short mode. If the path
17126   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17127   # take no chances and rewrite it.
17128   # Note: m4 eats our [], so we need to use [ and ] instead.
17129   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17130   if test "x$has_forbidden_chars" != x; then
17131     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17132     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17133     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17134     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17135       # Going to short mode and back again did indeed matter. Since short mode is
17136       # case insensitive, let's make it lowercase to improve readability.
17137       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17138       # Now convert it back to Unix-style (cygpath)
17139       input_path=`$CYGPATH -u "$shortmode_path"`
17140       new_path="$input_path"
17141     fi
17142   fi
17143 
17144   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17145   if test "x$test_cygdrive_prefix" = x; then
17146     # As a simple fix, exclude /usr/bin since it's not a real path.
17147     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17148       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17149       # a path prefixed by /cygdrive for fixpath to work.
17150       new_path="$CYGWIN_ROOT_PATH$input_path"
17151     fi
17152   fi
17153 
17154 
17155   if test "x$path" != "x$new_path"; then
17156     with_devkit="$new_path"
17157     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17158 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17159   fi
17160 
17161     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17162 
17163   path="$with_devkit"
17164   has_colon=`$ECHO $path | $GREP ^.:`
17165   new_path="$path"
17166   if test "x$has_colon" = x; then
17167     # Not in mixed or Windows style, start by that.
17168     new_path=`cmd //c echo $path`
17169   fi
17170 
17171 
17172   input_path="$new_path"
17173   # Check if we need to convert this using DOS-style short mode. If the path
17174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17175   # take no chances and rewrite it.
17176   # Note: m4 eats our [], so we need to use [ and ] instead.
17177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17178   if test "x$has_forbidden_chars" != x; then
17179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17180     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17181   fi
17182 
17183 
17184   windows_path="$new_path"
17185   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17186     unix_path=`$CYGPATH -u "$windows_path"`
17187     new_path="$unix_path"
17188   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17189     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17190     new_path="$unix_path"
17191   fi
17192 
17193   if test "x$path" != "x$new_path"; then
17194     with_devkit="$new_path"
17195     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
17196 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
17197   fi
17198 
17199   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17200   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17201 
17202     else
17203       # We're on a unix platform. Hooray! :)
17204       path="$with_devkit"
17205       has_space=`$ECHO "$path" | $GREP " "`
17206       if test "x$has_space" != x; then
17207         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
17208 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
17209         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17210       fi
17211 
17212       # Use eval to expand a potential ~
17213       eval path="$path"
17214       if test ! -f "$path" && test ! -d "$path"; then
17215         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
17216       fi
17217 
17218       if test -d "$path"; then
17219         with_devkit="`cd "$path"; $THEPWDCMD -L`"
17220       else
17221         dir="`$DIRNAME "$path"`"
17222         base="`$BASENAME "$path"`"
17223         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
17224       fi
17225     fi
17226   fi
17227 
17228         DEVKIT_ROOT="$with_devkit"
17229         # Check for a meta data info file in the root of the devkit
17230         if test -f "$DEVKIT_ROOT/devkit.info"; then
17231           . $DEVKIT_ROOT/devkit.info
17232           # This potentially sets the following:
17233           # A descriptive name of the devkit
17234 
17235   if test "x$DEVKIT_NAME" = x; then
17236     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
17237   fi
17238 
17239           # Corresponds to --with-extra-path
17240 
17241   if test "x$DEVKIT_EXTRA_PATH" = x; then
17242     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
17243   fi
17244 
17245           # Corresponds to --with-toolchain-path
17246 
17247   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17248     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
17249   fi
17250 
17251           # Corresponds to --with-sysroot
17252 
17253   if test "x$DEVKIT_SYSROOT" = x; then
17254     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
17255   fi
17256 
17257 
17258           # Identifies the Visual Studio version in the devkit
17259 
17260   if test "x$DEVKIT_VS_VERSION" = x; then
17261     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
17262   fi
17263 
17264           # The Visual Studio include environment variable
17265 
17266   if test "x$DEVKIT_VS_INCLUDE" = x; then
17267     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
17268   fi
17269 
17270           # The Visual Studio lib environment variable
17271 
17272   if test "x$DEVKIT_VS_LIB" = x; then
17273     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
17274   fi
17275 
17276           # Corresponds to --with-msvcr-dll
17277 
17278   if test "x$DEVKIT_MSVCR_DLL" = x; then
17279     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
17280   fi
17281 
17282           # Corresponds to --with-msvcp-dll
17283 
17284   if test "x$DEVKIT_MSVCP_DLL" = x; then
17285     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
17286   fi
17287 
17288         fi
17289 
17290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
17291 $as_echo_n "checking for devkit... " >&6; }
17292         if test "x$DEVKIT_NAME" != x; then
17293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
17294 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
17295         else
17296           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
17297 $as_echo "$DEVKIT_ROOT" >&6; }
17298         fi
17299 
17300 
17301   if test "x$DEVKIT_EXTRA_PATH" != x; then
17302     if test "x$EXTRA_PATH" = x; then
17303       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
17304     else
17305       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
17306     fi
17307   fi
17308 
17309 
17310         # Fallback default of just /bin if DEVKIT_PATH is not defined
17311         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
17312           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
17313         fi
17314 
17315   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
17316     if test "x$TOOLCHAIN_PATH" = x; then
17317       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
17318     else
17319       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
17320     fi
17321   fi
17322 
17323 
17324         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
17325         # places for backwards compatiblity.
17326         if test "x$DEVKIT_SYSROOT" != x; then
17327           SYSROOT="$DEVKIT_SYSROOT"
17328         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
17329           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
17330         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
17331           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
17332         fi
17333 
17334         if test "x$DEVKIT_ROOT" != x; then
17335           DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
17336           if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
17337             DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
17338           fi
17339 
17340         fi
17341 
17342 
17343 fi
17344 
17345 
17346   # You can force the sysroot if the sysroot encoded into the compiler tools
17347   # is not correct.
17348 
17349 # Check whether --with-sys-root was given.
17350 if test "${with_sys_root+set}" = set; then :
17351   withval=$with_sys_root; SYSROOT=$with_sys_root
17352 
17353 fi
17354 
17355 
17356 
17357 # Check whether --with-sysroot was given.
17358 if test "${with_sysroot+set}" = set; then :
17359   withval=$with_sysroot; SYSROOT=$with_sysroot
17360 
17361 fi
17362 
17363 
17364 
17365 # Check whether --with-tools-dir was given.
17366 if test "${with_tools_dir+set}" = set; then :
17367   withval=$with_tools_dir;
17368   if test "x$with_tools_dir" != x; then
17369     if test "x$TOOLCHAIN_PATH" = x; then
17370       TOOLCHAIN_PATH="$with_tools_dir"
17371     else
17372       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
17373     fi
17374   fi
17375 
17376 
17377 fi
17378 
17379 
17380 
17381 # Check whether --with-toolchain-path was given.
17382 if test "${with_toolchain_path+set}" = set; then :
17383   withval=$with_toolchain_path;
17384   if test "x$with_toolchain_path" != x; then
17385     if test "x$TOOLCHAIN_PATH" = x; then
17386       TOOLCHAIN_PATH="$with_toolchain_path"
17387     else
17388       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
17389     fi
17390   fi
17391 
17392 
17393 fi
17394 
17395 
17396 
17397 # Check whether --with-extra-path was given.
17398 if test "${with_extra_path+set}" = set; then :
17399   withval=$with_extra_path;
17400   if test "x$with_extra_path" != x; then
17401     if test "x$EXTRA_PATH" = x; then
17402       EXTRA_PATH="$with_extra_path"
17403     else
17404       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
17405     fi
17406   fi
17407 
17408 
17409 fi
17410 
17411 
17412   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
17413     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
17414     # If not, detect if Xcode is installed by running xcodebuild -version
17415     # if no Xcode installed, xcodebuild exits with 1
17416     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
17417     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
17418       # We need to use xcodebuild in the toolchain dir provided by the user, this will
17419       # fall back on the stub binary in /usr/bin/xcodebuild
17420       # Extract the first word of "xcodebuild", so it can be a program name with args.
17421 set dummy xcodebuild; ac_word=$2
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17423 $as_echo_n "checking for $ac_word... " >&6; }
17424 if ${ac_cv_path_XCODEBUILD+:} false; then :
17425   $as_echo_n "(cached) " >&6
17426 else
17427   case $XCODEBUILD in
17428   [\\/]* | ?:[\\/]*)
17429   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
17430   ;;
17431   *)
17432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $TOOLCHAIN_PATH
17434 do
17435   IFS=$as_save_IFS
17436   test -z "$as_dir" && as_dir=.
17437     for ac_exec_ext in '' $ac_executable_extensions; do
17438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17439     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
17440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17441     break 2
17442   fi
17443 done
17444   done
17445 IFS=$as_save_IFS
17446 
17447   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
17448   ;;
17449 esac
17450 fi
17451 XCODEBUILD=$ac_cv_path_XCODEBUILD
17452 if test -n "$XCODEBUILD"; then
17453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
17454 $as_echo "$XCODEBUILD" >&6; }
17455 else
17456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17457 $as_echo "no" >&6; }
17458 fi
17459 
17460 
17461     else
17462       # this should result in SYSROOT being empty, unless --with-sysroot is provided
17463       # when only the command line tools are installed there are no SDKs, so headers
17464       # are copied into the system frameworks
17465       XCODEBUILD=
17466 
17467     fi
17468 
17469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
17470 $as_echo_n "checking for sdk name... " >&6; }
17471 
17472 # Check whether --with-sdk-name was given.
17473 if test "${with_sdk_name+set}" = set; then :
17474   withval=$with_sdk_name; SDKNAME=$with_sdk_name
17475 
17476 fi
17477 
17478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
17479 $as_echo "$SDKNAME" >&6; }
17480 
17481     # if toolchain path is specified then don't rely on system headers, they may not compile
17482     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
17483     test -z "$TOOLCHAIN_PATH" && \
17484       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
17485 
17486     if test -z "$SYSROOT"; then
17487       if test -n "$XCODEBUILD"; then
17488         # if we don't have system headers, use default SDK name (last resort)
17489         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17490           SDKNAME=${SDKNAME:-macosx}
17491         fi
17492 
17493         if test -n "$SDKNAME"; then
17494           # Call xcodebuild to determine SYSROOT
17495           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'`
17496         fi
17497       else
17498         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
17499           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
17500         fi
17501       fi
17502     else
17503       # warn user if --with-sdk-name was also set
17504       if test -n "$with_sdk_name"; then
17505         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
17506 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
17507       fi
17508     fi
17509 
17510     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
17511       # If no system framework headers, then SYSROOT must be set, or we won't build
17512       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
17513     fi
17514 
17515     # Perform a basic sanity test
17516     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
17517       if test -z "$SYSROOT"; then
17518         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
17519       else
17520         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
17521       fi
17522     fi
17523 
17524     # set SDKROOT too, Xcode tools will pick it up
17525     SDKROOT="$SYSROOT"
17526 
17527   fi
17528 
17529   # Prepend the extra path to the global path
17530 
17531   if test "x$EXTRA_PATH" != x; then
17532     if test "x$PATH" = x; then
17533       PATH="$EXTRA_PATH"
17534     else
17535       PATH="$EXTRA_PATH:$PATH"
17536     fi
17537   fi
17538 
17539 
17540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17541 $as_echo_n "checking for sysroot... " >&6; }
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
17543 $as_echo "$SYSROOT" >&6; }
17544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
17545 $as_echo_n "checking for toolchain path... " >&6; }
17546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
17547 $as_echo "$TOOLCHAIN_PATH" >&6; }
17548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
17549 $as_echo_n "checking for extra path... " >&6; }
17550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
17551 $as_echo "$EXTRA_PATH" >&6; }
17552 
17553 
17554 # To properly create a configuration name, we need to have the OpenJDK target
17555 # and options (variants and debug level) parsed.
17556 
17557 
17558 
17559 # Check whether --with-conf-name was given.
17560 if test "${with_conf_name+set}" = set; then :
17561   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
17562 fi
17563 
17564 
17565   # Test from where we are running configure, in or outside of src root.
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
17567 $as_echo_n "checking where to store configuration... " >&6; }
17568   if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \
17569       || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \
17570       || test "x$CURDIR" = "x$TOPDIR/make" ; then
17571     # We are running configure from the src root.
17572     # Create a default ./build/target-variant-debuglevel output root.
17573     if test "x${CONF_NAME}" = x; then
17574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
17575 $as_echo "in default location" >&6; }
17576       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
17577     else
17578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
17579 $as_echo "in build directory with custom name" >&6; }
17580     fi
17581 
17582     if test "x$CUSTOM_ROOT" != x; then
17583       OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}"
17584     else
17585       OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}"
17586     fi
17587     $MKDIR -p "$OUTPUTDIR"
17588     if test ! -d "$OUTPUTDIR"; then
17589       as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5
17590     fi
17591   else
17592     # We are running configure from outside of the src dir.
17593     # Then use the current directory as output dir!
17594     # If configuration is situated in normal build directory, just use the build
17595     # directory name as configuration name, otherwise use the complete path.
17596     if test "x${CONF_NAME}" = x; then
17597       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"`
17598     fi
17599     OUTPUTDIR="$CURDIR"
17600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
17601 $as_echo "in current directory" >&6; }
17602 
17603     # WARNING: This might be a bad thing to do. You need to be sure you want to
17604     # have a configuration in this directory. Do some sanity checks!
17605 
17606     if test ! -e "$OUTPUTDIR/spec.gmk"; then
17607       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
17608       # other files
17609       files_present=`$LS $OUTPUTDIR`
17610       # Configure has already touched config.log and confdefs.h in the current dir when this check
17611       # is performed.
17612       filtered_files=`$ECHO "$files_present" \
17613           | $SED -e 's/config.log//g' \
17614               -e 's/configure.log//g' \
17615               -e 's/confdefs.h//g' \
17616               -e 's/ //g' \
17617           | $TR -d '\n'`
17618       if test "x$filtered_files" != x; then
17619         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
17620 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
17621         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
17622 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
17623         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
17624 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
17625         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
17626 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
17628 $as_echo "$as_me: seriously mess up just about everything." >&6;}
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5
17630 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;}
17631         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
17632 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
17633         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
17634       fi
17635     fi
17636   fi
17637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
17638 $as_echo_n "checking what configuration name to use... " >&6; }
17639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
17640 $as_echo "$CONF_NAME" >&6; }
17641 
17642 
17643   # Only process if variable expands to non-empty
17644 
17645   if test "x$OUTPUTDIR" != x; then
17646     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17647 
17648   # Input might be given as Windows format, start by converting to
17649   # unix format.
17650   path="$OUTPUTDIR"
17651   new_path=`$CYGPATH -u "$path"`
17652 
17653   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17654   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17655   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17656   # "foo.exe" is OK but "foo" is an error.
17657   #
17658   # This test is therefore slightly more accurate than "test -f" to check for file precense.
17659   # It is also a way to make sure we got the proper file name for the real test later on.
17660   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17661   if test "x$test_shortpath" = x; then
17662     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17663 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17664     as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5
17665   fi
17666 
17667   # Call helper function which possibly converts this using DOS-style short mode.
17668   # If so, the updated path is stored in $new_path.
17669 
17670   input_path="$new_path"
17671   # Check if we need to convert this using DOS-style short mode. If the path
17672   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17673   # take no chances and rewrite it.
17674   # Note: m4 eats our [], so we need to use [ and ] instead.
17675   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17676   if test "x$has_forbidden_chars" != x; then
17677     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17678     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17679     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17680     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17681       # Going to short mode and back again did indeed matter. Since short mode is
17682       # case insensitive, let's make it lowercase to improve readability.
17683       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17684       # Now convert it back to Unix-style (cygpath)
17685       input_path=`$CYGPATH -u "$shortmode_path"`
17686       new_path="$input_path"
17687     fi
17688   fi
17689 
17690   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17691   if test "x$test_cygdrive_prefix" = x; then
17692     # As a simple fix, exclude /usr/bin since it's not a real path.
17693     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
17694       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17695       # a path prefixed by /cygdrive for fixpath to work.
17696       new_path="$CYGWIN_ROOT_PATH$input_path"
17697     fi
17698   fi
17699 
17700 
17701   if test "x$path" != "x$new_path"; then
17702     OUTPUTDIR="$new_path"
17703     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17704 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17705   fi
17706 
17707     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17708 
17709   path="$OUTPUTDIR"
17710   has_colon=`$ECHO $path | $GREP ^.:`
17711   new_path="$path"
17712   if test "x$has_colon" = x; then
17713     # Not in mixed or Windows style, start by that.
17714     new_path=`cmd //c echo $path`
17715   fi
17716 
17717 
17718   input_path="$new_path"
17719   # Check if we need to convert this using DOS-style short mode. If the path
17720   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17721   # take no chances and rewrite it.
17722   # Note: m4 eats our [], so we need to use [ and ] instead.
17723   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17724   if test "x$has_forbidden_chars" != x; then
17725     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17726     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17727   fi
17728 
17729 
17730   windows_path="$new_path"
17731   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17732     unix_path=`$CYGPATH -u "$windows_path"`
17733     new_path="$unix_path"
17734   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17735     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17736     new_path="$unix_path"
17737   fi
17738 
17739   if test "x$path" != "x$new_path"; then
17740     OUTPUTDIR="$new_path"
17741     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5
17742 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;}
17743   fi
17744 
17745   # Save the first 10 bytes of this path to the storage, so fixpath can work.
17746   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17747 
17748     else
17749       # We're on a unix platform. Hooray! :)
17750       path="$OUTPUTDIR"
17751       has_space=`$ECHO "$path" | $GREP " "`
17752       if test "x$has_space" != x; then
17753         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5
17754 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;}
17755         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
17756       fi
17757 
17758       # Use eval to expand a potential ~
17759       eval path="$path"
17760       if test ! -f "$path" && test ! -d "$path"; then
17761         as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5
17762       fi
17763 
17764       if test -d "$path"; then
17765         OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`"
17766       else
17767         dir="`$DIRNAME "$path"`"
17768         base="`$BASENAME "$path"`"
17769         OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
17770       fi
17771     fi
17772   fi
17773 
17774 
17775   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support"
17776   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17777 
17778   SPEC="$OUTPUTDIR/spec.gmk"
17779 
17780 
17781 
17782 
17783 
17784   # The spec.gmk file contains all variables for the make system.
17785   ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17786 
17787   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17788   ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17789 
17790   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17791   ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17792 
17793   # The compare.sh is used to compare the build output to other builds.
17794   ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17795 
17796   # The generated Makefile knows where the spec.gmk is and where the source is.
17797   # You can run make from the OUTPUTDIR, or from the top-level Makefile
17798   # which will look for generated configurations
17799   ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in"
17800 
17801 
17802 
17803 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17804 
17805   for ac_prog in apt-get yum brew port pkgutil pkgadd
17806 do
17807   # Extract the first word of "$ac_prog", so it can be a program name with args.
17808 set dummy $ac_prog; ac_word=$2
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17810 $as_echo_n "checking for $ac_word... " >&6; }
17811 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17812   $as_echo_n "(cached) " >&6
17813 else
17814   if test -n "$PKGHANDLER"; then
17815   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17816 else
17817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17818 for as_dir in $PATH
17819 do
17820   IFS=$as_save_IFS
17821   test -z "$as_dir" && as_dir=.
17822     for ac_exec_ext in '' $ac_executable_extensions; do
17823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17824     ac_cv_prog_PKGHANDLER="$ac_prog"
17825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17826     break 2
17827   fi
17828 done
17829   done
17830 IFS=$as_save_IFS
17831 
17832 fi
17833 fi
17834 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17835 if test -n "$PKGHANDLER"; then
17836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17837 $as_echo "$PKGHANDLER" >&6; }
17838 else
17839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17840 $as_echo "no" >&6; }
17841 fi
17842 
17843 
17844   test -n "$PKGHANDLER" && break
17845 done
17846 
17847 
17848 
17849 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17850 
17851 
17852 
17853   # Publish this variable in the help.
17854 
17855 
17856   if [ -z "${MAKE+x}" ]; then
17857     # The variable is not set by user, try to locate tool using the code snippet
17858 
17859     # Try our hardest to locate a correct version of GNU make
17860     for ac_prog in gmake
17861 do
17862   # Extract the first word of "$ac_prog", so it can be a program name with args.
17863 set dummy $ac_prog; ac_word=$2
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17865 $as_echo_n "checking for $ac_word... " >&6; }
17866 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17867   $as_echo_n "(cached) " >&6
17868 else
17869   case $CHECK_GMAKE in
17870   [\\/]* | ?:[\\/]*)
17871   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17872   ;;
17873   *)
17874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17875 for as_dir in $PATH
17876 do
17877   IFS=$as_save_IFS
17878   test -z "$as_dir" && as_dir=.
17879     for ac_exec_ext in '' $ac_executable_extensions; do
17880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17881     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17883     break 2
17884   fi
17885 done
17886   done
17887 IFS=$as_save_IFS
17888 
17889   ;;
17890 esac
17891 fi
17892 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17893 if test -n "$CHECK_GMAKE"; then
17894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17895 $as_echo "$CHECK_GMAKE" >&6; }
17896 else
17897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17898 $as_echo "no" >&6; }
17899 fi
17900 
17901 
17902   test -n "$CHECK_GMAKE" && break
17903 done
17904 
17905 
17906   MAKE_CANDIDATE=""$CHECK_GMAKE""
17907   DESCRIPTION="gmake in PATH"
17908 
17909   # On Cygwin, we require a newer version of make than on other platforms
17910   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17911     MAKE_VERSION_EXPR="-e 4\."
17912     MAKE_REQUIRED_VERSION="4.0"
17913    else
17914     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17915     MAKE_REQUIRED_VERSION="3.81"
17916   fi
17917 
17918   if test "x$MAKE_CANDIDATE" != x; then
17919     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17920 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17921     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17922     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17923     if test "x$IS_GNU_MAKE" = x; then
17924       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17925 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17926     else
17927       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17928       if test "x$IS_MODERN_MAKE" = x; then
17929         { $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
17930 $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;}
17931       else
17932         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17933           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17934             MAKE_EXPECTED_ENV='cygwin'
17935           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17936             MAKE_EXPECTED_ENV='msys'
17937           else
17938             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17939           fi
17940           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17941           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17942         else
17943           # Not relevant for non-Windows
17944           IS_MAKE_CORRECT_ENV=true
17945         fi
17946         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17947           { $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
17948 $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;}
17949         else
17950           FOUND_MAKE=$MAKE_CANDIDATE
17951 
17952   # Only process if variable expands to non-empty
17953 
17954   if test "x$FOUND_MAKE" != x; then
17955     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17956 
17957   # First separate the path from the arguments. This will split at the first
17958   # space.
17959   complete="$FOUND_MAKE"
17960   path="${complete%% *}"
17961   tmp="$complete EOL"
17962   arguments="${tmp#* }"
17963 
17964   # Input might be given as Windows format, start by converting to
17965   # unix format.
17966   new_path=`$CYGPATH -u "$path"`
17967 
17968   # Now try to locate executable using which
17969   new_path=`$WHICH "$new_path" 2> /dev/null`
17970   # bat and cmd files are not always considered executable in cygwin causing which
17971   # to not find them
17972   if test "x$new_path" = x \
17973       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17974       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17975     new_path=`$CYGPATH -u "$path"`
17976   fi
17977   if test "x$new_path" = x; then
17978     # Oops. Which didn't find the executable.
17979     # The splitting of arguments from the executable at a space might have been incorrect,
17980     # since paths with space are more likely in Windows. Give it another try with the whole
17981     # argument.
17982     path="$complete"
17983     arguments="EOL"
17984     new_path=`$CYGPATH -u "$path"`
17985     new_path=`$WHICH "$new_path" 2> /dev/null`
17986     # bat and cmd files are not always considered executable in cygwin causing which
17987     # to not find them
17988     if test "x$new_path" = x \
17989         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17990         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17991       new_path=`$CYGPATH -u "$path"`
17992     fi
17993     if test "x$new_path" = x; then
17994       # It's still not found. Now this is an unrecoverable error.
17995       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17996 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17997       has_space=`$ECHO "$complete" | $GREP " "`
17998       if test "x$has_space" != x; then
17999         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18000 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18001       fi
18002       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18003     fi
18004   fi
18005 
18006   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18007   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18008   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18009   # "foo.exe" is OK but "foo" is an error.
18010   #
18011   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18012   # It is also a way to make sure we got the proper file name for the real test later on.
18013   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18014   if test "x$test_shortpath" = x; then
18015     # Short path failed, file does not exist as specified.
18016     # Try adding .exe or .cmd
18017     if test -f "${new_path}.exe"; then
18018       input_to_shortpath="${new_path}.exe"
18019     elif test -f "${new_path}.cmd"; then
18020       input_to_shortpath="${new_path}.cmd"
18021     else
18022       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18023 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18024       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18025 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18026       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18027     fi
18028   else
18029     input_to_shortpath="$new_path"
18030   fi
18031 
18032   # Call helper function which possibly converts this using DOS-style short mode.
18033   # If so, the updated path is stored in $new_path.
18034   new_path="$input_to_shortpath"
18035 
18036   input_path="$input_to_shortpath"
18037   # Check if we need to convert this using DOS-style short mode. If the path
18038   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18039   # take no chances and rewrite it.
18040   # Note: m4 eats our [], so we need to use [ and ] instead.
18041   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18042   if test "x$has_forbidden_chars" != x; then
18043     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18044     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18045     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18046     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18047       # Going to short mode and back again did indeed matter. Since short mode is
18048       # case insensitive, let's make it lowercase to improve readability.
18049       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18050       # Now convert it back to Unix-style (cygpath)
18051       input_path=`$CYGPATH -u "$shortmode_path"`
18052       new_path="$input_path"
18053     fi
18054   fi
18055 
18056   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18057   if test "x$test_cygdrive_prefix" = x; then
18058     # As a simple fix, exclude /usr/bin since it's not a real path.
18059     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18060       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18061       # a path prefixed by /cygdrive for fixpath to work.
18062       new_path="$CYGWIN_ROOT_PATH$input_path"
18063     fi
18064   fi
18065 
18066   # remove trailing .exe if any
18067   new_path="${new_path/%.exe/}"
18068 
18069     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18070 
18071   # First separate the path from the arguments. This will split at the first
18072   # space.
18073   complete="$FOUND_MAKE"
18074   path="${complete%% *}"
18075   tmp="$complete EOL"
18076   arguments="${tmp#* }"
18077 
18078   # Input might be given as Windows format, start by converting to
18079   # unix format.
18080   new_path="$path"
18081 
18082   windows_path="$new_path"
18083   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18084     unix_path=`$CYGPATH -u "$windows_path"`
18085     new_path="$unix_path"
18086   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18087     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18088     new_path="$unix_path"
18089   fi
18090 
18091 
18092   # Now try to locate executable using which
18093   new_path=`$WHICH "$new_path" 2> /dev/null`
18094 
18095   if test "x$new_path" = x; then
18096     # Oops. Which didn't find the executable.
18097     # The splitting of arguments from the executable at a space might have been incorrect,
18098     # since paths with space are more likely in Windows. Give it another try with the whole
18099     # argument.
18100     path="$complete"
18101     arguments="EOL"
18102     new_path="$path"
18103 
18104   windows_path="$new_path"
18105   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18106     unix_path=`$CYGPATH -u "$windows_path"`
18107     new_path="$unix_path"
18108   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18109     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18110     new_path="$unix_path"
18111   fi
18112 
18113 
18114     new_path=`$WHICH "$new_path" 2> /dev/null`
18115     # bat and cmd files are not always considered executable in MSYS causing which
18116     # to not find them
18117     if test "x$new_path" = x \
18118         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18119         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18120       new_path="$path"
18121 
18122   windows_path="$new_path"
18123   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18124     unix_path=`$CYGPATH -u "$windows_path"`
18125     new_path="$unix_path"
18126   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18127     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18128     new_path="$unix_path"
18129   fi
18130 
18131     fi
18132 
18133     if test "x$new_path" = x; then
18134       # It's still not found. Now this is an unrecoverable error.
18135       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18136 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18137       has_space=`$ECHO "$complete" | $GREP " "`
18138       if test "x$has_space" != x; then
18139         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18140 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18141       fi
18142       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18143     fi
18144   fi
18145 
18146   # Now new_path has a complete unix path to the binary
18147   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18148     # Keep paths in /bin as-is, but remove trailing .exe if any
18149     new_path="${new_path/%.exe/}"
18150     # Do not save /bin paths to all_fixpath_prefixes!
18151   else
18152     # Not in mixed or Windows style, start by that.
18153     new_path=`cmd //c echo $new_path`
18154 
18155   input_path="$new_path"
18156   # Check if we need to convert this using DOS-style short mode. If the path
18157   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18158   # take no chances and rewrite it.
18159   # Note: m4 eats our [], so we need to use [ and ] instead.
18160   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18161   if test "x$has_forbidden_chars" != x; then
18162     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18163     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18164   fi
18165 
18166     # Output is in $new_path
18167 
18168   windows_path="$new_path"
18169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18170     unix_path=`$CYGPATH -u "$windows_path"`
18171     new_path="$unix_path"
18172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18173     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18174     new_path="$unix_path"
18175   fi
18176 
18177     # remove trailing .exe if any
18178     new_path="${new_path/%.exe/}"
18179 
18180     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18181     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18182   fi
18183 
18184     else
18185       # We're on a unix platform. Hooray! :)
18186       # First separate the path from the arguments. This will split at the first
18187       # space.
18188       complete="$FOUND_MAKE"
18189       path="${complete%% *}"
18190       tmp="$complete EOL"
18191       arguments="${tmp#* }"
18192 
18193       # Cannot rely on the command "which" here since it doesn't always work.
18194       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18195       if test -z "$is_absolute_path"; then
18196         # Path to executable is not absolute. Find it.
18197         IFS_save="$IFS"
18198         IFS=:
18199         for p in $PATH; do
18200           if test -f "$p/$path" && test -x "$p/$path"; then
18201             new_path="$p/$path"
18202             break
18203           fi
18204         done
18205         IFS="$IFS_save"
18206       else
18207         # This is an absolute path, we can use it without further modifications.
18208         new_path="$path"
18209       fi
18210 
18211       if test "x$new_path" = x; then
18212         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18213 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18214         has_space=`$ECHO "$complete" | $GREP " "`
18215         if test "x$has_space" != x; then
18216           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18217 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18218         fi
18219         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18220       fi
18221     fi
18222 
18223     # Now join together the path and the arguments once again
18224     if test "x$arguments" != xEOL; then
18225       new_complete="$new_path ${arguments% *}"
18226     else
18227       new_complete="$new_path"
18228     fi
18229 
18230     if test "x$complete" != "x$new_complete"; then
18231       FOUND_MAKE="$new_complete"
18232       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18233 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18234     fi
18235   fi
18236 
18237         fi
18238       fi
18239     fi
18240   fi
18241 
18242 
18243     if test "x$FOUND_MAKE" = x; then
18244       for ac_prog in make
18245 do
18246   # Extract the first word of "$ac_prog", so it can be a program name with args.
18247 set dummy $ac_prog; ac_word=$2
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18249 $as_echo_n "checking for $ac_word... " >&6; }
18250 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18251   $as_echo_n "(cached) " >&6
18252 else
18253   case $CHECK_MAKE in
18254   [\\/]* | ?:[\\/]*)
18255   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18256   ;;
18257   *)
18258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18259 for as_dir in $PATH
18260 do
18261   IFS=$as_save_IFS
18262   test -z "$as_dir" && as_dir=.
18263     for ac_exec_ext in '' $ac_executable_extensions; do
18264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18265     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18267     break 2
18268   fi
18269 done
18270   done
18271 IFS=$as_save_IFS
18272 
18273   ;;
18274 esac
18275 fi
18276 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18277 if test -n "$CHECK_MAKE"; then
18278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18279 $as_echo "$CHECK_MAKE" >&6; }
18280 else
18281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18282 $as_echo "no" >&6; }
18283 fi
18284 
18285 
18286   test -n "$CHECK_MAKE" && break
18287 done
18288 
18289 
18290   MAKE_CANDIDATE=""$CHECK_MAKE""
18291   DESCRIPTION="make in PATH"
18292 
18293   # On Cygwin, we require a newer version of make than on other platforms
18294   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18295     MAKE_VERSION_EXPR="-e 4\."
18296     MAKE_REQUIRED_VERSION="4.0"
18297    else
18298     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18299     MAKE_REQUIRED_VERSION="3.81"
18300   fi
18301 
18302   if test "x$MAKE_CANDIDATE" != x; then
18303     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18304 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18305     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18306     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18307     if test "x$IS_GNU_MAKE" = x; then
18308       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18309 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18310     else
18311       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18312       if test "x$IS_MODERN_MAKE" = x; then
18313         { $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
18314 $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;}
18315       else
18316         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18317           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18318             MAKE_EXPECTED_ENV='cygwin'
18319           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18320             MAKE_EXPECTED_ENV='msys'
18321           else
18322             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18323           fi
18324           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18325           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18326         else
18327           # Not relevant for non-Windows
18328           IS_MAKE_CORRECT_ENV=true
18329         fi
18330         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18331           { $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
18332 $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;}
18333         else
18334           FOUND_MAKE=$MAKE_CANDIDATE
18335 
18336   # Only process if variable expands to non-empty
18337 
18338   if test "x$FOUND_MAKE" != x; then
18339     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18340 
18341   # First separate the path from the arguments. This will split at the first
18342   # space.
18343   complete="$FOUND_MAKE"
18344   path="${complete%% *}"
18345   tmp="$complete EOL"
18346   arguments="${tmp#* }"
18347 
18348   # Input might be given as Windows format, start by converting to
18349   # unix format.
18350   new_path=`$CYGPATH -u "$path"`
18351 
18352   # Now try to locate executable using which
18353   new_path=`$WHICH "$new_path" 2> /dev/null`
18354   # bat and cmd files are not always considered executable in cygwin causing which
18355   # to not find them
18356   if test "x$new_path" = x \
18357       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18358       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18359     new_path=`$CYGPATH -u "$path"`
18360   fi
18361   if test "x$new_path" = x; then
18362     # Oops. Which didn't find the executable.
18363     # The splitting of arguments from the executable at a space might have been incorrect,
18364     # since paths with space are more likely in Windows. Give it another try with the whole
18365     # argument.
18366     path="$complete"
18367     arguments="EOL"
18368     new_path=`$CYGPATH -u "$path"`
18369     new_path=`$WHICH "$new_path" 2> /dev/null`
18370     # bat and cmd files are not always considered executable in cygwin causing which
18371     # to not find them
18372     if test "x$new_path" = x \
18373         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18374         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18375       new_path=`$CYGPATH -u "$path"`
18376     fi
18377     if test "x$new_path" = x; then
18378       # It's still not found. Now this is an unrecoverable error.
18379       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18380 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18381       has_space=`$ECHO "$complete" | $GREP " "`
18382       if test "x$has_space" != x; then
18383         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18385       fi
18386       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18387     fi
18388   fi
18389 
18390   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18391   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18392   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18393   # "foo.exe" is OK but "foo" is an error.
18394   #
18395   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18396   # It is also a way to make sure we got the proper file name for the real test later on.
18397   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18398   if test "x$test_shortpath" = x; then
18399     # Short path failed, file does not exist as specified.
18400     # Try adding .exe or .cmd
18401     if test -f "${new_path}.exe"; then
18402       input_to_shortpath="${new_path}.exe"
18403     elif test -f "${new_path}.cmd"; then
18404       input_to_shortpath="${new_path}.cmd"
18405     else
18406       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18407 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18408       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18410       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18411     fi
18412   else
18413     input_to_shortpath="$new_path"
18414   fi
18415 
18416   # Call helper function which possibly converts this using DOS-style short mode.
18417   # If so, the updated path is stored in $new_path.
18418   new_path="$input_to_shortpath"
18419 
18420   input_path="$input_to_shortpath"
18421   # Check if we need to convert this using DOS-style short mode. If the path
18422   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18423   # take no chances and rewrite it.
18424   # Note: m4 eats our [], so we need to use [ and ] instead.
18425   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18426   if test "x$has_forbidden_chars" != x; then
18427     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18428     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18429     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18430     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18431       # Going to short mode and back again did indeed matter. Since short mode is
18432       # case insensitive, let's make it lowercase to improve readability.
18433       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18434       # Now convert it back to Unix-style (cygpath)
18435       input_path=`$CYGPATH -u "$shortmode_path"`
18436       new_path="$input_path"
18437     fi
18438   fi
18439 
18440   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18441   if test "x$test_cygdrive_prefix" = x; then
18442     # As a simple fix, exclude /usr/bin since it's not a real path.
18443     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18444       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18445       # a path prefixed by /cygdrive for fixpath to work.
18446       new_path="$CYGWIN_ROOT_PATH$input_path"
18447     fi
18448   fi
18449 
18450   # remove trailing .exe if any
18451   new_path="${new_path/%.exe/}"
18452 
18453     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18454 
18455   # First separate the path from the arguments. This will split at the first
18456   # space.
18457   complete="$FOUND_MAKE"
18458   path="${complete%% *}"
18459   tmp="$complete EOL"
18460   arguments="${tmp#* }"
18461 
18462   # Input might be given as Windows format, start by converting to
18463   # unix format.
18464   new_path="$path"
18465 
18466   windows_path="$new_path"
18467   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18468     unix_path=`$CYGPATH -u "$windows_path"`
18469     new_path="$unix_path"
18470   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18471     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18472     new_path="$unix_path"
18473   fi
18474 
18475 
18476   # Now try to locate executable using which
18477   new_path=`$WHICH "$new_path" 2> /dev/null`
18478 
18479   if test "x$new_path" = x; then
18480     # Oops. Which didn't find the executable.
18481     # The splitting of arguments from the executable at a space might have been incorrect,
18482     # since paths with space are more likely in Windows. Give it another try with the whole
18483     # argument.
18484     path="$complete"
18485     arguments="EOL"
18486     new_path="$path"
18487 
18488   windows_path="$new_path"
18489   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18490     unix_path=`$CYGPATH -u "$windows_path"`
18491     new_path="$unix_path"
18492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18493     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18494     new_path="$unix_path"
18495   fi
18496 
18497 
18498     new_path=`$WHICH "$new_path" 2> /dev/null`
18499     # bat and cmd files are not always considered executable in MSYS causing which
18500     # to not find them
18501     if test "x$new_path" = x \
18502         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18503         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18504       new_path="$path"
18505 
18506   windows_path="$new_path"
18507   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18508     unix_path=`$CYGPATH -u "$windows_path"`
18509     new_path="$unix_path"
18510   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18511     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18512     new_path="$unix_path"
18513   fi
18514 
18515     fi
18516 
18517     if test "x$new_path" = x; then
18518       # It's still not found. Now this is an unrecoverable error.
18519       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18520 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18521       has_space=`$ECHO "$complete" | $GREP " "`
18522       if test "x$has_space" != x; then
18523         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18525       fi
18526       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18527     fi
18528   fi
18529 
18530   # Now new_path has a complete unix path to the binary
18531   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18532     # Keep paths in /bin as-is, but remove trailing .exe if any
18533     new_path="${new_path/%.exe/}"
18534     # Do not save /bin paths to all_fixpath_prefixes!
18535   else
18536     # Not in mixed or Windows style, start by that.
18537     new_path=`cmd //c echo $new_path`
18538 
18539   input_path="$new_path"
18540   # Check if we need to convert this using DOS-style short mode. If the path
18541   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18542   # take no chances and rewrite it.
18543   # Note: m4 eats our [], so we need to use [ and ] instead.
18544   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18545   if test "x$has_forbidden_chars" != x; then
18546     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18547     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18548   fi
18549 
18550     # Output is in $new_path
18551 
18552   windows_path="$new_path"
18553   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18554     unix_path=`$CYGPATH -u "$windows_path"`
18555     new_path="$unix_path"
18556   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18557     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18558     new_path="$unix_path"
18559   fi
18560 
18561     # remove trailing .exe if any
18562     new_path="${new_path/%.exe/}"
18563 
18564     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18565     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18566   fi
18567 
18568     else
18569       # We're on a unix platform. Hooray! :)
18570       # First separate the path from the arguments. This will split at the first
18571       # space.
18572       complete="$FOUND_MAKE"
18573       path="${complete%% *}"
18574       tmp="$complete EOL"
18575       arguments="${tmp#* }"
18576 
18577       # Cannot rely on the command "which" here since it doesn't always work.
18578       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18579       if test -z "$is_absolute_path"; then
18580         # Path to executable is not absolute. Find it.
18581         IFS_save="$IFS"
18582         IFS=:
18583         for p in $PATH; do
18584           if test -f "$p/$path" && test -x "$p/$path"; then
18585             new_path="$p/$path"
18586             break
18587           fi
18588         done
18589         IFS="$IFS_save"
18590       else
18591         # This is an absolute path, we can use it without further modifications.
18592         new_path="$path"
18593       fi
18594 
18595       if test "x$new_path" = x; then
18596         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18597 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18598         has_space=`$ECHO "$complete" | $GREP " "`
18599         if test "x$has_space" != x; then
18600           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18602         fi
18603         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18604       fi
18605     fi
18606 
18607     # Now join together the path and the arguments once again
18608     if test "x$arguments" != xEOL; then
18609       new_complete="$new_path ${arguments% *}"
18610     else
18611       new_complete="$new_path"
18612     fi
18613 
18614     if test "x$complete" != "x$new_complete"; then
18615       FOUND_MAKE="$new_complete"
18616       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18617 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18618     fi
18619   fi
18620 
18621         fi
18622       fi
18623     fi
18624   fi
18625 
18626     fi
18627 
18628     if test "x$FOUND_MAKE" = x; then
18629       if test "x$TOOLCHAIN_PATH" != x; then
18630         # We have a toolchain path, check that as well before giving up.
18631         OLD_PATH=$PATH
18632         PATH=$TOOLCHAIN_PATH:$PATH
18633         for ac_prog in gmake
18634 do
18635   # Extract the first word of "$ac_prog", so it can be a program name with args.
18636 set dummy $ac_prog; ac_word=$2
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18638 $as_echo_n "checking for $ac_word... " >&6; }
18639 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18640   $as_echo_n "(cached) " >&6
18641 else
18642   case $CHECK_TOOLSDIR_GMAKE in
18643   [\\/]* | ?:[\\/]*)
18644   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18645   ;;
18646   *)
18647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18649 do
18650   IFS=$as_save_IFS
18651   test -z "$as_dir" && as_dir=.
18652     for ac_exec_ext in '' $ac_executable_extensions; do
18653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18656     break 2
18657   fi
18658 done
18659   done
18660 IFS=$as_save_IFS
18661 
18662   ;;
18663 esac
18664 fi
18665 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18666 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18668 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18669 else
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671 $as_echo "no" >&6; }
18672 fi
18673 
18674 
18675   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18676 done
18677 
18678 
18679   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18680   DESCRIPTION="gmake in tools-dir"
18681 
18682   # On Cygwin, we require a newer version of make than on other platforms
18683   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18684     MAKE_VERSION_EXPR="-e 4\."
18685     MAKE_REQUIRED_VERSION="4.0"
18686    else
18687     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18688     MAKE_REQUIRED_VERSION="3.81"
18689   fi
18690 
18691   if test "x$MAKE_CANDIDATE" != x; then
18692     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18693 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18694     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18695     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18696     if test "x$IS_GNU_MAKE" = x; then
18697       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18698 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18699     else
18700       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18701       if test "x$IS_MODERN_MAKE" = x; then
18702         { $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
18703 $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;}
18704       else
18705         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18706           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18707             MAKE_EXPECTED_ENV='cygwin'
18708           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18709             MAKE_EXPECTED_ENV='msys'
18710           else
18711             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18712           fi
18713           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18714           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18715         else
18716           # Not relevant for non-Windows
18717           IS_MAKE_CORRECT_ENV=true
18718         fi
18719         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18720           { $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
18721 $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;}
18722         else
18723           FOUND_MAKE=$MAKE_CANDIDATE
18724 
18725   # Only process if variable expands to non-empty
18726 
18727   if test "x$FOUND_MAKE" != x; then
18728     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18729 
18730   # First separate the path from the arguments. This will split at the first
18731   # space.
18732   complete="$FOUND_MAKE"
18733   path="${complete%% *}"
18734   tmp="$complete EOL"
18735   arguments="${tmp#* }"
18736 
18737   # Input might be given as Windows format, start by converting to
18738   # unix format.
18739   new_path=`$CYGPATH -u "$path"`
18740 
18741   # Now try to locate executable using which
18742   new_path=`$WHICH "$new_path" 2> /dev/null`
18743   # bat and cmd files are not always considered executable in cygwin causing which
18744   # to not find them
18745   if test "x$new_path" = x \
18746       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18747       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18748     new_path=`$CYGPATH -u "$path"`
18749   fi
18750   if test "x$new_path" = x; then
18751     # Oops. Which didn't find the executable.
18752     # The splitting of arguments from the executable at a space might have been incorrect,
18753     # since paths with space are more likely in Windows. Give it another try with the whole
18754     # argument.
18755     path="$complete"
18756     arguments="EOL"
18757     new_path=`$CYGPATH -u "$path"`
18758     new_path=`$WHICH "$new_path" 2> /dev/null`
18759     # bat and cmd files are not always considered executable in cygwin causing which
18760     # to not find them
18761     if test "x$new_path" = x \
18762         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18763         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18764       new_path=`$CYGPATH -u "$path"`
18765     fi
18766     if test "x$new_path" = x; then
18767       # It's still not found. Now this is an unrecoverable error.
18768       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18769 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18770       has_space=`$ECHO "$complete" | $GREP " "`
18771       if test "x$has_space" != x; then
18772         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18773 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18774       fi
18775       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18776     fi
18777   fi
18778 
18779   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18780   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18781   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18782   # "foo.exe" is OK but "foo" is an error.
18783   #
18784   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18785   # It is also a way to make sure we got the proper file name for the real test later on.
18786   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18787   if test "x$test_shortpath" = x; then
18788     # Short path failed, file does not exist as specified.
18789     # Try adding .exe or .cmd
18790     if test -f "${new_path}.exe"; then
18791       input_to_shortpath="${new_path}.exe"
18792     elif test -f "${new_path}.cmd"; then
18793       input_to_shortpath="${new_path}.cmd"
18794     else
18795       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18796 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18797       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18798 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18799       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18800     fi
18801   else
18802     input_to_shortpath="$new_path"
18803   fi
18804 
18805   # Call helper function which possibly converts this using DOS-style short mode.
18806   # If so, the updated path is stored in $new_path.
18807   new_path="$input_to_shortpath"
18808 
18809   input_path="$input_to_shortpath"
18810   # Check if we need to convert this using DOS-style short mode. If the path
18811   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18812   # take no chances and rewrite it.
18813   # Note: m4 eats our [], so we need to use [ and ] instead.
18814   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18815   if test "x$has_forbidden_chars" != x; then
18816     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18817     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18818     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18819     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18820       # Going to short mode and back again did indeed matter. Since short mode is
18821       # case insensitive, let's make it lowercase to improve readability.
18822       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18823       # Now convert it back to Unix-style (cygpath)
18824       input_path=`$CYGPATH -u "$shortmode_path"`
18825       new_path="$input_path"
18826     fi
18827   fi
18828 
18829   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18830   if test "x$test_cygdrive_prefix" = x; then
18831     # As a simple fix, exclude /usr/bin since it's not a real path.
18832     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18833       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18834       # a path prefixed by /cygdrive for fixpath to work.
18835       new_path="$CYGWIN_ROOT_PATH$input_path"
18836     fi
18837   fi
18838 
18839   # remove trailing .exe if any
18840   new_path="${new_path/%.exe/}"
18841 
18842     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18843 
18844   # First separate the path from the arguments. This will split at the first
18845   # space.
18846   complete="$FOUND_MAKE"
18847   path="${complete%% *}"
18848   tmp="$complete EOL"
18849   arguments="${tmp#* }"
18850 
18851   # Input might be given as Windows format, start by converting to
18852   # unix format.
18853   new_path="$path"
18854 
18855   windows_path="$new_path"
18856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18857     unix_path=`$CYGPATH -u "$windows_path"`
18858     new_path="$unix_path"
18859   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18860     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18861     new_path="$unix_path"
18862   fi
18863 
18864 
18865   # Now try to locate executable using which
18866   new_path=`$WHICH "$new_path" 2> /dev/null`
18867 
18868   if test "x$new_path" = x; then
18869     # Oops. Which didn't find the executable.
18870     # The splitting of arguments from the executable at a space might have been incorrect,
18871     # since paths with space are more likely in Windows. Give it another try with the whole
18872     # argument.
18873     path="$complete"
18874     arguments="EOL"
18875     new_path="$path"
18876 
18877   windows_path="$new_path"
18878   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18879     unix_path=`$CYGPATH -u "$windows_path"`
18880     new_path="$unix_path"
18881   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18882     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18883     new_path="$unix_path"
18884   fi
18885 
18886 
18887     new_path=`$WHICH "$new_path" 2> /dev/null`
18888     # bat and cmd files are not always considered executable in MSYS causing which
18889     # to not find them
18890     if test "x$new_path" = x \
18891         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18892         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18893       new_path="$path"
18894 
18895   windows_path="$new_path"
18896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18897     unix_path=`$CYGPATH -u "$windows_path"`
18898     new_path="$unix_path"
18899   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18900     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18901     new_path="$unix_path"
18902   fi
18903 
18904     fi
18905 
18906     if test "x$new_path" = x; then
18907       # It's still not found. Now this is an unrecoverable error.
18908       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18909 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18910       has_space=`$ECHO "$complete" | $GREP " "`
18911       if test "x$has_space" != x; then
18912         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18913 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18914       fi
18915       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18916     fi
18917   fi
18918 
18919   # Now new_path has a complete unix path to the binary
18920   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18921     # Keep paths in /bin as-is, but remove trailing .exe if any
18922     new_path="${new_path/%.exe/}"
18923     # Do not save /bin paths to all_fixpath_prefixes!
18924   else
18925     # Not in mixed or Windows style, start by that.
18926     new_path=`cmd //c echo $new_path`
18927 
18928   input_path="$new_path"
18929   # Check if we need to convert this using DOS-style short mode. If the path
18930   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18931   # take no chances and rewrite it.
18932   # Note: m4 eats our [], so we need to use [ and ] instead.
18933   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18934   if test "x$has_forbidden_chars" != x; then
18935     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18936     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18937   fi
18938 
18939     # Output is in $new_path
18940 
18941   windows_path="$new_path"
18942   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18943     unix_path=`$CYGPATH -u "$windows_path"`
18944     new_path="$unix_path"
18945   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18946     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18947     new_path="$unix_path"
18948   fi
18949 
18950     # remove trailing .exe if any
18951     new_path="${new_path/%.exe/}"
18952 
18953     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18954     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18955   fi
18956 
18957     else
18958       # We're on a unix platform. Hooray! :)
18959       # First separate the path from the arguments. This will split at the first
18960       # space.
18961       complete="$FOUND_MAKE"
18962       path="${complete%% *}"
18963       tmp="$complete EOL"
18964       arguments="${tmp#* }"
18965 
18966       # Cannot rely on the command "which" here since it doesn't always work.
18967       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18968       if test -z "$is_absolute_path"; then
18969         # Path to executable is not absolute. Find it.
18970         IFS_save="$IFS"
18971         IFS=:
18972         for p in $PATH; do
18973           if test -f "$p/$path" && test -x "$p/$path"; then
18974             new_path="$p/$path"
18975             break
18976           fi
18977         done
18978         IFS="$IFS_save"
18979       else
18980         # This is an absolute path, we can use it without further modifications.
18981         new_path="$path"
18982       fi
18983 
18984       if test "x$new_path" = x; then
18985         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18986 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18987         has_space=`$ECHO "$complete" | $GREP " "`
18988         if test "x$has_space" != x; then
18989           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18990 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18991         fi
18992         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18993       fi
18994     fi
18995 
18996     # Now join together the path and the arguments once again
18997     if test "x$arguments" != xEOL; then
18998       new_complete="$new_path ${arguments% *}"
18999     else
19000       new_complete="$new_path"
19001     fi
19002 
19003     if test "x$complete" != "x$new_complete"; then
19004       FOUND_MAKE="$new_complete"
19005       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19006 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19007     fi
19008   fi
19009 
19010         fi
19011       fi
19012     fi
19013   fi
19014 
19015         if test "x$FOUND_MAKE" = x; then
19016           for ac_prog in make
19017 do
19018   # Extract the first word of "$ac_prog", so it can be a program name with args.
19019 set dummy $ac_prog; ac_word=$2
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19021 $as_echo_n "checking for $ac_word... " >&6; }
19022 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19023   $as_echo_n "(cached) " >&6
19024 else
19025   case $CHECK_TOOLSDIR_MAKE in
19026   [\\/]* | ?:[\\/]*)
19027   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19028   ;;
19029   *)
19030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19032 do
19033   IFS=$as_save_IFS
19034   test -z "$as_dir" && as_dir=.
19035     for ac_exec_ext in '' $ac_executable_extensions; do
19036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19037     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19039     break 2
19040   fi
19041 done
19042   done
19043 IFS=$as_save_IFS
19044 
19045   ;;
19046 esac
19047 fi
19048 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19049 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19051 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19052 else
19053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054 $as_echo "no" >&6; }
19055 fi
19056 
19057 
19058   test -n "$CHECK_TOOLSDIR_MAKE" && break
19059 done
19060 
19061 
19062   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19063   DESCRIPTION="make in tools-dir"
19064 
19065   # On Cygwin, we require a newer version of make than on other platforms
19066   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19067     MAKE_VERSION_EXPR="-e 4\."
19068     MAKE_REQUIRED_VERSION="4.0"
19069    else
19070     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19071     MAKE_REQUIRED_VERSION="3.81"
19072   fi
19073 
19074   if test "x$MAKE_CANDIDATE" != x; then
19075     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19076 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19077     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19078     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19079     if test "x$IS_GNU_MAKE" = x; then
19080       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19081 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19082     else
19083       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19084       if test "x$IS_MODERN_MAKE" = x; then
19085         { $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
19086 $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;}
19087       else
19088         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19089           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19090             MAKE_EXPECTED_ENV='cygwin'
19091           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19092             MAKE_EXPECTED_ENV='msys'
19093           else
19094             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19095           fi
19096           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19097           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19098         else
19099           # Not relevant for non-Windows
19100           IS_MAKE_CORRECT_ENV=true
19101         fi
19102         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19103           { $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
19104 $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;}
19105         else
19106           FOUND_MAKE=$MAKE_CANDIDATE
19107 
19108   # Only process if variable expands to non-empty
19109 
19110   if test "x$FOUND_MAKE" != x; then
19111     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19112 
19113   # First separate the path from the arguments. This will split at the first
19114   # space.
19115   complete="$FOUND_MAKE"
19116   path="${complete%% *}"
19117   tmp="$complete EOL"
19118   arguments="${tmp#* }"
19119 
19120   # Input might be given as Windows format, start by converting to
19121   # unix format.
19122   new_path=`$CYGPATH -u "$path"`
19123 
19124   # Now try to locate executable using which
19125   new_path=`$WHICH "$new_path" 2> /dev/null`
19126   # bat and cmd files are not always considered executable in cygwin causing which
19127   # to not find them
19128   if test "x$new_path" = x \
19129       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19130       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19131     new_path=`$CYGPATH -u "$path"`
19132   fi
19133   if test "x$new_path" = x; then
19134     # Oops. Which didn't find the executable.
19135     # The splitting of arguments from the executable at a space might have been incorrect,
19136     # since paths with space are more likely in Windows. Give it another try with the whole
19137     # argument.
19138     path="$complete"
19139     arguments="EOL"
19140     new_path=`$CYGPATH -u "$path"`
19141     new_path=`$WHICH "$new_path" 2> /dev/null`
19142     # bat and cmd files are not always considered executable in cygwin causing which
19143     # to not find them
19144     if test "x$new_path" = x \
19145         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19146         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19147       new_path=`$CYGPATH -u "$path"`
19148     fi
19149     if test "x$new_path" = x; then
19150       # It's still not found. Now this is an unrecoverable error.
19151       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19152 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19153       has_space=`$ECHO "$complete" | $GREP " "`
19154       if test "x$has_space" != x; then
19155         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19156 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19157       fi
19158       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19159     fi
19160   fi
19161 
19162   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19163   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19164   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19165   # "foo.exe" is OK but "foo" is an error.
19166   #
19167   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19168   # It is also a way to make sure we got the proper file name for the real test later on.
19169   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19170   if test "x$test_shortpath" = x; then
19171     # Short path failed, file does not exist as specified.
19172     # Try adding .exe or .cmd
19173     if test -f "${new_path}.exe"; then
19174       input_to_shortpath="${new_path}.exe"
19175     elif test -f "${new_path}.cmd"; then
19176       input_to_shortpath="${new_path}.cmd"
19177     else
19178       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19179 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19180       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19181 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19182       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19183     fi
19184   else
19185     input_to_shortpath="$new_path"
19186   fi
19187 
19188   # Call helper function which possibly converts this using DOS-style short mode.
19189   # If so, the updated path is stored in $new_path.
19190   new_path="$input_to_shortpath"
19191 
19192   input_path="$input_to_shortpath"
19193   # Check if we need to convert this using DOS-style short mode. If the path
19194   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19195   # take no chances and rewrite it.
19196   # Note: m4 eats our [], so we need to use [ and ] instead.
19197   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19198   if test "x$has_forbidden_chars" != x; then
19199     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19200     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19201     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19202     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19203       # Going to short mode and back again did indeed matter. Since short mode is
19204       # case insensitive, let's make it lowercase to improve readability.
19205       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19206       # Now convert it back to Unix-style (cygpath)
19207       input_path=`$CYGPATH -u "$shortmode_path"`
19208       new_path="$input_path"
19209     fi
19210   fi
19211 
19212   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19213   if test "x$test_cygdrive_prefix" = x; then
19214     # As a simple fix, exclude /usr/bin since it's not a real path.
19215     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19216       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19217       # a path prefixed by /cygdrive for fixpath to work.
19218       new_path="$CYGWIN_ROOT_PATH$input_path"
19219     fi
19220   fi
19221 
19222   # remove trailing .exe if any
19223   new_path="${new_path/%.exe/}"
19224 
19225     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19226 
19227   # First separate the path from the arguments. This will split at the first
19228   # space.
19229   complete="$FOUND_MAKE"
19230   path="${complete%% *}"
19231   tmp="$complete EOL"
19232   arguments="${tmp#* }"
19233 
19234   # Input might be given as Windows format, start by converting to
19235   # unix format.
19236   new_path="$path"
19237 
19238   windows_path="$new_path"
19239   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19240     unix_path=`$CYGPATH -u "$windows_path"`
19241     new_path="$unix_path"
19242   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19243     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19244     new_path="$unix_path"
19245   fi
19246 
19247 
19248   # Now try to locate executable using which
19249   new_path=`$WHICH "$new_path" 2> /dev/null`
19250 
19251   if test "x$new_path" = x; then
19252     # Oops. Which didn't find the executable.
19253     # The splitting of arguments from the executable at a space might have been incorrect,
19254     # since paths with space are more likely in Windows. Give it another try with the whole
19255     # argument.
19256     path="$complete"
19257     arguments="EOL"
19258     new_path="$path"
19259 
19260   windows_path="$new_path"
19261   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19262     unix_path=`$CYGPATH -u "$windows_path"`
19263     new_path="$unix_path"
19264   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19265     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19266     new_path="$unix_path"
19267   fi
19268 
19269 
19270     new_path=`$WHICH "$new_path" 2> /dev/null`
19271     # bat and cmd files are not always considered executable in MSYS causing which
19272     # to not find them
19273     if test "x$new_path" = x \
19274         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19275         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19276       new_path="$path"
19277 
19278   windows_path="$new_path"
19279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19280     unix_path=`$CYGPATH -u "$windows_path"`
19281     new_path="$unix_path"
19282   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19283     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19284     new_path="$unix_path"
19285   fi
19286 
19287     fi
19288 
19289     if test "x$new_path" = x; then
19290       # It's still not found. Now this is an unrecoverable error.
19291       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19292 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19293       has_space=`$ECHO "$complete" | $GREP " "`
19294       if test "x$has_space" != x; then
19295         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19296 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19297       fi
19298       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19299     fi
19300   fi
19301 
19302   # Now new_path has a complete unix path to the binary
19303   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19304     # Keep paths in /bin as-is, but remove trailing .exe if any
19305     new_path="${new_path/%.exe/}"
19306     # Do not save /bin paths to all_fixpath_prefixes!
19307   else
19308     # Not in mixed or Windows style, start by that.
19309     new_path=`cmd //c echo $new_path`
19310 
19311   input_path="$new_path"
19312   # Check if we need to convert this using DOS-style short mode. If the path
19313   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19314   # take no chances and rewrite it.
19315   # Note: m4 eats our [], so we need to use [ and ] instead.
19316   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19317   if test "x$has_forbidden_chars" != x; then
19318     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19319     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19320   fi
19321 
19322     # Output is in $new_path
19323 
19324   windows_path="$new_path"
19325   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19326     unix_path=`$CYGPATH -u "$windows_path"`
19327     new_path="$unix_path"
19328   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19329     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19330     new_path="$unix_path"
19331   fi
19332 
19333     # remove trailing .exe if any
19334     new_path="${new_path/%.exe/}"
19335 
19336     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19337     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19338   fi
19339 
19340     else
19341       # We're on a unix platform. Hooray! :)
19342       # First separate the path from the arguments. This will split at the first
19343       # space.
19344       complete="$FOUND_MAKE"
19345       path="${complete%% *}"
19346       tmp="$complete EOL"
19347       arguments="${tmp#* }"
19348 
19349       # Cannot rely on the command "which" here since it doesn't always work.
19350       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19351       if test -z "$is_absolute_path"; then
19352         # Path to executable is not absolute. Find it.
19353         IFS_save="$IFS"
19354         IFS=:
19355         for p in $PATH; do
19356           if test -f "$p/$path" && test -x "$p/$path"; then
19357             new_path="$p/$path"
19358             break
19359           fi
19360         done
19361         IFS="$IFS_save"
19362       else
19363         # This is an absolute path, we can use it without further modifications.
19364         new_path="$path"
19365       fi
19366 
19367       if test "x$new_path" = x; then
19368         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19369 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19370         has_space=`$ECHO "$complete" | $GREP " "`
19371         if test "x$has_space" != x; then
19372           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19373 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19374         fi
19375         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19376       fi
19377     fi
19378 
19379     # Now join together the path and the arguments once again
19380     if test "x$arguments" != xEOL; then
19381       new_complete="$new_path ${arguments% *}"
19382     else
19383       new_complete="$new_path"
19384     fi
19385 
19386     if test "x$complete" != "x$new_complete"; then
19387       FOUND_MAKE="$new_complete"
19388       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19389 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19390     fi
19391   fi
19392 
19393         fi
19394       fi
19395     fi
19396   fi
19397 
19398         fi
19399         PATH=$OLD_PATH
19400       fi
19401     fi
19402 
19403     if test "x$FOUND_MAKE" = x; then
19404       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
19405     fi
19406 
19407   else
19408     # The variable is set, but is it from the command line or the environment?
19409 
19410     # Try to remove the string !MAKE! from our list.
19411     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
19412     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19413       # If it failed, the variable was not from the command line. Ignore it,
19414       # but warn the user (except for BASH, which is always set by the calling BASH).
19415       if test "xMAKE" != xBASH; then
19416         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
19417 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
19418       fi
19419       # Try to locate tool using the code snippet
19420 
19421     # Try our hardest to locate a correct version of GNU make
19422     for ac_prog in gmake
19423 do
19424   # Extract the first word of "$ac_prog", so it can be a program name with args.
19425 set dummy $ac_prog; ac_word=$2
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19427 $as_echo_n "checking for $ac_word... " >&6; }
19428 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
19429   $as_echo_n "(cached) " >&6
19430 else
19431   case $CHECK_GMAKE in
19432   [\\/]* | ?:[\\/]*)
19433   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
19434   ;;
19435   *)
19436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437 for as_dir in $PATH
19438 do
19439   IFS=$as_save_IFS
19440   test -z "$as_dir" && as_dir=.
19441     for ac_exec_ext in '' $ac_executable_extensions; do
19442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19443     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19445     break 2
19446   fi
19447 done
19448   done
19449 IFS=$as_save_IFS
19450 
19451   ;;
19452 esac
19453 fi
19454 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
19455 if test -n "$CHECK_GMAKE"; then
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
19457 $as_echo "$CHECK_GMAKE" >&6; }
19458 else
19459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19460 $as_echo "no" >&6; }
19461 fi
19462 
19463 
19464   test -n "$CHECK_GMAKE" && break
19465 done
19466 
19467 
19468   MAKE_CANDIDATE=""$CHECK_GMAKE""
19469   DESCRIPTION="gmake in PATH"
19470 
19471   # On Cygwin, we require a newer version of make than on other platforms
19472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19473     MAKE_VERSION_EXPR="-e 4\."
19474     MAKE_REQUIRED_VERSION="4.0"
19475    else
19476     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19477     MAKE_REQUIRED_VERSION="3.81"
19478   fi
19479 
19480   if test "x$MAKE_CANDIDATE" != x; then
19481     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19482 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19483     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19484     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19485     if test "x$IS_GNU_MAKE" = x; then
19486       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19487 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19488     else
19489       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19490       if test "x$IS_MODERN_MAKE" = x; then
19491         { $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
19492 $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;}
19493       else
19494         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19495           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19496             MAKE_EXPECTED_ENV='cygwin'
19497           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19498             MAKE_EXPECTED_ENV='msys'
19499           else
19500             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19501           fi
19502           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19503           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19504         else
19505           # Not relevant for non-Windows
19506           IS_MAKE_CORRECT_ENV=true
19507         fi
19508         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19509           { $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
19510 $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;}
19511         else
19512           FOUND_MAKE=$MAKE_CANDIDATE
19513 
19514   # Only process if variable expands to non-empty
19515 
19516   if test "x$FOUND_MAKE" != x; then
19517     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19518 
19519   # First separate the path from the arguments. This will split at the first
19520   # space.
19521   complete="$FOUND_MAKE"
19522   path="${complete%% *}"
19523   tmp="$complete EOL"
19524   arguments="${tmp#* }"
19525 
19526   # Input might be given as Windows format, start by converting to
19527   # unix format.
19528   new_path=`$CYGPATH -u "$path"`
19529 
19530   # Now try to locate executable using which
19531   new_path=`$WHICH "$new_path" 2> /dev/null`
19532   # bat and cmd files are not always considered executable in cygwin causing which
19533   # to not find them
19534   if test "x$new_path" = x \
19535       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19536       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19537     new_path=`$CYGPATH -u "$path"`
19538   fi
19539   if test "x$new_path" = x; then
19540     # Oops. Which didn't find the executable.
19541     # The splitting of arguments from the executable at a space might have been incorrect,
19542     # since paths with space are more likely in Windows. Give it another try with the whole
19543     # argument.
19544     path="$complete"
19545     arguments="EOL"
19546     new_path=`$CYGPATH -u "$path"`
19547     new_path=`$WHICH "$new_path" 2> /dev/null`
19548     # bat and cmd files are not always considered executable in cygwin causing which
19549     # to not find them
19550     if test "x$new_path" = x \
19551         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19552         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19553       new_path=`$CYGPATH -u "$path"`
19554     fi
19555     if test "x$new_path" = x; then
19556       # It's still not found. Now this is an unrecoverable error.
19557       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19558 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19559       has_space=`$ECHO "$complete" | $GREP " "`
19560       if test "x$has_space" != x; then
19561         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19562 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19563       fi
19564       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19565     fi
19566   fi
19567 
19568   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19569   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19570   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19571   # "foo.exe" is OK but "foo" is an error.
19572   #
19573   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19574   # It is also a way to make sure we got the proper file name for the real test later on.
19575   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19576   if test "x$test_shortpath" = x; then
19577     # Short path failed, file does not exist as specified.
19578     # Try adding .exe or .cmd
19579     if test -f "${new_path}.exe"; then
19580       input_to_shortpath="${new_path}.exe"
19581     elif test -f "${new_path}.cmd"; then
19582       input_to_shortpath="${new_path}.cmd"
19583     else
19584       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19585 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19586       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19587 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19588       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19589     fi
19590   else
19591     input_to_shortpath="$new_path"
19592   fi
19593 
19594   # Call helper function which possibly converts this using DOS-style short mode.
19595   # If so, the updated path is stored in $new_path.
19596   new_path="$input_to_shortpath"
19597 
19598   input_path="$input_to_shortpath"
19599   # Check if we need to convert this using DOS-style short mode. If the path
19600   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19601   # take no chances and rewrite it.
19602   # Note: m4 eats our [], so we need to use [ and ] instead.
19603   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19604   if test "x$has_forbidden_chars" != x; then
19605     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19606     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19607     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19608     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19609       # Going to short mode and back again did indeed matter. Since short mode is
19610       # case insensitive, let's make it lowercase to improve readability.
19611       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19612       # Now convert it back to Unix-style (cygpath)
19613       input_path=`$CYGPATH -u "$shortmode_path"`
19614       new_path="$input_path"
19615     fi
19616   fi
19617 
19618   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19619   if test "x$test_cygdrive_prefix" = x; then
19620     # As a simple fix, exclude /usr/bin since it's not a real path.
19621     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19622       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19623       # a path prefixed by /cygdrive for fixpath to work.
19624       new_path="$CYGWIN_ROOT_PATH$input_path"
19625     fi
19626   fi
19627 
19628   # remove trailing .exe if any
19629   new_path="${new_path/%.exe/}"
19630 
19631     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19632 
19633   # First separate the path from the arguments. This will split at the first
19634   # space.
19635   complete="$FOUND_MAKE"
19636   path="${complete%% *}"
19637   tmp="$complete EOL"
19638   arguments="${tmp#* }"
19639 
19640   # Input might be given as Windows format, start by converting to
19641   # unix format.
19642   new_path="$path"
19643 
19644   windows_path="$new_path"
19645   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19646     unix_path=`$CYGPATH -u "$windows_path"`
19647     new_path="$unix_path"
19648   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19649     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19650     new_path="$unix_path"
19651   fi
19652 
19653 
19654   # Now try to locate executable using which
19655   new_path=`$WHICH "$new_path" 2> /dev/null`
19656 
19657   if test "x$new_path" = x; then
19658     # Oops. Which didn't find the executable.
19659     # The splitting of arguments from the executable at a space might have been incorrect,
19660     # since paths with space are more likely in Windows. Give it another try with the whole
19661     # argument.
19662     path="$complete"
19663     arguments="EOL"
19664     new_path="$path"
19665 
19666   windows_path="$new_path"
19667   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19668     unix_path=`$CYGPATH -u "$windows_path"`
19669     new_path="$unix_path"
19670   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19671     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19672     new_path="$unix_path"
19673   fi
19674 
19675 
19676     new_path=`$WHICH "$new_path" 2> /dev/null`
19677     # bat and cmd files are not always considered executable in MSYS causing which
19678     # to not find them
19679     if test "x$new_path" = x \
19680         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19681         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19682       new_path="$path"
19683 
19684   windows_path="$new_path"
19685   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19686     unix_path=`$CYGPATH -u "$windows_path"`
19687     new_path="$unix_path"
19688   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19689     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19690     new_path="$unix_path"
19691   fi
19692 
19693     fi
19694 
19695     if test "x$new_path" = x; then
19696       # It's still not found. Now this is an unrecoverable error.
19697       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19698 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19699       has_space=`$ECHO "$complete" | $GREP " "`
19700       if test "x$has_space" != x; then
19701         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19702 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19703       fi
19704       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19705     fi
19706   fi
19707 
19708   # Now new_path has a complete unix path to the binary
19709   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19710     # Keep paths in /bin as-is, but remove trailing .exe if any
19711     new_path="${new_path/%.exe/}"
19712     # Do not save /bin paths to all_fixpath_prefixes!
19713   else
19714     # Not in mixed or Windows style, start by that.
19715     new_path=`cmd //c echo $new_path`
19716 
19717   input_path="$new_path"
19718   # Check if we need to convert this using DOS-style short mode. If the path
19719   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19720   # take no chances and rewrite it.
19721   # Note: m4 eats our [], so we need to use [ and ] instead.
19722   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19723   if test "x$has_forbidden_chars" != x; then
19724     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19725     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19726   fi
19727 
19728     # Output is in $new_path
19729 
19730   windows_path="$new_path"
19731   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19732     unix_path=`$CYGPATH -u "$windows_path"`
19733     new_path="$unix_path"
19734   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19735     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19736     new_path="$unix_path"
19737   fi
19738 
19739     # remove trailing .exe if any
19740     new_path="${new_path/%.exe/}"
19741 
19742     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19743     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19744   fi
19745 
19746     else
19747       # We're on a unix platform. Hooray! :)
19748       # First separate the path from the arguments. This will split at the first
19749       # space.
19750       complete="$FOUND_MAKE"
19751       path="${complete%% *}"
19752       tmp="$complete EOL"
19753       arguments="${tmp#* }"
19754 
19755       # Cannot rely on the command "which" here since it doesn't always work.
19756       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19757       if test -z "$is_absolute_path"; then
19758         # Path to executable is not absolute. Find it.
19759         IFS_save="$IFS"
19760         IFS=:
19761         for p in $PATH; do
19762           if test -f "$p/$path" && test -x "$p/$path"; then
19763             new_path="$p/$path"
19764             break
19765           fi
19766         done
19767         IFS="$IFS_save"
19768       else
19769         # This is an absolute path, we can use it without further modifications.
19770         new_path="$path"
19771       fi
19772 
19773       if test "x$new_path" = x; then
19774         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19775 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19776         has_space=`$ECHO "$complete" | $GREP " "`
19777         if test "x$has_space" != x; then
19778           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19779 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19780         fi
19781         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19782       fi
19783     fi
19784 
19785     # Now join together the path and the arguments once again
19786     if test "x$arguments" != xEOL; then
19787       new_complete="$new_path ${arguments% *}"
19788     else
19789       new_complete="$new_path"
19790     fi
19791 
19792     if test "x$complete" != "x$new_complete"; then
19793       FOUND_MAKE="$new_complete"
19794       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19795 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19796     fi
19797   fi
19798 
19799         fi
19800       fi
19801     fi
19802   fi
19803 
19804 
19805     if test "x$FOUND_MAKE" = x; then
19806       for ac_prog in make
19807 do
19808   # Extract the first word of "$ac_prog", so it can be a program name with args.
19809 set dummy $ac_prog; ac_word=$2
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19811 $as_echo_n "checking for $ac_word... " >&6; }
19812 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19813   $as_echo_n "(cached) " >&6
19814 else
19815   case $CHECK_MAKE in
19816   [\\/]* | ?:[\\/]*)
19817   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19818   ;;
19819   *)
19820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19821 for as_dir in $PATH
19822 do
19823   IFS=$as_save_IFS
19824   test -z "$as_dir" && as_dir=.
19825     for ac_exec_ext in '' $ac_executable_extensions; do
19826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19827     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19829     break 2
19830   fi
19831 done
19832   done
19833 IFS=$as_save_IFS
19834 
19835   ;;
19836 esac
19837 fi
19838 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19839 if test -n "$CHECK_MAKE"; then
19840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19841 $as_echo "$CHECK_MAKE" >&6; }
19842 else
19843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19844 $as_echo "no" >&6; }
19845 fi
19846 
19847 
19848   test -n "$CHECK_MAKE" && break
19849 done
19850 
19851 
19852   MAKE_CANDIDATE=""$CHECK_MAKE""
19853   DESCRIPTION="make in PATH"
19854 
19855   # On Cygwin, we require a newer version of make than on other platforms
19856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19857     MAKE_VERSION_EXPR="-e 4\."
19858     MAKE_REQUIRED_VERSION="4.0"
19859    else
19860     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19861     MAKE_REQUIRED_VERSION="3.81"
19862   fi
19863 
19864   if test "x$MAKE_CANDIDATE" != x; then
19865     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19866 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19867     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19868     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19869     if test "x$IS_GNU_MAKE" = x; then
19870       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19871 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19872     else
19873       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19874       if test "x$IS_MODERN_MAKE" = x; then
19875         { $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
19876 $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;}
19877       else
19878         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19879           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19880             MAKE_EXPECTED_ENV='cygwin'
19881           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19882             MAKE_EXPECTED_ENV='msys'
19883           else
19884             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19885           fi
19886           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19887           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19888         else
19889           # Not relevant for non-Windows
19890           IS_MAKE_CORRECT_ENV=true
19891         fi
19892         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19893           { $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
19894 $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;}
19895         else
19896           FOUND_MAKE=$MAKE_CANDIDATE
19897 
19898   # Only process if variable expands to non-empty
19899 
19900   if test "x$FOUND_MAKE" != x; then
19901     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19902 
19903   # First separate the path from the arguments. This will split at the first
19904   # space.
19905   complete="$FOUND_MAKE"
19906   path="${complete%% *}"
19907   tmp="$complete EOL"
19908   arguments="${tmp#* }"
19909 
19910   # Input might be given as Windows format, start by converting to
19911   # unix format.
19912   new_path=`$CYGPATH -u "$path"`
19913 
19914   # Now try to locate executable using which
19915   new_path=`$WHICH "$new_path" 2> /dev/null`
19916   # bat and cmd files are not always considered executable in cygwin causing which
19917   # to not find them
19918   if test "x$new_path" = x \
19919       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19920       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19921     new_path=`$CYGPATH -u "$path"`
19922   fi
19923   if test "x$new_path" = x; then
19924     # Oops. Which didn't find the executable.
19925     # The splitting of arguments from the executable at a space might have been incorrect,
19926     # since paths with space are more likely in Windows. Give it another try with the whole
19927     # argument.
19928     path="$complete"
19929     arguments="EOL"
19930     new_path=`$CYGPATH -u "$path"`
19931     new_path=`$WHICH "$new_path" 2> /dev/null`
19932     # bat and cmd files are not always considered executable in cygwin causing which
19933     # to not find them
19934     if test "x$new_path" = x \
19935         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19936         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19937       new_path=`$CYGPATH -u "$path"`
19938     fi
19939     if test "x$new_path" = x; then
19940       # It's still not found. Now this is an unrecoverable error.
19941       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19942 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19943       has_space=`$ECHO "$complete" | $GREP " "`
19944       if test "x$has_space" != x; then
19945         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19946 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19947       fi
19948       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19949     fi
19950   fi
19951 
19952   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19953   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19954   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19955   # "foo.exe" is OK but "foo" is an error.
19956   #
19957   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19958   # It is also a way to make sure we got the proper file name for the real test later on.
19959   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19960   if test "x$test_shortpath" = x; then
19961     # Short path failed, file does not exist as specified.
19962     # Try adding .exe or .cmd
19963     if test -f "${new_path}.exe"; then
19964       input_to_shortpath="${new_path}.exe"
19965     elif test -f "${new_path}.cmd"; then
19966       input_to_shortpath="${new_path}.cmd"
19967     else
19968       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19969 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19970       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19971 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19972       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19973     fi
19974   else
19975     input_to_shortpath="$new_path"
19976   fi
19977 
19978   # Call helper function which possibly converts this using DOS-style short mode.
19979   # If so, the updated path is stored in $new_path.
19980   new_path="$input_to_shortpath"
19981 
19982   input_path="$input_to_shortpath"
19983   # Check if we need to convert this using DOS-style short mode. If the path
19984   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19985   # take no chances and rewrite it.
19986   # Note: m4 eats our [], so we need to use [ and ] instead.
19987   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19988   if test "x$has_forbidden_chars" != x; then
19989     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19990     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19991     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19992     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19993       # Going to short mode and back again did indeed matter. Since short mode is
19994       # case insensitive, let's make it lowercase to improve readability.
19995       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19996       # Now convert it back to Unix-style (cygpath)
19997       input_path=`$CYGPATH -u "$shortmode_path"`
19998       new_path="$input_path"
19999     fi
20000   fi
20001 
20002   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20003   if test "x$test_cygdrive_prefix" = x; then
20004     # As a simple fix, exclude /usr/bin since it's not a real path.
20005     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20006       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20007       # a path prefixed by /cygdrive for fixpath to work.
20008       new_path="$CYGWIN_ROOT_PATH$input_path"
20009     fi
20010   fi
20011 
20012   # remove trailing .exe if any
20013   new_path="${new_path/%.exe/}"
20014 
20015     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20016 
20017   # First separate the path from the arguments. This will split at the first
20018   # space.
20019   complete="$FOUND_MAKE"
20020   path="${complete%% *}"
20021   tmp="$complete EOL"
20022   arguments="${tmp#* }"
20023 
20024   # Input might be given as Windows format, start by converting to
20025   # unix format.
20026   new_path="$path"
20027 
20028   windows_path="$new_path"
20029   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20030     unix_path=`$CYGPATH -u "$windows_path"`
20031     new_path="$unix_path"
20032   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20033     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20034     new_path="$unix_path"
20035   fi
20036 
20037 
20038   # Now try to locate executable using which
20039   new_path=`$WHICH "$new_path" 2> /dev/null`
20040 
20041   if test "x$new_path" = x; then
20042     # Oops. Which didn't find the executable.
20043     # The splitting of arguments from the executable at a space might have been incorrect,
20044     # since paths with space are more likely in Windows. Give it another try with the whole
20045     # argument.
20046     path="$complete"
20047     arguments="EOL"
20048     new_path="$path"
20049 
20050   windows_path="$new_path"
20051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20052     unix_path=`$CYGPATH -u "$windows_path"`
20053     new_path="$unix_path"
20054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20056     new_path="$unix_path"
20057   fi
20058 
20059 
20060     new_path=`$WHICH "$new_path" 2> /dev/null`
20061     # bat and cmd files are not always considered executable in MSYS causing which
20062     # to not find them
20063     if test "x$new_path" = x \
20064         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20065         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20066       new_path="$path"
20067 
20068   windows_path="$new_path"
20069   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20070     unix_path=`$CYGPATH -u "$windows_path"`
20071     new_path="$unix_path"
20072   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20073     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20074     new_path="$unix_path"
20075   fi
20076 
20077     fi
20078 
20079     if test "x$new_path" = x; then
20080       # It's still not found. Now this is an unrecoverable error.
20081       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20082 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20083       has_space=`$ECHO "$complete" | $GREP " "`
20084       if test "x$has_space" != x; then
20085         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20086 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20087       fi
20088       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20089     fi
20090   fi
20091 
20092   # Now new_path has a complete unix path to the binary
20093   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20094     # Keep paths in /bin as-is, but remove trailing .exe if any
20095     new_path="${new_path/%.exe/}"
20096     # Do not save /bin paths to all_fixpath_prefixes!
20097   else
20098     # Not in mixed or Windows style, start by that.
20099     new_path=`cmd //c echo $new_path`
20100 
20101   input_path="$new_path"
20102   # Check if we need to convert this using DOS-style short mode. If the path
20103   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20104   # take no chances and rewrite it.
20105   # Note: m4 eats our [], so we need to use [ and ] instead.
20106   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20107   if test "x$has_forbidden_chars" != x; then
20108     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20109     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20110   fi
20111 
20112     # Output is in $new_path
20113 
20114   windows_path="$new_path"
20115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20116     unix_path=`$CYGPATH -u "$windows_path"`
20117     new_path="$unix_path"
20118   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20119     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20120     new_path="$unix_path"
20121   fi
20122 
20123     # remove trailing .exe if any
20124     new_path="${new_path/%.exe/}"
20125 
20126     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20127     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20128   fi
20129 
20130     else
20131       # We're on a unix platform. Hooray! :)
20132       # First separate the path from the arguments. This will split at the first
20133       # space.
20134       complete="$FOUND_MAKE"
20135       path="${complete%% *}"
20136       tmp="$complete EOL"
20137       arguments="${tmp#* }"
20138 
20139       # Cannot rely on the command "which" here since it doesn't always work.
20140       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20141       if test -z "$is_absolute_path"; then
20142         # Path to executable is not absolute. Find it.
20143         IFS_save="$IFS"
20144         IFS=:
20145         for p in $PATH; do
20146           if test -f "$p/$path" && test -x "$p/$path"; then
20147             new_path="$p/$path"
20148             break
20149           fi
20150         done
20151         IFS="$IFS_save"
20152       else
20153         # This is an absolute path, we can use it without further modifications.
20154         new_path="$path"
20155       fi
20156 
20157       if test "x$new_path" = x; then
20158         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20159 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20160         has_space=`$ECHO "$complete" | $GREP " "`
20161         if test "x$has_space" != x; then
20162           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20163 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20164         fi
20165         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20166       fi
20167     fi
20168 
20169     # Now join together the path and the arguments once again
20170     if test "x$arguments" != xEOL; then
20171       new_complete="$new_path ${arguments% *}"
20172     else
20173       new_complete="$new_path"
20174     fi
20175 
20176     if test "x$complete" != "x$new_complete"; then
20177       FOUND_MAKE="$new_complete"
20178       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20179 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20180     fi
20181   fi
20182 
20183         fi
20184       fi
20185     fi
20186   fi
20187 
20188     fi
20189 
20190     if test "x$FOUND_MAKE" = x; then
20191       if test "x$TOOLCHAIN_PATH" != x; then
20192         # We have a toolchain path, check that as well before giving up.
20193         OLD_PATH=$PATH
20194         PATH=$TOOLCHAIN_PATH:$PATH
20195         for ac_prog in gmake
20196 do
20197   # Extract the first word of "$ac_prog", so it can be a program name with args.
20198 set dummy $ac_prog; ac_word=$2
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20200 $as_echo_n "checking for $ac_word... " >&6; }
20201 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
20202   $as_echo_n "(cached) " >&6
20203 else
20204   case $CHECK_TOOLSDIR_GMAKE in
20205   [\\/]* | ?:[\\/]*)
20206   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
20207   ;;
20208   *)
20209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20210 for as_dir in $PATH
20211 do
20212   IFS=$as_save_IFS
20213   test -z "$as_dir" && as_dir=.
20214     for ac_exec_ext in '' $ac_executable_extensions; do
20215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20216     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
20217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20218     break 2
20219   fi
20220 done
20221   done
20222 IFS=$as_save_IFS
20223 
20224   ;;
20225 esac
20226 fi
20227 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
20228 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
20229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
20230 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
20231 else
20232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20233 $as_echo "no" >&6; }
20234 fi
20235 
20236 
20237   test -n "$CHECK_TOOLSDIR_GMAKE" && break
20238 done
20239 
20240 
20241   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
20242   DESCRIPTION="gmake in tools-dir"
20243 
20244   # On Cygwin, we require a newer version of make than on other platforms
20245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20246     MAKE_VERSION_EXPR="-e 4\."
20247     MAKE_REQUIRED_VERSION="4.0"
20248    else
20249     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20250     MAKE_REQUIRED_VERSION="3.81"
20251   fi
20252 
20253   if test "x$MAKE_CANDIDATE" != x; then
20254     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20255 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20256     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20257     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20258     if test "x$IS_GNU_MAKE" = x; then
20259       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20260 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20261     else
20262       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20263       if test "x$IS_MODERN_MAKE" = x; then
20264         { $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
20265 $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;}
20266       else
20267         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20268           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20269             MAKE_EXPECTED_ENV='cygwin'
20270           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20271             MAKE_EXPECTED_ENV='msys'
20272           else
20273             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20274           fi
20275           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20276           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20277         else
20278           # Not relevant for non-Windows
20279           IS_MAKE_CORRECT_ENV=true
20280         fi
20281         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20282           { $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
20283 $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;}
20284         else
20285           FOUND_MAKE=$MAKE_CANDIDATE
20286 
20287   # Only process if variable expands to non-empty
20288 
20289   if test "x$FOUND_MAKE" != x; then
20290     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20291 
20292   # First separate the path from the arguments. This will split at the first
20293   # space.
20294   complete="$FOUND_MAKE"
20295   path="${complete%% *}"
20296   tmp="$complete EOL"
20297   arguments="${tmp#* }"
20298 
20299   # Input might be given as Windows format, start by converting to
20300   # unix format.
20301   new_path=`$CYGPATH -u "$path"`
20302 
20303   # Now try to locate executable using which
20304   new_path=`$WHICH "$new_path" 2> /dev/null`
20305   # bat and cmd files are not always considered executable in cygwin causing which
20306   # to not find them
20307   if test "x$new_path" = x \
20308       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20309       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20310     new_path=`$CYGPATH -u "$path"`
20311   fi
20312   if test "x$new_path" = x; then
20313     # Oops. Which didn't find the executable.
20314     # The splitting of arguments from the executable at a space might have been incorrect,
20315     # since paths with space are more likely in Windows. Give it another try with the whole
20316     # argument.
20317     path="$complete"
20318     arguments="EOL"
20319     new_path=`$CYGPATH -u "$path"`
20320     new_path=`$WHICH "$new_path" 2> /dev/null`
20321     # bat and cmd files are not always considered executable in cygwin causing which
20322     # to not find them
20323     if test "x$new_path" = x \
20324         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20325         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20326       new_path=`$CYGPATH -u "$path"`
20327     fi
20328     if test "x$new_path" = x; then
20329       # It's still not found. Now this is an unrecoverable error.
20330       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20331 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20332       has_space=`$ECHO "$complete" | $GREP " "`
20333       if test "x$has_space" != x; then
20334         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20335 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20336       fi
20337       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20338     fi
20339   fi
20340 
20341   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20342   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20343   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20344   # "foo.exe" is OK but "foo" is an error.
20345   #
20346   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20347   # It is also a way to make sure we got the proper file name for the real test later on.
20348   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20349   if test "x$test_shortpath" = x; then
20350     # Short path failed, file does not exist as specified.
20351     # Try adding .exe or .cmd
20352     if test -f "${new_path}.exe"; then
20353       input_to_shortpath="${new_path}.exe"
20354     elif test -f "${new_path}.cmd"; then
20355       input_to_shortpath="${new_path}.cmd"
20356     else
20357       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20358 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20359       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20360 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20361       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20362     fi
20363   else
20364     input_to_shortpath="$new_path"
20365   fi
20366 
20367   # Call helper function which possibly converts this using DOS-style short mode.
20368   # If so, the updated path is stored in $new_path.
20369   new_path="$input_to_shortpath"
20370 
20371   input_path="$input_to_shortpath"
20372   # Check if we need to convert this using DOS-style short mode. If the path
20373   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20374   # take no chances and rewrite it.
20375   # Note: m4 eats our [], so we need to use [ and ] instead.
20376   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20377   if test "x$has_forbidden_chars" != x; then
20378     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20379     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20380     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20381     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20382       # Going to short mode and back again did indeed matter. Since short mode is
20383       # case insensitive, let's make it lowercase to improve readability.
20384       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20385       # Now convert it back to Unix-style (cygpath)
20386       input_path=`$CYGPATH -u "$shortmode_path"`
20387       new_path="$input_path"
20388     fi
20389   fi
20390 
20391   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20392   if test "x$test_cygdrive_prefix" = x; then
20393     # As a simple fix, exclude /usr/bin since it's not a real path.
20394     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20395       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20396       # a path prefixed by /cygdrive for fixpath to work.
20397       new_path="$CYGWIN_ROOT_PATH$input_path"
20398     fi
20399   fi
20400 
20401   # remove trailing .exe if any
20402   new_path="${new_path/%.exe/}"
20403 
20404     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20405 
20406   # First separate the path from the arguments. This will split at the first
20407   # space.
20408   complete="$FOUND_MAKE"
20409   path="${complete%% *}"
20410   tmp="$complete EOL"
20411   arguments="${tmp#* }"
20412 
20413   # Input might be given as Windows format, start by converting to
20414   # unix format.
20415   new_path="$path"
20416 
20417   windows_path="$new_path"
20418   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20419     unix_path=`$CYGPATH -u "$windows_path"`
20420     new_path="$unix_path"
20421   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20422     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20423     new_path="$unix_path"
20424   fi
20425 
20426 
20427   # Now try to locate executable using which
20428   new_path=`$WHICH "$new_path" 2> /dev/null`
20429 
20430   if test "x$new_path" = x; then
20431     # Oops. Which didn't find the executable.
20432     # The splitting of arguments from the executable at a space might have been incorrect,
20433     # since paths with space are more likely in Windows. Give it another try with the whole
20434     # argument.
20435     path="$complete"
20436     arguments="EOL"
20437     new_path="$path"
20438 
20439   windows_path="$new_path"
20440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20441     unix_path=`$CYGPATH -u "$windows_path"`
20442     new_path="$unix_path"
20443   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20444     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20445     new_path="$unix_path"
20446   fi
20447 
20448 
20449     new_path=`$WHICH "$new_path" 2> /dev/null`
20450     # bat and cmd files are not always considered executable in MSYS causing which
20451     # to not find them
20452     if test "x$new_path" = x \
20453         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20454         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20455       new_path="$path"
20456 
20457   windows_path="$new_path"
20458   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20459     unix_path=`$CYGPATH -u "$windows_path"`
20460     new_path="$unix_path"
20461   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20462     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20463     new_path="$unix_path"
20464   fi
20465 
20466     fi
20467 
20468     if test "x$new_path" = x; then
20469       # It's still not found. Now this is an unrecoverable error.
20470       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20471 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20472       has_space=`$ECHO "$complete" | $GREP " "`
20473       if test "x$has_space" != x; then
20474         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20475 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20476       fi
20477       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20478     fi
20479   fi
20480 
20481   # Now new_path has a complete unix path to the binary
20482   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20483     # Keep paths in /bin as-is, but remove trailing .exe if any
20484     new_path="${new_path/%.exe/}"
20485     # Do not save /bin paths to all_fixpath_prefixes!
20486   else
20487     # Not in mixed or Windows style, start by that.
20488     new_path=`cmd //c echo $new_path`
20489 
20490   input_path="$new_path"
20491   # Check if we need to convert this using DOS-style short mode. If the path
20492   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20493   # take no chances and rewrite it.
20494   # Note: m4 eats our [], so we need to use [ and ] instead.
20495   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20496   if test "x$has_forbidden_chars" != x; then
20497     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20498     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20499   fi
20500 
20501     # Output is in $new_path
20502 
20503   windows_path="$new_path"
20504   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20505     unix_path=`$CYGPATH -u "$windows_path"`
20506     new_path="$unix_path"
20507   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20508     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20509     new_path="$unix_path"
20510   fi
20511 
20512     # remove trailing .exe if any
20513     new_path="${new_path/%.exe/}"
20514 
20515     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20516     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20517   fi
20518 
20519     else
20520       # We're on a unix platform. Hooray! :)
20521       # First separate the path from the arguments. This will split at the first
20522       # space.
20523       complete="$FOUND_MAKE"
20524       path="${complete%% *}"
20525       tmp="$complete EOL"
20526       arguments="${tmp#* }"
20527 
20528       # Cannot rely on the command "which" here since it doesn't always work.
20529       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20530       if test -z "$is_absolute_path"; then
20531         # Path to executable is not absolute. Find it.
20532         IFS_save="$IFS"
20533         IFS=:
20534         for p in $PATH; do
20535           if test -f "$p/$path" && test -x "$p/$path"; then
20536             new_path="$p/$path"
20537             break
20538           fi
20539         done
20540         IFS="$IFS_save"
20541       else
20542         # This is an absolute path, we can use it without further modifications.
20543         new_path="$path"
20544       fi
20545 
20546       if test "x$new_path" = x; then
20547         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20548 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20549         has_space=`$ECHO "$complete" | $GREP " "`
20550         if test "x$has_space" != x; then
20551           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20552 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20553         fi
20554         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20555       fi
20556     fi
20557 
20558     # Now join together the path and the arguments once again
20559     if test "x$arguments" != xEOL; then
20560       new_complete="$new_path ${arguments% *}"
20561     else
20562       new_complete="$new_path"
20563     fi
20564 
20565     if test "x$complete" != "x$new_complete"; then
20566       FOUND_MAKE="$new_complete"
20567       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20568 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20569     fi
20570   fi
20571 
20572         fi
20573       fi
20574     fi
20575   fi
20576 
20577         if test "x$FOUND_MAKE" = x; then
20578           for ac_prog in make
20579 do
20580   # Extract the first word of "$ac_prog", so it can be a program name with args.
20581 set dummy $ac_prog; ac_word=$2
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20583 $as_echo_n "checking for $ac_word... " >&6; }
20584 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
20585   $as_echo_n "(cached) " >&6
20586 else
20587   case $CHECK_TOOLSDIR_MAKE in
20588   [\\/]* | ?:[\\/]*)
20589   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
20590   ;;
20591   *)
20592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20593 for as_dir in $PATH
20594 do
20595   IFS=$as_save_IFS
20596   test -z "$as_dir" && as_dir=.
20597     for ac_exec_ext in '' $ac_executable_extensions; do
20598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20599     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
20600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20601     break 2
20602   fi
20603 done
20604   done
20605 IFS=$as_save_IFS
20606 
20607   ;;
20608 esac
20609 fi
20610 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
20611 if test -n "$CHECK_TOOLSDIR_MAKE"; then
20612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
20613 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
20614 else
20615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20616 $as_echo "no" >&6; }
20617 fi
20618 
20619 
20620   test -n "$CHECK_TOOLSDIR_MAKE" && break
20621 done
20622 
20623 
20624   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
20625   DESCRIPTION="make in tools-dir"
20626 
20627   # On Cygwin, we require a newer version of make than on other platforms
20628   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20629     MAKE_VERSION_EXPR="-e 4\."
20630     MAKE_REQUIRED_VERSION="4.0"
20631    else
20632     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20633     MAKE_REQUIRED_VERSION="3.81"
20634   fi
20635 
20636   if test "x$MAKE_CANDIDATE" != x; then
20637     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20638 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20639     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20640     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20641     if test "x$IS_GNU_MAKE" = x; then
20642       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20643 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20644     else
20645       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20646       if test "x$IS_MODERN_MAKE" = x; then
20647         { $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
20648 $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;}
20649       else
20650         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20651           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20652             MAKE_EXPECTED_ENV='cygwin'
20653           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20654             MAKE_EXPECTED_ENV='msys'
20655           else
20656             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20657           fi
20658           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20659           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20660         else
20661           # Not relevant for non-Windows
20662           IS_MAKE_CORRECT_ENV=true
20663         fi
20664         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20665           { $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
20666 $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;}
20667         else
20668           FOUND_MAKE=$MAKE_CANDIDATE
20669 
20670   # Only process if variable expands to non-empty
20671 
20672   if test "x$FOUND_MAKE" != x; then
20673     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20674 
20675   # First separate the path from the arguments. This will split at the first
20676   # space.
20677   complete="$FOUND_MAKE"
20678   path="${complete%% *}"
20679   tmp="$complete EOL"
20680   arguments="${tmp#* }"
20681 
20682   # Input might be given as Windows format, start by converting to
20683   # unix format.
20684   new_path=`$CYGPATH -u "$path"`
20685 
20686   # Now try to locate executable using which
20687   new_path=`$WHICH "$new_path" 2> /dev/null`
20688   # bat and cmd files are not always considered executable in cygwin causing which
20689   # to not find them
20690   if test "x$new_path" = x \
20691       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20692       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20693     new_path=`$CYGPATH -u "$path"`
20694   fi
20695   if test "x$new_path" = x; then
20696     # Oops. Which didn't find the executable.
20697     # The splitting of arguments from the executable at a space might have been incorrect,
20698     # since paths with space are more likely in Windows. Give it another try with the whole
20699     # argument.
20700     path="$complete"
20701     arguments="EOL"
20702     new_path=`$CYGPATH -u "$path"`
20703     new_path=`$WHICH "$new_path" 2> /dev/null`
20704     # bat and cmd files are not always considered executable in cygwin causing which
20705     # to not find them
20706     if test "x$new_path" = x \
20707         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20708         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20709       new_path=`$CYGPATH -u "$path"`
20710     fi
20711     if test "x$new_path" = x; then
20712       # It's still not found. Now this is an unrecoverable error.
20713       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20714 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20715       has_space=`$ECHO "$complete" | $GREP " "`
20716       if test "x$has_space" != x; then
20717         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20718 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20719       fi
20720       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20721     fi
20722   fi
20723 
20724   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20725   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20726   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20727   # "foo.exe" is OK but "foo" is an error.
20728   #
20729   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20730   # It is also a way to make sure we got the proper file name for the real test later on.
20731   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20732   if test "x$test_shortpath" = x; then
20733     # Short path failed, file does not exist as specified.
20734     # Try adding .exe or .cmd
20735     if test -f "${new_path}.exe"; then
20736       input_to_shortpath="${new_path}.exe"
20737     elif test -f "${new_path}.cmd"; then
20738       input_to_shortpath="${new_path}.cmd"
20739     else
20740       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20741 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20742       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20743 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20744       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20745     fi
20746   else
20747     input_to_shortpath="$new_path"
20748   fi
20749 
20750   # Call helper function which possibly converts this using DOS-style short mode.
20751   # If so, the updated path is stored in $new_path.
20752   new_path="$input_to_shortpath"
20753 
20754   input_path="$input_to_shortpath"
20755   # Check if we need to convert this using DOS-style short mode. If the path
20756   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20757   # take no chances and rewrite it.
20758   # Note: m4 eats our [], so we need to use [ and ] instead.
20759   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20760   if test "x$has_forbidden_chars" != x; then
20761     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20762     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20763     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20764     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20765       # Going to short mode and back again did indeed matter. Since short mode is
20766       # case insensitive, let's make it lowercase to improve readability.
20767       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20768       # Now convert it back to Unix-style (cygpath)
20769       input_path=`$CYGPATH -u "$shortmode_path"`
20770       new_path="$input_path"
20771     fi
20772   fi
20773 
20774   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20775   if test "x$test_cygdrive_prefix" = x; then
20776     # As a simple fix, exclude /usr/bin since it's not a real path.
20777     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20778       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20779       # a path prefixed by /cygdrive for fixpath to work.
20780       new_path="$CYGWIN_ROOT_PATH$input_path"
20781     fi
20782   fi
20783 
20784   # remove trailing .exe if any
20785   new_path="${new_path/%.exe/}"
20786 
20787     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20788 
20789   # First separate the path from the arguments. This will split at the first
20790   # space.
20791   complete="$FOUND_MAKE"
20792   path="${complete%% *}"
20793   tmp="$complete EOL"
20794   arguments="${tmp#* }"
20795 
20796   # Input might be given as Windows format, start by converting to
20797   # unix format.
20798   new_path="$path"
20799 
20800   windows_path="$new_path"
20801   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20802     unix_path=`$CYGPATH -u "$windows_path"`
20803     new_path="$unix_path"
20804   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20805     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20806     new_path="$unix_path"
20807   fi
20808 
20809 
20810   # Now try to locate executable using which
20811   new_path=`$WHICH "$new_path" 2> /dev/null`
20812 
20813   if test "x$new_path" = x; then
20814     # Oops. Which didn't find the executable.
20815     # The splitting of arguments from the executable at a space might have been incorrect,
20816     # since paths with space are more likely in Windows. Give it another try with the whole
20817     # argument.
20818     path="$complete"
20819     arguments="EOL"
20820     new_path="$path"
20821 
20822   windows_path="$new_path"
20823   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20824     unix_path=`$CYGPATH -u "$windows_path"`
20825     new_path="$unix_path"
20826   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20827     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20828     new_path="$unix_path"
20829   fi
20830 
20831 
20832     new_path=`$WHICH "$new_path" 2> /dev/null`
20833     # bat and cmd files are not always considered executable in MSYS 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="$path"
20839 
20840   windows_path="$new_path"
20841   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20842     unix_path=`$CYGPATH -u "$windows_path"`
20843     new_path="$unix_path"
20844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20845     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20846     new_path="$unix_path"
20847   fi
20848 
20849     fi
20850 
20851     if test "x$new_path" = x; then
20852       # It's still not found. Now this is an unrecoverable error.
20853       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20854 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20855       has_space=`$ECHO "$complete" | $GREP " "`
20856       if test "x$has_space" != x; then
20857         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20858 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20859       fi
20860       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20861     fi
20862   fi
20863 
20864   # Now new_path has a complete unix path to the binary
20865   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20866     # Keep paths in /bin as-is, but remove trailing .exe if any
20867     new_path="${new_path/%.exe/}"
20868     # Do not save /bin paths to all_fixpath_prefixes!
20869   else
20870     # Not in mixed or Windows style, start by that.
20871     new_path=`cmd //c echo $new_path`
20872 
20873   input_path="$new_path"
20874   # Check if we need to convert this using DOS-style short mode. If the path
20875   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20876   # take no chances and rewrite it.
20877   # Note: m4 eats our [], so we need to use [ and ] instead.
20878   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20879   if test "x$has_forbidden_chars" != x; then
20880     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20881     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20882   fi
20883 
20884     # Output is in $new_path
20885 
20886   windows_path="$new_path"
20887   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20888     unix_path=`$CYGPATH -u "$windows_path"`
20889     new_path="$unix_path"
20890   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20891     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20892     new_path="$unix_path"
20893   fi
20894 
20895     # remove trailing .exe if any
20896     new_path="${new_path/%.exe/}"
20897 
20898     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20899     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20900   fi
20901 
20902     else
20903       # We're on a unix platform. Hooray! :)
20904       # First separate the path from the arguments. This will split at the first
20905       # space.
20906       complete="$FOUND_MAKE"
20907       path="${complete%% *}"
20908       tmp="$complete EOL"
20909       arguments="${tmp#* }"
20910 
20911       # Cannot rely on the command "which" here since it doesn't always work.
20912       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20913       if test -z "$is_absolute_path"; then
20914         # Path to executable is not absolute. Find it.
20915         IFS_save="$IFS"
20916         IFS=:
20917         for p in $PATH; do
20918           if test -f "$p/$path" && test -x "$p/$path"; then
20919             new_path="$p/$path"
20920             break
20921           fi
20922         done
20923         IFS="$IFS_save"
20924       else
20925         # This is an absolute path, we can use it without further modifications.
20926         new_path="$path"
20927       fi
20928 
20929       if test "x$new_path" = x; then
20930         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20931 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20932         has_space=`$ECHO "$complete" | $GREP " "`
20933         if test "x$has_space" != x; then
20934           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20935 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20936         fi
20937         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20938       fi
20939     fi
20940 
20941     # Now join together the path and the arguments once again
20942     if test "x$arguments" != xEOL; then
20943       new_complete="$new_path ${arguments% *}"
20944     else
20945       new_complete="$new_path"
20946     fi
20947 
20948     if test "x$complete" != "x$new_complete"; then
20949       FOUND_MAKE="$new_complete"
20950       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20951 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20952     fi
20953   fi
20954 
20955         fi
20956       fi
20957     fi
20958   fi
20959 
20960         fi
20961         PATH=$OLD_PATH
20962       fi
20963     fi
20964 
20965     if test "x$FOUND_MAKE" = x; then
20966       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
20967     fi
20968 
20969     else
20970       # If it succeeded, then it was overridden by the user. We will use it
20971       # for the tool.
20972 
20973       # First remove it from the list of overridden variables, so we can test
20974       # for unknown variables in the end.
20975       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20976 
20977       # Check if we try to supply an empty value
20978       if test "x$MAKE" = x; then
20979         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20980 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20982 $as_echo_n "checking for MAKE... " >&6; }
20983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20984 $as_echo "disabled" >&6; }
20985       else
20986         # Check if the provided tool contains a complete path.
20987         tool_specified="$MAKE"
20988         tool_basename="${tool_specified##*/}"
20989         if test "x$tool_basename" = "x$tool_specified"; then
20990           # A command without a complete path is provided, search $PATH.
20991           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20992 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20993           # Extract the first word of "$tool_basename", so it can be a program name with args.
20994 set dummy $tool_basename; ac_word=$2
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20996 $as_echo_n "checking for $ac_word... " >&6; }
20997 if ${ac_cv_path_MAKE+:} false; then :
20998   $as_echo_n "(cached) " >&6
20999 else
21000   case $MAKE in
21001   [\\/]* | ?:[\\/]*)
21002   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
21003   ;;
21004   *)
21005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21006 for as_dir in $PATH
21007 do
21008   IFS=$as_save_IFS
21009   test -z "$as_dir" && as_dir=.
21010     for ac_exec_ext in '' $ac_executable_extensions; do
21011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21012     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
21013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21014     break 2
21015   fi
21016 done
21017   done
21018 IFS=$as_save_IFS
21019 
21020   ;;
21021 esac
21022 fi
21023 MAKE=$ac_cv_path_MAKE
21024 if test -n "$MAKE"; then
21025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
21026 $as_echo "$MAKE" >&6; }
21027 else
21028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21029 $as_echo "no" >&6; }
21030 fi
21031 
21032 
21033           if test "x$MAKE" = x; then
21034             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21035           fi
21036         else
21037           # Otherwise we believe it is a complete path. Use it as it is.
21038           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
21039 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
21040           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
21041 $as_echo_n "checking for MAKE... " >&6; }
21042           if test ! -x "$tool_specified"; then
21043             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21044 $as_echo "not found" >&6; }
21045             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
21046           fi
21047           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21048 $as_echo "$tool_specified" >&6; }
21049         fi
21050       fi
21051     fi
21052 
21053     # If MAKE was set by user, verify the version
21054 
21055   MAKE_CANDIDATE=""$MAKE""
21056   DESCRIPTION="user supplied MAKE=$MAKE"
21057 
21058   # On Cygwin, we require a newer version of make than on other platforms
21059   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21060     MAKE_VERSION_EXPR="-e 4\."
21061     MAKE_REQUIRED_VERSION="4.0"
21062    else
21063     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
21064     MAKE_REQUIRED_VERSION="3.81"
21065   fi
21066 
21067   if test "x$MAKE_CANDIDATE" != x; then
21068     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
21069 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
21070     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
21071     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
21072     if test "x$IS_GNU_MAKE" = x; then
21073       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
21074 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
21075     else
21076       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
21077       if test "x$IS_MODERN_MAKE" = x; then
21078         { $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
21079 $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;}
21080       else
21081         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
21082           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21083             MAKE_EXPECTED_ENV='cygwin'
21084           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21085             MAKE_EXPECTED_ENV='msys'
21086           else
21087             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
21088           fi
21089           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
21090           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
21091         else
21092           # Not relevant for non-Windows
21093           IS_MAKE_CORRECT_ENV=true
21094         fi
21095         if test "x$IS_MAKE_CORRECT_ENV" = x; then
21096           { $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
21097 $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;}
21098         else
21099           FOUND_MAKE=$MAKE_CANDIDATE
21100 
21101   # Only process if variable expands to non-empty
21102 
21103   if test "x$FOUND_MAKE" != x; then
21104     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21105 
21106   # First separate the path from the arguments. This will split at the first
21107   # space.
21108   complete="$FOUND_MAKE"
21109   path="${complete%% *}"
21110   tmp="$complete EOL"
21111   arguments="${tmp#* }"
21112 
21113   # Input might be given as Windows format, start by converting to
21114   # unix format.
21115   new_path=`$CYGPATH -u "$path"`
21116 
21117   # Now try to locate executable using which
21118   new_path=`$WHICH "$new_path" 2> /dev/null`
21119   # bat and cmd files are not always considered executable in cygwin causing which
21120   # to not find them
21121   if test "x$new_path" = x \
21122       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21123       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21124     new_path=`$CYGPATH -u "$path"`
21125   fi
21126   if test "x$new_path" = x; then
21127     # Oops. Which didn't find the executable.
21128     # The splitting of arguments from the executable at a space might have been incorrect,
21129     # since paths with space are more likely in Windows. Give it another try with the whole
21130     # argument.
21131     path="$complete"
21132     arguments="EOL"
21133     new_path=`$CYGPATH -u "$path"`
21134     new_path=`$WHICH "$new_path" 2> /dev/null`
21135     # bat and cmd files are not always considered executable in cygwin causing which
21136     # to not find them
21137     if test "x$new_path" = x \
21138         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21139         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21140       new_path=`$CYGPATH -u "$path"`
21141     fi
21142     if test "x$new_path" = x; then
21143       # It's still not found. Now this is an unrecoverable error.
21144       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21146       has_space=`$ECHO "$complete" | $GREP " "`
21147       if test "x$has_space" != x; then
21148         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21149 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21150       fi
21151       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21152     fi
21153   fi
21154 
21155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21158   # "foo.exe" is OK but "foo" is an error.
21159   #
21160   # This test is therefore slightly more accurate than "test -f" to check for file presence.
21161   # It is also a way to make sure we got the proper file name for the real test later on.
21162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21163   if test "x$test_shortpath" = x; then
21164     # Short path failed, file does not exist as specified.
21165     # Try adding .exe or .cmd
21166     if test -f "${new_path}.exe"; then
21167       input_to_shortpath="${new_path}.exe"
21168     elif test -f "${new_path}.cmd"; then
21169       input_to_shortpath="${new_path}.cmd"
21170     else
21171       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
21172 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
21173       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
21174 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
21175       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21176     fi
21177   else
21178     input_to_shortpath="$new_path"
21179   fi
21180 
21181   # Call helper function which possibly converts this using DOS-style short mode.
21182   # If so, the updated path is stored in $new_path.
21183   new_path="$input_to_shortpath"
21184 
21185   input_path="$input_to_shortpath"
21186   # Check if we need to convert this using DOS-style short mode. If the path
21187   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21188   # take no chances and rewrite it.
21189   # Note: m4 eats our [], so we need to use [ and ] instead.
21190   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21191   if test "x$has_forbidden_chars" != x; then
21192     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21193     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21194     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21195     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21196       # Going to short mode and back again did indeed matter. Since short mode is
21197       # case insensitive, let's make it lowercase to improve readability.
21198       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21199       # Now convert it back to Unix-style (cygpath)
21200       input_path=`$CYGPATH -u "$shortmode_path"`
21201       new_path="$input_path"
21202     fi
21203   fi
21204 
21205   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21206   if test "x$test_cygdrive_prefix" = x; then
21207     # As a simple fix, exclude /usr/bin since it's not a real path.
21208     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
21209       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21210       # a path prefixed by /cygdrive for fixpath to work.
21211       new_path="$CYGWIN_ROOT_PATH$input_path"
21212     fi
21213   fi
21214 
21215   # remove trailing .exe if any
21216   new_path="${new_path/%.exe/}"
21217 
21218     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21219 
21220   # First separate the path from the arguments. This will split at the first
21221   # space.
21222   complete="$FOUND_MAKE"
21223   path="${complete%% *}"
21224   tmp="$complete EOL"
21225   arguments="${tmp#* }"
21226 
21227   # Input might be given as Windows format, start by converting to
21228   # unix format.
21229   new_path="$path"
21230 
21231   windows_path="$new_path"
21232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21233     unix_path=`$CYGPATH -u "$windows_path"`
21234     new_path="$unix_path"
21235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21237     new_path="$unix_path"
21238   fi
21239 
21240 
21241   # Now try to locate executable using which
21242   new_path=`$WHICH "$new_path" 2> /dev/null`
21243 
21244   if test "x$new_path" = x; then
21245     # Oops. Which didn't find the executable.
21246     # The splitting of arguments from the executable at a space might have been incorrect,
21247     # since paths with space are more likely in Windows. Give it another try with the whole
21248     # argument.
21249     path="$complete"
21250     arguments="EOL"
21251     new_path="$path"
21252 
21253   windows_path="$new_path"
21254   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21255     unix_path=`$CYGPATH -u "$windows_path"`
21256     new_path="$unix_path"
21257   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21258     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21259     new_path="$unix_path"
21260   fi
21261 
21262 
21263     new_path=`$WHICH "$new_path" 2> /dev/null`
21264     # bat and cmd files are not always considered executable in MSYS causing which
21265     # to not find them
21266     if test "x$new_path" = x \
21267         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21268         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21269       new_path="$path"
21270 
21271   windows_path="$new_path"
21272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21273     unix_path=`$CYGPATH -u "$windows_path"`
21274     new_path="$unix_path"
21275   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21276     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21277     new_path="$unix_path"
21278   fi
21279 
21280     fi
21281 
21282     if test "x$new_path" = x; then
21283       # It's still not found. Now this is an unrecoverable error.
21284       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21285 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21286       has_space=`$ECHO "$complete" | $GREP " "`
21287       if test "x$has_space" != x; then
21288         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21289 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21290       fi
21291       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21292     fi
21293   fi
21294 
21295   # Now new_path has a complete unix path to the binary
21296   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
21297     # Keep paths in /bin as-is, but remove trailing .exe if any
21298     new_path="${new_path/%.exe/}"
21299     # Do not save /bin paths to all_fixpath_prefixes!
21300   else
21301     # Not in mixed or Windows style, start by that.
21302     new_path=`cmd //c echo $new_path`
21303 
21304   input_path="$new_path"
21305   # Check if we need to convert this using DOS-style short mode. If the path
21306   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21307   # take no chances and rewrite it.
21308   # Note: m4 eats our [], so we need to use [ and ] instead.
21309   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21310   if test "x$has_forbidden_chars" != x; then
21311     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21312     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21313   fi
21314 
21315     # Output is in $new_path
21316 
21317   windows_path="$new_path"
21318   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21319     unix_path=`$CYGPATH -u "$windows_path"`
21320     new_path="$unix_path"
21321   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21322     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21323     new_path="$unix_path"
21324   fi
21325 
21326     # remove trailing .exe if any
21327     new_path="${new_path/%.exe/}"
21328 
21329     # Save the first 10 bytes of this path to the storage, so fixpath can work.
21330     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21331   fi
21332 
21333     else
21334       # We're on a unix platform. Hooray! :)
21335       # First separate the path from the arguments. This will split at the first
21336       # space.
21337       complete="$FOUND_MAKE"
21338       path="${complete%% *}"
21339       tmp="$complete EOL"
21340       arguments="${tmp#* }"
21341 
21342       # Cannot rely on the command "which" here since it doesn't always work.
21343       is_absolute_path=`$ECHO "$path" | $GREP ^/`
21344       if test -z "$is_absolute_path"; then
21345         # Path to executable is not absolute. Find it.
21346         IFS_save="$IFS"
21347         IFS=:
21348         for p in $PATH; do
21349           if test -f "$p/$path" && test -x "$p/$path"; then
21350             new_path="$p/$path"
21351             break
21352           fi
21353         done
21354         IFS="$IFS_save"
21355       else
21356         # This is an absolute path, we can use it without further modifications.
21357         new_path="$path"
21358       fi
21359 
21360       if test "x$new_path" = x; then
21361         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
21362 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
21363         has_space=`$ECHO "$complete" | $GREP " "`
21364         if test "x$has_space" != x; then
21365           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
21366 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
21367         fi
21368         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
21369       fi
21370     fi
21371 
21372     # Now join together the path and the arguments once again
21373     if test "x$arguments" != xEOL; then
21374       new_complete="$new_path ${arguments% *}"
21375     else
21376       new_complete="$new_path"
21377     fi
21378 
21379     if test "x$complete" != "x$new_complete"; then
21380       FOUND_MAKE="$new_complete"
21381       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
21382 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
21383     fi
21384   fi
21385 
21386         fi
21387       fi
21388     fi
21389   fi
21390 
21391     if test "x$FOUND_MAKE" = x; then
21392       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
21393     fi
21394 
21395   fi
21396 
21397 
21398   MAKE=$FOUND_MAKE
21399 
21400   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
21401 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
21402 
21403 
21404   # Check if make supports the output sync option and if so, setup using it.
21405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
21406 $as_echo_n "checking if make --output-sync is supported... " >&6; }
21407   if $MAKE --version -O > /dev/null 2>&1; then
21408     OUTPUT_SYNC_SUPPORTED=true
21409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21410 $as_echo "yes" >&6; }
21411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
21412 $as_echo_n "checking for output-sync value... " >&6; }
21413 
21414 # Check whether --with-output-sync was given.
21415 if test "${with_output_sync+set}" = set; then :
21416   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
21417 fi
21418 
21419     if test "x$OUTPUT_SYNC" = "x"; then
21420       OUTPUT_SYNC=none
21421     fi
21422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
21423 $as_echo "$OUTPUT_SYNC" >&6; }
21424     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
21425       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
21426     fi
21427   else
21428     OUTPUT_SYNC_SUPPORTED=false
21429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21430 $as_echo "no" >&6; }
21431   fi
21432 
21433 
21434 
21435 
21436 
21437 
21438   # Test if find supports -delete
21439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
21440 $as_echo_n "checking if find supports -delete... " >&6; }
21441   FIND_DELETE="-delete"
21442 
21443   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
21444 
21445   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
21446 
21447   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
21448   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
21449     # No, it does not.
21450     $RM $DELETEDIR/TestIfFindSupportsDelete
21451     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21452       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
21453       FIND_DELETE="-print | $XARGS $RM"
21454     else
21455       FIND_DELETE="-exec $RM \{\} \+"
21456     fi
21457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21458 $as_echo "no" >&6; }
21459   else
21460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21461 $as_echo "yes" >&6; }
21462   fi
21463   $RMDIR $DELETEDIR
21464 
21465 
21466 
21467   # Test which kind of tar was found
21468   if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then
21469     TAR_TYPE="gnu"
21470   elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then
21471     TAR_TYPE="bsd"
21472   elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then
21473     TAR_TYPE="bsd"
21474   elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
21475     TAR_TYPE="solaris"
21476   fi
21477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5
21478 $as_echo_n "checking what type of tar was found... " >&6; }
21479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5
21480 $as_echo "$TAR_TYPE" >&6; }
21481 
21482   TAR_CREATE_FILE_PARAM=""
21483 
21484   if test "x$TAR_TYPE" = "xgnu"; then
21485     TAR_INCLUDE_PARAM="T"
21486     TAR_SUPPORTS_TRANSFORM="true"
21487     if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
21488       # When using gnu tar for Solaris targets, need to use compatibility mode
21489       TAR_CREATE_EXTRA_PARAM="--format=ustar"
21490     fi
21491   else
21492     TAR_INCLUDE_PARAM="I"
21493     TAR_SUPPORTS_TRANSFORM="false"
21494   fi
21495 
21496 
21497 
21498 
21499 
21500 
21501   # Test that grep supports -Fx with a list of pattern which includes null pattern.
21502   # This is a problem for the grep resident on AIX.
21503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5
21504 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; }
21505   # Multiple subsequent spaces..
21506   STACK_SPACES='aaa   bbb   ccc'
21507   # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty
21508   # patterns in it.
21509   STACK_LIST=${STACK_SPACES// /$'\n'}
21510   NEEDLE_SPACES='ccc bbb aaa'
21511   NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'}
21512   RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")"
21513   if test "x$RESULT" == "x"; then
21514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21515 $as_echo "yes" >&6; }
21516   else
21517     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
21518       ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin."
21519     fi
21520     as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5
21521   fi
21522 
21523 
21524   # These tools might not be installed by default,
21525   # need hint on how to install them.
21526 
21527 
21528 
21529   # Publish this variable in the help.
21530 
21531 
21532   if [ -z "${UNZIP+x}" ]; then
21533     # The variable is not set by user, try to locate tool using the code snippet
21534     for ac_prog in unzip
21535 do
21536   # Extract the first word of "$ac_prog", so it can be a program name with args.
21537 set dummy $ac_prog; ac_word=$2
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21539 $as_echo_n "checking for $ac_word... " >&6; }
21540 if ${ac_cv_path_UNZIP+:} false; then :
21541   $as_echo_n "(cached) " >&6
21542 else
21543   case $UNZIP in
21544   [\\/]* | ?:[\\/]*)
21545   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21546   ;;
21547   *)
21548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21549 for as_dir in $PATH
21550 do
21551   IFS=$as_save_IFS
21552   test -z "$as_dir" && as_dir=.
21553     for ac_exec_ext in '' $ac_executable_extensions; do
21554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21555     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21557     break 2
21558   fi
21559 done
21560   done
21561 IFS=$as_save_IFS
21562 
21563   ;;
21564 esac
21565 fi
21566 UNZIP=$ac_cv_path_UNZIP
21567 if test -n "$UNZIP"; then
21568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21569 $as_echo "$UNZIP" >&6; }
21570 else
21571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 $as_echo "no" >&6; }
21573 fi
21574 
21575 
21576   test -n "$UNZIP" && break
21577 done
21578 
21579   else
21580     # The variable is set, but is it from the command line or the environment?
21581 
21582     # Try to remove the string !UNZIP! from our list.
21583     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
21584     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21585       # If it failed, the variable was not from the command line. Ignore it,
21586       # but warn the user (except for BASH, which is always set by the calling BASH).
21587       if test "xUNZIP" != xBASH; then
21588         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
21589 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
21590       fi
21591       # Try to locate tool using the code snippet
21592       for ac_prog in unzip
21593 do
21594   # Extract the first word of "$ac_prog", so it can be a program name with args.
21595 set dummy $ac_prog; ac_word=$2
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21597 $as_echo_n "checking for $ac_word... " >&6; }
21598 if ${ac_cv_path_UNZIP+:} false; then :
21599   $as_echo_n "(cached) " >&6
21600 else
21601   case $UNZIP in
21602   [\\/]* | ?:[\\/]*)
21603   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21604   ;;
21605   *)
21606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21607 for as_dir in $PATH
21608 do
21609   IFS=$as_save_IFS
21610   test -z "$as_dir" && as_dir=.
21611     for ac_exec_ext in '' $ac_executable_extensions; do
21612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21613     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21615     break 2
21616   fi
21617 done
21618   done
21619 IFS=$as_save_IFS
21620 
21621   ;;
21622 esac
21623 fi
21624 UNZIP=$ac_cv_path_UNZIP
21625 if test -n "$UNZIP"; then
21626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21627 $as_echo "$UNZIP" >&6; }
21628 else
21629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21630 $as_echo "no" >&6; }
21631 fi
21632 
21633 
21634   test -n "$UNZIP" && break
21635 done
21636 
21637     else
21638       # If it succeeded, then it was overridden by the user. We will use it
21639       # for the tool.
21640 
21641       # First remove it from the list of overridden variables, so we can test
21642       # for unknown variables in the end.
21643       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21644 
21645       # Check if we try to supply an empty value
21646       if test "x$UNZIP" = x; then
21647         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
21648 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
21649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21650 $as_echo_n "checking for UNZIP... " >&6; }
21651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21652 $as_echo "disabled" >&6; }
21653       else
21654         # Check if the provided tool contains a complete path.
21655         tool_specified="$UNZIP"
21656         tool_basename="${tool_specified##*/}"
21657         if test "x$tool_basename" = "x$tool_specified"; then
21658           # A command without a complete path is provided, search $PATH.
21659           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
21660 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
21661           # Extract the first word of "$tool_basename", so it can be a program name with args.
21662 set dummy $tool_basename; ac_word=$2
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21664 $as_echo_n "checking for $ac_word... " >&6; }
21665 if ${ac_cv_path_UNZIP+:} false; then :
21666   $as_echo_n "(cached) " >&6
21667 else
21668   case $UNZIP in
21669   [\\/]* | ?:[\\/]*)
21670   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
21671   ;;
21672   *)
21673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21674 for as_dir in $PATH
21675 do
21676   IFS=$as_save_IFS
21677   test -z "$as_dir" && as_dir=.
21678     for ac_exec_ext in '' $ac_executable_extensions; do
21679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21680     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
21681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21682     break 2
21683   fi
21684 done
21685   done
21686 IFS=$as_save_IFS
21687 
21688   ;;
21689 esac
21690 fi
21691 UNZIP=$ac_cv_path_UNZIP
21692 if test -n "$UNZIP"; then
21693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
21694 $as_echo "$UNZIP" >&6; }
21695 else
21696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698 fi
21699 
21700 
21701           if test "x$UNZIP" = x; then
21702             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21703           fi
21704         else
21705           # Otherwise we believe it is a complete path. Use it as it is.
21706           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
21707 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
21708           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
21709 $as_echo_n "checking for UNZIP... " >&6; }
21710           if test ! -x "$tool_specified"; then
21711             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21712 $as_echo "not found" >&6; }
21713             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21714           fi
21715           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21716 $as_echo "$tool_specified" >&6; }
21717         fi
21718       fi
21719     fi
21720 
21721   fi
21722 
21723 
21724 
21725   if test "x$UNZIP" = x; then
21726     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
21727   fi
21728 
21729 
21730   # Since zip uses "ZIP" as a environment variable for passing options, we need
21731   # to name our variable differently, hence ZIPEXE.
21732 
21733 
21734 
21735   # Publish this variable in the help.
21736 
21737 
21738   if [ -z "${ZIPEXE+x}" ]; then
21739     # The variable is not set by user, try to locate tool using the code snippet
21740     for ac_prog in zip
21741 do
21742   # Extract the first word of "$ac_prog", so it can be a program name with args.
21743 set dummy $ac_prog; ac_word=$2
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21745 $as_echo_n "checking for $ac_word... " >&6; }
21746 if ${ac_cv_path_ZIPEXE+:} false; then :
21747   $as_echo_n "(cached) " >&6
21748 else
21749   case $ZIPEXE in
21750   [\\/]* | ?:[\\/]*)
21751   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21752   ;;
21753   *)
21754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21755 for as_dir in $PATH
21756 do
21757   IFS=$as_save_IFS
21758   test -z "$as_dir" && as_dir=.
21759     for ac_exec_ext in '' $ac_executable_extensions; do
21760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21761     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21763     break 2
21764   fi
21765 done
21766   done
21767 IFS=$as_save_IFS
21768 
21769   ;;
21770 esac
21771 fi
21772 ZIPEXE=$ac_cv_path_ZIPEXE
21773 if test -n "$ZIPEXE"; then
21774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21775 $as_echo "$ZIPEXE" >&6; }
21776 else
21777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778 $as_echo "no" >&6; }
21779 fi
21780 
21781 
21782   test -n "$ZIPEXE" && break
21783 done
21784 
21785   else
21786     # The variable is set, but is it from the command line or the environment?
21787 
21788     # Try to remove the string !ZIPEXE! from our list.
21789     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/}
21790     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21791       # If it failed, the variable was not from the command line. Ignore it,
21792       # but warn the user (except for BASH, which is always set by the calling BASH).
21793       if test "xZIPEXE" != xBASH; then
21794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5
21795 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;}
21796       fi
21797       # Try to locate tool using the code snippet
21798       for ac_prog in zip
21799 do
21800   # Extract the first word of "$ac_prog", so it can be a program name with args.
21801 set dummy $ac_prog; ac_word=$2
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21803 $as_echo_n "checking for $ac_word... " >&6; }
21804 if ${ac_cv_path_ZIPEXE+:} false; then :
21805   $as_echo_n "(cached) " >&6
21806 else
21807   case $ZIPEXE in
21808   [\\/]* | ?:[\\/]*)
21809   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21810   ;;
21811   *)
21812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21814 do
21815   IFS=$as_save_IFS
21816   test -z "$as_dir" && as_dir=.
21817     for ac_exec_ext in '' $ac_executable_extensions; do
21818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21819     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21821     break 2
21822   fi
21823 done
21824   done
21825 IFS=$as_save_IFS
21826 
21827   ;;
21828 esac
21829 fi
21830 ZIPEXE=$ac_cv_path_ZIPEXE
21831 if test -n "$ZIPEXE"; then
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21833 $as_echo "$ZIPEXE" >&6; }
21834 else
21835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21837 fi
21838 
21839 
21840   test -n "$ZIPEXE" && break
21841 done
21842 
21843     else
21844       # If it succeeded, then it was overridden by the user. We will use it
21845       # for the tool.
21846 
21847       # First remove it from the list of overridden variables, so we can test
21848       # for unknown variables in the end.
21849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21850 
21851       # Check if we try to supply an empty value
21852       if test "x$ZIPEXE" = x; then
21853         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5
21854 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;}
21855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21856 $as_echo_n "checking for ZIPEXE... " >&6; }
21857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21858 $as_echo "disabled" >&6; }
21859       else
21860         # Check if the provided tool contains a complete path.
21861         tool_specified="$ZIPEXE"
21862         tool_basename="${tool_specified##*/}"
21863         if test "x$tool_basename" = "x$tool_specified"; then
21864           # A command without a complete path is provided, search $PATH.
21865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5
21866 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;}
21867           # Extract the first word of "$tool_basename", so it can be a program name with args.
21868 set dummy $tool_basename; ac_word=$2
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21870 $as_echo_n "checking for $ac_word... " >&6; }
21871 if ${ac_cv_path_ZIPEXE+:} false; then :
21872   $as_echo_n "(cached) " >&6
21873 else
21874   case $ZIPEXE in
21875   [\\/]* | ?:[\\/]*)
21876   ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path.
21877   ;;
21878   *)
21879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880 for as_dir in $PATH
21881 do
21882   IFS=$as_save_IFS
21883   test -z "$as_dir" && as_dir=.
21884     for ac_exec_ext in '' $ac_executable_extensions; do
21885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21886     ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext"
21887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21888     break 2
21889   fi
21890 done
21891   done
21892 IFS=$as_save_IFS
21893 
21894   ;;
21895 esac
21896 fi
21897 ZIPEXE=$ac_cv_path_ZIPEXE
21898 if test -n "$ZIPEXE"; then
21899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5
21900 $as_echo "$ZIPEXE" >&6; }
21901 else
21902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21903 $as_echo "no" >&6; }
21904 fi
21905 
21906 
21907           if test "x$ZIPEXE" = x; then
21908             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21909           fi
21910         else
21911           # Otherwise we believe it is a complete path. Use it as it is.
21912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5
21913 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;}
21914           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5
21915 $as_echo_n "checking for ZIPEXE... " >&6; }
21916           if test ! -x "$tool_specified"; then
21917             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21918 $as_echo "not found" >&6; }
21919             as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
21920           fi
21921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21922 $as_echo "$tool_specified" >&6; }
21923         fi
21924       fi
21925     fi
21926 
21927   fi
21928 
21929 
21930 
21931   if test "x$ZIPEXE" = x; then
21932     as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5
21933   fi
21934 
21935 
21936 
21937   # Non-required basic tools
21938 
21939 
21940 
21941   # Publish this variable in the help.
21942 
21943 
21944   if [ -z "${LDD+x}" ]; then
21945     # The variable is not set by user, try to locate tool using the code snippet
21946     for ac_prog in ldd
21947 do
21948   # Extract the first word of "$ac_prog", so it can be a program name with args.
21949 set dummy $ac_prog; ac_word=$2
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21951 $as_echo_n "checking for $ac_word... " >&6; }
21952 if ${ac_cv_path_LDD+:} false; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955   case $LDD in
21956   [\\/]* | ?:[\\/]*)
21957   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21958   ;;
21959   *)
21960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21961 for as_dir in $PATH
21962 do
21963   IFS=$as_save_IFS
21964   test -z "$as_dir" && as_dir=.
21965     for ac_exec_ext in '' $ac_executable_extensions; do
21966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21967     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21969     break 2
21970   fi
21971 done
21972   done
21973 IFS=$as_save_IFS
21974 
21975   ;;
21976 esac
21977 fi
21978 LDD=$ac_cv_path_LDD
21979 if test -n "$LDD"; then
21980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21981 $as_echo "$LDD" >&6; }
21982 else
21983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21984 $as_echo "no" >&6; }
21985 fi
21986 
21987 
21988   test -n "$LDD" && break
21989 done
21990 
21991   else
21992     # The variable is set, but is it from the command line or the environment?
21993 
21994     # Try to remove the string !LDD! from our list.
21995     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21996     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21997       # If it failed, the variable was not from the command line. Ignore it,
21998       # but warn the user (except for BASH, which is always set by the calling BASH).
21999       if test "xLDD" != xBASH; then
22000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
22001 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
22002       fi
22003       # Try to locate tool using the code snippet
22004       for ac_prog in ldd
22005 do
22006   # Extract the first word of "$ac_prog", so it can be a program name with args.
22007 set dummy $ac_prog; ac_word=$2
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22009 $as_echo_n "checking for $ac_word... " >&6; }
22010 if ${ac_cv_path_LDD+:} false; then :
22011   $as_echo_n "(cached) " >&6
22012 else
22013   case $LDD in
22014   [\\/]* | ?:[\\/]*)
22015   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22016   ;;
22017   *)
22018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22019 for as_dir in $PATH
22020 do
22021   IFS=$as_save_IFS
22022   test -z "$as_dir" && as_dir=.
22023     for ac_exec_ext in '' $ac_executable_extensions; do
22024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22025     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22027     break 2
22028   fi
22029 done
22030   done
22031 IFS=$as_save_IFS
22032 
22033   ;;
22034 esac
22035 fi
22036 LDD=$ac_cv_path_LDD
22037 if test -n "$LDD"; then
22038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22039 $as_echo "$LDD" >&6; }
22040 else
22041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22042 $as_echo "no" >&6; }
22043 fi
22044 
22045 
22046   test -n "$LDD" && break
22047 done
22048 
22049     else
22050       # If it succeeded, then it was overridden by the user. We will use it
22051       # for the tool.
22052 
22053       # First remove it from the list of overridden variables, so we can test
22054       # for unknown variables in the end.
22055       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22056 
22057       # Check if we try to supply an empty value
22058       if test "x$LDD" = x; then
22059         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
22060 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
22061         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22062 $as_echo_n "checking for LDD... " >&6; }
22063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22064 $as_echo "disabled" >&6; }
22065       else
22066         # Check if the provided tool contains a complete path.
22067         tool_specified="$LDD"
22068         tool_basename="${tool_specified##*/}"
22069         if test "x$tool_basename" = "x$tool_specified"; then
22070           # A command without a complete path is provided, search $PATH.
22071           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
22072 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
22073           # Extract the first word of "$tool_basename", so it can be a program name with args.
22074 set dummy $tool_basename; ac_word=$2
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22076 $as_echo_n "checking for $ac_word... " >&6; }
22077 if ${ac_cv_path_LDD+:} false; then :
22078   $as_echo_n "(cached) " >&6
22079 else
22080   case $LDD in
22081   [\\/]* | ?:[\\/]*)
22082   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
22083   ;;
22084   *)
22085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22086 for as_dir in $PATH
22087 do
22088   IFS=$as_save_IFS
22089   test -z "$as_dir" && as_dir=.
22090     for ac_exec_ext in '' $ac_executable_extensions; do
22091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22092     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
22093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22094     break 2
22095   fi
22096 done
22097   done
22098 IFS=$as_save_IFS
22099 
22100   ;;
22101 esac
22102 fi
22103 LDD=$ac_cv_path_LDD
22104 if test -n "$LDD"; then
22105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
22106 $as_echo "$LDD" >&6; }
22107 else
22108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22109 $as_echo "no" >&6; }
22110 fi
22111 
22112 
22113           if test "x$LDD" = x; then
22114             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22115           fi
22116         else
22117           # Otherwise we believe it is a complete path. Use it as it is.
22118           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
22119 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
22120           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
22121 $as_echo_n "checking for LDD... " >&6; }
22122           if test ! -x "$tool_specified"; then
22123             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22124 $as_echo "not found" >&6; }
22125             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
22126           fi
22127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22128 $as_echo "$tool_specified" >&6; }
22129         fi
22130       fi
22131     fi
22132 
22133   fi
22134 
22135 
22136   if test "x$LDD" = "x"; then
22137     # List shared lib dependencies is used for
22138     # debug output and checking for forbidden dependencies.
22139     # We can build without it.
22140     LDD="true"
22141   fi
22142 
22143 
22144   # Publish this variable in the help.
22145 
22146 
22147   if [ -z "${READELF+x}" ]; then
22148     # The variable is not set by user, try to locate tool using the code snippet
22149     for ac_prog in greadelf readelf
22150 do
22151   # Extract the first word of "$ac_prog", so it can be a program name with args.
22152 set dummy $ac_prog; ac_word=$2
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22154 $as_echo_n "checking for $ac_word... " >&6; }
22155 if ${ac_cv_path_READELF+:} false; then :
22156   $as_echo_n "(cached) " >&6
22157 else
22158   case $READELF in
22159   [\\/]* | ?:[\\/]*)
22160   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22161   ;;
22162   *)
22163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22164 for as_dir in $PATH
22165 do
22166   IFS=$as_save_IFS
22167   test -z "$as_dir" && as_dir=.
22168     for ac_exec_ext in '' $ac_executable_extensions; do
22169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22170     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22172     break 2
22173   fi
22174 done
22175   done
22176 IFS=$as_save_IFS
22177 
22178   ;;
22179 esac
22180 fi
22181 READELF=$ac_cv_path_READELF
22182 if test -n "$READELF"; then
22183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22184 $as_echo "$READELF" >&6; }
22185 else
22186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22187 $as_echo "no" >&6; }
22188 fi
22189 
22190 
22191   test -n "$READELF" && break
22192 done
22193 
22194   else
22195     # The variable is set, but is it from the command line or the environment?
22196 
22197     # Try to remove the string !READELF! from our list.
22198     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
22199     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22200       # If it failed, the variable was not from the command line. Ignore it,
22201       # but warn the user (except for BASH, which is always set by the calling BASH).
22202       if test "xREADELF" != xBASH; then
22203         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
22204 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
22205       fi
22206       # Try to locate tool using the code snippet
22207       for ac_prog in greadelf readelf
22208 do
22209   # Extract the first word of "$ac_prog", so it can be a program name with args.
22210 set dummy $ac_prog; ac_word=$2
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22212 $as_echo_n "checking for $ac_word... " >&6; }
22213 if ${ac_cv_path_READELF+:} false; then :
22214   $as_echo_n "(cached) " >&6
22215 else
22216   case $READELF in
22217   [\\/]* | ?:[\\/]*)
22218   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22219   ;;
22220   *)
22221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22222 for as_dir in $PATH
22223 do
22224   IFS=$as_save_IFS
22225   test -z "$as_dir" && as_dir=.
22226     for ac_exec_ext in '' $ac_executable_extensions; do
22227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22228     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22230     break 2
22231   fi
22232 done
22233   done
22234 IFS=$as_save_IFS
22235 
22236   ;;
22237 esac
22238 fi
22239 READELF=$ac_cv_path_READELF
22240 if test -n "$READELF"; then
22241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22242 $as_echo "$READELF" >&6; }
22243 else
22244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22245 $as_echo "no" >&6; }
22246 fi
22247 
22248 
22249   test -n "$READELF" && break
22250 done
22251 
22252     else
22253       # If it succeeded, then it was overridden by the user. We will use it
22254       # for the tool.
22255 
22256       # First remove it from the list of overridden variables, so we can test
22257       # for unknown variables in the end.
22258       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22259 
22260       # Check if we try to supply an empty value
22261       if test "x$READELF" = x; then
22262         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
22263 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
22264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22265 $as_echo_n "checking for READELF... " >&6; }
22266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22267 $as_echo "disabled" >&6; }
22268       else
22269         # Check if the provided tool contains a complete path.
22270         tool_specified="$READELF"
22271         tool_basename="${tool_specified##*/}"
22272         if test "x$tool_basename" = "x$tool_specified"; then
22273           # A command without a complete path is provided, search $PATH.
22274           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
22275 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
22276           # Extract the first word of "$tool_basename", so it can be a program name with args.
22277 set dummy $tool_basename; ac_word=$2
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22279 $as_echo_n "checking for $ac_word... " >&6; }
22280 if ${ac_cv_path_READELF+:} false; then :
22281   $as_echo_n "(cached) " >&6
22282 else
22283   case $READELF in
22284   [\\/]* | ?:[\\/]*)
22285   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
22286   ;;
22287   *)
22288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22290 do
22291   IFS=$as_save_IFS
22292   test -z "$as_dir" && as_dir=.
22293     for ac_exec_ext in '' $ac_executable_extensions; do
22294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22295     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
22296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22297     break 2
22298   fi
22299 done
22300   done
22301 IFS=$as_save_IFS
22302 
22303   ;;
22304 esac
22305 fi
22306 READELF=$ac_cv_path_READELF
22307 if test -n "$READELF"; then
22308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
22309 $as_echo "$READELF" >&6; }
22310 else
22311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22312 $as_echo "no" >&6; }
22313 fi
22314 
22315 
22316           if test "x$READELF" = x; then
22317             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22318           fi
22319         else
22320           # Otherwise we believe it is a complete path. Use it as it is.
22321           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
22322 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
22323           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
22324 $as_echo_n "checking for READELF... " >&6; }
22325           if test ! -x "$tool_specified"; then
22326             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22327 $as_echo "not found" >&6; }
22328             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
22329           fi
22330           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22331 $as_echo "$tool_specified" >&6; }
22332         fi
22333       fi
22334     fi
22335 
22336   fi
22337 
22338 
22339 
22340 
22341   # Publish this variable in the help.
22342 
22343 
22344   if [ -z "${DOT+x}" ]; then
22345     # The variable is not set by user, try to locate tool using the code snippet
22346     for ac_prog in dot
22347 do
22348   # Extract the first word of "$ac_prog", so it can be a program name with args.
22349 set dummy $ac_prog; ac_word=$2
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22351 $as_echo_n "checking for $ac_word... " >&6; }
22352 if ${ac_cv_path_DOT+:} false; then :
22353   $as_echo_n "(cached) " >&6
22354 else
22355   case $DOT in
22356   [\\/]* | ?:[\\/]*)
22357   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22358   ;;
22359   *)
22360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361 for as_dir in $PATH
22362 do
22363   IFS=$as_save_IFS
22364   test -z "$as_dir" && as_dir=.
22365     for ac_exec_ext in '' $ac_executable_extensions; do
22366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22367     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22369     break 2
22370   fi
22371 done
22372   done
22373 IFS=$as_save_IFS
22374 
22375   ;;
22376 esac
22377 fi
22378 DOT=$ac_cv_path_DOT
22379 if test -n "$DOT"; then
22380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22381 $as_echo "$DOT" >&6; }
22382 else
22383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384 $as_echo "no" >&6; }
22385 fi
22386 
22387 
22388   test -n "$DOT" && break
22389 done
22390 
22391   else
22392     # The variable is set, but is it from the command line or the environment?
22393 
22394     # Try to remove the string !DOT! from our list.
22395     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/}
22396     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22397       # If it failed, the variable was not from the command line. Ignore it,
22398       # but warn the user (except for BASH, which is always set by the calling BASH).
22399       if test "xDOT" != xBASH; then
22400         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5
22401 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;}
22402       fi
22403       # Try to locate tool using the code snippet
22404       for ac_prog in dot
22405 do
22406   # Extract the first word of "$ac_prog", so it can be a program name with args.
22407 set dummy $ac_prog; ac_word=$2
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22409 $as_echo_n "checking for $ac_word... " >&6; }
22410 if ${ac_cv_path_DOT+:} false; then :
22411   $as_echo_n "(cached) " >&6
22412 else
22413   case $DOT in
22414   [\\/]* | ?:[\\/]*)
22415   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22416   ;;
22417   *)
22418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22419 for as_dir in $PATH
22420 do
22421   IFS=$as_save_IFS
22422   test -z "$as_dir" && as_dir=.
22423     for ac_exec_ext in '' $ac_executable_extensions; do
22424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22425     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22427     break 2
22428   fi
22429 done
22430   done
22431 IFS=$as_save_IFS
22432 
22433   ;;
22434 esac
22435 fi
22436 DOT=$ac_cv_path_DOT
22437 if test -n "$DOT"; then
22438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22439 $as_echo "$DOT" >&6; }
22440 else
22441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22442 $as_echo "no" >&6; }
22443 fi
22444 
22445 
22446   test -n "$DOT" && break
22447 done
22448 
22449     else
22450       # If it succeeded, then it was overridden by the user. We will use it
22451       # for the tool.
22452 
22453       # First remove it from the list of overridden variables, so we can test
22454       # for unknown variables in the end.
22455       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22456 
22457       # Check if we try to supply an empty value
22458       if test "x$DOT" = x; then
22459         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5
22460 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;}
22461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22462 $as_echo_n "checking for DOT... " >&6; }
22463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22464 $as_echo "disabled" >&6; }
22465       else
22466         # Check if the provided tool contains a complete path.
22467         tool_specified="$DOT"
22468         tool_basename="${tool_specified##*/}"
22469         if test "x$tool_basename" = "x$tool_specified"; then
22470           # A command without a complete path is provided, search $PATH.
22471           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5
22472 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;}
22473           # Extract the first word of "$tool_basename", so it can be a program name with args.
22474 set dummy $tool_basename; ac_word=$2
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22476 $as_echo_n "checking for $ac_word... " >&6; }
22477 if ${ac_cv_path_DOT+:} false; then :
22478   $as_echo_n "(cached) " >&6
22479 else
22480   case $DOT in
22481   [\\/]* | ?:[\\/]*)
22482   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22483   ;;
22484   *)
22485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22486 for as_dir in $PATH
22487 do
22488   IFS=$as_save_IFS
22489   test -z "$as_dir" && as_dir=.
22490     for ac_exec_ext in '' $ac_executable_extensions; do
22491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22492     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22494     break 2
22495   fi
22496 done
22497   done
22498 IFS=$as_save_IFS
22499 
22500   ;;
22501 esac
22502 fi
22503 DOT=$ac_cv_path_DOT
22504 if test -n "$DOT"; then
22505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22506 $as_echo "$DOT" >&6; }
22507 else
22508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22509 $as_echo "no" >&6; }
22510 fi
22511 
22512 
22513           if test "x$DOT" = x; then
22514             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22515           fi
22516         else
22517           # Otherwise we believe it is a complete path. Use it as it is.
22518           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5
22519 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;}
22520           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5
22521 $as_echo_n "checking for DOT... " >&6; }
22522           if test ! -x "$tool_specified"; then
22523             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22524 $as_echo "not found" >&6; }
22525             as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5
22526           fi
22527           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22528 $as_echo "$tool_specified" >&6; }
22529         fi
22530       fi
22531     fi
22532 
22533   fi
22534 
22535 
22536 
22537 
22538   # Publish this variable in the help.
22539 
22540 
22541   if [ -z "${HG+x}" ]; then
22542     # The variable is not set by user, try to locate tool using the code snippet
22543     for ac_prog in hg
22544 do
22545   # Extract the first word of "$ac_prog", so it can be a program name with args.
22546 set dummy $ac_prog; ac_word=$2
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22548 $as_echo_n "checking for $ac_word... " >&6; }
22549 if ${ac_cv_path_HG+:} false; then :
22550   $as_echo_n "(cached) " >&6
22551 else
22552   case $HG in
22553   [\\/]* | ?:[\\/]*)
22554   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22555   ;;
22556   *)
22557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22558 for as_dir in $PATH
22559 do
22560   IFS=$as_save_IFS
22561   test -z "$as_dir" && as_dir=.
22562     for ac_exec_ext in '' $ac_executable_extensions; do
22563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22564     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22566     break 2
22567   fi
22568 done
22569   done
22570 IFS=$as_save_IFS
22571 
22572   ;;
22573 esac
22574 fi
22575 HG=$ac_cv_path_HG
22576 if test -n "$HG"; then
22577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22578 $as_echo "$HG" >&6; }
22579 else
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22581 $as_echo "no" >&6; }
22582 fi
22583 
22584 
22585   test -n "$HG" && break
22586 done
22587 
22588   else
22589     # The variable is set, but is it from the command line or the environment?
22590 
22591     # Try to remove the string !HG! from our list.
22592     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
22593     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22594       # If it failed, the variable was not from the command line. Ignore it,
22595       # but warn the user (except for BASH, which is always set by the calling BASH).
22596       if test "xHG" != xBASH; then
22597         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
22598 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
22599       fi
22600       # Try to locate tool using the code snippet
22601       for ac_prog in hg
22602 do
22603   # Extract the first word of "$ac_prog", so it can be a program name with args.
22604 set dummy $ac_prog; ac_word=$2
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22606 $as_echo_n "checking for $ac_word... " >&6; }
22607 if ${ac_cv_path_HG+:} false; then :
22608   $as_echo_n "(cached) " >&6
22609 else
22610   case $HG in
22611   [\\/]* | ?:[\\/]*)
22612   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22613   ;;
22614   *)
22615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in $PATH
22617 do
22618   IFS=$as_save_IFS
22619   test -z "$as_dir" && as_dir=.
22620     for ac_exec_ext in '' $ac_executable_extensions; do
22621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22622     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22624     break 2
22625   fi
22626 done
22627   done
22628 IFS=$as_save_IFS
22629 
22630   ;;
22631 esac
22632 fi
22633 HG=$ac_cv_path_HG
22634 if test -n "$HG"; then
22635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22636 $as_echo "$HG" >&6; }
22637 else
22638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22640 fi
22641 
22642 
22643   test -n "$HG" && break
22644 done
22645 
22646     else
22647       # If it succeeded, then it was overridden by the user. We will use it
22648       # for the tool.
22649 
22650       # First remove it from the list of overridden variables, so we can test
22651       # for unknown variables in the end.
22652       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22653 
22654       # Check if we try to supply an empty value
22655       if test "x$HG" = x; then
22656         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
22657 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
22658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22659 $as_echo_n "checking for HG... " >&6; }
22660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22661 $as_echo "disabled" >&6; }
22662       else
22663         # Check if the provided tool contains a complete path.
22664         tool_specified="$HG"
22665         tool_basename="${tool_specified##*/}"
22666         if test "x$tool_basename" = "x$tool_specified"; then
22667           # A command without a complete path is provided, search $PATH.
22668           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
22669 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
22670           # Extract the first word of "$tool_basename", so it can be a program name with args.
22671 set dummy $tool_basename; ac_word=$2
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22673 $as_echo_n "checking for $ac_word... " >&6; }
22674 if ${ac_cv_path_HG+:} false; then :
22675   $as_echo_n "(cached) " >&6
22676 else
22677   case $HG in
22678   [\\/]* | ?:[\\/]*)
22679   ac_cv_path_HG="$HG" # Let the user override the test with a path.
22680   ;;
22681   *)
22682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22683 for as_dir in $PATH
22684 do
22685   IFS=$as_save_IFS
22686   test -z "$as_dir" && as_dir=.
22687     for ac_exec_ext in '' $ac_executable_extensions; do
22688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22689     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
22690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22691     break 2
22692   fi
22693 done
22694   done
22695 IFS=$as_save_IFS
22696 
22697   ;;
22698 esac
22699 fi
22700 HG=$ac_cv_path_HG
22701 if test -n "$HG"; then
22702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
22703 $as_echo "$HG" >&6; }
22704 else
22705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22706 $as_echo "no" >&6; }
22707 fi
22708 
22709 
22710           if test "x$HG" = x; then
22711             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22712           fi
22713         else
22714           # Otherwise we believe it is a complete path. Use it as it is.
22715           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
22716 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
22717           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
22718 $as_echo_n "checking for HG... " >&6; }
22719           if test ! -x "$tool_specified"; then
22720             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22721 $as_echo "not found" >&6; }
22722             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
22723           fi
22724           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22725 $as_echo "$tool_specified" >&6; }
22726         fi
22727       fi
22728     fi
22729 
22730   fi
22731 
22732 
22733 
22734 
22735   # Publish this variable in the help.
22736 
22737 
22738   if [ -z "${STAT+x}" ]; then
22739     # The variable is not set by user, try to locate tool using the code snippet
22740     for ac_prog in stat
22741 do
22742   # Extract the first word of "$ac_prog", so it can be a program name with args.
22743 set dummy $ac_prog; ac_word=$2
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22745 $as_echo_n "checking for $ac_word... " >&6; }
22746 if ${ac_cv_path_STAT+:} false; then :
22747   $as_echo_n "(cached) " >&6
22748 else
22749   case $STAT in
22750   [\\/]* | ?:[\\/]*)
22751   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22752   ;;
22753   *)
22754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22755 for as_dir in $PATH
22756 do
22757   IFS=$as_save_IFS
22758   test -z "$as_dir" && as_dir=.
22759     for ac_exec_ext in '' $ac_executable_extensions; do
22760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22761     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22763     break 2
22764   fi
22765 done
22766   done
22767 IFS=$as_save_IFS
22768 
22769   ;;
22770 esac
22771 fi
22772 STAT=$ac_cv_path_STAT
22773 if test -n "$STAT"; then
22774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22775 $as_echo "$STAT" >&6; }
22776 else
22777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22778 $as_echo "no" >&6; }
22779 fi
22780 
22781 
22782   test -n "$STAT" && break
22783 done
22784 
22785   else
22786     # The variable is set, but is it from the command line or the environment?
22787 
22788     # Try to remove the string !STAT! from our list.
22789     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
22790     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22791       # If it failed, the variable was not from the command line. Ignore it,
22792       # but warn the user (except for BASH, which is always set by the calling BASH).
22793       if test "xSTAT" != xBASH; then
22794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
22795 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
22796       fi
22797       # Try to locate tool using the code snippet
22798       for ac_prog in stat
22799 do
22800   # Extract the first word of "$ac_prog", so it can be a program name with args.
22801 set dummy $ac_prog; ac_word=$2
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22803 $as_echo_n "checking for $ac_word... " >&6; }
22804 if ${ac_cv_path_STAT+:} false; then :
22805   $as_echo_n "(cached) " >&6
22806 else
22807   case $STAT in
22808   [\\/]* | ?:[\\/]*)
22809   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22810   ;;
22811   *)
22812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22813 for as_dir in $PATH
22814 do
22815   IFS=$as_save_IFS
22816   test -z "$as_dir" && as_dir=.
22817     for ac_exec_ext in '' $ac_executable_extensions; do
22818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22819     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22821     break 2
22822   fi
22823 done
22824   done
22825 IFS=$as_save_IFS
22826 
22827   ;;
22828 esac
22829 fi
22830 STAT=$ac_cv_path_STAT
22831 if test -n "$STAT"; then
22832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22833 $as_echo "$STAT" >&6; }
22834 else
22835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22836 $as_echo "no" >&6; }
22837 fi
22838 
22839 
22840   test -n "$STAT" && break
22841 done
22842 
22843     else
22844       # If it succeeded, then it was overridden by the user. We will use it
22845       # for the tool.
22846 
22847       # First remove it from the list of overridden variables, so we can test
22848       # for unknown variables in the end.
22849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22850 
22851       # Check if we try to supply an empty value
22852       if test "x$STAT" = x; then
22853         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22854 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22856 $as_echo_n "checking for STAT... " >&6; }
22857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22858 $as_echo "disabled" >&6; }
22859       else
22860         # Check if the provided tool contains a complete path.
22861         tool_specified="$STAT"
22862         tool_basename="${tool_specified##*/}"
22863         if test "x$tool_basename" = "x$tool_specified"; then
22864           # A command without a complete path is provided, search $PATH.
22865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22866 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22867           # Extract the first word of "$tool_basename", so it can be a program name with args.
22868 set dummy $tool_basename; ac_word=$2
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22870 $as_echo_n "checking for $ac_word... " >&6; }
22871 if ${ac_cv_path_STAT+:} false; then :
22872   $as_echo_n "(cached) " >&6
22873 else
22874   case $STAT in
22875   [\\/]* | ?:[\\/]*)
22876   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22877   ;;
22878   *)
22879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22880 for as_dir in $PATH
22881 do
22882   IFS=$as_save_IFS
22883   test -z "$as_dir" && as_dir=.
22884     for ac_exec_ext in '' $ac_executable_extensions; do
22885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22886     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22888     break 2
22889   fi
22890 done
22891   done
22892 IFS=$as_save_IFS
22893 
22894   ;;
22895 esac
22896 fi
22897 STAT=$ac_cv_path_STAT
22898 if test -n "$STAT"; then
22899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22900 $as_echo "$STAT" >&6; }
22901 else
22902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22903 $as_echo "no" >&6; }
22904 fi
22905 
22906 
22907           if test "x$STAT" = x; then
22908             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22909           fi
22910         else
22911           # Otherwise we believe it is a complete path. Use it as it is.
22912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22913 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22914           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22915 $as_echo_n "checking for STAT... " >&6; }
22916           if test ! -x "$tool_specified"; then
22917             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22918 $as_echo "not found" >&6; }
22919             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22920           fi
22921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22922 $as_echo "$tool_specified" >&6; }
22923         fi
22924       fi
22925     fi
22926 
22927   fi
22928 
22929 
22930 
22931 
22932   # Publish this variable in the help.
22933 
22934 
22935   if [ -z "${TIME+x}" ]; then
22936     # The variable is not set by user, try to locate tool using the code snippet
22937     for ac_prog in time
22938 do
22939   # Extract the first word of "$ac_prog", so it can be a program name with args.
22940 set dummy $ac_prog; ac_word=$2
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22942 $as_echo_n "checking for $ac_word... " >&6; }
22943 if ${ac_cv_path_TIME+:} false; then :
22944   $as_echo_n "(cached) " >&6
22945 else
22946   case $TIME in
22947   [\\/]* | ?:[\\/]*)
22948   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22949   ;;
22950   *)
22951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22952 for as_dir in $PATH
22953 do
22954   IFS=$as_save_IFS
22955   test -z "$as_dir" && as_dir=.
22956     for ac_exec_ext in '' $ac_executable_extensions; do
22957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22958     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22960     break 2
22961   fi
22962 done
22963   done
22964 IFS=$as_save_IFS
22965 
22966   ;;
22967 esac
22968 fi
22969 TIME=$ac_cv_path_TIME
22970 if test -n "$TIME"; then
22971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22972 $as_echo "$TIME" >&6; }
22973 else
22974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22975 $as_echo "no" >&6; }
22976 fi
22977 
22978 
22979   test -n "$TIME" && break
22980 done
22981 
22982   else
22983     # The variable is set, but is it from the command line or the environment?
22984 
22985     # Try to remove the string !TIME! from our list.
22986     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22987     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22988       # If it failed, the variable was not from the command line. Ignore it,
22989       # but warn the user (except for BASH, which is always set by the calling BASH).
22990       if test "xTIME" != xBASH; then
22991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22992 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22993       fi
22994       # Try to locate tool using the code snippet
22995       for ac_prog in time
22996 do
22997   # Extract the first word of "$ac_prog", so it can be a program name with args.
22998 set dummy $ac_prog; ac_word=$2
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23000 $as_echo_n "checking for $ac_word... " >&6; }
23001 if ${ac_cv_path_TIME+:} false; then :
23002   $as_echo_n "(cached) " >&6
23003 else
23004   case $TIME in
23005   [\\/]* | ?:[\\/]*)
23006   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23007   ;;
23008   *)
23009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23010 for as_dir in $PATH
23011 do
23012   IFS=$as_save_IFS
23013   test -z "$as_dir" && as_dir=.
23014     for ac_exec_ext in '' $ac_executable_extensions; do
23015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23016     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23018     break 2
23019   fi
23020 done
23021   done
23022 IFS=$as_save_IFS
23023 
23024   ;;
23025 esac
23026 fi
23027 TIME=$ac_cv_path_TIME
23028 if test -n "$TIME"; then
23029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23030 $as_echo "$TIME" >&6; }
23031 else
23032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033 $as_echo "no" >&6; }
23034 fi
23035 
23036 
23037   test -n "$TIME" && break
23038 done
23039 
23040     else
23041       # If it succeeded, then it was overridden by the user. We will use it
23042       # for the tool.
23043 
23044       # First remove it from the list of overridden variables, so we can test
23045       # for unknown variables in the end.
23046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23047 
23048       # Check if we try to supply an empty value
23049       if test "x$TIME" = x; then
23050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
23051 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
23052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23053 $as_echo_n "checking for TIME... " >&6; }
23054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23055 $as_echo "disabled" >&6; }
23056       else
23057         # Check if the provided tool contains a complete path.
23058         tool_specified="$TIME"
23059         tool_basename="${tool_specified##*/}"
23060         if test "x$tool_basename" = "x$tool_specified"; then
23061           # A command without a complete path is provided, search $PATH.
23062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
23063 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
23064           # Extract the first word of "$tool_basename", so it can be a program name with args.
23065 set dummy $tool_basename; ac_word=$2
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23067 $as_echo_n "checking for $ac_word... " >&6; }
23068 if ${ac_cv_path_TIME+:} false; then :
23069   $as_echo_n "(cached) " >&6
23070 else
23071   case $TIME in
23072   [\\/]* | ?:[\\/]*)
23073   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
23074   ;;
23075   *)
23076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23077 for as_dir in $PATH
23078 do
23079   IFS=$as_save_IFS
23080   test -z "$as_dir" && as_dir=.
23081     for ac_exec_ext in '' $ac_executable_extensions; do
23082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23083     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
23084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23085     break 2
23086   fi
23087 done
23088   done
23089 IFS=$as_save_IFS
23090 
23091   ;;
23092 esac
23093 fi
23094 TIME=$ac_cv_path_TIME
23095 if test -n "$TIME"; then
23096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
23097 $as_echo "$TIME" >&6; }
23098 else
23099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23100 $as_echo "no" >&6; }
23101 fi
23102 
23103 
23104           if test "x$TIME" = x; then
23105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23106           fi
23107         else
23108           # Otherwise we believe it is a complete path. Use it as it is.
23109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
23110 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
23111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
23112 $as_echo_n "checking for TIME... " >&6; }
23113           if test ! -x "$tool_specified"; then
23114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23115 $as_echo "not found" >&6; }
23116             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
23117           fi
23118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23119 $as_echo "$tool_specified" >&6; }
23120         fi
23121       fi
23122     fi
23123 
23124   fi
23125 
23126 
23127 
23128 
23129   # Publish this variable in the help.
23130 
23131 
23132   if [ -z "${FLOCK+x}" ]; then
23133     # The variable is not set by user, try to locate tool using the code snippet
23134     for ac_prog in flock
23135 do
23136   # Extract the first word of "$ac_prog", so it can be a program name with args.
23137 set dummy $ac_prog; ac_word=$2
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23139 $as_echo_n "checking for $ac_word... " >&6; }
23140 if ${ac_cv_path_FLOCK+:} false; then :
23141   $as_echo_n "(cached) " >&6
23142 else
23143   case $FLOCK in
23144   [\\/]* | ?:[\\/]*)
23145   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23146   ;;
23147   *)
23148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23149 for as_dir in $PATH
23150 do
23151   IFS=$as_save_IFS
23152   test -z "$as_dir" && as_dir=.
23153     for ac_exec_ext in '' $ac_executable_extensions; do
23154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23155     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23157     break 2
23158   fi
23159 done
23160   done
23161 IFS=$as_save_IFS
23162 
23163   ;;
23164 esac
23165 fi
23166 FLOCK=$ac_cv_path_FLOCK
23167 if test -n "$FLOCK"; then
23168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23169 $as_echo "$FLOCK" >&6; }
23170 else
23171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 $as_echo "no" >&6; }
23173 fi
23174 
23175 
23176   test -n "$FLOCK" && break
23177 done
23178 
23179   else
23180     # The variable is set, but is it from the command line or the environment?
23181 
23182     # Try to remove the string !FLOCK! from our list.
23183     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/}
23184     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23185       # If it failed, the variable was not from the command line. Ignore it,
23186       # but warn the user (except for BASH, which is always set by the calling BASH).
23187       if test "xFLOCK" != xBASH; then
23188         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5
23189 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;}
23190       fi
23191       # Try to locate tool using the code snippet
23192       for ac_prog in flock
23193 do
23194   # Extract the first word of "$ac_prog", so it can be a program name with args.
23195 set dummy $ac_prog; ac_word=$2
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23197 $as_echo_n "checking for $ac_word... " >&6; }
23198 if ${ac_cv_path_FLOCK+:} false; then :
23199   $as_echo_n "(cached) " >&6
23200 else
23201   case $FLOCK in
23202   [\\/]* | ?:[\\/]*)
23203   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23204   ;;
23205   *)
23206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23207 for as_dir in $PATH
23208 do
23209   IFS=$as_save_IFS
23210   test -z "$as_dir" && as_dir=.
23211     for ac_exec_ext in '' $ac_executable_extensions; do
23212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23213     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23215     break 2
23216   fi
23217 done
23218   done
23219 IFS=$as_save_IFS
23220 
23221   ;;
23222 esac
23223 fi
23224 FLOCK=$ac_cv_path_FLOCK
23225 if test -n "$FLOCK"; then
23226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23227 $as_echo "$FLOCK" >&6; }
23228 else
23229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23230 $as_echo "no" >&6; }
23231 fi
23232 
23233 
23234   test -n "$FLOCK" && break
23235 done
23236 
23237     else
23238       # If it succeeded, then it was overridden by the user. We will use it
23239       # for the tool.
23240 
23241       # First remove it from the list of overridden variables, so we can test
23242       # for unknown variables in the end.
23243       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23244 
23245       # Check if we try to supply an empty value
23246       if test "x$FLOCK" = x; then
23247         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5
23248 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;}
23249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23250 $as_echo_n "checking for FLOCK... " >&6; }
23251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23252 $as_echo "disabled" >&6; }
23253       else
23254         # Check if the provided tool contains a complete path.
23255         tool_specified="$FLOCK"
23256         tool_basename="${tool_specified##*/}"
23257         if test "x$tool_basename" = "x$tool_specified"; then
23258           # A command without a complete path is provided, search $PATH.
23259           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5
23260 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;}
23261           # Extract the first word of "$tool_basename", so it can be a program name with args.
23262 set dummy $tool_basename; ac_word=$2
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23264 $as_echo_n "checking for $ac_word... " >&6; }
23265 if ${ac_cv_path_FLOCK+:} false; then :
23266   $as_echo_n "(cached) " >&6
23267 else
23268   case $FLOCK in
23269   [\\/]* | ?:[\\/]*)
23270   ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path.
23271   ;;
23272   *)
23273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23274 for as_dir in $PATH
23275 do
23276   IFS=$as_save_IFS
23277   test -z "$as_dir" && as_dir=.
23278     for ac_exec_ext in '' $ac_executable_extensions; do
23279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23280     ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext"
23281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23282     break 2
23283   fi
23284 done
23285   done
23286 IFS=$as_save_IFS
23287 
23288   ;;
23289 esac
23290 fi
23291 FLOCK=$ac_cv_path_FLOCK
23292 if test -n "$FLOCK"; then
23293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
23294 $as_echo "$FLOCK" >&6; }
23295 else
23296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23297 $as_echo "no" >&6; }
23298 fi
23299 
23300 
23301           if test "x$FLOCK" = x; then
23302             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23303           fi
23304         else
23305           # Otherwise we believe it is a complete path. Use it as it is.
23306           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5
23307 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;}
23308           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5
23309 $as_echo_n "checking for FLOCK... " >&6; }
23310           if test ! -x "$tool_specified"; then
23311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23312 $as_echo "not found" >&6; }
23313             as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5
23314           fi
23315           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23316 $as_echo "$tool_specified" >&6; }
23317         fi
23318       fi
23319     fi
23320 
23321   fi
23322 
23323 
23324   # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not
23325   # be in the user path.
23326 
23327 
23328   # Publish this variable in the help.
23329 
23330 
23331   if [ -z "${DTRACE+x}" ]; then
23332     # The variable is not set by user, try to locate tool using the code snippet
23333     for ac_prog in dtrace
23334 do
23335   # Extract the first word of "$ac_prog", so it can be a program name with args.
23336 set dummy $ac_prog; ac_word=$2
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23338 $as_echo_n "checking for $ac_word... " >&6; }
23339 if ${ac_cv_path_DTRACE+:} false; then :
23340   $as_echo_n "(cached) " >&6
23341 else
23342   case $DTRACE in
23343   [\\/]* | ?:[\\/]*)
23344   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23345   ;;
23346   *)
23347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23348 as_dummy="$PATH:/usr/sbin"
23349 for as_dir in $as_dummy
23350 do
23351   IFS=$as_save_IFS
23352   test -z "$as_dir" && as_dir=.
23353     for ac_exec_ext in '' $ac_executable_extensions; do
23354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23355     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23357     break 2
23358   fi
23359 done
23360   done
23361 IFS=$as_save_IFS
23362 
23363   ;;
23364 esac
23365 fi
23366 DTRACE=$ac_cv_path_DTRACE
23367 if test -n "$DTRACE"; then
23368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23369 $as_echo "$DTRACE" >&6; }
23370 else
23371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23372 $as_echo "no" >&6; }
23373 fi
23374 
23375 
23376   test -n "$DTRACE" && break
23377 done
23378 
23379   else
23380     # The variable is set, but is it from the command line or the environment?
23381 
23382     # Try to remove the string !DTRACE! from our list.
23383     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
23384     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23385       # If it failed, the variable was not from the command line. Ignore it,
23386       # but warn the user (except for BASH, which is always set by the calling BASH).
23387       if test "xDTRACE" != xBASH; then
23388         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
23389 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
23390       fi
23391       # Try to locate tool using the code snippet
23392       for ac_prog in dtrace
23393 do
23394   # Extract the first word of "$ac_prog", so it can be a program name with args.
23395 set dummy $ac_prog; ac_word=$2
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23397 $as_echo_n "checking for $ac_word... " >&6; }
23398 if ${ac_cv_path_DTRACE+:} false; then :
23399   $as_echo_n "(cached) " >&6
23400 else
23401   case $DTRACE in
23402   [\\/]* | ?:[\\/]*)
23403   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23404   ;;
23405   *)
23406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23407 as_dummy="$PATH:/usr/sbin"
23408 for as_dir in $as_dummy
23409 do
23410   IFS=$as_save_IFS
23411   test -z "$as_dir" && as_dir=.
23412     for ac_exec_ext in '' $ac_executable_extensions; do
23413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23414     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23416     break 2
23417   fi
23418 done
23419   done
23420 IFS=$as_save_IFS
23421 
23422   ;;
23423 esac
23424 fi
23425 DTRACE=$ac_cv_path_DTRACE
23426 if test -n "$DTRACE"; then
23427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23428 $as_echo "$DTRACE" >&6; }
23429 else
23430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23431 $as_echo "no" >&6; }
23432 fi
23433 
23434 
23435   test -n "$DTRACE" && break
23436 done
23437 
23438     else
23439       # If it succeeded, then it was overridden by the user. We will use it
23440       # for the tool.
23441 
23442       # First remove it from the list of overridden variables, so we can test
23443       # for unknown variables in the end.
23444       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23445 
23446       # Check if we try to supply an empty value
23447       if test "x$DTRACE" = x; then
23448         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
23449 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
23450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23451 $as_echo_n "checking for DTRACE... " >&6; }
23452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23453 $as_echo "disabled" >&6; }
23454       else
23455         # Check if the provided tool contains a complete path.
23456         tool_specified="$DTRACE"
23457         tool_basename="${tool_specified##*/}"
23458         if test "x$tool_basename" = "x$tool_specified"; then
23459           # A command without a complete path is provided, search $PATH.
23460           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
23461 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
23462           # Extract the first word of "$tool_basename", so it can be a program name with args.
23463 set dummy $tool_basename; ac_word=$2
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23465 $as_echo_n "checking for $ac_word... " >&6; }
23466 if ${ac_cv_path_DTRACE+:} false; then :
23467   $as_echo_n "(cached) " >&6
23468 else
23469   case $DTRACE in
23470   [\\/]* | ?:[\\/]*)
23471   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
23472   ;;
23473   *)
23474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23475 for as_dir in $PATH
23476 do
23477   IFS=$as_save_IFS
23478   test -z "$as_dir" && as_dir=.
23479     for ac_exec_ext in '' $ac_executable_extensions; do
23480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23481     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
23482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23483     break 2
23484   fi
23485 done
23486   done
23487 IFS=$as_save_IFS
23488 
23489   ;;
23490 esac
23491 fi
23492 DTRACE=$ac_cv_path_DTRACE
23493 if test -n "$DTRACE"; then
23494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
23495 $as_echo "$DTRACE" >&6; }
23496 else
23497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23498 $as_echo "no" >&6; }
23499 fi
23500 
23501 
23502           if test "x$DTRACE" = x; then
23503             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23504           fi
23505         else
23506           # Otherwise we believe it is a complete path. Use it as it is.
23507           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
23508 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
23509           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
23510 $as_echo_n "checking for DTRACE... " >&6; }
23511           if test ! -x "$tool_specified"; then
23512             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23513 $as_echo "not found" >&6; }
23514             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
23515           fi
23516           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23517 $as_echo "$tool_specified" >&6; }
23518         fi
23519       fi
23520     fi
23521 
23522   fi
23523 
23524 
23525 
23526 
23527   # Publish this variable in the help.
23528 
23529 
23530   if [ -z "${PATCH+x}" ]; then
23531     # The variable is not set by user, try to locate tool using the code snippet
23532     for ac_prog in gpatch patch
23533 do
23534   # Extract the first word of "$ac_prog", so it can be a program name with args.
23535 set dummy $ac_prog; ac_word=$2
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23537 $as_echo_n "checking for $ac_word... " >&6; }
23538 if ${ac_cv_path_PATCH+:} false; then :
23539   $as_echo_n "(cached) " >&6
23540 else
23541   case $PATCH in
23542   [\\/]* | ?:[\\/]*)
23543   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23544   ;;
23545   *)
23546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23547 for as_dir in $PATH
23548 do
23549   IFS=$as_save_IFS
23550   test -z "$as_dir" && as_dir=.
23551     for ac_exec_ext in '' $ac_executable_extensions; do
23552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23553     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23555     break 2
23556   fi
23557 done
23558   done
23559 IFS=$as_save_IFS
23560 
23561   ;;
23562 esac
23563 fi
23564 PATCH=$ac_cv_path_PATCH
23565 if test -n "$PATCH"; then
23566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23567 $as_echo "$PATCH" >&6; }
23568 else
23569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570 $as_echo "no" >&6; }
23571 fi
23572 
23573 
23574   test -n "$PATCH" && break
23575 done
23576 
23577   else
23578     # The variable is set, but is it from the command line or the environment?
23579 
23580     # Try to remove the string !PATCH! from our list.
23581     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
23582     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23583       # If it failed, the variable was not from the command line. Ignore it,
23584       # but warn the user (except for BASH, which is always set by the calling BASH).
23585       if test "xPATCH" != xBASH; then
23586         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
23587 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
23588       fi
23589       # Try to locate tool using the code snippet
23590       for ac_prog in gpatch patch
23591 do
23592   # Extract the first word of "$ac_prog", so it can be a program name with args.
23593 set dummy $ac_prog; ac_word=$2
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23595 $as_echo_n "checking for $ac_word... " >&6; }
23596 if ${ac_cv_path_PATCH+:} false; then :
23597   $as_echo_n "(cached) " >&6
23598 else
23599   case $PATCH in
23600   [\\/]* | ?:[\\/]*)
23601   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23602   ;;
23603   *)
23604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23605 for as_dir in $PATH
23606 do
23607   IFS=$as_save_IFS
23608   test -z "$as_dir" && as_dir=.
23609     for ac_exec_ext in '' $ac_executable_extensions; do
23610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23611     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23613     break 2
23614   fi
23615 done
23616   done
23617 IFS=$as_save_IFS
23618 
23619   ;;
23620 esac
23621 fi
23622 PATCH=$ac_cv_path_PATCH
23623 if test -n "$PATCH"; then
23624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23625 $as_echo "$PATCH" >&6; }
23626 else
23627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23628 $as_echo "no" >&6; }
23629 fi
23630 
23631 
23632   test -n "$PATCH" && break
23633 done
23634 
23635     else
23636       # If it succeeded, then it was overridden by the user. We will use it
23637       # for the tool.
23638 
23639       # First remove it from the list of overridden variables, so we can test
23640       # for unknown variables in the end.
23641       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23642 
23643       # Check if we try to supply an empty value
23644       if test "x$PATCH" = x; then
23645         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
23646 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
23647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23648 $as_echo_n "checking for PATCH... " >&6; }
23649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23650 $as_echo "disabled" >&6; }
23651       else
23652         # Check if the provided tool contains a complete path.
23653         tool_specified="$PATCH"
23654         tool_basename="${tool_specified##*/}"
23655         if test "x$tool_basename" = "x$tool_specified"; then
23656           # A command without a complete path is provided, search $PATH.
23657           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
23658 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
23659           # Extract the first word of "$tool_basename", so it can be a program name with args.
23660 set dummy $tool_basename; ac_word=$2
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23662 $as_echo_n "checking for $ac_word... " >&6; }
23663 if ${ac_cv_path_PATCH+:} false; then :
23664   $as_echo_n "(cached) " >&6
23665 else
23666   case $PATCH in
23667   [\\/]* | ?:[\\/]*)
23668   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
23669   ;;
23670   *)
23671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23672 for as_dir in $PATH
23673 do
23674   IFS=$as_save_IFS
23675   test -z "$as_dir" && as_dir=.
23676     for ac_exec_ext in '' $ac_executable_extensions; do
23677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23678     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
23679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23680     break 2
23681   fi
23682 done
23683   done
23684 IFS=$as_save_IFS
23685 
23686   ;;
23687 esac
23688 fi
23689 PATCH=$ac_cv_path_PATCH
23690 if test -n "$PATCH"; then
23691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
23692 $as_echo "$PATCH" >&6; }
23693 else
23694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23695 $as_echo "no" >&6; }
23696 fi
23697 
23698 
23699           if test "x$PATCH" = x; then
23700             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23701           fi
23702         else
23703           # Otherwise we believe it is a complete path. Use it as it is.
23704           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
23705 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
23706           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
23707 $as_echo_n "checking for PATCH... " >&6; }
23708           if test ! -x "$tool_specified"; then
23709             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23710 $as_echo "not found" >&6; }
23711             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
23712           fi
23713           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23714 $as_echo "$tool_specified" >&6; }
23715         fi
23716       fi
23717     fi
23718 
23719   fi
23720 
23721 
23722   # Check if it's GNU time
23723   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
23724   if test "x$IS_GNU_TIME" != x; then
23725     IS_GNU_TIME=yes
23726   else
23727     IS_GNU_TIME=no
23728   fi
23729 
23730 
23731   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
23732 
23733 
23734 
23735   # Publish this variable in the help.
23736 
23737 
23738   if [ -z "${DSYMUTIL+x}" ]; then
23739     # The variable is not set by user, try to locate tool using the code snippet
23740     for ac_prog in dsymutil
23741 do
23742   # Extract the first word of "$ac_prog", so it can be a program name with args.
23743 set dummy $ac_prog; ac_word=$2
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23745 $as_echo_n "checking for $ac_word... " >&6; }
23746 if ${ac_cv_path_DSYMUTIL+:} false; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   case $DSYMUTIL in
23750   [\\/]* | ?:[\\/]*)
23751   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23752   ;;
23753   *)
23754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23755 for as_dir in $PATH
23756 do
23757   IFS=$as_save_IFS
23758   test -z "$as_dir" && as_dir=.
23759     for ac_exec_ext in '' $ac_executable_extensions; do
23760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23761     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23763     break 2
23764   fi
23765 done
23766   done
23767 IFS=$as_save_IFS
23768 
23769   ;;
23770 esac
23771 fi
23772 DSYMUTIL=$ac_cv_path_DSYMUTIL
23773 if test -n "$DSYMUTIL"; then
23774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23775 $as_echo "$DSYMUTIL" >&6; }
23776 else
23777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23778 $as_echo "no" >&6; }
23779 fi
23780 
23781 
23782   test -n "$DSYMUTIL" && break
23783 done
23784 
23785   else
23786     # The variable is set, but is it from the command line or the environment?
23787 
23788     # Try to remove the string !DSYMUTIL! from our list.
23789     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
23790     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23791       # If it failed, the variable was not from the command line. Ignore it,
23792       # but warn the user (except for BASH, which is always set by the calling BASH).
23793       if test "xDSYMUTIL" != xBASH; then
23794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
23795 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
23796       fi
23797       # Try to locate tool using the code snippet
23798       for ac_prog in dsymutil
23799 do
23800   # Extract the first word of "$ac_prog", so it can be a program name with args.
23801 set dummy $ac_prog; ac_word=$2
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23803 $as_echo_n "checking for $ac_word... " >&6; }
23804 if ${ac_cv_path_DSYMUTIL+:} false; then :
23805   $as_echo_n "(cached) " >&6
23806 else
23807   case $DSYMUTIL in
23808   [\\/]* | ?:[\\/]*)
23809   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23810   ;;
23811   *)
23812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23813 for as_dir in $PATH
23814 do
23815   IFS=$as_save_IFS
23816   test -z "$as_dir" && as_dir=.
23817     for ac_exec_ext in '' $ac_executable_extensions; do
23818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23819     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23821     break 2
23822   fi
23823 done
23824   done
23825 IFS=$as_save_IFS
23826 
23827   ;;
23828 esac
23829 fi
23830 DSYMUTIL=$ac_cv_path_DSYMUTIL
23831 if test -n "$DSYMUTIL"; then
23832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23833 $as_echo "$DSYMUTIL" >&6; }
23834 else
23835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23836 $as_echo "no" >&6; }
23837 fi
23838 
23839 
23840   test -n "$DSYMUTIL" && break
23841 done
23842 
23843     else
23844       # If it succeeded, then it was overridden by the user. We will use it
23845       # for the tool.
23846 
23847       # First remove it from the list of overridden variables, so we can test
23848       # for unknown variables in the end.
23849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23850 
23851       # Check if we try to supply an empty value
23852       if test "x$DSYMUTIL" = x; then
23853         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
23854 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
23855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23856 $as_echo_n "checking for DSYMUTIL... " >&6; }
23857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23858 $as_echo "disabled" >&6; }
23859       else
23860         # Check if the provided tool contains a complete path.
23861         tool_specified="$DSYMUTIL"
23862         tool_basename="${tool_specified##*/}"
23863         if test "x$tool_basename" = "x$tool_specified"; then
23864           # A command without a complete path is provided, search $PATH.
23865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
23866 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
23867           # Extract the first word of "$tool_basename", so it can be a program name with args.
23868 set dummy $tool_basename; ac_word=$2
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23870 $as_echo_n "checking for $ac_word... " >&6; }
23871 if ${ac_cv_path_DSYMUTIL+:} false; then :
23872   $as_echo_n "(cached) " >&6
23873 else
23874   case $DSYMUTIL in
23875   [\\/]* | ?:[\\/]*)
23876   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
23877   ;;
23878   *)
23879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23880 for as_dir in $PATH
23881 do
23882   IFS=$as_save_IFS
23883   test -z "$as_dir" && as_dir=.
23884     for ac_exec_ext in '' $ac_executable_extensions; do
23885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23886     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
23887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23888     break 2
23889   fi
23890 done
23891   done
23892 IFS=$as_save_IFS
23893 
23894   ;;
23895 esac
23896 fi
23897 DSYMUTIL=$ac_cv_path_DSYMUTIL
23898 if test -n "$DSYMUTIL"; then
23899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
23900 $as_echo "$DSYMUTIL" >&6; }
23901 else
23902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23903 $as_echo "no" >&6; }
23904 fi
23905 
23906 
23907           if test "x$DSYMUTIL" = x; then
23908             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23909           fi
23910         else
23911           # Otherwise we believe it is a complete path. Use it as it is.
23912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
23913 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
23914           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
23915 $as_echo_n "checking for DSYMUTIL... " >&6; }
23916           if test ! -x "$tool_specified"; then
23917             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23918 $as_echo "not found" >&6; }
23919             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
23920           fi
23921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23922 $as_echo "$tool_specified" >&6; }
23923         fi
23924       fi
23925     fi
23926 
23927   fi
23928 
23929 
23930 
23931   if test "x$DSYMUTIL" = x; then
23932     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
23933   fi
23934 
23935 
23936 
23937 
23938 
23939   # Publish this variable in the help.
23940 
23941 
23942   if [ -z "${XATTR+x}" ]; then
23943     # The variable is not set by user, try to locate tool using the code snippet
23944     for ac_prog in xattr
23945 do
23946   # Extract the first word of "$ac_prog", so it can be a program name with args.
23947 set dummy $ac_prog; ac_word=$2
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23949 $as_echo_n "checking for $ac_word... " >&6; }
23950 if ${ac_cv_path_XATTR+:} false; then :
23951   $as_echo_n "(cached) " >&6
23952 else
23953   case $XATTR in
23954   [\\/]* | ?:[\\/]*)
23955   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23956   ;;
23957   *)
23958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23959 for as_dir in $PATH
23960 do
23961   IFS=$as_save_IFS
23962   test -z "$as_dir" && as_dir=.
23963     for ac_exec_ext in '' $ac_executable_extensions; do
23964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23965     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23967     break 2
23968   fi
23969 done
23970   done
23971 IFS=$as_save_IFS
23972 
23973   ;;
23974 esac
23975 fi
23976 XATTR=$ac_cv_path_XATTR
23977 if test -n "$XATTR"; then
23978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23979 $as_echo "$XATTR" >&6; }
23980 else
23981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982 $as_echo "no" >&6; }
23983 fi
23984 
23985 
23986   test -n "$XATTR" && break
23987 done
23988 
23989   else
23990     # The variable is set, but is it from the command line or the environment?
23991 
23992     # Try to remove the string !XATTR! from our list.
23993     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
23994     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23995       # If it failed, the variable was not from the command line. Ignore it,
23996       # but warn the user (except for BASH, which is always set by the calling BASH).
23997       if test "xXATTR" != xBASH; then
23998         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
23999 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
24000       fi
24001       # Try to locate tool using the code snippet
24002       for ac_prog in xattr
24003 do
24004   # Extract the first word of "$ac_prog", so it can be a program name with args.
24005 set dummy $ac_prog; ac_word=$2
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24007 $as_echo_n "checking for $ac_word... " >&6; }
24008 if ${ac_cv_path_XATTR+:} false; then :
24009   $as_echo_n "(cached) " >&6
24010 else
24011   case $XATTR in
24012   [\\/]* | ?:[\\/]*)
24013   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24014   ;;
24015   *)
24016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24017 for as_dir in $PATH
24018 do
24019   IFS=$as_save_IFS
24020   test -z "$as_dir" && as_dir=.
24021     for ac_exec_ext in '' $ac_executable_extensions; do
24022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24023     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24025     break 2
24026   fi
24027 done
24028   done
24029 IFS=$as_save_IFS
24030 
24031   ;;
24032 esac
24033 fi
24034 XATTR=$ac_cv_path_XATTR
24035 if test -n "$XATTR"; then
24036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24037 $as_echo "$XATTR" >&6; }
24038 else
24039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040 $as_echo "no" >&6; }
24041 fi
24042 
24043 
24044   test -n "$XATTR" && break
24045 done
24046 
24047     else
24048       # If it succeeded, then it was overridden by the user. We will use it
24049       # for the tool.
24050 
24051       # First remove it from the list of overridden variables, so we can test
24052       # for unknown variables in the end.
24053       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24054 
24055       # Check if we try to supply an empty value
24056       if test "x$XATTR" = x; then
24057         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
24058 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
24059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24060 $as_echo_n "checking for XATTR... " >&6; }
24061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24062 $as_echo "disabled" >&6; }
24063       else
24064         # Check if the provided tool contains a complete path.
24065         tool_specified="$XATTR"
24066         tool_basename="${tool_specified##*/}"
24067         if test "x$tool_basename" = "x$tool_specified"; then
24068           # A command without a complete path is provided, search $PATH.
24069           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
24070 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
24071           # Extract the first word of "$tool_basename", so it can be a program name with args.
24072 set dummy $tool_basename; ac_word=$2
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24074 $as_echo_n "checking for $ac_word... " >&6; }
24075 if ${ac_cv_path_XATTR+:} false; then :
24076   $as_echo_n "(cached) " >&6
24077 else
24078   case $XATTR in
24079   [\\/]* | ?:[\\/]*)
24080   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
24081   ;;
24082   *)
24083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24084 for as_dir in $PATH
24085 do
24086   IFS=$as_save_IFS
24087   test -z "$as_dir" && as_dir=.
24088     for ac_exec_ext in '' $ac_executable_extensions; do
24089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24090     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
24091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24092     break 2
24093   fi
24094 done
24095   done
24096 IFS=$as_save_IFS
24097 
24098   ;;
24099 esac
24100 fi
24101 XATTR=$ac_cv_path_XATTR
24102 if test -n "$XATTR"; then
24103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
24104 $as_echo "$XATTR" >&6; }
24105 else
24106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24107 $as_echo "no" >&6; }
24108 fi
24109 
24110 
24111           if test "x$XATTR" = x; then
24112             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24113           fi
24114         else
24115           # Otherwise we believe it is a complete path. Use it as it is.
24116           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
24117 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
24118           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
24119 $as_echo_n "checking for XATTR... " >&6; }
24120           if test ! -x "$tool_specified"; then
24121             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24122 $as_echo "not found" >&6; }
24123             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
24124           fi
24125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24126 $as_echo "$tool_specified" >&6; }
24127         fi
24128       fi
24129     fi
24130 
24131   fi
24132 
24133 
24134 
24135   if test "x$XATTR" = x; then
24136     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
24137   fi
24138 
24139 
24140 
24141 
24142   # Publish this variable in the help.
24143 
24144 
24145   if [ -z "${CODESIGN+x}" ]; then
24146     # The variable is not set by user, try to locate tool using the code snippet
24147     for ac_prog in codesign
24148 do
24149   # Extract the first word of "$ac_prog", so it can be a program name with args.
24150 set dummy $ac_prog; ac_word=$2
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24152 $as_echo_n "checking for $ac_word... " >&6; }
24153 if ${ac_cv_path_CODESIGN+:} false; then :
24154   $as_echo_n "(cached) " >&6
24155 else
24156   case $CODESIGN in
24157   [\\/]* | ?:[\\/]*)
24158   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24159   ;;
24160   *)
24161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162 for as_dir in $PATH
24163 do
24164   IFS=$as_save_IFS
24165   test -z "$as_dir" && as_dir=.
24166     for ac_exec_ext in '' $ac_executable_extensions; do
24167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24168     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24170     break 2
24171   fi
24172 done
24173   done
24174 IFS=$as_save_IFS
24175 
24176   ;;
24177 esac
24178 fi
24179 CODESIGN=$ac_cv_path_CODESIGN
24180 if test -n "$CODESIGN"; then
24181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24182 $as_echo "$CODESIGN" >&6; }
24183 else
24184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24185 $as_echo "no" >&6; }
24186 fi
24187 
24188 
24189   test -n "$CODESIGN" && break
24190 done
24191 
24192   else
24193     # The variable is set, but is it from the command line or the environment?
24194 
24195     # Try to remove the string !CODESIGN! from our list.
24196     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
24197     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24198       # If it failed, the variable was not from the command line. Ignore it,
24199       # but warn the user (except for BASH, which is always set by the calling BASH).
24200       if test "xCODESIGN" != xBASH; then
24201         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
24202 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
24203       fi
24204       # Try to locate tool using the code snippet
24205       for ac_prog in codesign
24206 do
24207   # Extract the first word of "$ac_prog", so it can be a program name with args.
24208 set dummy $ac_prog; ac_word=$2
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24210 $as_echo_n "checking for $ac_word... " >&6; }
24211 if ${ac_cv_path_CODESIGN+:} false; then :
24212   $as_echo_n "(cached) " >&6
24213 else
24214   case $CODESIGN in
24215   [\\/]* | ?:[\\/]*)
24216   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24217   ;;
24218   *)
24219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24220 for as_dir in $PATH
24221 do
24222   IFS=$as_save_IFS
24223   test -z "$as_dir" && as_dir=.
24224     for ac_exec_ext in '' $ac_executable_extensions; do
24225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24226     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24228     break 2
24229   fi
24230 done
24231   done
24232 IFS=$as_save_IFS
24233 
24234   ;;
24235 esac
24236 fi
24237 CODESIGN=$ac_cv_path_CODESIGN
24238 if test -n "$CODESIGN"; then
24239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24240 $as_echo "$CODESIGN" >&6; }
24241 else
24242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24243 $as_echo "no" >&6; }
24244 fi
24245 
24246 
24247   test -n "$CODESIGN" && break
24248 done
24249 
24250     else
24251       # If it succeeded, then it was overridden by the user. We will use it
24252       # for the tool.
24253 
24254       # First remove it from the list of overridden variables, so we can test
24255       # for unknown variables in the end.
24256       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24257 
24258       # Check if we try to supply an empty value
24259       if test "x$CODESIGN" = x; then
24260         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
24261 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
24262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24263 $as_echo_n "checking for CODESIGN... " >&6; }
24264         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24265 $as_echo "disabled" >&6; }
24266       else
24267         # Check if the provided tool contains a complete path.
24268         tool_specified="$CODESIGN"
24269         tool_basename="${tool_specified##*/}"
24270         if test "x$tool_basename" = "x$tool_specified"; then
24271           # A command without a complete path is provided, search $PATH.
24272           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
24273 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
24274           # Extract the first word of "$tool_basename", so it can be a program name with args.
24275 set dummy $tool_basename; ac_word=$2
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24277 $as_echo_n "checking for $ac_word... " >&6; }
24278 if ${ac_cv_path_CODESIGN+:} false; then :
24279   $as_echo_n "(cached) " >&6
24280 else
24281   case $CODESIGN in
24282   [\\/]* | ?:[\\/]*)
24283   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
24284   ;;
24285   *)
24286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24287 for as_dir in $PATH
24288 do
24289   IFS=$as_save_IFS
24290   test -z "$as_dir" && as_dir=.
24291     for ac_exec_ext in '' $ac_executable_extensions; do
24292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24293     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
24294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24295     break 2
24296   fi
24297 done
24298   done
24299 IFS=$as_save_IFS
24300 
24301   ;;
24302 esac
24303 fi
24304 CODESIGN=$ac_cv_path_CODESIGN
24305 if test -n "$CODESIGN"; then
24306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
24307 $as_echo "$CODESIGN" >&6; }
24308 else
24309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24310 $as_echo "no" >&6; }
24311 fi
24312 
24313 
24314           if test "x$CODESIGN" = x; then
24315             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24316           fi
24317         else
24318           # Otherwise we believe it is a complete path. Use it as it is.
24319           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
24320 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
24321           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
24322 $as_echo_n "checking for CODESIGN... " >&6; }
24323           if test ! -x "$tool_specified"; then
24324             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24325 $as_echo "not found" >&6; }
24326             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
24327           fi
24328           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24329 $as_echo "$tool_specified" >&6; }
24330         fi
24331       fi
24332     fi
24333 
24334   fi
24335 
24336 
24337     if test "x$CODESIGN" != "x"; then
24338       # Verify that the openjdk_codesign certificate is present
24339       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
24340 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
24341       $RM codesign-testfile
24342       $TOUCH codesign-testfile
24343       $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
24344       $RM codesign-testfile
24345       if test "x$CODESIGN" = x; then
24346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24347 $as_echo "no" >&6; }
24348       else
24349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24350 $as_echo "yes" >&6; }
24351       fi
24352     fi
24353 
24354 
24355 
24356   # Publish this variable in the help.
24357 
24358 
24359   if [ -z "${SETFILE+x}" ]; then
24360     # The variable is not set by user, try to locate tool using the code snippet
24361     for ac_prog in SetFile
24362 do
24363   # Extract the first word of "$ac_prog", so it can be a program name with args.
24364 set dummy $ac_prog; ac_word=$2
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24366 $as_echo_n "checking for $ac_word... " >&6; }
24367 if ${ac_cv_path_SETFILE+:} false; then :
24368   $as_echo_n "(cached) " >&6
24369 else
24370   case $SETFILE in
24371   [\\/]* | ?:[\\/]*)
24372   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24373   ;;
24374   *)
24375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24376 for as_dir in $PATH
24377 do
24378   IFS=$as_save_IFS
24379   test -z "$as_dir" && as_dir=.
24380     for ac_exec_ext in '' $ac_executable_extensions; do
24381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24382     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24384     break 2
24385   fi
24386 done
24387   done
24388 IFS=$as_save_IFS
24389 
24390   ;;
24391 esac
24392 fi
24393 SETFILE=$ac_cv_path_SETFILE
24394 if test -n "$SETFILE"; then
24395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24396 $as_echo "$SETFILE" >&6; }
24397 else
24398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24399 $as_echo "no" >&6; }
24400 fi
24401 
24402 
24403   test -n "$SETFILE" && break
24404 done
24405 
24406   else
24407     # The variable is set, but is it from the command line or the environment?
24408 
24409     # Try to remove the string !SETFILE! from our list.
24410     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
24411     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24412       # If it failed, the variable was not from the command line. Ignore it,
24413       # but warn the user (except for BASH, which is always set by the calling BASH).
24414       if test "xSETFILE" != xBASH; then
24415         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
24416 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
24417       fi
24418       # Try to locate tool using the code snippet
24419       for ac_prog in SetFile
24420 do
24421   # Extract the first word of "$ac_prog", so it can be a program name with args.
24422 set dummy $ac_prog; ac_word=$2
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24424 $as_echo_n "checking for $ac_word... " >&6; }
24425 if ${ac_cv_path_SETFILE+:} false; then :
24426   $as_echo_n "(cached) " >&6
24427 else
24428   case $SETFILE in
24429   [\\/]* | ?:[\\/]*)
24430   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24431   ;;
24432   *)
24433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24434 for as_dir in $PATH
24435 do
24436   IFS=$as_save_IFS
24437   test -z "$as_dir" && as_dir=.
24438     for ac_exec_ext in '' $ac_executable_extensions; do
24439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24440     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24442     break 2
24443   fi
24444 done
24445   done
24446 IFS=$as_save_IFS
24447 
24448   ;;
24449 esac
24450 fi
24451 SETFILE=$ac_cv_path_SETFILE
24452 if test -n "$SETFILE"; then
24453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24454 $as_echo "$SETFILE" >&6; }
24455 else
24456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24457 $as_echo "no" >&6; }
24458 fi
24459 
24460 
24461   test -n "$SETFILE" && break
24462 done
24463 
24464     else
24465       # If it succeeded, then it was overridden by the user. We will use it
24466       # for the tool.
24467 
24468       # First remove it from the list of overridden variables, so we can test
24469       # for unknown variables in the end.
24470       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24471 
24472       # Check if we try to supply an empty value
24473       if test "x$SETFILE" = x; then
24474         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
24475 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
24476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24477 $as_echo_n "checking for SETFILE... " >&6; }
24478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
24479 $as_echo "disabled" >&6; }
24480       else
24481         # Check if the provided tool contains a complete path.
24482         tool_specified="$SETFILE"
24483         tool_basename="${tool_specified##*/}"
24484         if test "x$tool_basename" = "x$tool_specified"; then
24485           # A command without a complete path is provided, search $PATH.
24486           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
24487 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
24488           # Extract the first word of "$tool_basename", so it can be a program name with args.
24489 set dummy $tool_basename; ac_word=$2
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24491 $as_echo_n "checking for $ac_word... " >&6; }
24492 if ${ac_cv_path_SETFILE+:} false; then :
24493   $as_echo_n "(cached) " >&6
24494 else
24495   case $SETFILE in
24496   [\\/]* | ?:[\\/]*)
24497   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
24498   ;;
24499   *)
24500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24501 for as_dir in $PATH
24502 do
24503   IFS=$as_save_IFS
24504   test -z "$as_dir" && as_dir=.
24505     for ac_exec_ext in '' $ac_executable_extensions; do
24506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24507     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
24508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24509     break 2
24510   fi
24511 done
24512   done
24513 IFS=$as_save_IFS
24514 
24515   ;;
24516 esac
24517 fi
24518 SETFILE=$ac_cv_path_SETFILE
24519 if test -n "$SETFILE"; then
24520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
24521 $as_echo "$SETFILE" >&6; }
24522 else
24523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24524 $as_echo "no" >&6; }
24525 fi
24526 
24527 
24528           if test "x$SETFILE" = x; then
24529             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
24530           fi
24531         else
24532           # Otherwise we believe it is a complete path. Use it as it is.
24533           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
24534 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
24535           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
24536 $as_echo_n "checking for SETFILE... " >&6; }
24537           if test ! -x "$tool_specified"; then
24538             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24539 $as_echo "not found" >&6; }
24540             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
24541           fi
24542           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
24543 $as_echo "$tool_specified" >&6; }
24544         fi
24545       fi
24546     fi
24547 
24548   fi
24549 
24550 
24551 
24552   if test "x$SETFILE" = x; then
24553     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
24554   fi
24555 
24556 
24557   fi
24558 
24559 
24560   # Check bash version
24561   # Extra [ ] to stop m4 mangling
24562    BASH_VER=`$BASH --version | $SED -n  -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'`
24563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5
24564 $as_echo_n "checking bash version... " >&6; }
24565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5
24566 $as_echo "$BASH_VER" >&6; }
24567 
24568   BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1`
24569   BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2`
24570   if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then
24571     as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5
24572   fi
24573 
24574   # Test if bash supports pipefail.
24575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
24576 $as_echo_n "checking if bash supports pipefail... " >&6; }
24577   if ${BASH} -c 'set -o pipefail'; then
24578     BASH_ARGS="$BASH_ARGS -o pipefail"
24579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24580 $as_echo "yes" >&6; }
24581   else
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24583 $as_echo "no" >&6; }
24584   fi
24585 
24586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
24587 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
24588   if ${BASH} -e -c 'true'; then
24589     BASH_ARGS="$BASH_ARGS -e"
24590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24591 $as_echo "yes" >&6; }
24592   else
24593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24594 $as_echo "no" >&6; }
24595   fi
24596 
24597 
24598 
24599 
24600 # Check if pkg-config is available.
24601 
24602 
24603 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24604         if test -n "$ac_tool_prefix"; then
24605   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24606 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24608 $as_echo_n "checking for $ac_word... " >&6; }
24609 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24610   $as_echo_n "(cached) " >&6
24611 else
24612   case $PKG_CONFIG in
24613   [\\/]* | ?:[\\/]*)
24614   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24615   ;;
24616   *)
24617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618 for as_dir in $PATH
24619 do
24620   IFS=$as_save_IFS
24621   test -z "$as_dir" && as_dir=.
24622     for ac_exec_ext in '' $ac_executable_extensions; do
24623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24624     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24626     break 2
24627   fi
24628 done
24629   done
24630 IFS=$as_save_IFS
24631 
24632   ;;
24633 esac
24634 fi
24635 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24636 if test -n "$PKG_CONFIG"; then
24637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24638 $as_echo "$PKG_CONFIG" >&6; }
24639 else
24640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24641 $as_echo "no" >&6; }
24642 fi
24643 
24644 
24645 fi
24646 if test -z "$ac_cv_path_PKG_CONFIG"; then
24647   ac_pt_PKG_CONFIG=$PKG_CONFIG
24648   # Extract the first word of "pkg-config", so it can be a program name with args.
24649 set dummy pkg-config; ac_word=$2
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24651 $as_echo_n "checking for $ac_word... " >&6; }
24652 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24653   $as_echo_n "(cached) " >&6
24654 else
24655   case $ac_pt_PKG_CONFIG in
24656   [\\/]* | ?:[\\/]*)
24657   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24658   ;;
24659   *)
24660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24661 for as_dir in $PATH
24662 do
24663   IFS=$as_save_IFS
24664   test -z "$as_dir" && as_dir=.
24665     for ac_exec_ext in '' $ac_executable_extensions; do
24666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24667     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24669     break 2
24670   fi
24671 done
24672   done
24673 IFS=$as_save_IFS
24674 
24675   ;;
24676 esac
24677 fi
24678 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24679 if test -n "$ac_pt_PKG_CONFIG"; then
24680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24681 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24682 else
24683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24684 $as_echo "no" >&6; }
24685 fi
24686 
24687   if test "x$ac_pt_PKG_CONFIG" = x; then
24688     PKG_CONFIG=""
24689   else
24690     case $cross_compiling:$ac_tool_warned in
24691 yes:)
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24694 ac_tool_warned=yes ;;
24695 esac
24696     PKG_CONFIG=$ac_pt_PKG_CONFIG
24697   fi
24698 else
24699   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24700 fi
24701 
24702 fi
24703 if test -n "$PKG_CONFIG"; then
24704         _pkg_min_version=0.9.0
24705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
24706 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
24707         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
24708                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24709 $as_echo "yes" >&6; }
24710         else
24711                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24712 $as_echo "no" >&6; }
24713                 PKG_CONFIG=""
24714         fi
24715 
24716 fi
24717 
24718 # After basic tools have been setup, we can check build os specific details.
24719 
24720   ###############################################################################
24721 
24722   # Note that this is the build platform OS version!
24723 
24724   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
24725   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
24726   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
24727   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
24728 
24729 
24730 
24731 
24732 
24733 # Misc basic settings
24734 
24735 
24736 # Check whether --with-default-make-target was given.
24737 if test "${with_default_make_target+set}" = set; then :
24738   withval=$with_default_make_target;
24739 fi
24740 
24741   if test "x$with_default_make_target" = "x" \
24742       || test "x$with_default_make_target" = "xyes"; then
24743     DEFAULT_MAKE_TARGET="exploded-image"
24744   elif test "x$with_default_make_target" = "xno"; then
24745     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
24746   else
24747     DEFAULT_MAKE_TARGET="$with_default_make_target"
24748   fi
24749 
24750 
24751 
24752 
24753 ###############################################################################
24754 #
24755 # Determine OpenJDK variants, options and version numbers.
24756 #
24757 ###############################################################################
24758 
24759 # We need build & target for this.
24760 
24761   # Should we build a JDK without a graphical UI?
24762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5
24763 $as_echo_n "checking headless only... " >&6; }
24764   # Check whether --enable-headless-only was given.
24765 if test "${enable_headless_only+set}" = set; then :
24766   enableval=$enable_headless_only;
24767 fi
24768 
24769 
24770   if test "x$enable_headless_only" = "xyes"; then
24771     ENABLE_HEADLESS_ONLY="true"
24772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24773 $as_echo "yes" >&6; }
24774   elif test "x$enable_headless_only" = "xno"; then
24775     ENABLE_HEADLESS_ONLY="false"
24776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24777 $as_echo "no" >&6; }
24778   elif test "x$enable_headless_only" = "x"; then
24779     ENABLE_HEADLESS_ONLY="false"
24780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24781 $as_echo "no" >&6; }
24782   else
24783     as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5
24784   fi
24785 
24786 
24787 
24788   # Should we build the complete docs, or just a lightweight version?
24789   # Check whether --enable-full-docs was given.
24790 if test "${enable_full_docs+set}" = set; then :
24791   enableval=$enable_full_docs;
24792 fi
24793 
24794 
24795   # Verify dependencies
24796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5
24797 $as_echo_n "checking for graphviz dot... " >&6; }
24798   if test "x$DOT" != "x"; then
24799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24800 $as_echo "yes" >&6; }
24801   else
24802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24803 $as_echo "no, cannot generate full docs" >&6; }
24804     FULL_DOCS_DEP_MISSING=true
24805   fi
24806 
24807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5
24808 $as_echo_n "checking for pandoc... " >&6; }
24809   if test "x$PANDOC" != "x"; then
24810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24811 $as_echo "yes" >&6; }
24812   else
24813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5
24814 $as_echo "no, cannot generate full docs" >&6; }
24815     FULL_DOCS_DEP_MISSING=true
24816   fi
24817 
24818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5
24819 $as_echo_n "checking full docs... " >&6; }
24820   if test "x$enable_full_docs" = xyes; then
24821     if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
24822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24823 $as_echo "no, missing dependencies" >&6; }
24824 
24825   # Print a helpful message on how to acquire the necessary build dependency.
24826   # dot is the help tag: freetype, cups, alsa etc
24827   MISSING_DEPENDENCY=dot
24828 
24829   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24830     cygwin_help $MISSING_DEPENDENCY
24831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24832     msys_help $MISSING_DEPENDENCY
24833   else
24834     PKGHANDLER_COMMAND=
24835 
24836     case $PKGHANDLER in
24837       apt-get)
24838         apt_help     $MISSING_DEPENDENCY ;;
24839       yum)
24840         yum_help     $MISSING_DEPENDENCY ;;
24841       brew)
24842         brew_help    $MISSING_DEPENDENCY ;;
24843       port)
24844         port_help    $MISSING_DEPENDENCY ;;
24845       pkgutil)
24846         pkgutil_help $MISSING_DEPENDENCY ;;
24847       pkgadd)
24848         pkgadd_help  $MISSING_DEPENDENCY ;;
24849     esac
24850 
24851     if test "x$PKGHANDLER_COMMAND" != x; then
24852       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24853     fi
24854   fi
24855 
24856       as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5
24857     else
24858       ENABLE_FULL_DOCS=true
24859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
24860 $as_echo "yes, forced" >&6; }
24861     fi
24862   elif test "x$enable_full_docs" = xno; then
24863     ENABLE_FULL_DOCS=false
24864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
24865 $as_echo "no, forced" >&6; }
24866   elif test "x$enable_full_docs" = x; then
24867     # Check for prerequisites
24868     if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then
24869       ENABLE_FULL_DOCS=false
24870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5
24871 $as_echo "no, missing dependencies" >&6; }
24872     else
24873       ENABLE_FULL_DOCS=true
24874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5
24875 $as_echo "yes, dependencies present" >&6; }
24876     fi
24877   else
24878     as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5
24879   fi
24880 
24881 
24882 
24883   # Choose cacerts source file
24884 
24885 # Check whether --with-cacerts-file was given.
24886 if test "${with_cacerts_file+set}" = set; then :
24887   withval=$with_cacerts_file;
24888 fi
24889 
24890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5
24891 $as_echo_n "checking for cacerts file... " >&6; }
24892   if test "x$with_cacerts_file" == x; then
24893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
24894 $as_echo "default" >&6; }
24895   else
24896     CACERTS_FILE=$with_cacerts_file
24897     if test ! -f "$CACERTS_FILE"; then
24898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
24899 $as_echo "fail" >&6; }
24900       as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5
24901     fi
24902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5
24903 $as_echo "$CACERTS_FILE" >&6; }
24904   fi
24905 
24906 
24907   # Enable or disable unlimited crypto
24908   # Check whether --enable-unlimited-crypto was given.
24909 if test "${enable_unlimited_crypto+set}" = set; then :
24910   enableval=$enable_unlimited_crypto;
24911 else
24912   enable_unlimited_crypto=yes
24913 fi
24914 
24915   if test "x$enable_unlimited_crypto" = "xyes"; then
24916     UNLIMITED_CRYPTO=true
24917   else
24918     UNLIMITED_CRYPTO=false
24919   fi
24920 
24921 
24922   # Should we build the serviceability agent (SA)?
24923   INCLUDE_SA=true
24924   if   [[ " $JVM_VARIANTS " =~ " zero " ]]  ; then
24925     INCLUDE_SA=false
24926   fi
24927   if test "x$OPENJDK_TARGET_OS" = xaix ; then
24928     INCLUDE_SA=false
24929   fi
24930 
24931 
24932   # Compress jars
24933   COMPRESS_JARS=false
24934 
24935 
24936 
24937   # Setup default copyright year. Mostly overridden when building close to a new year.
24938 
24939 # Check whether --with-copyright-year was given.
24940 if test "${with_copyright_year+set}" = set; then :
24941   withval=$with_copyright_year;
24942 fi
24943 
24944   if test "x$with_copyright_year" = xyes; then
24945     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
24946   elif test "x$with_copyright_year" != x; then
24947     COPYRIGHT_YEAR="$with_copyright_year"
24948   else
24949     COPYRIGHT_YEAR=`$DATE +'%Y'`
24950   fi
24951 
24952 
24953 
24954   # Check whether --enable-keep-packaged-modules was given.
24955 if test "${enable_keep_packaged_modules+set}" = set; then :
24956   enableval=$enable_keep_packaged_modules;
24957 fi
24958 
24959 
24960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
24961 $as_echo_n "checking if packaged modules are kept... " >&6; }
24962   if test "x$enable_keep_packaged_modules" = "xyes"; then
24963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24964 $as_echo "yes" >&6; }
24965     JLINK_KEEP_PACKAGED_MODULES=true
24966   elif test "x$enable_keep_packaged_modules" = "xno"; then
24967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24968 $as_echo "no" >&6; }
24969     JLINK_KEEP_PACKAGED_MODULES=false
24970   elif test "x$enable_keep_packaged_modules" = "x"; then
24971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
24972 $as_echo "yes (default)" >&6; }
24973     JLINK_KEEP_PACKAGED_MODULES=true
24974   else
24975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
24976 $as_echo "error" >&6; }
24977     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
24978   fi
24979 
24980 
24981 
24982 
24983   # Warn user that old version arguments are deprecated.
24984 
24985 
24986 # Check whether --with-milestone was given.
24987 if test "${with_milestone+set}" = set; then :
24988   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
24989 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
24990 fi
24991 
24992 
24993 
24994 
24995 # Check whether --with-update-version was given.
24996 if test "${with_update_version+set}" = set; then :
24997   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
24998 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
24999 fi
25000 
25001 
25002 
25003 
25004 # Check whether --with-user-release-suffix was given.
25005 if test "${with_user_release_suffix+set}" = set; then :
25006   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
25007 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
25008 fi
25009 
25010 
25011 
25012 
25013 # Check whether --with-build-number was given.
25014 if test "${with_build_number+set}" = set; then :
25015   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
25016 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
25017 fi
25018 
25019 
25020 
25021 
25022 # Check whether --with-version-major was given.
25023 if test "${with_version_major+set}" = set; then :
25024   withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5
25025 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;}
25026 fi
25027 
25028 
25029 
25030 
25031 # Check whether --with-version-minor was given.
25032 if test "${with_version_minor+set}" = set; then :
25033   withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5
25034 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;}
25035 fi
25036 
25037 
25038 
25039 
25040 # Check whether --with-version-security was given.
25041 if test "${with_version_security+set}" = set; then :
25042   withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5
25043 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;}
25044 fi
25045 
25046 
25047 
25048   # Source the version numbers file
25049   . $AUTOCONF_DIR/version-numbers
25050 
25051   # Some non-version number information is set in that file
25052 
25053 
25054 
25055 
25056 
25057 
25058 
25059 
25060   # The vendor name, if any
25061 
25062 # Check whether --with-vendor-name was given.
25063 if test "${with_vendor_name+set}" = set; then :
25064   withval=$with_vendor_name;
25065 fi
25066 
25067   if test "x$with_vendor_name" = xyes; then
25068     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
25069   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
25070     as_fn_error $? "--with--vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
25071   else
25072     COMPANY_NAME="$with_vendor_name"
25073   fi
25074 
25075 
25076   # Override version from arguments
25077 
25078   # If --with-version-string is set, process it first. It is possible to
25079   # override parts with more specific flags, since these are processed later.
25080 
25081 # Check whether --with-version-string was given.
25082 if test "${with_version_string+set}" = set; then :
25083   withval=$with_version_string;
25084 fi
25085 
25086   if test "x$with_version_string" = xyes; then
25087     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
25088   elif test "x$with_version_string" != x; then
25089     # Additional [] needed to keep m4 from mangling shell constructs.
25090     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
25091       VERSION_FEATURE=${BASH_REMATCH[1]}
25092       VERSION_INTERIM=${BASH_REMATCH[3]}
25093       VERSION_UPDATE=${BASH_REMATCH[5]}
25094       VERSION_PATCH=${BASH_REMATCH[7]}
25095       VERSION_PRE=${BASH_REMATCH[9]}
25096       version_plus_separator=${BASH_REMATCH[11]}
25097       VERSION_BUILD=${BASH_REMATCH[12]}
25098       VERSION_OPT=${BASH_REMATCH[14]}
25099       # Unspecified numerical fields are interpreted as 0.
25100       if test "x$VERSION_INTERIM" = x; then
25101         VERSION_INTERIM=0
25102       fi
25103       if test "x$VERSION_UPDATE" = x; then
25104         VERSION_UPDATE=0
25105       fi
25106       if test "x$VERSION_PATCH" = x; then
25107         VERSION_PATCH=0
25108       fi
25109       if test "x$version_plus_separator" != x \
25110           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
25111         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
25112       fi
25113       # Stop the version part process from setting default values.
25114       # We still allow them to explicitly override though.
25115       NO_DEFAULT_VERSION_PARTS=true
25116     else
25117       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
25118     fi
25119   fi
25120 
25121 
25122 # Check whether --with-version-pre was given.
25123 if test "${with_version_pre+set}" = set; then :
25124   withval=$with_version_pre; with_version_pre_present=true
25125 else
25126   with_version_pre_present=false
25127 fi
25128 
25129 
25130   if test "x$with_version_pre_present" = xtrue; then
25131     if test "x$with_version_pre" = xyes; then
25132       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
25133     elif test "x$with_version_pre" = xno; then
25134       # Interpret --without-* as empty string instead of the literal "no"
25135       VERSION_PRE=
25136     else
25137       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
25138        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
25139       if test "x$VERSION_PRE" != "x$with_version_pre"; then
25140         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
25141 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
25142       fi
25143     fi
25144   else
25145     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25146       # Default is to use "internal" as pre
25147       VERSION_PRE="internal"
25148     fi
25149   fi
25150 
25151 
25152 # Check whether --with-version-opt was given.
25153 if test "${with_version_opt+set}" = set; then :
25154   withval=$with_version_opt; with_version_opt_present=true
25155 else
25156   with_version_opt_present=false
25157 fi
25158 
25159 
25160   if test "x$with_version_opt_present" = xtrue; then
25161     if test "x$with_version_opt" = xyes; then
25162       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
25163     elif test "x$with_version_opt" = xno; then
25164       # Interpret --without-* as empty string instead of the literal "no"
25165       VERSION_OPT=
25166     else
25167       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
25168        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
25169       if test "x$VERSION_OPT" != "x$with_version_opt"; then
25170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
25171 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
25172       fi
25173     fi
25174   else
25175     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25176       # Default is to calculate a string like this 'adhoc.<username>.<base dir name>'
25177       # Outer [ ] to quote m4.
25178        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
25179       VERSION_OPT="adhoc.$USERNAME.$basedirname"
25180     fi
25181   fi
25182 
25183 
25184 # Check whether --with-version-build was given.
25185 if test "${with_version_build+set}" = set; then :
25186   withval=$with_version_build; with_version_build_present=true
25187 else
25188   with_version_build_present=false
25189 fi
25190 
25191 
25192   if test "x$with_version_build_present" = xtrue; then
25193     if test "x$with_version_build" = xyes; then
25194       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
25195     elif test "x$with_version_build" = xno; then
25196       # Interpret --without-* as empty string instead of the literal "no"
25197       VERSION_BUILD=
25198     elif test "x$with_version_build" = x; then
25199       VERSION_BUILD=
25200     else
25201 
25202   # Additional [] needed to keep m4 from mangling shell constructs.
25203   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25204     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
25205   fi
25206   # Extract the version number without leading zeros.
25207   cleaned_value=${BASH_REMATCH[1]}
25208   if test "x$cleaned_value" = x; then
25209     # Special case for zero
25210     cleaned_value=${BASH_REMATCH[2]}
25211   fi
25212 
25213   if test $cleaned_value -gt 255; then
25214     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
25215   fi
25216   if test "x$cleaned_value" != "x$with_version_build"; then
25217     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
25218 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
25219   fi
25220   VERSION_BUILD=$cleaned_value
25221 
25222     fi
25223   else
25224     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25225       # Default is to not have a build number.
25226       VERSION_BUILD=""
25227       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
25228       VERSION_BUILD=0
25229     fi
25230   fi
25231 
25232 
25233 # Check whether --with-version-feature was given.
25234 if test "${with_version_feature+set}" = set; then :
25235   withval=$with_version_feature; with_version_feature_present=true
25236 else
25237   with_version_feature_present=false
25238 fi
25239 
25240 
25241   if test "x$with_version_feature_present" = xtrue; then
25242     if test "x$with_version_feature" = xyes; then
25243       as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5
25244     else
25245 
25246   # Additional [] needed to keep m4 from mangling shell constructs.
25247   if  ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25248     as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5
25249   fi
25250   # Extract the version number without leading zeros.
25251   cleaned_value=${BASH_REMATCH[1]}
25252   if test "x$cleaned_value" = x; then
25253     # Special case for zero
25254     cleaned_value=${BASH_REMATCH[2]}
25255   fi
25256 
25257   if test $cleaned_value -gt 255; then
25258     as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5
25259   fi
25260   if test "x$cleaned_value" != "x$with_version_feature"; then
25261     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5
25262 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;}
25263   fi
25264   VERSION_FEATURE=$cleaned_value
25265 
25266     fi
25267   else
25268     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25269       # Default is to get value from version-numbers
25270       VERSION_FEATURE="$DEFAULT_VERSION_FEATURE"
25271     fi
25272   fi
25273 
25274 
25275 # Check whether --with-version-interim was given.
25276 if test "${with_version_interim+set}" = set; then :
25277   withval=$with_version_interim; with_version_interim_present=true
25278 else
25279   with_version_interim_present=false
25280 fi
25281 
25282 
25283   if test "x$with_version_interim_present" = xtrue; then
25284     if test "x$with_version_interim" = xyes; then
25285       as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5
25286     elif test "x$with_version_interim" = xno; then
25287       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25288       VERSION_INTERIM=0
25289     elif test "x$with_version_interim" = x; then
25290       VERSION_INTERIM=0
25291     else
25292 
25293   # Additional [] needed to keep m4 from mangling shell constructs.
25294   if  ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25295     as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5
25296   fi
25297   # Extract the version number without leading zeros.
25298   cleaned_value=${BASH_REMATCH[1]}
25299   if test "x$cleaned_value" = x; then
25300     # Special case for zero
25301     cleaned_value=${BASH_REMATCH[2]}
25302   fi
25303 
25304   if test $cleaned_value -gt 255; then
25305     as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5
25306   fi
25307   if test "x$cleaned_value" != "x$with_version_interim"; then
25308     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5
25309 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;}
25310   fi
25311   VERSION_INTERIM=$cleaned_value
25312 
25313     fi
25314   else
25315     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25316       # Default is 0, if unspecified
25317       VERSION_INTERIM=$DEFAULT_VERSION_INTERIM
25318     fi
25319   fi
25320 
25321 
25322 # Check whether --with-version-update was given.
25323 if test "${with_version_update+set}" = set; then :
25324   withval=$with_version_update; with_version_update_present=true
25325 else
25326   with_version_update_present=false
25327 fi
25328 
25329 
25330   if test "x$with_version_update_present" = xtrue; then
25331     if test "x$with_version_update" = xyes; then
25332       as_fn_error $? "--with-version-update must have a value" "$LINENO" 5
25333     elif test "x$with_version_update" = xno; then
25334       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25335       VERSION_UPDATE=0
25336     elif test "x$with_version_update" = x; then
25337       VERSION_UPDATE=0
25338     else
25339 
25340   # Additional [] needed to keep m4 from mangling shell constructs.
25341   if  ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25342     as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5
25343   fi
25344   # Extract the version number without leading zeros.
25345   cleaned_value=${BASH_REMATCH[1]}
25346   if test "x$cleaned_value" = x; then
25347     # Special case for zero
25348     cleaned_value=${BASH_REMATCH[2]}
25349   fi
25350 
25351   if test $cleaned_value -gt 255; then
25352     as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5
25353   fi
25354   if test "x$cleaned_value" != "x$with_version_update"; then
25355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5
25356 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;}
25357   fi
25358   VERSION_UPDATE=$cleaned_value
25359 
25360     fi
25361   else
25362     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25363       # Default is 0, if unspecified
25364       VERSION_UPDATE=$DEFAULT_VERSION_UPDATE
25365     fi
25366   fi
25367 
25368 
25369 # Check whether --with-version-patch was given.
25370 if test "${with_version_patch+set}" = set; then :
25371   withval=$with_version_patch; with_version_patch_present=true
25372 else
25373   with_version_patch_present=false
25374 fi
25375 
25376 
25377   if test "x$with_version_patch_present" = xtrue; then
25378     if test "x$with_version_patch" = xyes; then
25379       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
25380     elif test "x$with_version_patch" = xno; then
25381       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
25382       VERSION_PATCH=0
25383     elif test "x$with_version_patch" = x; then
25384       VERSION_PATCH=0
25385     else
25386 
25387   # Additional [] needed to keep m4 from mangling shell constructs.
25388   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
25389     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
25390   fi
25391   # Extract the version number without leading zeros.
25392   cleaned_value=${BASH_REMATCH[1]}
25393   if test "x$cleaned_value" = x; then
25394     # Special case for zero
25395     cleaned_value=${BASH_REMATCH[2]}
25396   fi
25397 
25398   if test $cleaned_value -gt 255; then
25399     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
25400   fi
25401   if test "x$cleaned_value" != "x$with_version_patch"; then
25402     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
25403 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
25404   fi
25405   VERSION_PATCH=$cleaned_value
25406 
25407     fi
25408   else
25409     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
25410       # Default is 0, if unspecified
25411       VERSION_PATCH=$DEFAULT_VERSION_PATCH
25412     fi
25413   fi
25414 
25415   # Calculate derived version properties
25416 
25417   # Set VERSION_IS_GA based on if VERSION_PRE has a value
25418   if test "x$VERSION_PRE" = x; then
25419     VERSION_IS_GA=true
25420   else
25421     VERSION_IS_GA=false
25422   fi
25423 
25424   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
25425   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH
25426 
25427   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
25428   # Strip trailing zeroes from stripped_version_number
25429   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
25430   VERSION_NUMBER=$stripped_version_number
25431 
25432   # The complete version string, with additional build information
25433   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
25434     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25435   else
25436     # If either build or opt is set, we need a + separator
25437     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
25438   fi
25439 
25440   # The short version string, just VERSION_NUMBER and PRE, if present.
25441   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
25442 
25443   # The version date
25444 
25445 # Check whether --with-version-date was given.
25446 if test "${with_version_date+set}" = set; then :
25447   withval=$with_version_date;
25448 fi
25449 
25450   if test "x$with_version_date" = xyes; then
25451     as_fn_error $? "--with-version-date must have a value" "$LINENO" 5
25452   elif test "x$with_version_date" != x; then
25453     if  ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then
25454       as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5
25455     else
25456       VERSION_DATE="$with_version_date"
25457     fi
25458   else
25459     VERSION_DATE="$DEFAULT_VERSION_DATE"
25460   fi
25461 
25462   # The vendor version string, if any
25463 
25464 # Check whether --with-vendor-version-string was given.
25465 if test "${with_vendor_version_string+set}" = set; then :
25466   withval=$with_vendor_version_string;
25467 fi
25468 
25469   if test "x$with_vendor_version_string" = xyes; then
25470     as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5
25471   elif  ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then
25472     as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5
25473   else
25474     VENDOR_VERSION_STRING="$with_vendor_version_string"
25475   fi
25476 
25477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
25478 $as_echo_n "checking for version string... " >&6; }
25479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
25480 $as_echo "$VERSION_STRING" >&6; }
25481 
25482 
25483 
25484 
25485 
25486 
25487 
25488 
25489 
25490 
25491 
25492 
25493 
25494 
25495 
25496 
25497 
25498 ###############################################################################
25499 #
25500 # Setup BootJDK, used to bootstrap the build.
25501 #
25502 ###############################################################################
25503 
25504 
25505   BOOT_JDK_FOUND=no
25506 
25507 # Check whether --with-boot-jdk was given.
25508 if test "${with_boot_jdk+set}" = set; then :
25509   withval=$with_boot_jdk;
25510 fi
25511 
25512 
25513   # We look for the Boot JDK through various means, going from more certain to
25514   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
25515   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
25516   # must check if this is indeed valid; otherwise we'll continue looking.
25517 
25518   # Test: Is bootjdk explicitly set by command line arguments?
25519 
25520   if test "x$BOOT_JDK_FOUND" = xno; then
25521     # Now execute the test
25522 
25523   if test "x$with_boot_jdk" != x; then
25524     BOOT_JDK=$with_boot_jdk
25525     BOOT_JDK_FOUND=maybe
25526     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
25527 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
25528   fi
25529 
25530 
25531     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25532     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25533       # Do we have a bin/java?
25534       if test ! -x "$BOOT_JDK/bin/java"; then
25535         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25536 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25537         BOOT_JDK_FOUND=no
25538       else
25539         # Do we have a bin/javac?
25540         if test ! -x "$BOOT_JDK/bin/javac"; then
25541           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25542 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25543           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25544 $as_echo "$as_me: (This might be an JRE inste