1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 JAVA_FLAGS_BIG
 648 JAVA_FLAGS
 649 TEST_JOBS
 650 JOBS
 651 MEMORY_SIZE
 652 NUM_CORES
 653 BUILD_FAILURE_HANDLER
 654 ENABLE_INTREE_EC
 655 HOTSPOT_MAKE_ARGS
 656 LIBZIP_CAN_USE_MMAP
 657 LIBDL
 658 LIBM
 659 USE_EXTERNAL_LCMS
 660 LCMS_LIBS
 661 LCMS_CFLAGS
 662 USE_EXTERNAL_LIBZ
 663 USE_EXTERNAL_LIBPNG
 664 PNG_LIBS
 665 PNG_CFLAGS
 666 USE_EXTERNAL_LIBGIF
 667 USE_EXTERNAL_LIBJPEG
 668 LLVM_LIBS
 669 LLVM_LDFLAGS
 670 LLVM_CFLAGS
 671 LLVM_CONFIG
 672 LIBFFI_LIBS
 673 LIBFFI_CFLAGS
 674 ALSA_LIBS
 675 ALSA_CFLAGS
 676 FREETYPE_BUNDLE_LIB_PATH
 677 FREETYPE_LIBS
 678 FREETYPE_CFLAGS
 679 CUPS_CFLAGS
 680 X_EXTRA_LIBS
 681 X_LIBS
 682 X_PRE_LIBS
 683 X_CFLAGS
 684 XMKMF
 685 MSVCP_DLL
 686 MSVCR_DLL
 687 LIBCXX
 688 STATIC_CXX_SETTING
 689 FIXPATH_DETACH_FLAG
 690 FIXPATH
 691 GCOV_ENABLED
 692 STRIP_POLICY
 693 DEBUG_BINARIES
 694 ZIP_EXTERNAL_DEBUG_SYMBOLS
 695 COPY_DEBUG_SYMBOLS
 696 COMPILE_WITH_DEBUG_SYMBOLS
 697 CFLAGS_WARNINGS_ARE_ERRORS
 698 BUILD_CC_DISABLE_WARNING_PREFIX
 699 DISABLE_WARNING_PREFIX
 700 HOTSPOT_SET_WARNINGS_AS_ERRORS
 701 WARNINGS_AS_ERRORS
 702 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 703 ZERO_ARCHFLAG
 704 LDFLAGS_TESTEXE
 705 LDFLAGS_TESTLIB
 706 LDFLAGS_HASH_STYLE
 707 LDFLAGS_CXX_JDK
 708 JDKEXE_LIBS
 709 JDKLIB_LIBS
 710 OPENJDK_BUILD_LDFLAGS_JDKEXE
 711 OPENJDK_BUILD_LDFLAGS_JDKLIB
 712 LDFLAGS_JDKEXE
 713 LDFLAGS_JDKLIB
 714 CXXFLAGS_TESTEXE
 715 CXXFLAGS_TESTLIB
 716 CFLAGS_TESTEXE
 717 CFLAGS_TESTLIB
 718 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 719 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 720 OPENJDK_BUILD_CFLAGS_JDKEXE
 721 OPENJDK_BUILD_CFLAGS_JDKLIB
 722 CXXFLAGS_JDKEXE
 723 CXXFLAGS_JDKLIB
 724 CFLAGS_JDKEXE
 725 CFLAGS_JDKLIB
 726 MACOSX_VERSION_MIN
 727 NO_LIFETIME_DSE_CFLAG
 728 NO_NULL_POINTER_CHECK_CFLAG
 729 CXXSTD_CXXFLAG
 730 CXX_O_FLAG_NONE
 731 CXX_O_FLAG_DEBUG
 732 CXX_O_FLAG_NORM
 733 CXX_O_FLAG_HI
 734 CXX_O_FLAG_HIGHEST
 735 C_O_FLAG_NONE
 736 C_O_FLAG_DEBUG
 737 C_O_FLAG_NORM
 738 C_O_FLAG_HI
 739 C_O_FLAG_HIGHEST
 740 CXXFLAGS_DEBUG_SYMBOLS
 741 CFLAGS_DEBUG_SYMBOLS
 742 CXX_FLAG_DEPS
 743 C_FLAG_DEPS
 744 SHARED_LIBRARY_FLAGS
 745 SET_SHARED_LIBRARY_MAPFILE
 746 SET_SHARED_LIBRARY_NAME
 747 SET_SHARED_LIBRARY_ORIGIN
 748 SET_EXECUTABLE_ORIGIN
 749 CXX_FLAG_REORDER
 750 C_FLAG_REORDER
 751 RC_FLAGS
 752 AR_OUT_OPTION
 753 LD_OUT_OPTION
 754 EXE_OUT_OPTION
 755 CC_OUT_OPTION
 756 STRIPFLAGS
 757 ARFLAGS
 758 COMPILER_BINDCMD_FILE_FLAG
 759 COMPILER_COMMAND_FILE_FLAG
 760 COMPILER_TARGET_BITS_FLAG
 761 JT_HOME
 762 JTREGEXE
 763 USING_BROKEN_SUSE_LD
 764 PACKAGE_PATH
 765 USE_CLANG
 766 HOTSPOT_LD
 767 HOTSPOT_CXX
 768 HOTSPOT_RC
 769 HOTSPOT_MT
 770 BUILD_AS
 771 BUILD_LDCXX
 772 BUILD_LD
 773 BUILD_STRIP
 774 BUILD_OBJCOPY
 775 BUILD_AR
 776 BUILD_NM
 777 BUILD_CXX
 778 BUILD_CC
 779 BUILD_SYSROOT_LDFLAGS
 780 BUILD_SYSROOT_CFLAGS
 781 ac_ct_OBJDUMP
 782 OBJDUMP
 783 ac_ct_OBJCOPY
 784 OBJCOPY
 785 ac_ct_NM
 786 ac_ct_STRIP
 787 GNM
 788 NM
 789 STRIP
 790 MSBUILD
 791 DUMPBIN
 792 RC
 793 MT
 794 LIPO
 795 ac_ct_AR
 796 AR
 797 AS
 798 LDCXX
 799 LD
 800 CXXCPP
 801 CPP
 802 CXX_VERSION_NUMBER
 803 CC_VERSION_NUMBER
 804 ac_ct_CXX
 805 CXXFLAGS
 806 CXX
 807 TOOLCHAIN_PATH_CXX
 808 POTENTIAL_CXX
 809 OBJEXT
 810 EXEEXT
 811 ac_ct_CC
 812 CPPFLAGS
 813 LDFLAGS
 814 CFLAGS
 815 CC
 816 TOOLCHAIN_PATH_CC
 817 POTENTIAL_CC
 818 TOOLCHAIN_VERSION
 819 VS_LIB
 820 VS_INCLUDE
 821 VS_PATH
 822 CYGWIN_LINK
 823 SYSROOT_LDFLAGS
 824 SYSROOT_CFLAGS
 825 LEGACY_EXTRA_LDFLAGS
 826 LEGACY_EXTRA_CXXFLAGS
 827 LEGACY_EXTRA_CFLAGS
 828 EXE_SUFFIX
 829 OBJ_SUFFIX
 830 STATIC_LIBRARY
 831 SHARED_LIBRARY
 832 STATIC_LIBRARY_SUFFIX
 833 SHARED_LIBRARY_SUFFIX
 834 LIBRARY_PREFIX
 835 TOOLCHAIN_TYPE
 836 STATIC_BUILD
 837 IMPORT_MODULES_MAKE
 838 IMPORT_MODULES_SRC
 839 IMPORT_MODULES_CONF
 840 IMPORT_MODULES_LIBS
 841 IMPORT_MODULES_CMDS
 842 IMPORT_MODULES_CLASSES
 843 BUILD_HOTSPOT
 844 HOTSPOT_DIST
 845 BUILD_OUTPUT
 846 JDK_TOPDIR
 847 NASHORN_TOPDIR
 848 HOTSPOT_TOPDIR
 849 JAXWS_TOPDIR
 850 JAXP_TOPDIR
 851 CORBA_TOPDIR
 852 LANGTOOLS_TOPDIR
 853 BUILD_JDK
 854 CREATE_BUILDJDK
 855 BOOT_JDK_BITS
 856 JAVAC_FLAGS
 857 BOOT_JDK_MODULAR
 858 BOOT_JDK_SOURCETARGET
 859 JARSIGNER
 860 JAR
 861 JAVAH
 862 JAVAC
 863 JAVA
 864 BOOT_JDK
 865 JAVA_CHECK
 866 JAVAC_CHECK
 867 VERSION_IS_GA
 868 VERSION_SHORT
 869 VERSION_STRING
 870 VERSION_NUMBER_FOUR_POSITIONS
 871 VERSION_NUMBER
 872 VERSION_OPT
 873 VERSION_BUILD
 874 VERSION_PRE
 875 VERSION_PATCH
 876 VERSION_SECURITY
 877 VERSION_MINOR
 878 VERSION_MAJOR
 879 MACOSX_BUNDLE_ID_BASE
 880 MACOSX_BUNDLE_NAME_BASE
 881 COMPANY_NAME
 882 JDK_RC_PLATFORM_NAME
 883 PRODUCT_SUFFIX
 884 PRODUCT_NAME
 885 LAUNCHER_NAME
 886 TEST_IN_BUILD
 887 JLINK_KEEP_PACKAGED_MODULES
 888 COPYRIGHT_YEAR
 889 COMPRESS_JARS
 890 INCLUDE_SA
 891 UNLIMITED_CRYPTO
 892 CACERTS_FILE
 893 BUILD_HEADLESS
 894 SUPPORT_HEADFUL
 895 SUPPORT_HEADLESS
 896 DEFAULT_MAKE_TARGET
 897 OS_VERSION_MICRO
 898 OS_VERSION_MINOR
 899 OS_VERSION_MAJOR
 900 PKG_CONFIG
 901 BASH_ARGS
 902 SETFILE
 903 CODESIGN
 904 XATTR
 905 DSYMUTIL
 906 IS_GNU_TIME
 907 PATCH
 908 TIME
 909 STAT
 910 HG
 911 READELF
 912 OTOOL
 913 LDD
 914 ZIP
 915 UNZIP
 916 FIND_DELETE
 917 OUTPUT_SYNC
 918 OUTPUT_SYNC_SUPPORTED
 919 CHECK_TOOLSDIR_MAKE
 920 CHECK_TOOLSDIR_GMAKE
 921 CHECK_MAKE
 922 CHECK_GMAKE
 923 MAKE
 924 PKGHANDLER
 925 CONFIGURESUPPORT_OUTPUTDIR
 926 OUTPUT_ROOT
 927 CONF_NAME
 928 SPEC
 929 SDKROOT
 930 XCODEBUILD
 931 BUILD_VARIANT_RELEASE
 932 DEBUG_CLASSFILES
 933 FASTDEBUG
 934 VARIANT
 935 DEBUG_LEVEL
 936 MACOSX_UNIVERSAL
 937 JVM_VARIANT_CORE
 938 JVM_VARIANT_ZEROSHARK
 939 JVM_VARIANT_ZERO
 940 JVM_VARIANT_MINIMAL1
 941 JVM_VARIANT_CLIENT
 942 JVM_VARIANT_SERVER
 943 JVM_VARIANTS
 944 JVM_INTERPRETER
 945 JDK_VARIANT
 946 SET_OPENJDK
 947 USERNAME
 948 CANONICAL_TOPDIR
 949 ORIGINAL_TOPDIR
 950 TOPDIR
 951 PATH_SEP
 952 ZERO_ARCHDEF
 953 DEFINE_CROSS_COMPILE_ARCH
 954 LP64
 955 OPENJDK_TARGET_OS_EXPORT_DIR
 956 OPENJDK_BUILD_CPU_JLI_CFLAGS
 957 OPENJDK_TARGET_CPU_JLI_CFLAGS
 958 OPENJDK_TARGET_CPU_OSARCH
 959 OPENJDK_TARGET_CPU_ISADIR
 960 OPENJDK_BUILD_CPU_LIBDIR
 961 OPENJDK_BUILD_CPU_LEGACY_LIB
 962 OPENJDK_BUILD_CPU_LEGACY
 963 OPENJDK_TARGET_CPU_LIBDIR
 964 OPENJDK_TARGET_CPU_LEGACY_LIB
 965 OPENJDK_TARGET_CPU_LEGACY
 966 REQUIRED_OS_VERSION
 967 REQUIRED_OS_NAME
 968 COMPILE_TYPE
 969 OPENJDK_TARGET_CPU_ENDIAN
 970 OPENJDK_TARGET_CPU_BITS
 971 OPENJDK_TARGET_CPU_ARCH
 972 OPENJDK_TARGET_CPU
 973 OPENJDK_TARGET_OS_ENV
 974 OPENJDK_TARGET_OS_TYPE
 975 OPENJDK_TARGET_OS
 976 OPENJDK_BUILD_CPU_ENDIAN
 977 OPENJDK_BUILD_CPU_BITS
 978 OPENJDK_BUILD_CPU_ARCH
 979 OPENJDK_BUILD_CPU
 980 OPENJDK_BUILD_OS_ENV
 981 OPENJDK_BUILD_OS_TYPE
 982 OPENJDK_BUILD_OS
 983 OPENJDK_BUILD_AUTOCONF_NAME
 984 OPENJDK_TARGET_AUTOCONF_NAME
 985 target_os
 986 target_vendor
 987 target_cpu
 988 target
 989 host_os
 990 host_vendor
 991 host_cpu
 992 host
 993 build_os
 994 build_vendor
 995 build_cpu
 996 build
 997 NICE
 998 CPIO
 999 DF
1000 READLINK
1001 CYGPATH
1002 SED
1003 FGREP
1004 EGREP
1005 GREP
1006 AWK
1007 XARGS
1008 WHICH
1009 WC
1010 UNIQ
1011 UNAME
1012 TR
1013 TOUCH
1014 TEE
1015 TAR
1016 TAIL
1017 SORT
1018 SH
1019 RMDIR
1020 RM
1021 PRINTF
1022 NAWK
1023 MV
1024 MKTEMP
1025 MKDIR
1026 LS
1027 LN
1028 HEAD
1029 FIND
1030 FILE
1031 EXPR
1032 ECHO
1033 DIRNAME
1034 DIFF
1035 DATE
1036 CUT
1037 CP
1038 COMM
1039 CMP
1040 CHMOD
1041 CAT
1042 BASH
1043 BASENAME
1044 DATE_WHEN_CONFIGURED
1045 ORIGINAL_PATH
1046 CONFIGURE_COMMAND_LINE
1047 target_alias
1048 host_alias
1049 build_alias
1050 LIBS
1051 ECHO_T
1052 ECHO_N
1053 ECHO_C
1054 DEFS
1055 mandir
1056 localedir
1057 libdir
1058 psdir
1059 pdfdir
1060 dvidir
1061 htmldir
1062 infodir
1063 docdir
1064 oldincludedir
1065 includedir
1066 localstatedir
1067 sharedstatedir
1068 sysconfdir
1069 datadir
1070 datarootdir
1071 libexecdir
1072 sbindir
1073 bindir
1074 program_transform_name
1075 prefix
1076 exec_prefix
1077 PACKAGE_URL
1078 PACKAGE_BUGREPORT
1079 PACKAGE_STRING
1080 PACKAGE_VERSION
1081 PACKAGE_TARNAME
1082 PACKAGE_NAME
1083 PATH_SEPARATOR
1084 SHELL'
1085 ac_subst_files=''
1086 ac_user_opts='
1087 enable_option_checking
1088 with_target_bits
1089 enable_openjdk_only
1090 with_custom_make_dir
1091 with_jdk_variant
1092 with_jvm_interpreter
1093 with_jvm_variants
1094 enable_debug
1095 with_debug_level
1096 with_devkit
1097 with_sys_root
1098 with_sysroot
1099 with_tools_dir
1100 with_toolchain_path
1101 with_extra_path
1102 with_sdk_name
1103 with_conf_name
1104 with_output_sync
1105 with_default_make_target
1106 enable_headful
1107 with_cacerts_file
1108 enable_unlimited_crypto
1109 with_copyright_year
1110 enable_keep_packaged_modules
1111 enable_hotspot_test_in_build
1112 with_milestone
1113 with_update_version
1114 with_user_release_suffix
1115 with_build_number
1116 with_version_string
1117 with_version_pre
1118 with_version_opt
1119 with_version_build
1120 with_version_major
1121 with_version_minor
1122 with_version_security
1123 with_version_patch
1124 with_boot_jdk
1125 with_build_jdk
1126 with_add_source_root
1127 with_override_source_root
1128 with_adds_and_overrides
1129 with_override_langtools
1130 with_override_corba
1131 with_override_jaxp
1132 with_override_jaxws
1133 with_override_hotspot
1134 with_override_nashorn
1135 with_override_jdk
1136 with_import_hotspot
1137 with_import_modules
1138 enable_static_build
1139 with_toolchain_type
1140 with_extra_cflags
1141 with_extra_cxxflags
1142 with_extra_ldflags
1143 with_toolchain_version
1144 with_build_devkit
1145 with_jtreg
1146 enable_warnings_as_errors
1147 with_native_debug_symbols
1148 enable_debug_symbols
1149 enable_zip_debug_info
1150 enable_native_coverage
1151 with_stdc__lib
1152 with_msvcr_dll
1153 with_msvcp_dll
1154 with_x
1155 with_cups
1156 with_cups_include
1157 with_freetype
1158 with_freetype_include
1159 with_freetype_lib
1160 with_freetype_src
1161 enable_freetype_bundling
1162 with_alsa
1163 with_alsa_include
1164 with_alsa_lib
1165 with_libffi
1166 with_libffi_include
1167 with_libffi_lib
1168 with_libjpeg
1169 with_giflib
1170 with_libpng
1171 with_zlib
1172 with_lcms
1173 with_dxsdk
1174 with_dxsdk_lib
1175 with_dxsdk_include
1176 enable_jtreg_failure_handler
1177 with_num_cores
1178 with_memory_size
1179 with_jobs
1180 with_test_jobs
1181 with_boot_jdk_jvmargs
1182 with_sjavac_server_java
1183 enable_sjavac
1184 enable_javac_server
1185 enable_icecc
1186 enable_precompiled_headers
1187 enable_ccache
1188 with_ccache_dir
1189 '
1190       ac_precious_vars='build_alias
1191 host_alias
1192 target_alias
1193 BASENAME
1194 BASH
1195 CAT
1196 CHMOD
1197 CMP
1198 COMM
1199 CP
1200 CUT
1201 DATE
1202 DIFF
1203 DIRNAME
1204 ECHO
1205 EXPR
1206 FILE
1207 FIND
1208 HEAD
1209 LN
1210 LS
1211 MKDIR
1212 MKTEMP
1213 MV
1214 NAWK
1215 PRINTF
1216 RM
1217 RMDIR
1218 SH
1219 SORT
1220 TAIL
1221 TAR
1222 TEE
1223 TOUCH
1224 TR
1225 UNAME
1226 UNIQ
1227 WC
1228 WHICH
1229 XARGS
1230 AWK
1231 GREP
1232 EGREP
1233 FGREP
1234 SED
1235 CYGPATH
1236 READLINK
1237 DF
1238 CPIO
1239 NICE
1240 MAKE
1241 UNZIP
1242 ZIP
1243 LDD
1244 OTOOL
1245 READELF
1246 HG
1247 STAT
1248 TIME
1249 PATCH
1250 DSYMUTIL
1251 XATTR
1252 CODESIGN
1253 SETFILE
1254 PKG_CONFIG
1255 JAVA
1256 JAVAC
1257 JAVAH
1258 JAR
1259 JARSIGNER
1260 CC
1261 CFLAGS
1262 LDFLAGS
1263 LIBS
1264 CPPFLAGS
1265 CXX
1266 CXXFLAGS
1267 CCC
1268 CPP
1269 CXXCPP
1270 AS
1271 AR
1272 LIPO
1273 STRIP
1274 NM
1275 GNM
1276 OBJCOPY
1277 OBJDUMP
1278 BUILD_CC
1279 BUILD_CXX
1280 BUILD_NM
1281 BUILD_AR
1282 BUILD_OBJCOPY
1283 BUILD_STRIP
1284 JTREGEXE
1285 XMKMF
1286 FREETYPE_CFLAGS
1287 FREETYPE_LIBS
1288 ALSA_CFLAGS
1289 ALSA_LIBS
1290 LIBFFI_CFLAGS
1291 LIBFFI_LIBS
1292 PNG_CFLAGS
1293 PNG_LIBS
1294 LCMS_CFLAGS
1295 LCMS_LIBS
1296 ICECC_CMD
1297 ICECC_CREATE_ENV
1298 ICECC_WRAPPER
1299 CCACHE'
1300 
1301 
1302 # Initialize some variables set by options.
1303 ac_init_help=
1304 ac_init_version=false
1305 ac_unrecognized_opts=
1306 ac_unrecognized_sep=
1307 # The variables have the same names as the options, with
1308 # dashes changed to underlines.
1309 cache_file=/dev/null
1310 exec_prefix=NONE
1311 no_create=
1312 no_recursion=
1313 prefix=NONE
1314 program_prefix=NONE
1315 program_suffix=NONE
1316 program_transform_name=s,x,x,
1317 silent=
1318 site=
1319 srcdir=
1320 verbose=
1321 x_includes=NONE
1322 x_libraries=NONE
1323 
1324 # Installation directory options.
1325 # These are left unexpanded so users can "make install exec_prefix=/foo"
1326 # and all the variables that are supposed to be based on exec_prefix
1327 # by default will actually change.
1328 # Use braces instead of parens because sh, perl, etc. also accept them.
1329 # (The list follows the same order as the GNU Coding Standards.)
1330 bindir='${exec_prefix}/bin'
1331 sbindir='${exec_prefix}/sbin'
1332 libexecdir='${exec_prefix}/libexec'
1333 datarootdir='${prefix}/share'
1334 datadir='${datarootdir}'
1335 sysconfdir='${prefix}/etc'
1336 sharedstatedir='${prefix}/com'
1337 localstatedir='${prefix}/var'
1338 includedir='${prefix}/include'
1339 oldincludedir='/usr/include'
1340 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1341 infodir='${datarootdir}/info'
1342 htmldir='${docdir}'
1343 dvidir='${docdir}'
1344 pdfdir='${docdir}'
1345 psdir='${docdir}'
1346 libdir='${exec_prefix}/lib'
1347 localedir='${datarootdir}/locale'
1348 mandir='${datarootdir}/man'
1349 
1350 ac_prev=
1351 ac_dashdash=
1352 for ac_option
1353 do
1354   # If the previous option needs an argument, assign it.
1355   if test -n "$ac_prev"; then
1356     eval $ac_prev=\$ac_option
1357     ac_prev=
1358     continue
1359   fi
1360 
1361   case $ac_option in
1362   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1363   *=)   ac_optarg= ;;
1364   *)    ac_optarg=yes ;;
1365   esac
1366 
1367   # Accept the important Cygnus configure options, so we can diagnose typos.
1368 
1369   case $ac_dashdash$ac_option in
1370   --)
1371     ac_dashdash=yes ;;
1372 
1373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1374     ac_prev=bindir ;;
1375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1376     bindir=$ac_optarg ;;
1377 
1378   -build | --build | --buil | --bui | --bu)
1379     ac_prev=build_alias ;;
1380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1381     build_alias=$ac_optarg ;;
1382 
1383   -cache-file | --cache-file | --cache-fil | --cache-fi \
1384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1385     ac_prev=cache_file ;;
1386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1388     cache_file=$ac_optarg ;;
1389 
1390   --config-cache | -C)
1391     cache_file=config.cache ;;
1392 
1393   -datadir | --datadir | --datadi | --datad)
1394     ac_prev=datadir ;;
1395   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1396     datadir=$ac_optarg ;;
1397 
1398   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1399   | --dataroo | --dataro | --datar)
1400     ac_prev=datarootdir ;;
1401   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1402   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1403     datarootdir=$ac_optarg ;;
1404 
1405   -disable-* | --disable-*)
1406     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1407     # Reject names that are not valid shell variable names.
1408     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1409       as_fn_error $? "invalid feature name: $ac_useropt"
1410     ac_useropt_orig=$ac_useropt
1411     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412     case $ac_user_opts in
1413       *"
1414 "enable_$ac_useropt"
1415 "*) ;;
1416       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1417          ac_unrecognized_sep=', ';;
1418     esac
1419     eval enable_$ac_useropt=no ;;
1420 
1421   -docdir | --docdir | --docdi | --doc | --do)
1422     ac_prev=docdir ;;
1423   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1424     docdir=$ac_optarg ;;
1425 
1426   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1427     ac_prev=dvidir ;;
1428   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1429     dvidir=$ac_optarg ;;
1430 
1431   -enable-* | --enable-*)
1432     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1433     # Reject names that are not valid shell variable names.
1434     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435       as_fn_error $? "invalid feature name: $ac_useropt"
1436     ac_useropt_orig=$ac_useropt
1437     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438     case $ac_user_opts in
1439       *"
1440 "enable_$ac_useropt"
1441 "*) ;;
1442       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1443          ac_unrecognized_sep=', ';;
1444     esac
1445     eval enable_$ac_useropt=\$ac_optarg ;;
1446 
1447   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1448   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1449   | --exec | --exe | --ex)
1450     ac_prev=exec_prefix ;;
1451   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1452   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1453   | --exec=* | --exe=* | --ex=*)
1454     exec_prefix=$ac_optarg ;;
1455 
1456   -gas | --gas | --ga | --g)
1457     # Obsolete; use --with-gas.
1458     with_gas=yes ;;
1459 
1460   -help | --help | --hel | --he | -h)
1461     ac_init_help=long ;;
1462   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1463     ac_init_help=recursive ;;
1464   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1465     ac_init_help=short ;;
1466 
1467   -host | --host | --hos | --ho)
1468     ac_prev=host_alias ;;
1469   -host=* | --host=* | --hos=* | --ho=*)
1470     host_alias=$ac_optarg ;;
1471 
1472   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1473     ac_prev=htmldir ;;
1474   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1475   | --ht=*)
1476     htmldir=$ac_optarg ;;
1477 
1478   -includedir | --includedir | --includedi | --included | --include \
1479   | --includ | --inclu | --incl | --inc)
1480     ac_prev=includedir ;;
1481   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1482   | --includ=* | --inclu=* | --incl=* | --inc=*)
1483     includedir=$ac_optarg ;;
1484 
1485   -infodir | --infodir | --infodi | --infod | --info | --inf)
1486     ac_prev=infodir ;;
1487   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1488     infodir=$ac_optarg ;;
1489 
1490   -libdir | --libdir | --libdi | --libd)
1491     ac_prev=libdir ;;
1492   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1493     libdir=$ac_optarg ;;
1494 
1495   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1496   | --libexe | --libex | --libe)
1497     ac_prev=libexecdir ;;
1498   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1499   | --libexe=* | --libex=* | --libe=*)
1500     libexecdir=$ac_optarg ;;
1501 
1502   -localedir | --localedir | --localedi | --localed | --locale)
1503     ac_prev=localedir ;;
1504   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1505     localedir=$ac_optarg ;;
1506 
1507   -localstatedir | --localstatedir | --localstatedi | --localstated \
1508   | --localstate | --localstat | --localsta | --localst | --locals)
1509     ac_prev=localstatedir ;;
1510   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1511   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1512     localstatedir=$ac_optarg ;;
1513 
1514   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1515     ac_prev=mandir ;;
1516   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1517     mandir=$ac_optarg ;;
1518 
1519   -nfp | --nfp | --nf)
1520     # Obsolete; use --without-fp.
1521     with_fp=no ;;
1522 
1523   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1524   | --no-cr | --no-c | -n)
1525     no_create=yes ;;
1526 
1527   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1528   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1529     no_recursion=yes ;;
1530 
1531   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1532   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1533   | --oldin | --oldi | --old | --ol | --o)
1534     ac_prev=oldincludedir ;;
1535   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1536   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1537   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1538     oldincludedir=$ac_optarg ;;
1539 
1540   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1541     ac_prev=prefix ;;
1542   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1543     prefix=$ac_optarg ;;
1544 
1545   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1546   | --program-pre | --program-pr | --program-p)
1547     ac_prev=program_prefix ;;
1548   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1549   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1550     program_prefix=$ac_optarg ;;
1551 
1552   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1553   | --program-suf | --program-su | --program-s)
1554     ac_prev=program_suffix ;;
1555   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1556   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1557     program_suffix=$ac_optarg ;;
1558 
1559   -program-transform-name | --program-transform-name \
1560   | --program-transform-nam | --program-transform-na \
1561   | --program-transform-n | --program-transform- \
1562   | --program-transform | --program-transfor \
1563   | --program-transfo | --program-transf \
1564   | --program-trans | --program-tran \
1565   | --progr-tra | --program-tr | --program-t)
1566     ac_prev=program_transform_name ;;
1567   -program-transform-name=* | --program-transform-name=* \
1568   | --program-transform-nam=* | --program-transform-na=* \
1569   | --program-transform-n=* | --program-transform-=* \
1570   | --program-transform=* | --program-transfor=* \
1571   | --program-transfo=* | --program-transf=* \
1572   | --program-trans=* | --program-tran=* \
1573   | --progr-tra=* | --program-tr=* | --program-t=*)
1574     program_transform_name=$ac_optarg ;;
1575 
1576   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1577     ac_prev=pdfdir ;;
1578   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1579     pdfdir=$ac_optarg ;;
1580 
1581   -psdir | --psdir | --psdi | --psd | --ps)
1582     ac_prev=psdir ;;
1583   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1584     psdir=$ac_optarg ;;
1585 
1586   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587   | -silent | --silent | --silen | --sile | --sil)
1588     silent=yes ;;
1589 
1590   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1591     ac_prev=sbindir ;;
1592   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1593   | --sbi=* | --sb=*)
1594     sbindir=$ac_optarg ;;
1595 
1596   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1597   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1598   | --sharedst | --shareds | --shared | --share | --shar \
1599   | --sha | --sh)
1600     ac_prev=sharedstatedir ;;
1601   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1602   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1603   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1604   | --sha=* | --sh=*)
1605     sharedstatedir=$ac_optarg ;;
1606 
1607   -site | --site | --sit)
1608     ac_prev=site ;;
1609   -site=* | --site=* | --sit=*)
1610     site=$ac_optarg ;;
1611 
1612   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1613     ac_prev=srcdir ;;
1614   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1615     srcdir=$ac_optarg ;;
1616 
1617   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1618   | --syscon | --sysco | --sysc | --sys | --sy)
1619     ac_prev=sysconfdir ;;
1620   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1621   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1622     sysconfdir=$ac_optarg ;;
1623 
1624   -target | --target | --targe | --targ | --tar | --ta | --t)
1625     ac_prev=target_alias ;;
1626   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1627     target_alias=$ac_optarg ;;
1628 
1629   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1630     verbose=yes ;;
1631 
1632   -version | --version | --versio | --versi | --vers | -V)
1633     ac_init_version=: ;;
1634 
1635   -with-* | --with-*)
1636     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1637     # Reject names that are not valid shell variable names.
1638     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639       as_fn_error $? "invalid package name: $ac_useropt"
1640     ac_useropt_orig=$ac_useropt
1641     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642     case $ac_user_opts in
1643       *"
1644 "with_$ac_useropt"
1645 "*) ;;
1646       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1647          ac_unrecognized_sep=', ';;
1648     esac
1649     eval with_$ac_useropt=\$ac_optarg ;;
1650 
1651   -without-* | --without-*)
1652     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1653     # Reject names that are not valid shell variable names.
1654     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1655       as_fn_error $? "invalid package name: $ac_useropt"
1656     ac_useropt_orig=$ac_useropt
1657     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1658     case $ac_user_opts in
1659       *"
1660 "with_$ac_useropt"
1661 "*) ;;
1662       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1663          ac_unrecognized_sep=', ';;
1664     esac
1665     eval with_$ac_useropt=no ;;
1666 
1667   --x)
1668     # Obsolete; use --with-x.
1669     with_x=yes ;;
1670 
1671   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1672   | --x-incl | --x-inc | --x-in | --x-i)
1673     ac_prev=x_includes ;;
1674   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1675   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1676     x_includes=$ac_optarg ;;
1677 
1678   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1679   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1680     ac_prev=x_libraries ;;
1681   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1682   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1683     x_libraries=$ac_optarg ;;
1684 
1685   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1686 Try \`$0 --help' for more information"
1687     ;;
1688 
1689   *=*)
1690     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1691     # Reject names that are not valid shell variable names.
1692     case $ac_envvar in #(
1693       '' | [0-9]* | *[!_$as_cr_alnum]* )
1694       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1695     esac
1696     eval $ac_envvar=\$ac_optarg
1697     export $ac_envvar ;;
1698 
1699   *)
1700     # FIXME: should be removed in autoconf 3.0.
1701     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1702     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1703       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1704     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1705     ;;
1706 
1707   esac
1708 done
1709 
1710 if test -n "$ac_prev"; then
1711   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1712   as_fn_error $? "missing argument to $ac_option"
1713 fi
1714 
1715 if test -n "$ac_unrecognized_opts"; then
1716   case $enable_option_checking in
1717     no) ;;
1718     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1719     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1720   esac
1721 fi
1722 
1723 # Check all directory arguments for consistency.
1724 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1725                 datadir sysconfdir sharedstatedir localstatedir includedir \
1726                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1727                 libdir localedir mandir
1728 do
1729   eval ac_val=\$$ac_var
1730   # Remove trailing slashes.
1731   case $ac_val in
1732     */ )
1733       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1734       eval $ac_var=\$ac_val;;
1735   esac
1736   # Be sure to have absolute directory names.
1737   case $ac_val in
1738     [\\/$]* | ?:[\\/]* )  continue;;
1739     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1740   esac
1741   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1742 done
1743 
1744 # There might be people who depend on the old broken behavior: `$host'
1745 # used to hold the argument of --host etc.
1746 # FIXME: To remove some day.
1747 build=$build_alias
1748 host=$host_alias
1749 target=$target_alias
1750 
1751 # FIXME: To remove some day.
1752 if test "x$host_alias" != x; then
1753   if test "x$build_alias" = x; then
1754     cross_compiling=maybe
1755   elif test "x$build_alias" != "x$host_alias"; then
1756     cross_compiling=yes
1757   fi
1758 fi
1759 
1760 ac_tool_prefix=
1761 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1762 
1763 test "$silent" = yes && exec 6>/dev/null
1764 
1765 
1766 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1767 ac_ls_di=`ls -di .` &&
1768 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1769   as_fn_error $? "working directory cannot be determined"
1770 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1771   as_fn_error $? "pwd does not report name of working directory"
1772 
1773 
1774 # Find the source files, if location was not specified.
1775 if test -z "$srcdir"; then
1776   ac_srcdir_defaulted=yes
1777   # Try the directory containing this script, then the parent directory.
1778   ac_confdir=`$as_dirname -- "$as_myself" ||
1779 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1780          X"$as_myself" : 'X\(//\)[^/]' \| \
1781          X"$as_myself" : 'X\(//\)$' \| \
1782          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1783 $as_echo X"$as_myself" |
1784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1785             s//\1/
1786             q
1787           }
1788           /^X\(\/\/\)[^/].*/{
1789             s//\1/
1790             q
1791           }
1792           /^X\(\/\/\)$/{
1793             s//\1/
1794             q
1795           }
1796           /^X\(\/\).*/{
1797             s//\1/
1798             q
1799           }
1800           s/.*/./; q'`
1801   srcdir=$ac_confdir
1802   if test ! -r "$srcdir/$ac_unique_file"; then
1803     srcdir=..
1804   fi
1805 else
1806   ac_srcdir_defaulted=no
1807 fi
1808 if test ! -r "$srcdir/$ac_unique_file"; then
1809   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1810   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1811 fi
1812 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1813 ac_abs_confdir=`(
1814         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1815         pwd)`
1816 # When building in place, set srcdir=.
1817 if test "$ac_abs_confdir" = "$ac_pwd"; then
1818   srcdir=.
1819 fi
1820 # Remove unnecessary trailing slashes from srcdir.
1821 # Double slashes in file names in object file debugging info
1822 # mess up M-x gdb in Emacs.
1823 case $srcdir in
1824 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1825 esac
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1828   eval ac_env_${ac_var}_value=\$${ac_var}
1829   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1830   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1831 done
1832 
1833 #
1834 # Report the --help message.
1835 #
1836 if test "$ac_init_help" = "long"; then
1837   # Omit some internal or obsolete options to make the list less imposing.
1838   # This message is too long to be a string in the A/UX 3.1 sh.
1839   cat <<_ACEOF
1840 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1841 
1842 Usage: $0 [OPTION]... [VAR=VALUE]...
1843 
1844 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1845 VAR=VALUE.  See below for descriptions of some of the useful variables.
1846 
1847 Defaults for the options are specified in brackets.
1848 
1849 Configuration:
1850   -h, --help              display this help and exit
1851       --help=short        display options specific to this package
1852       --help=recursive    display the short help of all the included packages
1853   -V, --version           display version information and exit
1854   -q, --quiet, --silent   do not print \`checking ...' messages
1855       --cache-file=FILE   cache test results in FILE [disabled]
1856   -C, --config-cache      alias for \`--cache-file=config.cache'
1857   -n, --no-create         do not create output files
1858       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1859 
1860 Installation directories:
1861   --prefix=PREFIX         install architecture-independent files in PREFIX
1862                           [$ac_default_prefix]
1863   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1864                           [PREFIX]
1865 
1866 By default, \`make install' will install all the files in
1867 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1868 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1869 for instance \`--prefix=\$HOME'.
1870 
1871 For better control, use the options below.
1872 
1873 Fine tuning of the installation directories:
1874   --bindir=DIR            user executables [EPREFIX/bin]
1875   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1876   --libexecdir=DIR        program executables [EPREFIX/libexec]
1877   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1878   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1879   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1880   --libdir=DIR            object code libraries [EPREFIX/lib]
1881   --includedir=DIR        C header files [PREFIX/include]
1882   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1883   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1884   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1885   --infodir=DIR           info documentation [DATAROOTDIR/info]
1886   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1887   --mandir=DIR            man documentation [DATAROOTDIR/man]
1888   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1889   --htmldir=DIR           html documentation [DOCDIR]
1890   --dvidir=DIR            dvi documentation [DOCDIR]
1891   --pdfdir=DIR            pdf documentation [DOCDIR]
1892   --psdir=DIR             ps documentation [DOCDIR]
1893 _ACEOF
1894 
1895   cat <<\_ACEOF
1896 
1897 X features:
1898   --x-includes=DIR    X include files are in DIR
1899   --x-libraries=DIR   X library files are in DIR
1900 
1901 System types:
1902   --build=BUILD     configure for building on BUILD [guessed]
1903   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1904   --target=TARGET   configure for building compilers for TARGET [HOST]
1905 _ACEOF
1906 fi
1907 
1908 if test -n "$ac_init_help"; then
1909   case $ac_init_help in
1910      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1911    esac
1912   cat <<\_ACEOF
1913 
1914 Optional Features:
1915   --disable-option-checking  ignore unrecognized --enable/--with options
1916   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1917   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1918   --enable-openjdk-only   suppress building custom source even if present
1919                           [disabled]
1920   --enable-debug          set the debug level to fastdebug (shorthand for
1921                           --with-debug-level=fastdebug) [disabled]
1922   --disable-headful       disable building headful support (graphical UI
1923                           support) [enabled]
1924   --enable-unlimited-crypto
1925                           Enable unlimited crypto policy [disabled]
1926   --disable-keep-packaged-modules
1927                           Do not keep packaged modules in jdk image [enable]
1928   --enable-hotspot-test-in-build
1929                           run the Queens test after Hotspot build [disabled]
1930   --enable-static-build   enable static library build [disabled]
1931   --disable-warnings-as-errors
1932                           do not consider native warnings to be an error
1933                           [enabled]
1934   --enable-debug-symbols  Deprecated. Option is kept for backwards
1935                           compatibility and is ignored
1936   --enable-zip-debug-info Deprecated. Option is kept for backwards
1937                           compatibility and is ignored
1938   --enable-native-coverage
1939                           enable native compilation with code coverage
1940                           data[disabled]
1941   --disable-freetype-bundling
1942                           disable bundling of the freetype library with the
1943                           build result [enabled on Windows or when using
1944                           --with-freetype, disabled otherwise]
1945   --enable-jtreg-failure-handler
1946                           forces build of the jtreg failure handler to be
1947                           enabled, missing dependencies become fatal errors.
1948                           Default is auto, where the failure handler is built
1949                           if all dependencies are present and otherwise just
1950                           disabled.
1951   --enable-sjavac         use sjavac to do fast incremental compiles
1952                           [disabled]
1953   --disable-javac-server  disable javac server [enabled]
1954   --enable-icecc          enable distribted compilation of native code using
1955                           icecc/icecream [disabled]
1956   --disable-precompiled-headers
1957                           disable using precompiled headers when compiling C++
1958                           [enabled]
1959   --enable-ccache         enable using ccache to speed up recompilations
1960                           [disabled]
1961 
1962 Optional Packages:
1963   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1964   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1965   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1966                           support it), e.g. --with-target-bits=32 [guessed]
1967   --with-custom-make-dir  Deprecated. Option is kept for backwards
1968                           compatibility and is ignored
1969   --with-jdk-variant      JDK variant to build (normal) [normal]
1970   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1971   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1972                           client, minimal1, zero, zeroshark, core) [server]
1973   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1974                           optimized) [release]
1975   --with-devkit           use this devkit for compilers, tools and resources
1976   --with-sys-root         alias for --with-sysroot for backwards compatability
1977   --with-sysroot          use this directory as sysroot
1978   --with-tools-dir        alias for --with-toolchain-path for backwards
1979                           compatibility
1980   --with-toolchain-path   prepend these directories when searching for
1981                           toolchain binaries (compilers etc)
1982   --with-extra-path       prepend these directories to the default path
1983   --with-sdk-name         use the platform SDK of the given name. [macosx]
1984   --with-conf-name        use this as the name of the configuration [generated
1985                           from important configuration options]
1986   --with-output-sync      set make output sync type if supported by make.
1987                           [recurse]
1988   --with-default-make-target
1989                           set the default make target [exploded-image]
1990   --with-cacerts-file     specify alternative cacerts file
1991   --with-copyright-year   Set copyright year value for build [current year]
1992   --with-milestone        Deprecated. Option is kept for backwards
1993                           compatibility and is ignored
1994   --with-update-version   Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --with-user-release-suffix
1997                           Deprecated. Option is kept for backwards
1998                           compatibility and is ignored
1999   --with-build-number     Deprecated. Option is kept for backwards
2000                           compatibility and is ignored
2001   --with-version-string   Set version string [calculated]
2002   --with-version-pre      Set the base part of the version 'PRE' field
2003                           (pre-release identifier) ['internal']
2004   --with-version-opt      Set version 'OPT' field (build metadata)
2005                           [<timestamp>.<user>.<dirname>]
2006   --with-version-build    Set version 'BUILD' field (build number) [not
2007                           specified]
2008   --with-version-major    Set version 'MAJOR' field (first number) [current
2009                           source value]
2010   --with-version-minor    Set version 'MINOR' field (second number) [current
2011                           source value]
2012   --with-version-security Set version 'SECURITY' field (third number) [current
2013                           source value]
2014   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2015                           specified]
2016   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2017   --with-build-jdk        path to JDK of same version as is being built[the
2018                           newly built JDK]
2019   --with-add-source-root  Deprecated. Option is kept for backwards
2020                           compatibility and is ignored
2021   --with-override-source-root
2022                           Deprecated. Option is kept for backwards
2023                           compatibility and is ignored
2024   --with-adds-and-overrides
2025                           Deprecated. Option is kept for backwards
2026                           compatibility and is ignored
2027   --with-override-langtools
2028                           Deprecated. Option is kept for backwards
2029                           compatibility and is ignored
2030   --with-override-corba   Deprecated. Option is kept for backwards
2031                           compatibility and is ignored
2032   --with-override-jaxp    Deprecated. Option is kept for backwards
2033                           compatibility and is ignored
2034   --with-override-jaxws   Deprecated. Option is kept for backwards
2035                           compatibility and is ignored
2036   --with-override-hotspot Deprecated. Option is kept for backwards
2037                           compatibility and is ignored
2038   --with-override-nashorn Deprecated. Option is kept for backwards
2039                           compatibility and is ignored
2040   --with-override-jdk     Deprecated. Option is kept for backwards
2041                           compatibility and is ignored
2042   --with-import-hotspot   import hotspot binaries from this jdk image or
2043                           hotspot build dist dir instead of building from
2044                           source
2045   --with-import-modules   import a set of prebuilt modules either as a zip
2046                           file or an exploded directory
2047   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2048                           to show possible values [platform dependent]
2049   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2050   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2051   --with-extra-ldflags    extra flags to be used when linking jdk
2052   --with-toolchain-version
2053                           the version of the toolchain to look for, use
2054                           '--help' to show possible values [platform
2055                           dependent]
2056   --with-build-devkit     Devkit to use for the build platform toolchain
2057   --with-jtreg            Regression Test Harness [probed]
2058   --with-native-debug-symbols
2059                           set the native debug symbol configuration (none,
2060                           internal, external, zipped) [varying]
2061   --with-stdc++lib=<static>,<dynamic>,<default>
2062                           force linking of the C++ runtime on Linux to either
2063                           static or dynamic, default is static with dynamic as
2064                           fallback
2065   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2066                           (Windows only) [probed]
2067   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2068                           (Windows only) [probed]
2069   --with-x                use the X Window System
2070   --with-cups             specify prefix directory for the cups package
2071                           (expecting the headers under PATH/include)
2072   --with-cups-include     specify directory for the cups include files
2073   --with-freetype         specify prefix directory for the freetype package
2074                           (expecting the libraries under PATH/lib and the
2075                           headers under PATH/include)
2076   --with-freetype-include specify directory for the freetype include files
2077   --with-freetype-lib     specify directory for the freetype library
2078   --with-freetype-src     specify directory with freetype sources to
2079                           automatically build the library (experimental,
2080                           Windows-only)
2081   --with-alsa             specify prefix directory for the alsa package
2082                           (expecting the libraries under PATH/lib and the
2083                           headers under PATH/include)
2084   --with-alsa-include     specify directory for the alsa include files
2085   --with-alsa-lib         specify directory for the alsa library
2086   --with-libffi           specify prefix directory for the libffi package
2087                           (expecting the libraries under PATH/lib and the
2088                           headers under PATH/include)
2089   --with-libffi-include   specify directory for the libffi include files
2090   --with-libffi-lib       specify directory for the libffi library
2091   --with-libjpeg          use libjpeg from build system or OpenJDK source
2092                           (system, bundled) [bundled]
2093   --with-giflib           use giflib from build system or OpenJDK source
2094                           (system, bundled) [bundled]
2095   --with-libpng           use libpng from build system or OpenJDK source
2096                           (system, bundled) [bundled]
2097   --with-zlib             use zlib from build system or OpenJDK source
2098                           (system, bundled) [bundled]
2099   --with-lcms             use lcms2 from build system or OpenJDK source
2100                           (system, bundled) [bundled]
2101   --with-dxsdk            Deprecated. Option is kept for backwards
2102                           compatibility and is ignored
2103   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2104                           compatibility and is ignored
2105   --with-dxsdk-include    Deprecated. Option is kept for backwards
2106                           compatibility and is ignored
2107   --with-num-cores        number of cores in the build system, e.g.
2108                           --with-num-cores=8 [probed]
2109   --with-memory-size      memory (in MB) available in the build system, e.g.
2110                           --with-memory-size=1024 [probed]
2111   --with-jobs             number of parallel jobs to let make run [calculated
2112                           based on cores and memory]
2113   --with-test-jobs        number of parallel tests jobs to run [based on build
2114                           jobs]
2115   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2116                           invocations of boot JDK, overriding the default
2117                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2118                           -enableassertions"
2119   --with-sjavac-server-java
2120                           use this java binary for running the sjavac
2121                           background server [Boot JDK java]
2122   --with-ccache-dir       where to store ccache files [~/.ccache]
2123 
2124 Some influential environment variables:
2125   BASENAME    Override default value for BASENAME
2126   BASH        Override default value for BASH
2127   CAT         Override default value for CAT
2128   CHMOD       Override default value for CHMOD
2129   CMP         Override default value for CMP
2130   COMM        Override default value for COMM
2131   CP          Override default value for CP
2132   CUT         Override default value for CUT
2133   DATE        Override default value for DATE
2134   DIFF        Override default value for DIFF
2135   DIRNAME     Override default value for DIRNAME
2136   ECHO        Override default value for ECHO
2137   EXPR        Override default value for EXPR
2138   FILE        Override default value for FILE
2139   FIND        Override default value for FIND
2140   HEAD        Override default value for HEAD
2141   LN          Override default value for LN
2142   LS          Override default value for LS
2143   MKDIR       Override default value for MKDIR
2144   MKTEMP      Override default value for MKTEMP
2145   MV          Override default value for MV
2146   NAWK        Override default value for NAWK
2147   PRINTF      Override default value for PRINTF
2148   RM          Override default value for RM
2149   RMDIR       Override default value for RMDIR
2150   SH          Override default value for SH
2151   SORT        Override default value for SORT
2152   TAIL        Override default value for TAIL
2153   TAR         Override default value for TAR
2154   TEE         Override default value for TEE
2155   TOUCH       Override default value for TOUCH
2156   TR          Override default value for TR
2157   UNAME       Override default value for UNAME
2158   UNIQ        Override default value for UNIQ
2159   WC          Override default value for WC
2160   WHICH       Override default value for WHICH
2161   XARGS       Override default value for XARGS
2162   AWK         Override default value for AWK
2163   GREP        Override default value for GREP
2164   EGREP       Override default value for EGREP
2165   FGREP       Override default value for FGREP
2166   SED         Override default value for SED
2167   CYGPATH     Override default value for CYGPATH
2168   READLINK    Override default value for READLINK
2169   DF          Override default value for DF
2170   CPIO        Override default value for CPIO
2171   NICE        Override default value for NICE
2172   MAKE        Override default value for MAKE
2173   UNZIP       Override default value for UNZIP
2174   ZIP         Override default value for ZIP
2175   LDD         Override default value for LDD
2176   OTOOL       Override default value for OTOOL
2177   READELF     Override default value for READELF
2178   HG          Override default value for HG
2179   STAT        Override default value for STAT
2180   TIME        Override default value for TIME
2181   PATCH       Override default value for PATCH
2182   DSYMUTIL    Override default value for DSYMUTIL
2183   XATTR       Override default value for XATTR
2184   CODESIGN    Override default value for CODESIGN
2185   SETFILE     Override default value for SETFILE
2186   PKG_CONFIG  path to pkg-config utility
2187   JAVA        Override default value for JAVA
2188   JAVAC       Override default value for JAVAC
2189   JAVAH       Override default value for JAVAH
2190   JAR         Override default value for JAR
2191   JARSIGNER   Override default value for JARSIGNER
2192   CC          C compiler command
2193   CFLAGS      C compiler flags
2194   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2195               nonstandard directory <lib dir>
2196   LIBS        libraries to pass to the linker, e.g. -l<library>
2197   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2198               you have headers in a nonstandard directory <include dir>
2199   CXX         C++ compiler command
2200   CXXFLAGS    C++ compiler flags
2201   CPP         C preprocessor
2202   CXXCPP      C++ preprocessor
2203   AS          Override default value for AS
2204   AR          Override default value for AR
2205   LIPO        Override default value for LIPO
2206   STRIP       Override default value for STRIP
2207   NM          Override default value for NM
2208   GNM         Override default value for GNM
2209   OBJCOPY     Override default value for OBJCOPY
2210   OBJDUMP     Override default value for OBJDUMP
2211   BUILD_CC    Override default value for BUILD_CC
2212   BUILD_CXX   Override default value for BUILD_CXX
2213   BUILD_NM    Override default value for BUILD_NM
2214   BUILD_AR    Override default value for BUILD_AR
2215   BUILD_OBJCOPY
2216               Override default value for BUILD_OBJCOPY
2217   BUILD_STRIP Override default value for BUILD_STRIP
2218   JTREGEXE    Override default value for JTREGEXE
2219   XMKMF       Path to xmkmf, Makefile generator for X Window System
2220   FREETYPE_CFLAGS
2221               C compiler flags for FREETYPE, overriding pkg-config
2222   FREETYPE_LIBS
2223               linker flags for FREETYPE, overriding pkg-config
2224   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2225   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2226   LIBFFI_CFLAGS
2227               C compiler flags for LIBFFI, overriding pkg-config
2228   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2229   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2230   PNG_LIBS    linker flags for PNG, overriding pkg-config
2231   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2232   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2233   ICECC_CMD   Override default value for ICECC_CMD
2234   ICECC_CREATE_ENV
2235               Override default value for ICECC_CREATE_ENV
2236   ICECC_WRAPPER
2237               Override default value for ICECC_WRAPPER
2238   CCACHE      Override default value for CCACHE
2239 
2240 Use these variables to override the choices made by `configure' or to help
2241 it to find libraries and programs with nonstandard names/locations.
2242 
2243 Report bugs to <build-dev@openjdk.java.net>.
2244 OpenJDK home page: <http://openjdk.java.net>.
2245 _ACEOF
2246 ac_status=$?
2247 fi
2248 
2249 if test "$ac_init_help" = "recursive"; then
2250   # If there are subdirs, report their specific --help.
2251   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2252     test -d "$ac_dir" ||
2253       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2254       continue
2255     ac_builddir=.
2256 
2257 case "$ac_dir" in
2258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2259 *)
2260   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2261   # A ".." for each directory in $ac_dir_suffix.
2262   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2263   case $ac_top_builddir_sub in
2264   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2265   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2266   esac ;;
2267 esac
2268 ac_abs_top_builddir=$ac_pwd
2269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2270 # for backward compatibility:
2271 ac_top_builddir=$ac_top_build_prefix
2272 
2273 case $srcdir in
2274   .)  # We are building in place.
2275     ac_srcdir=.
2276     ac_top_srcdir=$ac_top_builddir_sub
2277     ac_abs_top_srcdir=$ac_pwd ;;
2278   [\\/]* | ?:[\\/]* )  # Absolute name.
2279     ac_srcdir=$srcdir$ac_dir_suffix;
2280     ac_top_srcdir=$srcdir
2281     ac_abs_top_srcdir=$srcdir ;;
2282   *) # Relative name.
2283     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2284     ac_top_srcdir=$ac_top_build_prefix$srcdir
2285     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2286 esac
2287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2288 
2289     cd "$ac_dir" || { ac_status=$?; continue; }
2290     # Check for guested configure.
2291     if test -f "$ac_srcdir/configure.gnu"; then
2292       echo &&
2293       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2294     elif test -f "$ac_srcdir/configure"; then
2295       echo &&
2296       $SHELL "$ac_srcdir/configure" --help=recursive
2297     else
2298       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2299     fi || ac_status=$?
2300     cd "$ac_pwd" || { ac_status=$?; break; }
2301   done
2302 fi
2303 
2304 test -n "$ac_init_help" && exit $ac_status
2305 if $ac_init_version; then
2306   cat <<\_ACEOF
2307 OpenJDK configure jdk9
2308 generated by GNU Autoconf 2.69
2309 
2310 Copyright (C) 2012 Free Software Foundation, Inc.
2311 This configure script is free software; the Free Software Foundation
2312 gives unlimited permission to copy, distribute and modify it.
2313 _ACEOF
2314   exit
2315 fi
2316 
2317 ## ------------------------ ##
2318 ## Autoconf initialization. ##
2319 ## ------------------------ ##
2320 
2321 # ac_fn_c_try_compile LINENO
2322 # --------------------------
2323 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2324 ac_fn_c_try_compile ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   rm -f conftest.$ac_objext
2328   if { { ac_try="$ac_compile"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335   (eval "$ac_compile") 2>conftest.err
2336   ac_status=$?
2337   if test -s conftest.err; then
2338     grep -v '^ *+' conftest.err >conftest.er1
2339     cat conftest.er1 >&5
2340     mv -f conftest.er1 conftest.err
2341   fi
2342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343   test $ac_status = 0; } && {
2344          test -z "$ac_c_werror_flag" ||
2345          test ! -s conftest.err
2346        } && test -s conftest.$ac_objext; then :
2347   ac_retval=0
2348 else
2349   $as_echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351 
2352         ac_retval=1
2353 fi
2354   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355   as_fn_set_status $ac_retval
2356 
2357 } # ac_fn_c_try_compile
2358 
2359 # ac_fn_cxx_try_compile LINENO
2360 # ----------------------------
2361 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2362 ac_fn_cxx_try_compile ()
2363 {
2364   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365   rm -f conftest.$ac_objext
2366   if { { ac_try="$ac_compile"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373   (eval "$ac_compile") 2>conftest.err
2374   ac_status=$?
2375   if test -s conftest.err; then
2376     grep -v '^ *+' conftest.err >conftest.er1
2377     cat conftest.er1 >&5
2378     mv -f conftest.er1 conftest.err
2379   fi
2380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381   test $ac_status = 0; } && {
2382          test -z "$ac_cxx_werror_flag" ||
2383          test ! -s conftest.err
2384        } && test -s conftest.$ac_objext; then :
2385   ac_retval=0
2386 else
2387   $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389 
2390         ac_retval=1
2391 fi
2392   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393   as_fn_set_status $ac_retval
2394 
2395 } # ac_fn_cxx_try_compile
2396 
2397 # ac_fn_c_try_cpp LINENO
2398 # ----------------------
2399 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2400 ac_fn_c_try_cpp ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   if { { ac_try="$ac_cpp conftest.$ac_ext"
2404 case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 $as_echo "$ac_try_echo"; } >&5
2410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2411   ac_status=$?
2412   if test -s conftest.err; then
2413     grep -v '^ *+' conftest.err >conftest.er1
2414     cat conftest.er1 >&5
2415     mv -f conftest.er1 conftest.err
2416   fi
2417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418   test $ac_status = 0; } > conftest.i && {
2419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2420          test ! -s conftest.err
2421        }; then :
2422   ac_retval=0
2423 else
2424   $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426 
2427     ac_retval=1
2428 fi
2429   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430   as_fn_set_status $ac_retval
2431 
2432 } # ac_fn_c_try_cpp
2433 
2434 # ac_fn_cxx_try_cpp LINENO
2435 # ------------------------
2436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437 ac_fn_cxx_try_cpp ()
2438 {
2439   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440   if { { ac_try="$ac_cpp conftest.$ac_ext"
2441 case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448   ac_status=$?
2449   if test -s conftest.err; then
2450     grep -v '^ *+' conftest.err >conftest.er1
2451     cat conftest.er1 >&5
2452     mv -f conftest.er1 conftest.err
2453   fi
2454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455   test $ac_status = 0; } > conftest.i && {
2456          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2457          test ! -s conftest.err
2458        }; then :
2459   ac_retval=0
2460 else
2461   $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463 
2464     ac_retval=1
2465 fi
2466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467   as_fn_set_status $ac_retval
2468 
2469 } # ac_fn_cxx_try_cpp
2470 
2471 # ac_fn_c_try_link LINENO
2472 # -----------------------
2473 # Try to link conftest.$ac_ext, and return whether this succeeded.
2474 ac_fn_c_try_link ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   rm -f conftest.$ac_objext conftest$ac_exeext
2478   if { { ac_try="$ac_link"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485   (eval "$ac_link") 2>conftest.err
2486   ac_status=$?
2487   if test -s conftest.err; then
2488     grep -v '^ *+' conftest.err >conftest.er1
2489     cat conftest.er1 >&5
2490     mv -f conftest.er1 conftest.err
2491   fi
2492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493   test $ac_status = 0; } && {
2494          test -z "$ac_c_werror_flag" ||
2495          test ! -s conftest.err
2496        } && test -s conftest$ac_exeext && {
2497          test "$cross_compiling" = yes ||
2498          test -x conftest$ac_exeext
2499        }; then :
2500   ac_retval=0
2501 else
2502   $as_echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504 
2505         ac_retval=1
2506 fi
2507   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2508   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2509   # interfere with the next link command; also delete a directory that is
2510   # left behind by Apple's compiler.  We do this before executing the actions.
2511   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2512   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513   as_fn_set_status $ac_retval
2514 
2515 } # ac_fn_c_try_link
2516 
2517 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2518 # ---------------------------------------------------------
2519 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2520 # the include files in INCLUDES and setting the cache variable VAR
2521 # accordingly.
2522 ac_fn_cxx_check_header_mongrel ()
2523 {
2524   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525   if eval \${$3+:} false; then :
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if eval \${$3+:} false; then :
2529   $as_echo_n "(cached) " >&6
2530 fi
2531 eval ac_res=\$$3
2532                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 else
2535   # Is the header compilable?
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2537 $as_echo_n "checking $2 usability... " >&6; }
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h.  */
2540 $4
2541 #include <$2>
2542 _ACEOF
2543 if ac_fn_cxx_try_compile "$LINENO"; then :
2544   ac_header_compiler=yes
2545 else
2546   ac_header_compiler=no
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2550 $as_echo "$ac_header_compiler" >&6; }
2551 
2552 # Is the header present?
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2554 $as_echo_n "checking $2 presence... " >&6; }
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 #include <$2>
2558 _ACEOF
2559 if ac_fn_cxx_try_cpp "$LINENO"; then :
2560   ac_header_preproc=yes
2561 else
2562   ac_header_preproc=no
2563 fi
2564 rm -f conftest.err conftest.i conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2566 $as_echo "$ac_header_preproc" >&6; }
2567 
2568 # So?  What about this header?
2569 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2570   yes:no: )
2571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2572 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2573     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2574 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2575     ;;
2576   no:yes:* )
2577     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2578 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2579     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2580 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2581     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2582 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2583     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2584 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2585     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2586 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2587 ( $as_echo "## ----------------------------------------- ##
2588 ## Report this to build-dev@openjdk.java.net ##
2589 ## ----------------------------------------- ##"
2590      ) | sed "s/^/$as_me: WARNING:     /" >&2
2591     ;;
2592 esac
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2594 $as_echo_n "checking for $2... " >&6; }
2595 if eval \${$3+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   eval "$3=\$ac_header_compiler"
2599 fi
2600 eval ac_res=\$$3
2601                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2602 $as_echo "$ac_res" >&6; }
2603 fi
2604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605 
2606 } # ac_fn_cxx_check_header_mongrel
2607 
2608 # ac_fn_cxx_try_run LINENO
2609 # ------------------------
2610 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2611 # that executables *can* be run.
2612 ac_fn_cxx_try_run ()
2613 {
2614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615   if { { ac_try="$ac_link"
2616 case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622   (eval "$ac_link") 2>&5
2623   ac_status=$?
2624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2626   { { case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632   (eval "$ac_try") 2>&5
2633   ac_status=$?
2634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635   test $ac_status = 0; }; }; then :
2636   ac_retval=0
2637 else
2638   $as_echo "$as_me: program exited with status $ac_status" >&5
2639        $as_echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641 
2642        ac_retval=$ac_status
2643 fi
2644   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2645   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646   as_fn_set_status $ac_retval
2647 
2648 } # ac_fn_cxx_try_run
2649 
2650 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2651 # ---------------------------------------------------------
2652 # Tests whether HEADER exists and can be compiled using the include files in
2653 # INCLUDES, setting the cache variable VAR accordingly.
2654 ac_fn_cxx_check_header_compile ()
2655 {
2656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \${$3+:} false; then :
2660   $as_echo_n "(cached) " >&6
2661 else
2662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h.  */
2664 $4
2665 #include <$2>
2666 _ACEOF
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2668   eval "$3=yes"
2669 else
2670   eval "$3=no"
2671 fi
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 fi
2674 eval ac_res=\$$3
2675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 
2679 } # ac_fn_cxx_check_header_compile
2680 
2681 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2682 # ----------------------------------------------
2683 # Tries to find the compile-time value of EXPR in a program that includes
2684 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2685 # computed
2686 ac_fn_cxx_compute_int ()
2687 {
2688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2689   if test "$cross_compiling" = yes; then
2690     # Depending upon the size, compute the lo and hi bounds.
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h.  */
2693 $4
2694 int
2695 main ()
2696 {
2697 static int test_array [1 - 2 * !(($2) >= 0)];
2698 test_array [0] = 0;
2699 return test_array [0];
2700 
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_cxx_try_compile "$LINENO"; then :
2706   ac_lo=0 ac_mid=0
2707   while :; do
2708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h.  */
2710 $4
2711 int
2712 main ()
2713 {
2714 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2715 test_array [0] = 0;
2716 return test_array [0];
2717 
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 if ac_fn_cxx_try_compile "$LINENO"; then :
2723   ac_hi=$ac_mid; break
2724 else
2725   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2726                         if test $ac_lo -le $ac_mid; then
2727                           ac_lo= ac_hi=
2728                           break
2729                         fi
2730                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2731 fi
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733   done
2734 else
2735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h.  */
2737 $4
2738 int
2739 main ()
2740 {
2741 static int test_array [1 - 2 * !(($2) < 0)];
2742 test_array [0] = 0;
2743 return test_array [0];
2744 
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 if ac_fn_cxx_try_compile "$LINENO"; then :
2750   ac_hi=-1 ac_mid=-1
2751   while :; do
2752     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h.  */
2754 $4
2755 int
2756 main ()
2757 {
2758 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2759 test_array [0] = 0;
2760 return test_array [0];
2761 
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_cxx_try_compile "$LINENO"; then :
2767   ac_lo=$ac_mid; break
2768 else
2769   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2770                         if test $ac_mid -le $ac_hi; then
2771                           ac_lo= ac_hi=
2772                           break
2773                         fi
2774                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2775 fi
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777   done
2778 else
2779   ac_lo= ac_hi=
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 # Binary search between lo and hi bounds.
2785 while test "x$ac_lo" != "x$ac_hi"; do
2786   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h.  */
2789 $4
2790 int
2791 main ()
2792 {
2793 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2794 test_array [0] = 0;
2795 return test_array [0];
2796 
2797   ;
2798   return 0;
2799 }
2800 _ACEOF
2801 if ac_fn_cxx_try_compile "$LINENO"; then :
2802   ac_hi=$ac_mid
2803 else
2804   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2805 fi
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 done
2808 case $ac_lo in #((
2809 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2810 '') ac_retval=1 ;;
2811 esac
2812   else
2813     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h.  */
2815 $4
2816 static long int longval () { return $2; }
2817 static unsigned long int ulongval () { return $2; }
2818 #include <stdio.h>
2819 #include <stdlib.h>
2820 int
2821 main ()
2822 {
2823 
2824   FILE *f = fopen ("conftest.val", "w");
2825   if (! f)
2826     return 1;
2827   if (($2) < 0)
2828     {
2829       long int i = longval ();
2830       if (i != ($2))
2831         return 1;
2832       fprintf (f, "%ld", i);
2833     }
2834   else
2835     {
2836       unsigned long int i = ulongval ();
2837       if (i != ($2))
2838         return 1;
2839       fprintf (f, "%lu", i);
2840     }
2841   /* Do not output a trailing newline, as this causes \r\n confusion
2842      on some platforms.  */
2843   return ferror (f) || fclose (f) != 0;
2844 
2845   ;
2846   return 0;
2847 }
2848 _ACEOF
2849 if ac_fn_cxx_try_run "$LINENO"; then :
2850   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2851 else
2852   ac_retval=1
2853 fi
2854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2855   conftest.$ac_objext conftest.beam conftest.$ac_ext
2856 rm -f conftest.val
2857 
2858   fi
2859   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2860   as_fn_set_status $ac_retval
2861 
2862 } # ac_fn_cxx_compute_int
2863 
2864 # ac_fn_cxx_try_link LINENO
2865 # -------------------------
2866 # Try to link conftest.$ac_ext, and return whether this succeeded.
2867 ac_fn_cxx_try_link ()
2868 {
2869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870   rm -f conftest.$ac_objext conftest$ac_exeext
2871   if { { ac_try="$ac_link"
2872 case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878   (eval "$ac_link") 2>conftest.err
2879   ac_status=$?
2880   if test -s conftest.err; then
2881     grep -v '^ *+' conftest.err >conftest.er1
2882     cat conftest.er1 >&5
2883     mv -f conftest.er1 conftest.err
2884   fi
2885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886   test $ac_status = 0; } && {
2887          test -z "$ac_cxx_werror_flag" ||
2888          test ! -s conftest.err
2889        } && test -s conftest$ac_exeext && {
2890          test "$cross_compiling" = yes ||
2891          test -x conftest$ac_exeext
2892        }; then :
2893   ac_retval=0
2894 else
2895   $as_echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897 
2898         ac_retval=1
2899 fi
2900   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2901   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2902   # interfere with the next link command; also delete a directory that is
2903   # left behind by Apple's compiler.  We do this before executing the actions.
2904   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2905   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906   as_fn_set_status $ac_retval
2907 
2908 } # ac_fn_cxx_try_link
2909 
2910 # ac_fn_cxx_check_func LINENO FUNC VAR
2911 # ------------------------------------
2912 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2913 ac_fn_cxx_check_func ()
2914 {
2915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2917 $as_echo_n "checking for $2... " >&6; }
2918 if eval \${$3+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h.  */
2923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2925 #define $2 innocuous_$2
2926 
2927 /* System header to define __stub macros and hopefully few prototypes,
2928     which can conflict with char $2 (); below.
2929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2930     <limits.h> exists even on freestanding compilers.  */
2931 
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937 
2938 #undef $2
2939 
2940 /* Override any GCC internal prototype to avoid an error.
2941    Use char because int might match the return type of a GCC
2942    builtin and then its argument prototype would still apply.  */
2943 #ifdef __cplusplus
2944 extern "C"
2945 #endif
2946 char $2 ();
2947 /* The GNU C library defines this for functions which it implements
2948     to always fail with ENOSYS.  Some functions are actually named
2949     something starting with __ and the normal name is an alias.  */
2950 #if defined __stub_$2 || defined __stub___$2
2951 choke me
2952 #endif
2953 
2954 int
2955 main ()
2956 {
2957 return $2 ();
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 if ac_fn_cxx_try_link "$LINENO"; then :
2963   eval "$3=yes"
2964 else
2965   eval "$3=no"
2966 fi
2967 rm -f core conftest.err conftest.$ac_objext \
2968     conftest$ac_exeext conftest.$ac_ext
2969 fi
2970 eval ac_res=\$$3
2971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2972 $as_echo "$ac_res" >&6; }
2973   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2974 
2975 } # ac_fn_cxx_check_func
2976 
2977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2978 # -------------------------------------------------------
2979 # Tests whether HEADER exists and can be compiled using the include files in
2980 # INCLUDES, setting the cache variable VAR accordingly.
2981 ac_fn_c_check_header_compile ()
2982 {
2983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2985 $as_echo_n "checking for $2... " >&6; }
2986 if eval \${$3+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h.  */
2991 $4
2992 #include <$2>
2993 _ACEOF
2994 if ac_fn_c_try_compile "$LINENO"; then :
2995   eval "$3=yes"
2996 else
2997   eval "$3=no"
2998 fi
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 fi
3001 eval ac_res=\$$3
3002                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3003 $as_echo "$ac_res" >&6; }
3004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3005 
3006 } # ac_fn_c_check_header_compile
3007 cat >config.log <<_ACEOF
3008 This file contains any messages produced by compilers while
3009 running configure, to aid debugging if configure makes a mistake.
3010 
3011 It was created by OpenJDK $as_me jdk9, which was
3012 generated by GNU Autoconf 2.69.  Invocation command line was
3013 
3014   $ $0 $@
3015 
3016 _ACEOF
3017 exec 5>>config.log
3018 {
3019 cat <<_ASUNAME
3020 ## --------- ##
3021 ## Platform. ##
3022 ## --------- ##
3023 
3024 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3025 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3026 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3027 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3028 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3029 
3030 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3031 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3032 
3033 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3034 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3035 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3036 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3037 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3038 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3039 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3040 
3041 _ASUNAME
3042 
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     $as_echo "PATH: $as_dir"
3049   done
3050 IFS=$as_save_IFS
3051 
3052 } >&5
3053 
3054 cat >&5 <<_ACEOF
3055 
3056 
3057 ## ----------- ##
3058 ## Core tests. ##
3059 ## ----------- ##
3060 
3061 _ACEOF
3062 
3063 
3064 # Keep a trace of the command line.
3065 # Strip out --no-create and --no-recursion so they do not pile up.
3066 # Strip out --silent because we don't want to record it for future runs.
3067 # Also quote any args containing shell meta-characters.
3068 # Make two passes to allow for proper duplicate-argument suppression.
3069 ac_configure_args=
3070 ac_configure_args0=
3071 ac_configure_args1=
3072 ac_must_keep_next=false
3073 for ac_pass in 1 2
3074 do
3075   for ac_arg
3076   do
3077     case $ac_arg in
3078     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3079     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3080     | -silent | --silent | --silen | --sile | --sil)
3081       continue ;;
3082     *\'*)
3083       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3084     esac
3085     case $ac_pass in
3086     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3087     2)
3088       as_fn_append ac_configure_args1 " '$ac_arg'"
3089       if test $ac_must_keep_next = true; then
3090         ac_must_keep_next=false # Got value, back to normal.
3091       else
3092         case $ac_arg in
3093           *=* | --config-cache | -C | -disable-* | --disable-* \
3094           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3095           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3096           | -with-* | --with-* | -without-* | --without-* | --x)
3097             case "$ac_configure_args0 " in
3098               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3099             esac
3100             ;;
3101           -* ) ac_must_keep_next=true ;;
3102         esac
3103       fi
3104       as_fn_append ac_configure_args " '$ac_arg'"
3105       ;;
3106     esac
3107   done
3108 done
3109 { ac_configure_args0=; unset ac_configure_args0;}
3110 { ac_configure_args1=; unset ac_configure_args1;}
3111 
3112 # When interrupted or exit'd, cleanup temporary files, and complete
3113 # config.log.  We remove comments because anyway the quotes in there
3114 # would cause problems or look ugly.
3115 # WARNING: Use '\'' to represent an apostrophe within the trap.
3116 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3117 trap 'exit_status=$?
3118   # Save into config.log some information that might help in debugging.
3119   {
3120     echo
3121 
3122     $as_echo "## ---------------- ##
3123 ## Cache variables. ##
3124 ## ---------------- ##"
3125     echo
3126     # The following way of writing the cache mishandles newlines in values,
3127 (
3128   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3129     eval ac_val=\$$ac_var
3130     case $ac_val in #(
3131     *${as_nl}*)
3132       case $ac_var in #(
3133       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3134 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3135       esac
3136       case $ac_var in #(
3137       _ | IFS | as_nl) ;; #(
3138       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3139       *) { eval $ac_var=; unset $ac_var;} ;;
3140       esac ;;
3141     esac
3142   done
3143   (set) 2>&1 |
3144     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3145     *${as_nl}ac_space=\ *)
3146       sed -n \
3147         "s/'\''/'\''\\\\'\'''\''/g;
3148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3149       ;; #(
3150     *)
3151       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3152       ;;
3153     esac |
3154     sort
3155 )
3156     echo
3157 
3158     $as_echo "## ----------------- ##
3159 ## Output variables. ##
3160 ## ----------------- ##"
3161     echo
3162     for ac_var in $ac_subst_vars
3163     do
3164       eval ac_val=\$$ac_var
3165       case $ac_val in
3166       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3167       esac
3168       $as_echo "$ac_var='\''$ac_val'\''"
3169     done | sort
3170     echo
3171 
3172     if test -n "$ac_subst_files"; then
3173       $as_echo "## ------------------- ##
3174 ## File substitutions. ##
3175 ## ------------------- ##"
3176       echo
3177       for ac_var in $ac_subst_files
3178       do
3179         eval ac_val=\$$ac_var
3180         case $ac_val in
3181         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3182         esac
3183         $as_echo "$ac_var='\''$ac_val'\''"
3184       done | sort
3185       echo
3186     fi
3187 
3188     if test -s confdefs.h; then
3189       $as_echo "## ----------- ##
3190 ## confdefs.h. ##
3191 ## ----------- ##"
3192       echo
3193       cat confdefs.h
3194       echo
3195     fi
3196     test "$ac_signal" != 0 &&
3197       $as_echo "$as_me: caught signal $ac_signal"
3198     $as_echo "$as_me: exit $exit_status"
3199   } >&5
3200   rm -f core *.core core.conftest.* &&
3201     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3202     exit $exit_status
3203 ' 0
3204 for ac_signal in 1 2 13 15; do
3205   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3206 done
3207 ac_signal=0
3208 
3209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3210 rm -f -r conftest* confdefs.h
3211 
3212 $as_echo "/* confdefs.h */" > confdefs.h
3213 
3214 # Predefined preprocessor variables.
3215 
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE_NAME "$PACKAGE_NAME"
3218 _ACEOF
3219 
3220 cat >>confdefs.h <<_ACEOF
3221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3222 _ACEOF
3223 
3224 cat >>confdefs.h <<_ACEOF
3225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3226 _ACEOF
3227 
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE_STRING "$PACKAGE_STRING"
3230 _ACEOF
3231 
3232 cat >>confdefs.h <<_ACEOF
3233 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3234 _ACEOF
3235 
3236 cat >>confdefs.h <<_ACEOF
3237 #define PACKAGE_URL "$PACKAGE_URL"
3238 _ACEOF
3239 
3240 
3241 # Let the site file select an alternate cache file if it wants to.
3242 # Prefer an explicitly selected file to automatically selected ones.
3243 ac_site_file1=NONE
3244 ac_site_file2=NONE
3245 if test -n "$CONFIG_SITE"; then
3246   # We do not want a PATH search for config.site.
3247   case $CONFIG_SITE in #((
3248     -*)  ac_site_file1=./$CONFIG_SITE;;
3249     */*) ac_site_file1=$CONFIG_SITE;;
3250     *)   ac_site_file1=./$CONFIG_SITE;;
3251   esac
3252 elif test "x$prefix" != xNONE; then
3253   ac_site_file1=$prefix/share/config.site
3254   ac_site_file2=$prefix/etc/config.site
3255 else
3256   ac_site_file1=$ac_default_prefix/share/config.site
3257   ac_site_file2=$ac_default_prefix/etc/config.site
3258 fi
3259 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3260 do
3261   test "x$ac_site_file" = xNONE && continue
3262   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3263     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3264 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3265     sed 's/^/| /' "$ac_site_file" >&5
3266     . "$ac_site_file" \
3267       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "failed to load site script $ac_site_file
3270 See \`config.log' for more details" "$LINENO" 5; }
3271   fi
3272 done
3273 
3274 if test -r "$cache_file"; then
3275   # Some versions of bash will fail to source /dev/null (special files
3276   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3277   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3278     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3279 $as_echo "$as_me: loading cache $cache_file" >&6;}
3280     case $cache_file in
3281       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3282       *)                      . "./$cache_file";;
3283     esac
3284   fi
3285 else
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3287 $as_echo "$as_me: creating cache $cache_file" >&6;}
3288   >$cache_file
3289 fi
3290 
3291 # Check that the precious variables saved in the cache have kept the same
3292 # value.
3293 ac_cache_corrupted=false
3294 for ac_var in $ac_precious_vars; do
3295   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3296   eval ac_new_set=\$ac_env_${ac_var}_set
3297   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3298   eval ac_new_val=\$ac_env_${ac_var}_value
3299   case $ac_old_set,$ac_new_set in
3300     set,)
3301       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3302 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3303       ac_cache_corrupted=: ;;
3304     ,set)
3305       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3306 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3307       ac_cache_corrupted=: ;;
3308     ,);;
3309     *)
3310       if test "x$ac_old_val" != "x$ac_new_val"; then
3311         # differences in whitespace do not lead to failure.
3312         ac_old_val_w=`echo x $ac_old_val`
3313         ac_new_val_w=`echo x $ac_new_val`
3314         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3315           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3316 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3317           ac_cache_corrupted=:
3318         else
3319           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3320 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3321           eval $ac_var=\$ac_old_val
3322         fi
3323         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3324 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3325         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3326 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3327       fi;;
3328   esac
3329   # Pass precious variables to config.status.
3330   if test "$ac_new_set" = set; then
3331     case $ac_new_val in
3332     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3333     *) ac_arg=$ac_var=$ac_new_val ;;
3334     esac
3335     case " $ac_configure_args " in
3336       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3337       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3338     esac
3339   fi
3340 done
3341 if $ac_cache_corrupted; then
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3345 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3346   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3347 fi
3348 ## -------------------- ##
3349 ## Main body of script. ##
3350 ## -------------------- ##
3351 
3352 ac_ext=c
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 
3358 
3359 
3360 ac_aux_dir=
3361 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3362   if test -f "$ac_dir/install-sh"; then
3363     ac_aux_dir=$ac_dir
3364     ac_install_sh="$ac_aux_dir/install-sh -c"
3365     break
3366   elif test -f "$ac_dir/install.sh"; then
3367     ac_aux_dir=$ac_dir
3368     ac_install_sh="$ac_aux_dir/install.sh -c"
3369     break
3370   elif test -f "$ac_dir/shtool"; then
3371     ac_aux_dir=$ac_dir
3372     ac_install_sh="$ac_aux_dir/shtool install -c"
3373     break
3374   fi
3375 done
3376 if test -z "$ac_aux_dir"; then
3377   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3378 fi
3379 
3380 # These three variables are undocumented and unsupported,
3381 # and are intended to be withdrawn in a future Autoconf release.
3382 # They can cause serious problems if a builder's source tree is in a directory
3383 # whose full name contains unusual characters.
3384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3386 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3387 
3388 
3389 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3390 
3391 #
3392 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3393 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3394 #
3395 # This code is free software; you can redistribute it and/or modify it
3396 # under the terms of the GNU General Public License version 2 only, as
3397 # published by the Free Software Foundation.  Oracle designates this
3398 # particular file as subject to the "Classpath" exception as provided
3399 # by Oracle in the LICENSE file that accompanied this code.
3400 #
3401 # This code is distributed in the hope that it will be useful, but WITHOUT
3402 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3403 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3404 # version 2 for more details (a copy is included in the LICENSE file that
3405 # accompanied this code).
3406 #
3407 # You should have received a copy of the GNU General Public License version
3408 # 2 along with this work; if not, write to the Free Software Foundation,
3409 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3410 #
3411 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3412 # or visit www.oracle.com if you need additional information or have any
3413 # questions.
3414 #
3415 
3416 #
3417 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3418 #
3419 # This program is free software; you can redistribute it and/or modify
3420 # it under the terms of the GNU General Public License as published by
3421 # the Free Software Foundation; either version 2 of the License, or
3422 # (at your option) any later version.
3423 #
3424 # This program is distributed in the hope that it will be useful, but
3425 # WITHOUT ANY WARRANTY; without even the implied warranty of
3426 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3427 # General Public License for more details.
3428 #
3429 # You should have received a copy of the GNU General Public License
3430 # along with this program; if not, write to the Free Software
3431 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3432 #
3433 # As a special exception to the GNU General Public License, if you
3434 # distribute this file as part of a program that contains a
3435 # configuration script generated by Autoconf, you may include it under
3436 # the same distribution terms that you use for the rest of that program.
3437 
3438 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3439 # ----------------------------------
3440 # PKG_PROG_PKG_CONFIG
3441 
3442 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3443 #
3444 # Check to see whether a particular set of modules exists.  Similar
3445 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3446 #
3447 #
3448 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3449 # this or PKG_CHECK_MODULES is called, or make sure to call
3450 # PKG_CHECK_EXISTS manually
3451 # --------------------------------------------------------------
3452 
3453 
3454 
3455 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3456 # ---------------------------------------------
3457 # _PKG_CONFIG
3458 
3459 # _PKG_SHORT_ERRORS_SUPPORTED
3460 # -----------------------------
3461 # _PKG_SHORT_ERRORS_SUPPORTED
3462 
3463 
3464 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3465 # [ACTION-IF-NOT-FOUND])
3466 #
3467 #
3468 # Note that if there is a possibility the first call to
3469 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3470 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3471 #
3472 #
3473 # --------------------------------------------------------------
3474 # PKG_CHECK_MODULES
3475 
3476 
3477 # Include these first...
3478 #
3479 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3480 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3481 #
3482 # This code is free software; you can redistribute it and/or modify it
3483 # under the terms of the GNU General Public License version 2 only, as
3484 # published by the Free Software Foundation.  Oracle designates this
3485 # particular file as subject to the "Classpath" exception as provided
3486 # by Oracle in the LICENSE file that accompanied this code.
3487 #
3488 # This code is distributed in the hope that it will be useful, but WITHOUT
3489 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3490 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3491 # version 2 for more details (a copy is included in the LICENSE file that
3492 # accompanied this code).
3493 #
3494 # You should have received a copy of the GNU General Public License version
3495 # 2 along with this work; if not, write to the Free Software Foundation,
3496 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3497 #
3498 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3499 # or visit www.oracle.com if you need additional information or have any
3500 # questions.
3501 #
3502 
3503 # Create a function/macro that takes a series of named arguments. The call is
3504 # similar to AC_DEFUN, but the setup of the function looks like this:
3505 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3506 # ... do something
3507 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3508 # ])
3509 # A star (*) in front of a named argument means that it is required and it's
3510 # presence will be verified. To pass e.g. the first value as a normal indexed
3511 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3512 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3513 # "ARG_FOO".
3514 #
3515 # The generated function can be called like this:
3516 # MYFUNC(FOO: [foo-val],
3517 #     BAR: [
3518 #         $ECHO hello world
3519 #     ])
3520 # Note that the argument value must start on the same line as the argument name.
3521 #
3522 # Argument 1: Name of the function to define
3523 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3524 # Argument 3: Argument array to treat as named, typically $@
3525 # Argument 4: The main function body
3526 
3527 
3528 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3529 # If so, then append $1 to $2 \
3530 # Also set JVM_ARG_OK to true/false depending on outcome.
3531 
3532 
3533 # Appends a string to a path variable, only adding the : when needed.
3534 
3535 
3536 # Prepends a string to a path variable, only adding the : when needed.
3537 
3538 
3539 # This will make sure the given variable points to a full and proper
3540 # path. This means:
3541 # 1) There will be no spaces in the path. On unix platforms,
3542 #    spaces in the path will result in an error. On Windows,
3543 #    the path will be rewritten using short-style to be space-free.
3544 # 2) The path will be absolute, and it will be in unix-style (on
3545 #     cygwin).
3546 # $1: The name of the variable to fix
3547 
3548 
3549 # This will make sure the given variable points to a executable
3550 # with a full and proper path. This means:
3551 # 1) There will be no spaces in the path. On unix platforms,
3552 #    spaces in the path will result in an error. On Windows,
3553 #    the path will be rewritten using short-style to be space-free.
3554 # 2) The path will be absolute, and it will be in unix-style (on
3555 #     cygwin).
3556 # Any arguments given to the executable is preserved.
3557 # If the input variable does not have a directory specification, then
3558 # it need to be in the PATH.
3559 # $1: The name of the variable to fix
3560 
3561 
3562 
3563 
3564 # Register a --with argument but mark it as deprecated
3565 # $1: The name of the with argument to deprecate, not including --with-
3566 
3567 
3568 # Register a --enable argument but mark it as deprecated
3569 # $1: The name of the with argument to deprecate, not including --enable-
3570 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3571 # $3: Messages to user.
3572 
3573 
3574 
3575 
3576 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3577 # $1: variable to check
3578 
3579 
3580 # Check that there are no unprocessed overridden variables left.
3581 # If so, they are an incorrect argument and we will exit with an error.
3582 
3583 
3584 # Setup a tool for the given variable. If correctly specified by the user,
3585 # use that value, otherwise search for the tool using the supplied code snippet.
3586 # $1: variable to set
3587 # $2: code snippet to call to look for the tool
3588 # $3: code snippet to call if variable was used to find tool
3589 
3590 
3591 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3592 # $1: variable to set
3593 # $2: executable name (or list of names) to look for
3594 
3595 
3596 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3597 # $1: variable to set
3598 # $2: executable name (or list of names) to look for
3599 
3600 
3601 # Like BASIC_PATH_PROGS but fails if no tool was found.
3602 # $1: variable to set
3603 # $2: executable name (or list of names) to look for
3604 
3605 
3606 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3607 # $1: variable to set
3608 # $2: autoconf macro to call to look for the special tool
3609 
3610 
3611 # Setup the most fundamental tools that relies on not much else to set up,
3612 # but is used by much of the early bootstrap code.
3613 
3614 
3615 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3616 
3617 
3618 # Evaluates platform specific overrides for devkit variables.
3619 # $1: Name of variable
3620 
3621 
3622 
3623 
3624 
3625 
3626 #%%% Simple tools %%%
3627 
3628 # Check if we have found a usable version of make
3629 # $1: the path to a potential make binary (or empty)
3630 # $2: the description on how we found this
3631 
3632 
3633 
3634 
3635 # Goes looking for a usable version of GNU make.
3636 
3637 
3638 
3639 
3640 
3641 
3642 # Check if build directory is on local disk. If not possible to determine,
3643 # we prefer to claim it's local.
3644 # Argument 1: directory to test
3645 # Argument 2: what to do if it is on local disk
3646 # Argument 3: what to do otherwise (remote disk or failure)
3647 
3648 
3649 # Check that source files have basic read permissions set. This might
3650 # not be the case in cygwin in certain conditions.
3651 
3652 
3653 
3654 
3655 # Check for support for specific options in bash
3656 
3657 
3658 ################################################################################
3659 #
3660 # Default make target
3661 #
3662 
3663 
3664 # Code to run after AC_OUTPUT
3665 
3666 
3667 #
3668 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3670 #
3671 # This code is free software; you can redistribute it and/or modify it
3672 # under the terms of the GNU General Public License version 2 only, as
3673 # published by the Free Software Foundation.  Oracle designates this
3674 # particular file as subject to the "Classpath" exception as provided
3675 # by Oracle in the LICENSE file that accompanied this code.
3676 #
3677 # This code is distributed in the hope that it will be useful, but WITHOUT
3678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3679 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3680 # version 2 for more details (a copy is included in the LICENSE file that
3681 # accompanied this code).
3682 #
3683 # You should have received a copy of the GNU General Public License version
3684 # 2 along with this work; if not, write to the Free Software Foundation,
3685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3686 #
3687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3688 # or visit www.oracle.com if you need additional information or have any
3689 # questions.
3690 #
3691 
3692 
3693 
3694 
3695 
3696 # Helper function which possibly converts a path using DOS-style short mode.
3697 # If so, the updated path is stored in $new_path.
3698 # $1: The path to check
3699 
3700 
3701 # Helper function which possibly converts a path using DOS-style short mode.
3702 # If so, the updated path is stored in $new_path.
3703 # $1: The path to check
3704 
3705 
3706 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3707 # and could probably be heavily simplified. However, all changes in this
3708 # area tend to need lot of testing in different scenarios, and in lack of
3709 # proper unit testing, cleaning this up has not been deemed worth the effort
3710 # at the moment.
3711 
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3721 
3722 
3723 
3724 
3725 # ... then the rest
3726 #
3727 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3728 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3729 #
3730 # This code is free software; you can redistribute it and/or modify it
3731 # under the terms of the GNU General Public License version 2 only, as
3732 # published by the Free Software Foundation.  Oracle designates this
3733 # particular file as subject to the "Classpath" exception as provided
3734 # by Oracle in the LICENSE file that accompanied this code.
3735 #
3736 # This code is distributed in the hope that it will be useful, but WITHOUT
3737 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3738 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3739 # version 2 for more details (a copy is included in the LICENSE file that
3740 # accompanied this code).
3741 #
3742 # You should have received a copy of the GNU General Public License version
3743 # 2 along with this work; if not, write to the Free Software Foundation,
3744 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3745 #
3746 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3747 # or visit www.oracle.com if you need additional information or have any
3748 # questions.
3749 #
3750 
3751 ########################################################################
3752 # This file handles detection of the Boot JDK. The Boot JDK detection
3753 # process has been developed as a response to solve a complex real-world
3754 # problem. Initially, it was simple, but it has grown as platform after
3755 # platform, idiosyncracy after idiosyncracy has been supported.
3756 #
3757 # The basic idea is this:
3758 # 1) You need an acceptable *) JDK to use as a Boot JDK
3759 # 2) There are several ways to locate a JDK, that are mostly platform
3760 #    dependent **)
3761 # 3) You can have multiple JDKs installed
3762 # 4) If possible, configure should try to dig out an acceptable JDK
3763 #    automatically, without having to resort to command-line options
3764 #
3765 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3766 #     javac) and not a JRE, etc.
3767 #
3768 # **) On Windows we typically use a well-known path.
3769 #     On MacOSX we typically use the tool java_home.
3770 #     On Linux we typically find javac in the $PATH, and then follow a
3771 #     chain of symlinks that often ends up in a real JDK.
3772 #
3773 # This leads to the code where we check in different ways to locate a
3774 # JDK, and if one is found, check if it is acceptable. If not, we print
3775 # our reasons for rejecting it (useful when debugging non-working
3776 # configure situations) and continue checking the next one.
3777 ########################################################################
3778 
3779 # Execute the check given as argument, and verify the result
3780 # If the Boot JDK was previously found, do nothing
3781 # $1 A command line (typically autoconf macro) to execute
3782 
3783 
3784 # Test: Is bootjdk explicitely set by command line arguments?
3785 
3786 
3787 # Test: Is $JAVA_HOME set?
3788 
3789 
3790 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3791 
3792 
3793 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3794 # $1: Argument to the java_home binary (optional)
3795 
3796 
3797 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3798 
3799 
3800 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3801 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3802 # $1 = Path to directory containing jdk installations.
3803 # $2 = String to append to the found JDK directory to get the proper JDK home
3804 
3805 
3806 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3807 # environmental variable as base for where to look.
3808 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3809 
3810 
3811 # Test: Is there a JDK installed in default, well-known locations?
3812 
3813 
3814 # Check that a command-line tool in the Boot JDK is correct
3815 # $1 = name of variable to assign
3816 # $2 = name of binary
3817 
3818 
3819 ###############################################################################
3820 #
3821 # We need a Boot JDK to bootstrap the build.
3822 #
3823 
3824 
3825 
3826 
3827 
3828 # BUILD_JDK: the location of the latest JDK that can run
3829 #   on the host system and supports the target class file version
3830 #   generated in this JDK build.  This variable should only be
3831 #   used after the launchers are built.
3832 #
3833 
3834 # Execute the check given as argument, and verify the result.
3835 # If the JDK was previously found, do nothing.
3836 # $1 A command line (typically autoconf macro) to execute
3837 
3838 
3839 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3840 # is different than the host system doing the build (e.g. cross-compilation),
3841 # a special BUILD_JDK is built as part of the build process.  An external
3842 # prebuilt BUILD_JDK can also be supplied.
3843 
3844 
3845 #
3846 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3847 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3848 #
3849 # This code is free software; you can redistribute it and/or modify it
3850 # under the terms of the GNU General Public License version 2 only, as
3851 # published by the Free Software Foundation.  Oracle designates this
3852 # particular file as subject to the "Classpath" exception as provided
3853 # by Oracle in the LICENSE file that accompanied this code.
3854 #
3855 # This code is distributed in the hope that it will be useful, but WITHOUT
3856 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3857 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3858 # version 2 for more details (a copy is included in the LICENSE file that
3859 # accompanied this code).
3860 #
3861 # You should have received a copy of the GNU General Public License version
3862 # 2 along with this work; if not, write to the Free Software Foundation,
3863 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3864 #
3865 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3866 # or visit www.oracle.com if you need additional information or have any
3867 # questions.
3868 #
3869 
3870 
3871 
3872 
3873 
3874 
3875 
3876 
3877 
3878 
3879 
3880 
3881 
3882 
3883 
3884 
3885 
3886 ################################################################################
3887 #
3888 # Runs icecc-create-env once and prints the error if it fails
3889 #
3890 # $1: arguments to icecc-create-env
3891 # $2: log file
3892 #
3893 
3894 
3895 ################################################################################
3896 #
3897 # Optionally enable distributed compilation of native code using icecc/icecream
3898 #
3899 
3900 
3901 
3902 
3903 
3904 
3905 
3906 #
3907 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3908 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3909 #
3910 # This code is free software; you can redistribute it and/or modify it
3911 # under the terms of the GNU General Public License version 2 only, as
3912 # published by the Free Software Foundation.  Oracle designates this
3913 # particular file as subject to the "Classpath" exception as provided
3914 # by Oracle in the LICENSE file that accompanied this code.
3915 #
3916 # This code is distributed in the hope that it will be useful, but WITHOUT
3917 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3918 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3919 # version 2 for more details (a copy is included in the LICENSE file that
3920 # accompanied this code).
3921 #
3922 # You should have received a copy of the GNU General Public License version
3923 # 2 along with this work; if not, write to the Free Software Foundation,
3924 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3925 #
3926 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3927 # or visit www.oracle.com if you need additional information or have any
3928 # questions.
3929 #
3930 
3931 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3932 # corresponding configure arguments instead
3933 
3934 
3935 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3936 # that configure can use them while detecting compilers.
3937 # TOOLCHAIN_TYPE is available here.
3938 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3939 
3940 
3941 
3942 
3943 
3944 
3945 # Documentation on common flags used for solstudio in HIGHEST.
3946 #
3947 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3948 #          done with care, there are some assumptions below that need to
3949 #          be understood about the use of pointers, and IEEE behavior.
3950 #
3951 # -fns: Use non-standard floating point mode (not IEEE 754)
3952 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3953 # -fsingle: Use single precision floating point with 'float'
3954 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3955 #   (Source with excessing pointer casting and data access with mixed
3956 #    pointer types are not recommended)
3957 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3958 #   (If you expect perfect errno behavior, do not use this)
3959 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3960 # -xrestrict: Pointer parameters to functions do not overlap
3961 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3962 #    If you pass in multiple pointers to the same data, do not use this)
3963 # -xlibmil: Inline some library routines
3964 #   (If you expect perfect errno behavior, do not use this)
3965 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3966 #   (If you expect perfect errno behavior, do not use this)
3967 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3968 
3969     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3970     # Bug?
3971     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3972     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3973     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3974     #fi
3975 
3976 
3977 
3978 
3979 
3980 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
3981 #                                  IF_FALSE: [RUN-IF-FALSE])
3982 # ------------------------------------------------------------
3983 # Check that the C compiler supports an argument
3984 
3985 
3986 
3987 
3988 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
3989 #                                    IF_FALSE: [RUN-IF-FALSE])
3990 # ------------------------------------------------------------
3991 # Check that the C++ compiler supports an argument
3992 
3993 
3994 
3995 
3996 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
3997 #                                IF_FALSE: [RUN-IF-FALSE])
3998 # ------------------------------------------------------------
3999 # Check that the C and C++ compilers support an argument
4000 
4001 
4002 
4003 
4004 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4005 #                                   IF_FALSE: [RUN-IF-FALSE])
4006 # ------------------------------------------------------------
4007 # Check that the linker support an argument
4008 
4009 
4010 
4011 
4012 
4013 
4014 
4015 
4016 #
4017 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4018 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4019 #
4020 # This code is free software; you can redistribute it and/or modify it
4021 # under the terms of the GNU General Public License version 2 only, as
4022 # published by the Free Software Foundation.  Oracle designates this
4023 # particular file as subject to the "Classpath" exception as provided
4024 # by Oracle in the LICENSE file that accompanied this code.
4025 #
4026 # This code is distributed in the hope that it will be useful, but WITHOUT
4027 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4028 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4029 # version 2 for more details (a copy is included in the LICENSE file that
4030 # accompanied this code).
4031 #
4032 # You should have received a copy of the GNU General Public License version
4033 # 2 along with this work; if not, write to the Free Software Foundation,
4034 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4035 #
4036 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4037 # or visit www.oracle.com if you need additional information or have any
4038 # questions.
4039 #
4040 
4041 
4042 
4043 
4044 
4045 cygwin_help() {
4046   case $1 in
4047     unzip)
4048       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4049       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4050       ;;
4051     zip)
4052       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4053       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4054       ;;
4055     make)
4056       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4057       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4058       ;;
4059     freetype)
4060       HELP_MSG="
4061 The freetype library can now be build during the configure process.
4062 Download the freetype sources and unpack them into an arbitrary directory:
4063 
4064 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4065 tar -xzf freetype-2.5.3.tar.gz
4066 
4067 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4068 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4069 builds or into '<freetype_src>/lib32' for 32-bit builds.
4070 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4071 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4072 
4073 Alternatively you can unpack the sources like this to use the default directory:
4074 
4075 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4076       ;;
4077   esac
4078 }
4079 
4080 msys_help() {
4081   PKGHANDLER_COMMAND=""
4082 }
4083 
4084 apt_help() {
4085   case $1 in
4086     reduced)
4087       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4088     devkit)
4089       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4090     openjdk)
4091       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4092     alsa)
4093       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4094     cups)
4095       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4096     freetype)
4097       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4098     ffi)
4099       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4100     x11)
4101       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4102     ccache)
4103       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4104   esac
4105 }
4106 
4107 yum_help() {
4108   case $1 in
4109     devkit)
4110       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4111     openjdk)
4112       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4113     alsa)
4114       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4115     cups)
4116       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4117     freetype)
4118       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4119     x11)
4120       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4121     ccache)
4122       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4123   esac
4124 }
4125 
4126 port_help() {
4127   PKGHANDLER_COMMAND=""
4128 }
4129 
4130 pkgutil_help() {
4131   PKGHANDLER_COMMAND=""
4132 }
4133 
4134 pkgadd_help() {
4135   PKGHANDLER_COMMAND=""
4136 }
4137 
4138 # This function will check if we're called from the "configure" wrapper while
4139 # printing --help. If so, we will print out additional information that can
4140 # only be extracted within the autoconf script, and then exit. This must be
4141 # called at the very beginning in configure.ac.
4142 
4143 
4144 
4145 
4146 
4147 
4148 #
4149 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4150 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4151 #
4152 # This code is free software; you can redistribute it and/or modify it
4153 # under the terms of the GNU General Public License version 2 only, as
4154 # published by the Free Software Foundation.  Oracle designates this
4155 # particular file as subject to the "Classpath" exception as provided
4156 # by Oracle in the LICENSE file that accompanied this code.
4157 #
4158 # This code is distributed in the hope that it will be useful, but WITHOUT
4159 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4160 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4161 # version 2 for more details (a copy is included in the LICENSE file that
4162 # accompanied this code).
4163 #
4164 # You should have received a copy of the GNU General Public License version
4165 # 2 along with this work; if not, write to the Free Software Foundation,
4166 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4167 #
4168 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4169 # or visit www.oracle.com if you need additional information or have any
4170 # questions.
4171 #
4172 
4173 ###############################################################################
4174 # Check which interpreter of the JVM we want to build.
4175 # Currently we have:
4176 #    template: Template interpreter (the default)
4177 #    cpp     : C++ interpreter
4178 
4179 
4180 ###############################################################################
4181 # Check which variants of the JVM that we want to build.
4182 # Currently we have:
4183 #    server: normal interpreter and a C2 or tiered C1/C2 compiler
4184 #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
4185 #    minimal1: reduced form of client with optional VM services and features stripped out
4186 #    zero: no machine code interpreter, no compiler
4187 #    zeroshark: zero interpreter and shark/llvm compiler backend
4188 #    core: interpreter only, no compiler (only works on some platforms)
4189 
4190 
4191 
4192 ###############################################################################
4193 # Setup legacy vars/targets and new vars to deal with different debug levels.
4194 #
4195 #    release: no debug information, all optimizations, no asserts.
4196 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4197 #    fastdebug: debug information (-g), all optimizations, all asserts
4198 #    slowdebug: debug information (-g), no optimizations, all asserts
4199 #
4200 
4201 
4202 
4203 
4204 
4205 
4206 #
4207 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4208 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4209 #
4210 # This code is free software; you can redistribute it and/or modify it
4211 # under the terms of the GNU General Public License version 2 only, as
4212 # published by the Free Software Foundation.  Oracle designates this
4213 # particular file as subject to the "Classpath" exception as provided
4214 # by Oracle in the LICENSE file that accompanied this code.
4215 #
4216 # This code is distributed in the hope that it will be useful, but WITHOUT
4217 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4218 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4219 # version 2 for more details (a copy is included in the LICENSE file that
4220 # accompanied this code).
4221 #
4222 # You should have received a copy of the GNU General Public License version
4223 # 2 along with this work; if not, write to the Free Software Foundation,
4224 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4225 #
4226 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4227 # or visit www.oracle.com if you need additional information or have any
4228 # questions.
4229 #
4230 
4231 ###############################################################################
4232 # Check which variant of the JDK that we want to build.
4233 # Currently we have:
4234 #    normal:   standard edition
4235 # but the custom make system may add other variants
4236 #
4237 # Effectively the JDK variant gives a name to a specific set of
4238 # modules to compile into the JDK.
4239 
4240 
4241 ###############################################################################
4242 # Set the debug level
4243 #    release: no debug information, all optimizations, no asserts.
4244 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4245 #    fastdebug: debug information (-g), all optimizations, all asserts
4246 #    slowdebug: debug information (-g), no optimizations, all asserts
4247 
4248 
4249 ###############################################################################
4250 #
4251 # Should we build only OpenJDK even if closed sources are present?
4252 #
4253 
4254 
4255 
4256 
4257 ###############################################################################
4258 #
4259 # Enable or disable the elliptic curve crypto implementation
4260 #
4261 
4262 
4263 
4264 
4265 ################################################################################
4266 #
4267 # Gcov coverage data for hotspot
4268 #
4269 
4270 
4271 ################################################################################
4272 #
4273 # Static build support.  When enabled will generate static
4274 # libraries instead of shared libraries for all JDK libs.
4275 #
4276 
4277 
4278 ################################################################################
4279 #
4280 # jlink options.
4281 # We always keep packaged modules in JDK image.
4282 #
4283 
4284 
4285 ################################################################################
4286 #
4287 # Check if building of the jtreg failure handler should be enabled.
4288 #
4289 
4290 
4291 #
4292 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4293 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4294 #
4295 # This code is free software; you can redistribute it and/or modify it
4296 # under the terms of the GNU General Public License version 2 only, as
4297 # published by the Free Software Foundation.  Oracle designates this
4298 # particular file as subject to the "Classpath" exception as provided
4299 # by Oracle in the LICENSE file that accompanied this code.
4300 #
4301 # This code is distributed in the hope that it will be useful, but WITHOUT
4302 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4303 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4304 # version 2 for more details (a copy is included in the LICENSE file that
4305 # accompanied this code).
4306 #
4307 # You should have received a copy of the GNU General Public License version
4308 # 2 along with this work; if not, write to the Free Software Foundation,
4309 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4310 #
4311 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4312 # or visit www.oracle.com if you need additional information or have any
4313 # questions.
4314 #
4315 
4316 ###############################################################################
4317 #
4318 # Setup version numbers
4319 #
4320 
4321 # Verify that a given string represents a valid version number, and assign it
4322 # to a variable.
4323 
4324 # Argument 1: the variable to assign to
4325 # Argument 2: the value given by the user
4326 
4327 
4328 
4329 
4330 #
4331 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4332 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4333 #
4334 # This code is free software; you can redistribute it and/or modify it
4335 # under the terms of the GNU General Public License version 2 only, as
4336 # published by the Free Software Foundation.  Oracle designates this
4337 # particular file as subject to the "Classpath" exception as provided
4338 # by Oracle in the LICENSE file that accompanied this code.
4339 #
4340 # This code is distributed in the hope that it will be useful, but WITHOUT
4341 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4342 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4343 # version 2 for more details (a copy is included in the LICENSE file that
4344 # accompanied this code).
4345 #
4346 # You should have received a copy of the GNU General Public License version
4347 # 2 along with this work; if not, write to the Free Software Foundation,
4348 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4349 #
4350 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4351 # or visit www.oracle.com if you need additional information or have any
4352 # questions.
4353 #
4354 
4355 # Major library component reside in separate files.
4356 #
4357 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4358 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4359 #
4360 # This code is free software; you can redistribute it and/or modify it
4361 # under the terms of the GNU General Public License version 2 only, as
4362 # published by the Free Software Foundation.  Oracle designates this
4363 # particular file as subject to the "Classpath" exception as provided
4364 # by Oracle in the LICENSE file that accompanied this code.
4365 #
4366 # This code is distributed in the hope that it will be useful, but WITHOUT
4367 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4368 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4369 # version 2 for more details (a copy is included in the LICENSE file that
4370 # accompanied this code).
4371 #
4372 # You should have received a copy of the GNU General Public License version
4373 # 2 along with this work; if not, write to the Free Software Foundation,
4374 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4375 #
4376 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4377 # or visit www.oracle.com if you need additional information or have any
4378 # questions.
4379 #
4380 
4381 ################################################################################
4382 # Setup alsa (Advanced Linux Sound Architecture)
4383 ################################################################################
4384 
4385 
4386 #
4387 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4388 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4389 #
4390 # This code is free software; you can redistribute it and/or modify it
4391 # under the terms of the GNU General Public License version 2 only, as
4392 # published by the Free Software Foundation.  Oracle designates this
4393 # particular file as subject to the "Classpath" exception as provided
4394 # by Oracle in the LICENSE file that accompanied this code.
4395 #
4396 # This code is distributed in the hope that it will be useful, but WITHOUT
4397 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4398 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4399 # version 2 for more details (a copy is included in the LICENSE file that
4400 # accompanied this code).
4401 #
4402 # You should have received a copy of the GNU General Public License version
4403 # 2 along with this work; if not, write to the Free Software Foundation,
4404 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4405 #
4406 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4407 # or visit www.oracle.com if you need additional information or have any
4408 # questions.
4409 #
4410 
4411 ################################################################################
4412 # Setup bundled libraries.
4413 #
4414 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4415 # OpenJDK repository. Default is to use these libraries as bundled, but they
4416 # might be replaced by en external version by the user.
4417 ################################################################################
4418 
4419 
4420 ################################################################################
4421 # Setup libjpeg
4422 ################################################################################
4423 
4424 
4425 ################################################################################
4426 # Setup giflib
4427 ################################################################################
4428 
4429 
4430 ################################################################################
4431 # Setup libpng
4432 ################################################################################
4433 
4434 
4435 ################################################################################
4436 # Setup zlib
4437 ################################################################################
4438 
4439 
4440 ################################################################################
4441 # Setup lcms (Little CMS)
4442 ################################################################################
4443 
4444 
4445 #
4446 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4447 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4448 #
4449 # This code is free software; you can redistribute it and/or modify it
4450 # under the terms of the GNU General Public License version 2 only, as
4451 # published by the Free Software Foundation.  Oracle designates this
4452 # particular file as subject to the "Classpath" exception as provided
4453 # by Oracle in the LICENSE file that accompanied this code.
4454 #
4455 # This code is distributed in the hope that it will be useful, but WITHOUT
4456 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4457 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4458 # version 2 for more details (a copy is included in the LICENSE file that
4459 # accompanied this code).
4460 #
4461 # You should have received a copy of the GNU General Public License version
4462 # 2 along with this work; if not, write to the Free Software Foundation,
4463 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4464 #
4465 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4466 # or visit www.oracle.com if you need additional information or have any
4467 # questions.
4468 #
4469 
4470 ################################################################################
4471 # Setup cups (Common Unix Printing System)
4472 ################################################################################
4473 
4474 
4475 #
4476 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4477 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4478 #
4479 # This code is free software; you can redistribute it and/or modify it
4480 # under the terms of the GNU General Public License version 2 only, as
4481 # published by the Free Software Foundation.  Oracle designates this
4482 # particular file as subject to the "Classpath" exception as provided
4483 # by Oracle in the LICENSE file that accompanied this code.
4484 #
4485 # This code is distributed in the hope that it will be useful, but WITHOUT
4486 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4487 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4488 # version 2 for more details (a copy is included in the LICENSE file that
4489 # accompanied this code).
4490 #
4491 # You should have received a copy of the GNU General Public License version
4492 # 2 along with this work; if not, write to the Free Software Foundation,
4493 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4494 #
4495 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4496 # or visit www.oracle.com if you need additional information or have any
4497 # questions.
4498 #
4499 
4500 ################################################################################
4501 # Setup libffi (Foreign Function Interface)
4502 ################################################################################
4503 
4504 
4505 #
4506 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4507 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4508 #
4509 # This code is free software; you can redistribute it and/or modify it
4510 # under the terms of the GNU General Public License version 2 only, as
4511 # published by the Free Software Foundation.  Oracle designates this
4512 # particular file as subject to the "Classpath" exception as provided
4513 # by Oracle in the LICENSE file that accompanied this code.
4514 #
4515 # This code is distributed in the hope that it will be useful, but WITHOUT
4516 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4517 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4518 # version 2 for more details (a copy is included in the LICENSE file that
4519 # accompanied this code).
4520 #
4521 # You should have received a copy of the GNU General Public License version
4522 # 2 along with this work; if not, write to the Free Software Foundation,
4523 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4524 #
4525 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4526 # or visit www.oracle.com if you need additional information or have any
4527 # questions.
4528 #
4529 
4530 ################################################################################
4531 # Build the freetype lib from source
4532 ################################################################################
4533 
4534 
4535 ################################################################################
4536 # Check if a potential freeype library match is correct and usable
4537 ################################################################################
4538 
4539 
4540 ################################################################################
4541 # Setup freetype (The FreeType2 font rendering library)
4542 ################################################################################
4543 
4544 
4545 #
4546 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4547 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4548 #
4549 # This code is free software; you can redistribute it and/or modify it
4550 # under the terms of the GNU General Public License version 2 only, as
4551 # published by the Free Software Foundation.  Oracle designates this
4552 # particular file as subject to the "Classpath" exception as provided
4553 # by Oracle in the LICENSE file that accompanied this code.
4554 #
4555 # This code is distributed in the hope that it will be useful, but WITHOUT
4556 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4557 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4558 # version 2 for more details (a copy is included in the LICENSE file that
4559 # accompanied this code).
4560 #
4561 # You should have received a copy of the GNU General Public License version
4562 # 2 along with this work; if not, write to the Free Software Foundation,
4563 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4564 #
4565 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4566 # or visit www.oracle.com if you need additional information or have any
4567 # questions.
4568 #
4569 
4570 ################################################################################
4571 # Setup the standard C/C++ runtime libraries.
4572 #
4573 # Most importantly, determine if stdc++ should be linked statically or
4574 # dynamically.
4575 ################################################################################
4576 
4577 
4578 #
4579 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4580 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4581 #
4582 # This code is free software; you can redistribute it and/or modify it
4583 # under the terms of the GNU General Public License version 2 only, as
4584 # published by the Free Software Foundation.  Oracle designates this
4585 # particular file as subject to the "Classpath" exception as provided
4586 # by Oracle in the LICENSE file that accompanied this code.
4587 #
4588 # This code is distributed in the hope that it will be useful, but WITHOUT
4589 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4590 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4591 # version 2 for more details (a copy is included in the LICENSE file that
4592 # accompanied this code).
4593 #
4594 # You should have received a copy of the GNU General Public License version
4595 # 2 along with this work; if not, write to the Free Software Foundation,
4596 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4597 #
4598 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4599 # or visit www.oracle.com if you need additional information or have any
4600 # questions.
4601 #
4602 
4603 ################################################################################
4604 # Setup X11 Windows system
4605 ################################################################################
4606 
4607 
4608 
4609 ################################################################################
4610 # Determine which libraries are needed for this configuration
4611 ################################################################################
4612 
4613 
4614 ################################################################################
4615 # Parse library options, and setup needed libraries
4616 ################################################################################
4617 
4618 
4619 ################################################################################
4620 # Setup llvm (Low-Level VM)
4621 ################################################################################
4622 
4623 
4624 ################################################################################
4625 # Setup various libraries, typically small system libraries
4626 ################################################################################
4627 
4628 
4629 #
4630 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4631 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4632 #
4633 # This code is free software; you can redistribute it and/or modify it
4634 # under the terms of the GNU General Public License version 2 only, as
4635 # published by the Free Software Foundation.  Oracle designates this
4636 # particular file as subject to the "Classpath" exception as provided
4637 # by Oracle in the LICENSE file that accompanied this code.
4638 #
4639 # This code is distributed in the hope that it will be useful, but WITHOUT
4640 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4641 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4642 # version 2 for more details (a copy is included in the LICENSE file that
4643 # accompanied this code).
4644 #
4645 # You should have received a copy of the GNU General Public License version
4646 # 2 along with this work; if not, write to the Free Software Foundation,
4647 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4648 #
4649 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4650 # or visit www.oracle.com if you need additional information or have any
4651 # questions.
4652 #
4653 
4654 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4655 # Converts autoconf style CPU name to OpenJDK style, into
4656 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4657 
4658 
4659 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4660 # Converts autoconf style OS name to OpenJDK style, into
4661 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4662 
4663 
4664 # Expects $host_os $host_cpu $build_os and $build_cpu
4665 # and $with_target_bits to have been setup!
4666 #
4667 # Translate the standard triplet(quadruplet) definition
4668 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4669 # OPENJDK_BUILD_OS, etc.
4670 
4671 
4672 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4673 # accordingly. Must be done after setting up build and target system, but before
4674 # doing anything else with these values.
4675 
4676 
4677 # Setup the legacy variables, for controlling the old makefiles.
4678 #
4679 
4680 
4681 
4682 
4683 #%%% Build and target systems %%%
4684 
4685 
4686 
4687 
4688 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4689 # Add -mX to various FLAGS variables.
4690 
4691 
4692 
4693 
4694 
4695 
4696 #
4697 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4698 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4699 #
4700 # This code is free software; you can redistribute it and/or modify it
4701 # under the terms of the GNU General Public License version 2 only, as
4702 # published by the Free Software Foundation.  Oracle designates this
4703 # particular file as subject to the "Classpath" exception as provided
4704 # by Oracle in the LICENSE file that accompanied this code.
4705 #
4706 # This code is distributed in the hope that it will be useful, but WITHOUT
4707 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4708 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4709 # version 2 for more details (a copy is included in the LICENSE file that
4710 # accompanied this code).
4711 #
4712 # You should have received a copy of the GNU General Public License version
4713 # 2 along with this work; if not, write to the Free Software Foundation,
4714 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4715 #
4716 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4717 # or visit www.oracle.com if you need additional information or have any
4718 # questions.
4719 #
4720 
4721 
4722 
4723 
4724 
4725 
4726 
4727 ################################################################################
4728 # Define a mechanism for importing extra prebuilt modules
4729 #
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 # This file is responsible for detecting, verifying and setting up the
4760 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4761 # proper paths to the binaries, but it will not setup any flags.
4762 #
4763 # The binaries used is determined by the toolchain type, which is the family of
4764 # compilers and related tools that are used.
4765 ########################################################################
4766 
4767 
4768 # All valid toolchains, regardless of platform (used by help.m4)
4769 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4770 
4771 # These toolchains are valid on different platforms
4772 VALID_TOOLCHAINS_linux="gcc clang"
4773 VALID_TOOLCHAINS_solaris="solstudio"
4774 VALID_TOOLCHAINS_macosx="gcc clang"
4775 VALID_TOOLCHAINS_aix="xlc"
4776 VALID_TOOLCHAINS_windows="microsoft"
4777 
4778 # Toolchain descriptions
4779 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4780 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4781 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4782 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4783 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4784 
4785 # Minimum supported versions, empty means unspecified
4786 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4787 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4788 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4789 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12"
4790 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4791 
4792 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4793 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4794 
4795 
4796 # Check if the configured compiler (C and C++) is of a specific version or
4797 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4798 #
4799 # Arguments:
4800 #   VERSION:   The version string to check against the found version
4801 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4802 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4803 
4804 
4805 
4806 
4807 # Setup a number of variables describing how native output files are
4808 # named on this platform/toolchain.
4809 
4810 
4811 # Determine which toolchain type to use, and make sure it is valid for this
4812 # platform. Setup various information about the selected toolchain.
4813 
4814 
4815 # Before we start detecting the toolchain executables, we might need some
4816 # special setup, e.g. additional paths etc.
4817 
4818 
4819 # Restore path, etc
4820 
4821 
4822 # Check if a compiler is of the toolchain type we expect, and save the version
4823 # information from it. If the compiler does not match the expected type,
4824 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4825 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4826 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4827 #
4828 # $1 = compiler to test (CC or CXX)
4829 # $2 = human readable name of compiler (C or C++)
4830 
4831 
4832 # Try to locate the given C or C++ compiler in the path, or otherwise.
4833 #
4834 # $1 = compiler to test (CC or CXX)
4835 # $2 = human readable name of compiler (C or C++)
4836 # $3 = list of compiler names to search for
4837 
4838 
4839 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4840 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4841 # archiver (AR). Verify that the compilers are correct according to the
4842 # toolchain type.
4843 
4844 
4845 # Setup additional tools that is considered a part of the toolchain, but not the
4846 # core part. Many of these are highly platform-specific and do not exist,
4847 # and/or are not needed on all platforms.
4848 
4849 
4850 # Setup the build tools (i.e, the compiler and linker used to build programs
4851 # that should be run on the build platform, not the target platform, as a build
4852 # helper). Since the non-cross-compile case uses the normal, target compilers
4853 # for this, we can only do this after these have been setup.
4854 
4855 
4856 # Setup legacy variables that are still needed as alternative ways to refer to
4857 # parts of the toolchain.
4858 
4859 
4860 # Do some additional checks on the detected tools.
4861 
4862 
4863 # Setup the JTReg Regression Test Harness.
4864 
4865 
4866 #
4867 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4868 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4869 #
4870 # This code is free software; you can redistribute it and/or modify it
4871 # under the terms of the GNU General Public License version 2 only, as
4872 # published by the Free Software Foundation.  Oracle designates this
4873 # particular file as subject to the "Classpath" exception as provided
4874 # by Oracle in the LICENSE file that accompanied this code.
4875 #
4876 # This code is distributed in the hope that it will be useful, but WITHOUT
4877 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4878 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4879 # version 2 for more details (a copy is included in the LICENSE file that
4880 # accompanied this code).
4881 #
4882 # You should have received a copy of the GNU General Public License version
4883 # 2 along with this work; if not, write to the Free Software Foundation,
4884 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4885 #
4886 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4887 # or visit www.oracle.com if you need additional information or have any
4888 # questions.
4889 #
4890 
4891 ################################################################################
4892 # The order of these defines the priority by which we try to find them.
4893 VALID_VS_VERSIONS="2013 2012 2010"
4894 
4895 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4896 VS_VERSION_INTERNAL_2010=100
4897 VS_MSVCR_2010=msvcr100.dll
4898 # We don't use msvcp on Visual Studio 2010
4899 #VS_MSVCP_2010=msvcp100.dll
4900 VS_ENVVAR_2010="VS100COMNTOOLS"
4901 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4902 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4903 VS_VS_PLATFORM_NAME_2010="v100"
4904 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4905 
4906 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4907 VS_VERSION_INTERNAL_2012=110
4908 VS_MSVCR_2012=msvcr110.dll
4909 VS_MSVCP_2012=msvcp110.dll
4910 VS_ENVVAR_2012="VS110COMNTOOLS"
4911 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4912 VS_SDK_INSTALLDIR_2012=
4913 VS_VS_PLATFORM_NAME_2012="v110"
4914 VS_SDK_PLATFORM_NAME_2012=
4915 
4916 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4917 VS_VERSION_INTERNAL_2013=120
4918 VS_MSVCR_2013=msvcr120.dll
4919 VS_MSVCP_2013=msvcp120.dll
4920 VS_ENVVAR_2013="VS120COMNTOOLS"
4921 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4922 VS_SDK_INSTALLDIR_2013=
4923 VS_VS_PLATFORM_NAME_2013="v120"
4924 VS_SDK_PLATFORM_NAME_2013=
4925 
4926 ################################################################################
4927 
4928 
4929 
4930 ################################################################################
4931 
4932 
4933 
4934 ################################################################################
4935 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4936 # build environment and assigns it to VS_ENV_CMD
4937 
4938 
4939 ################################################################################
4940 
4941 
4942 
4943 ################################################################################
4944 # Check if the VS env variables were setup prior to running configure.
4945 # If not, then find vcvarsall.bat and run it automatically, and integrate
4946 # the set env variables into the spec file.
4947 
4948 
4949 
4950 
4951 
4952 
4953 
4954 
4955 
4956 
4957 
4958 
4959 
4960 
4961 # This line needs to be here, verbatim, after all includes and the dummy hook
4962 # definitions. It is replaced with custom functionality when building
4963 # custom sources.
4964 #CUSTOM_AUTOCONF_INCLUDE
4965 
4966 # Do not change or remove the following line, it is needed for consistency checks:
4967 DATE_WHEN_GENERATED=1460713327
4968 
4969 ###############################################################################
4970 #
4971 # Initialization / Boot-strapping
4972 #
4973 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4974 # thus it jumps back and forth, each time gaining something needed later on.
4975 #
4976 ###############################################################################
4977 
4978 # If we are requested to print additional help, do that and then exit.
4979 # This must be the very first call.
4980 
4981   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
4982 
4983     # Print available toolchains
4984     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4985     $PRINTF "Which are valid to use depends on the build platform.\n"
4986     for toolchain in $VALID_TOOLCHAINS_all; do
4987       # Use indirect variable referencing
4988       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4989       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4990       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4991     done
4992 
4993     # And now exit directly
4994     exit 0
4995   fi
4996 
4997 
4998 # Basic initialization that must happen first of all in the normal process.
4999 
5000   # Save the original command line. This is passed to us by the wrapper configure script.
5001 
5002   # Save the path variable before it gets changed
5003   ORIGINAL_PATH="$PATH"
5004 
5005   DATE_WHEN_CONFIGURED=`LANG=C date`
5006 
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5008 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5010 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5011 
5012 
5013   # Start with tools that do not need have cross compilation support
5014   # and can be expected to be found in the default PATH. These tools are
5015   # used by configure.
5016 
5017   # First are all the simple required tools.
5018 
5019 
5020 
5021   # Publish this variable in the help.
5022 
5023 
5024   if [ -z "${BASENAME+x}" ]; then
5025     # The variable is not set by user, try to locate tool using the code snippet
5026     for ac_prog in basename
5027 do
5028   # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_path_BASENAME+:} false; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   case $BASENAME in
5036   [\\/]* | ?:[\\/]*)
5037   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5038   ;;
5039   *)
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054 
5055   ;;
5056 esac
5057 fi
5058 BASENAME=$ac_cv_path_BASENAME
5059 if test -n "$BASENAME"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5061 $as_echo "$BASENAME" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066 
5067 
5068   test -n "$BASENAME" && break
5069 done
5070 
5071   else
5072     # The variable is set, but is it from the command line or the environment?
5073 
5074     # Try to remove the string !BASENAME! from our list.
5075     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5076     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5077       # If it failed, the variable was not from the command line. Ignore it,
5078       # but warn the user (except for BASH, which is always set by the calling BASH).
5079       if test "xBASENAME" != xBASH; then
5080         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5081 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5082       fi
5083       # Try to locate tool using the code snippet
5084       for ac_prog in basename
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_path_BASENAME+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   case $BASENAME in
5094   [\\/]* | ?:[\\/]*)
5095   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5096   ;;
5097   *)
5098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110   done
5111 IFS=$as_save_IFS
5112 
5113   ;;
5114 esac
5115 fi
5116 BASENAME=$ac_cv_path_BASENAME
5117 if test -n "$BASENAME"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5119 $as_echo "$BASENAME" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124 
5125 
5126   test -n "$BASENAME" && break
5127 done
5128 
5129     else
5130       # If it succeeded, then it was overridden by the user. We will use it
5131       # for the tool.
5132 
5133       # First remove it from the list of overridden variables, so we can test
5134       # for unknown variables in the end.
5135       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5136 
5137       # Check if we try to supply an empty value
5138       if test "x$BASENAME" = x; then
5139         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5140 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5142 $as_echo_n "checking for BASENAME... " >&6; }
5143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5144 $as_echo "disabled" >&6; }
5145       else
5146         # Check if the provided tool contains a complete path.
5147         tool_specified="$BASENAME"
5148         tool_basename="${tool_specified##*/}"
5149         if test "x$tool_basename" = "x$tool_specified"; then
5150           # A command without a complete path is provided, search $PATH.
5151           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5152 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5153           # Extract the first word of "$tool_basename", so it can be a program name with args.
5154 set dummy $tool_basename; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_path_BASENAME+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   case $BASENAME in
5161   [\\/]* | ?:[\\/]*)
5162   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5163   ;;
5164   *)
5165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177   done
5178 IFS=$as_save_IFS
5179 
5180   ;;
5181 esac
5182 fi
5183 BASENAME=$ac_cv_path_BASENAME
5184 if test -n "$BASENAME"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5186 $as_echo "$BASENAME" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191 
5192 
5193           if test "x$BASENAME" = x; then
5194             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5195           fi
5196         else
5197           # Otherwise we believe it is a complete path. Use it as it is.
5198           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5199 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5200           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5201 $as_echo_n "checking for BASENAME... " >&6; }
5202           if test ! -x "$tool_specified"; then
5203             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5204 $as_echo "not found" >&6; }
5205             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5206           fi
5207           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5208 $as_echo "$tool_specified" >&6; }
5209         fi
5210       fi
5211     fi
5212 
5213   fi
5214 
5215 
5216 
5217   if test "x$BASENAME" = x; then
5218     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5219   fi
5220 
5221 
5222 
5223 
5224 
5225   # Publish this variable in the help.
5226 
5227 
5228   if [ -z "${BASH+x}" ]; then
5229     # The variable is not set by user, try to locate tool using the code snippet
5230     for ac_prog in bash
5231 do
5232   # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy $ac_prog; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_BASH+:} false; then :
5237   $as_echo_n "(cached) " >&6
5238 else
5239   case $BASH in
5240   [\\/]* | ?:[\\/]*)
5241   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5242   ;;
5243   *)
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256   done
5257 IFS=$as_save_IFS
5258 
5259   ;;
5260 esac
5261 fi
5262 BASH=$ac_cv_path_BASH
5263 if test -n "$BASH"; then
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5265 $as_echo "$BASH" >&6; }
5266 else
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270 
5271 
5272   test -n "$BASH" && break
5273 done
5274 
5275   else
5276     # The variable is set, but is it from the command line or the environment?
5277 
5278     # Try to remove the string !BASH! from our list.
5279     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5280     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5281       # If it failed, the variable was not from the command line. Ignore it,
5282       # but warn the user (except for BASH, which is always set by the calling BASH).
5283       if test "xBASH" != xBASH; then
5284         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5285 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5286       fi
5287       # Try to locate tool using the code snippet
5288       for ac_prog in bash
5289 do
5290   # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_path_BASH+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   case $BASH in
5298   [\\/]* | ?:[\\/]*)
5299   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5300   ;;
5301   *)
5302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314   done
5315 IFS=$as_save_IFS
5316 
5317   ;;
5318 esac
5319 fi
5320 BASH=$ac_cv_path_BASH
5321 if test -n "$BASH"; then
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5323 $as_echo "$BASH" >&6; }
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328 
5329 
5330   test -n "$BASH" && break
5331 done
5332 
5333     else
5334       # If it succeeded, then it was overridden by the user. We will use it
5335       # for the tool.
5336 
5337       # First remove it from the list of overridden variables, so we can test
5338       # for unknown variables in the end.
5339       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5340 
5341       # Check if we try to supply an empty value
5342       if test "x$BASH" = x; then
5343         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5344 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5345         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5346 $as_echo_n "checking for BASH... " >&6; }
5347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5348 $as_echo "disabled" >&6; }
5349       else
5350         # Check if the provided tool contains a complete path.
5351         tool_specified="$BASH"
5352         tool_basename="${tool_specified##*/}"
5353         if test "x$tool_basename" = "x$tool_specified"; then
5354           # A command without a complete path is provided, search $PATH.
5355           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5356 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5357           # Extract the first word of "$tool_basename", so it can be a program name with args.
5358 set dummy $tool_basename; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_BASH+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   case $BASH in
5365   [\\/]* | ?:[\\/]*)
5366   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5367   ;;
5368   *)
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_exec_ext in '' $ac_executable_extensions; do
5375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378     break 2
5379   fi
5380 done
5381   done
5382 IFS=$as_save_IFS
5383 
5384   ;;
5385 esac
5386 fi
5387 BASH=$ac_cv_path_BASH
5388 if test -n "$BASH"; then
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5390 $as_echo "$BASH" >&6; }
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395 
5396 
5397           if test "x$BASH" = x; then
5398             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5399           fi
5400         else
5401           # Otherwise we believe it is a complete path. Use it as it is.
5402           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5403 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5404           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5405 $as_echo_n "checking for BASH... " >&6; }
5406           if test ! -x "$tool_specified"; then
5407             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5408 $as_echo "not found" >&6; }
5409             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5410           fi
5411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5412 $as_echo "$tool_specified" >&6; }
5413         fi
5414       fi
5415     fi
5416 
5417   fi
5418 
5419 
5420 
5421   if test "x$BASH" = x; then
5422     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5423   fi
5424 
5425 
5426 
5427 
5428 
5429   # Publish this variable in the help.
5430 
5431 
5432   if [ -z "${CAT+x}" ]; then
5433     # The variable is not set by user, try to locate tool using the code snippet
5434     for ac_prog in cat
5435 do
5436   # Extract the first word of "$ac_prog", so it can be a program name with args.
5437 set dummy $ac_prog; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_path_CAT+:} false; then :
5441   $as_echo_n "(cached) " >&6
5442 else
5443   case $CAT in
5444   [\\/]* | ?:[\\/]*)
5445   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5446   ;;
5447   *)
5448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453     for ac_exec_ext in '' $ac_executable_extensions; do
5454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460   done
5461 IFS=$as_save_IFS
5462 
5463   ;;
5464 esac
5465 fi
5466 CAT=$ac_cv_path_CAT
5467 if test -n "$CAT"; then
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5469 $as_echo "$CAT" >&6; }
5470 else
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474 
5475 
5476   test -n "$CAT" && break
5477 done
5478 
5479   else
5480     # The variable is set, but is it from the command line or the environment?
5481 
5482     # Try to remove the string !CAT! from our list.
5483     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5484     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5485       # If it failed, the variable was not from the command line. Ignore it,
5486       # but warn the user (except for BASH, which is always set by the calling BASH).
5487       if test "xCAT" != xBASH; then
5488         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5489 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5490       fi
5491       # Try to locate tool using the code snippet
5492       for ac_prog in cat
5493 do
5494   # Extract the first word of "$ac_prog", so it can be a program name with args.
5495 set dummy $ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_path_CAT+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   case $CAT in
5502   [\\/]* | ?:[\\/]*)
5503   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5504   ;;
5505   *)
5506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511     for ac_exec_ext in '' $ac_executable_extensions; do
5512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518   done
5519 IFS=$as_save_IFS
5520 
5521   ;;
5522 esac
5523 fi
5524 CAT=$ac_cv_path_CAT
5525 if test -n "$CAT"; then
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5527 $as_echo "$CAT" >&6; }
5528 else
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532 
5533 
5534   test -n "$CAT" && break
5535 done
5536 
5537     else
5538       # If it succeeded, then it was overridden by the user. We will use it
5539       # for the tool.
5540 
5541       # First remove it from the list of overridden variables, so we can test
5542       # for unknown variables in the end.
5543       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5544 
5545       # Check if we try to supply an empty value
5546       if test "x$CAT" = x; then
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5548 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5550 $as_echo_n "checking for CAT... " >&6; }
5551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5552 $as_echo "disabled" >&6; }
5553       else
5554         # Check if the provided tool contains a complete path.
5555         tool_specified="$CAT"
5556         tool_basename="${tool_specified##*/}"
5557         if test "x$tool_basename" = "x$tool_specified"; then
5558           # A command without a complete path is provided, search $PATH.
5559           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5560 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5561           # Extract the first word of "$tool_basename", so it can be a program name with args.
5562 set dummy $tool_basename; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_path_CAT+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   case $CAT in
5569   [\\/]* | ?:[\\/]*)
5570   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5571   ;;
5572   *)
5573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587 
5588   ;;
5589 esac
5590 fi
5591 CAT=$ac_cv_path_CAT
5592 if test -n "$CAT"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5594 $as_echo "$CAT" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599 
5600 
5601           if test "x$CAT" = x; then
5602             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5603           fi
5604         else
5605           # Otherwise we believe it is a complete path. Use it as it is.
5606           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5607 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5608           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5609 $as_echo_n "checking for CAT... " >&6; }
5610           if test ! -x "$tool_specified"; then
5611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5612 $as_echo "not found" >&6; }
5613             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5614           fi
5615           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5616 $as_echo "$tool_specified" >&6; }
5617         fi
5618       fi
5619     fi
5620 
5621   fi
5622 
5623 
5624 
5625   if test "x$CAT" = x; then
5626     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5627   fi
5628 
5629 
5630 
5631 
5632 
5633   # Publish this variable in the help.
5634 
5635 
5636   if [ -z "${CHMOD+x}" ]; then
5637     # The variable is not set by user, try to locate tool using the code snippet
5638     for ac_prog in chmod
5639 do
5640   # Extract the first word of "$ac_prog", so it can be a program name with args.
5641 set dummy $ac_prog; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_path_CHMOD+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   case $CHMOD in
5648   [\\/]* | ?:[\\/]*)
5649   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5650   ;;
5651   *)
5652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657     for ac_exec_ext in '' $ac_executable_extensions; do
5658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664   done
5665 IFS=$as_save_IFS
5666 
5667   ;;
5668 esac
5669 fi
5670 CHMOD=$ac_cv_path_CHMOD
5671 if test -n "$CHMOD"; then
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5673 $as_echo "$CHMOD" >&6; }
5674 else
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678 
5679 
5680   test -n "$CHMOD" && break
5681 done
5682 
5683   else
5684     # The variable is set, but is it from the command line or the environment?
5685 
5686     # Try to remove the string !CHMOD! from our list.
5687     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5688     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5689       # If it failed, the variable was not from the command line. Ignore it,
5690       # but warn the user (except for BASH, which is always set by the calling BASH).
5691       if test "xCHMOD" != xBASH; then
5692         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5693 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5694       fi
5695       # Try to locate tool using the code snippet
5696       for ac_prog in chmod
5697 do
5698   # Extract the first word of "$ac_prog", so it can be a program name with args.
5699 set dummy $ac_prog; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_path_CHMOD+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   case $CHMOD in
5706   [\\/]* | ?:[\\/]*)
5707   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5708   ;;
5709   *)
5710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715     for ac_exec_ext in '' $ac_executable_extensions; do
5716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719     break 2
5720   fi
5721 done
5722   done
5723 IFS=$as_save_IFS
5724 
5725   ;;
5726 esac
5727 fi
5728 CHMOD=$ac_cv_path_CHMOD
5729 if test -n "$CHMOD"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5731 $as_echo "$CHMOD" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736 
5737 
5738   test -n "$CHMOD" && break
5739 done
5740 
5741     else
5742       # If it succeeded, then it was overridden by the user. We will use it
5743       # for the tool.
5744 
5745       # First remove it from the list of overridden variables, so we can test
5746       # for unknown variables in the end.
5747       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5748 
5749       # Check if we try to supply an empty value
5750       if test "x$CHMOD" = x; then
5751         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5752 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5754 $as_echo_n "checking for CHMOD... " >&6; }
5755         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5756 $as_echo "disabled" >&6; }
5757       else
5758         # Check if the provided tool contains a complete path.
5759         tool_specified="$CHMOD"
5760         tool_basename="${tool_specified##*/}"
5761         if test "x$tool_basename" = "x$tool_specified"; then
5762           # A command without a complete path is provided, search $PATH.
5763           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5764 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5765           # Extract the first word of "$tool_basename", so it can be a program name with args.
5766 set dummy $tool_basename; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_path_CHMOD+:} false; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   case $CHMOD in
5773   [\\/]* | ?:[\\/]*)
5774   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5775   ;;
5776   *)
5777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791 
5792   ;;
5793 esac
5794 fi
5795 CHMOD=$ac_cv_path_CHMOD
5796 if test -n "$CHMOD"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5798 $as_echo "$CHMOD" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803 
5804 
5805           if test "x$CHMOD" = x; then
5806             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5807           fi
5808         else
5809           # Otherwise we believe it is a complete path. Use it as it is.
5810           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5811 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5812           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5813 $as_echo_n "checking for CHMOD... " >&6; }
5814           if test ! -x "$tool_specified"; then
5815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5816 $as_echo "not found" >&6; }
5817             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5818           fi
5819           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5820 $as_echo "$tool_specified" >&6; }
5821         fi
5822       fi
5823     fi
5824 
5825   fi
5826 
5827 
5828 
5829   if test "x$CHMOD" = x; then
5830     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5831   fi
5832 
5833 
5834 
5835 
5836 
5837   # Publish this variable in the help.
5838 
5839 
5840   if [ -z "${CMP+x}" ]; then
5841     # The variable is not set by user, try to locate tool using the code snippet
5842     for ac_prog in cmp
5843 do
5844   # Extract the first word of "$ac_prog", so it can be a program name with args.
5845 set dummy $ac_prog; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_path_CMP+:} false; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   case $CMP in
5852   [\\/]* | ?:[\\/]*)
5853   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5854   ;;
5855   *)
5856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861     for ac_exec_ext in '' $ac_executable_extensions; do
5862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868   done
5869 IFS=$as_save_IFS
5870 
5871   ;;
5872 esac
5873 fi
5874 CMP=$ac_cv_path_CMP
5875 if test -n "$CMP"; then
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5877 $as_echo "$CMP" >&6; }
5878 else
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5881 fi
5882 
5883 
5884   test -n "$CMP" && break
5885 done
5886 
5887   else
5888     # The variable is set, but is it from the command line or the environment?
5889 
5890     # Try to remove the string !CMP! from our list.
5891     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5892     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5893       # If it failed, the variable was not from the command line. Ignore it,
5894       # but warn the user (except for BASH, which is always set by the calling BASH).
5895       if test "xCMP" != xBASH; then
5896         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5897 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5898       fi
5899       # Try to locate tool using the code snippet
5900       for ac_prog in cmp
5901 do
5902   # Extract the first word of "$ac_prog", so it can be a program name with args.
5903 set dummy $ac_prog; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_path_CMP+:} false; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   case $CMP in
5910   [\\/]* | ?:[\\/]*)
5911   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5912   ;;
5913   *)
5914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919     for ac_exec_ext in '' $ac_executable_extensions; do
5920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926   done
5927 IFS=$as_save_IFS
5928 
5929   ;;
5930 esac
5931 fi
5932 CMP=$ac_cv_path_CMP
5933 if test -n "$CMP"; then
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5935 $as_echo "$CMP" >&6; }
5936 else
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940 
5941 
5942   test -n "$CMP" && break
5943 done
5944 
5945     else
5946       # If it succeeded, then it was overridden by the user. We will use it
5947       # for the tool.
5948 
5949       # First remove it from the list of overridden variables, so we can test
5950       # for unknown variables in the end.
5951       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5952 
5953       # Check if we try to supply an empty value
5954       if test "x$CMP" = x; then
5955         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5956 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5958 $as_echo_n "checking for CMP... " >&6; }
5959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5960 $as_echo "disabled" >&6; }
5961       else
5962         # Check if the provided tool contains a complete path.
5963         tool_specified="$CMP"
5964         tool_basename="${tool_specified##*/}"
5965         if test "x$tool_basename" = "x$tool_specified"; then
5966           # A command without a complete path is provided, search $PATH.
5967           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5968 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5969           # Extract the first word of "$tool_basename", so it can be a program name with args.
5970 set dummy $tool_basename; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_path_CMP+:} false; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   case $CMP in
5977   [\\/]* | ?:[\\/]*)
5978   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5979   ;;
5980   *)
5981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986     for ac_exec_ext in '' $ac_executable_extensions; do
5987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993   done
5994 IFS=$as_save_IFS
5995 
5996   ;;
5997 esac
5998 fi
5999 CMP=$ac_cv_path_CMP
6000 if test -n "$CMP"; then
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6002 $as_echo "$CMP" >&6; }
6003 else
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007 
6008 
6009           if test "x$CMP" = x; then
6010             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6011           fi
6012         else
6013           # Otherwise we believe it is a complete path. Use it as it is.
6014           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6015 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6016           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6017 $as_echo_n "checking for CMP... " >&6; }
6018           if test ! -x "$tool_specified"; then
6019             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6020 $as_echo "not found" >&6; }
6021             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6022           fi
6023           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6024 $as_echo "$tool_specified" >&6; }
6025         fi
6026       fi
6027     fi
6028 
6029   fi
6030 
6031 
6032 
6033   if test "x$CMP" = x; then
6034     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6035   fi
6036 
6037 
6038 
6039 
6040 
6041   # Publish this variable in the help.
6042 
6043 
6044   if [ -z "${COMM+x}" ]; then
6045     # The variable is not set by user, try to locate tool using the code snippet
6046     for ac_prog in comm
6047 do
6048   # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_path_COMM+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   case $COMM in
6056   [\\/]* | ?:[\\/]*)
6057   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6058   ;;
6059   *)
6060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072   done
6073 IFS=$as_save_IFS
6074 
6075   ;;
6076 esac
6077 fi
6078 COMM=$ac_cv_path_COMM
6079 if test -n "$COMM"; then
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6081 $as_echo "$COMM" >&6; }
6082 else
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6085 fi
6086 
6087 
6088   test -n "$COMM" && break
6089 done
6090 
6091   else
6092     # The variable is set, but is it from the command line or the environment?
6093 
6094     # Try to remove the string !COMM! from our list.
6095     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6096     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6097       # If it failed, the variable was not from the command line. Ignore it,
6098       # but warn the user (except for BASH, which is always set by the calling BASH).
6099       if test "xCOMM" != xBASH; then
6100         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6101 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6102       fi
6103       # Try to locate tool using the code snippet
6104       for ac_prog in comm
6105 do
6106   # Extract the first word of "$ac_prog", so it can be a program name with args.
6107 set dummy $ac_prog; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_path_COMM+:} false; then :
6111   $as_echo_n "(cached) " >&6
6112 else
6113   case $COMM in
6114   [\\/]* | ?:[\\/]*)
6115   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6116   ;;
6117   *)
6118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132 
6133   ;;
6134 esac
6135 fi
6136 COMM=$ac_cv_path_COMM
6137 if test -n "$COMM"; then
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6139 $as_echo "$COMM" >&6; }
6140 else
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144 
6145 
6146   test -n "$COMM" && break
6147 done
6148 
6149     else
6150       # If it succeeded, then it was overridden by the user. We will use it
6151       # for the tool.
6152 
6153       # First remove it from the list of overridden variables, so we can test
6154       # for unknown variables in the end.
6155       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6156 
6157       # Check if we try to supply an empty value
6158       if test "x$COMM" = x; then
6159         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6160 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6162 $as_echo_n "checking for COMM... " >&6; }
6163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6164 $as_echo "disabled" >&6; }
6165       else
6166         # Check if the provided tool contains a complete path.
6167         tool_specified="$COMM"
6168         tool_basename="${tool_specified##*/}"
6169         if test "x$tool_basename" = "x$tool_specified"; then
6170           # A command without a complete path is provided, search $PATH.
6171           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6172 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6173           # Extract the first word of "$tool_basename", so it can be a program name with args.
6174 set dummy $tool_basename; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_path_COMM+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   case $COMM in
6181   [\\/]* | ?:[\\/]*)
6182   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6183   ;;
6184   *)
6185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199 
6200   ;;
6201 esac
6202 fi
6203 COMM=$ac_cv_path_COMM
6204 if test -n "$COMM"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6206 $as_echo "$COMM" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211 
6212 
6213           if test "x$COMM" = x; then
6214             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6215           fi
6216         else
6217           # Otherwise we believe it is a complete path. Use it as it is.
6218           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6219 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6220           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6221 $as_echo_n "checking for COMM... " >&6; }
6222           if test ! -x "$tool_specified"; then
6223             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6224 $as_echo "not found" >&6; }
6225             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6226           fi
6227           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6228 $as_echo "$tool_specified" >&6; }
6229         fi
6230       fi
6231     fi
6232 
6233   fi
6234 
6235 
6236 
6237   if test "x$COMM" = x; then
6238     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6239   fi
6240 
6241 
6242 
6243 
6244 
6245   # Publish this variable in the help.
6246 
6247 
6248   if [ -z "${CP+x}" ]; then
6249     # The variable is not set by user, try to locate tool using the code snippet
6250     for ac_prog in cp
6251 do
6252   # Extract the first word of "$ac_prog", so it can be a program name with args.
6253 set dummy $ac_prog; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_path_CP+:} false; then :
6257   $as_echo_n "(cached) " >&6
6258 else
6259   case $CP in
6260   [\\/]* | ?:[\\/]*)
6261   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6262   ;;
6263   *)
6264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269     for ac_exec_ext in '' $ac_executable_extensions; do
6270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276   done
6277 IFS=$as_save_IFS
6278 
6279   ;;
6280 esac
6281 fi
6282 CP=$ac_cv_path_CP
6283 if test -n "$CP"; then
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6285 $as_echo "$CP" >&6; }
6286 else
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290 
6291 
6292   test -n "$CP" && break
6293 done
6294 
6295   else
6296     # The variable is set, but is it from the command line or the environment?
6297 
6298     # Try to remove the string !CP! from our list.
6299     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6300     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6301       # If it failed, the variable was not from the command line. Ignore it,
6302       # but warn the user (except for BASH, which is always set by the calling BASH).
6303       if test "xCP" != xBASH; then
6304         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6305 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6306       fi
6307       # Try to locate tool using the code snippet
6308       for ac_prog in cp
6309 do
6310   # Extract the first word of "$ac_prog", so it can be a program name with args.
6311 set dummy $ac_prog; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_path_CP+:} false; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   case $CP in
6318   [\\/]* | ?:[\\/]*)
6319   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6320   ;;
6321   *)
6322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327     for ac_exec_ext in '' $ac_executable_extensions; do
6328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334   done
6335 IFS=$as_save_IFS
6336 
6337   ;;
6338 esac
6339 fi
6340 CP=$ac_cv_path_CP
6341 if test -n "$CP"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6343 $as_echo "$CP" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348 
6349 
6350   test -n "$CP" && break
6351 done
6352 
6353     else
6354       # If it succeeded, then it was overridden by the user. We will use it
6355       # for the tool.
6356 
6357       # First remove it from the list of overridden variables, so we can test
6358       # for unknown variables in the end.
6359       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6360 
6361       # Check if we try to supply an empty value
6362       if test "x$CP" = x; then
6363         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6364 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6366 $as_echo_n "checking for CP... " >&6; }
6367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6368 $as_echo "disabled" >&6; }
6369       else
6370         # Check if the provided tool contains a complete path.
6371         tool_specified="$CP"
6372         tool_basename="${tool_specified##*/}"
6373         if test "x$tool_basename" = "x$tool_specified"; then
6374           # A command without a complete path is provided, search $PATH.
6375           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6376 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6377           # Extract the first word of "$tool_basename", so it can be a program name with args.
6378 set dummy $tool_basename; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_path_CP+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   case $CP in
6385   [\\/]* | ?:[\\/]*)
6386   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6387   ;;
6388   *)
6389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403 
6404   ;;
6405 esac
6406 fi
6407 CP=$ac_cv_path_CP
6408 if test -n "$CP"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6410 $as_echo "$CP" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415 
6416 
6417           if test "x$CP" = x; then
6418             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6419           fi
6420         else
6421           # Otherwise we believe it is a complete path. Use it as it is.
6422           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6423 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6424           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6425 $as_echo_n "checking for CP... " >&6; }
6426           if test ! -x "$tool_specified"; then
6427             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6428 $as_echo "not found" >&6; }
6429             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6430           fi
6431           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6432 $as_echo "$tool_specified" >&6; }
6433         fi
6434       fi
6435     fi
6436 
6437   fi
6438 
6439 
6440 
6441   if test "x$CP" = x; then
6442     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6443   fi
6444 
6445 
6446 
6447 
6448 
6449   # Publish this variable in the help.
6450 
6451 
6452   if [ -z "${CUT+x}" ]; then
6453     # The variable is not set by user, try to locate tool using the code snippet
6454     for ac_prog in cut
6455 do
6456   # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_path_CUT+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   case $CUT in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6466   ;;
6467   *)
6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482 
6483   ;;
6484 esac
6485 fi
6486 CUT=$ac_cv_path_CUT
6487 if test -n "$CUT"; then
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6489 $as_echo "$CUT" >&6; }
6490 else
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494 
6495 
6496   test -n "$CUT" && break
6497 done
6498 
6499   else
6500     # The variable is set, but is it from the command line or the environment?
6501 
6502     # Try to remove the string !CUT! from our list.
6503     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6504     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6505       # If it failed, the variable was not from the command line. Ignore it,
6506       # but warn the user (except for BASH, which is always set by the calling BASH).
6507       if test "xCUT" != xBASH; then
6508         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6509 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6510       fi
6511       # Try to locate tool using the code snippet
6512       for ac_prog in cut
6513 do
6514   # Extract the first word of "$ac_prog", so it can be a program name with args.
6515 set dummy $ac_prog; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_path_CUT+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   case $CUT in
6522   [\\/]* | ?:[\\/]*)
6523   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6524   ;;
6525   *)
6526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531     for ac_exec_ext in '' $ac_executable_extensions; do
6532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538   done
6539 IFS=$as_save_IFS
6540 
6541   ;;
6542 esac
6543 fi
6544 CUT=$ac_cv_path_CUT
6545 if test -n "$CUT"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6547 $as_echo "$CUT" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552 
6553 
6554   test -n "$CUT" && break
6555 done
6556 
6557     else
6558       # If it succeeded, then it was overridden by the user. We will use it
6559       # for the tool.
6560 
6561       # First remove it from the list of overridden variables, so we can test
6562       # for unknown variables in the end.
6563       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6564 
6565       # Check if we try to supply an empty value
6566       if test "x$CUT" = x; then
6567         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6568 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6570 $as_echo_n "checking for CUT... " >&6; }
6571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6572 $as_echo "disabled" >&6; }
6573       else
6574         # Check if the provided tool contains a complete path.
6575         tool_specified="$CUT"
6576         tool_basename="${tool_specified##*/}"
6577         if test "x$tool_basename" = "x$tool_specified"; then
6578           # A command without a complete path is provided, search $PATH.
6579           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6580 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6581           # Extract the first word of "$tool_basename", so it can be a program name with args.
6582 set dummy $tool_basename; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_path_CUT+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   case $CUT in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598     for ac_exec_ext in '' $ac_executable_extensions; do
6599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605   done
6606 IFS=$as_save_IFS
6607 
6608   ;;
6609 esac
6610 fi
6611 CUT=$ac_cv_path_CUT
6612 if test -n "$CUT"; then
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6614 $as_echo "$CUT" >&6; }
6615 else
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619 
6620 
6621           if test "x$CUT" = x; then
6622             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6623           fi
6624         else
6625           # Otherwise we believe it is a complete path. Use it as it is.
6626           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6627 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6628           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6629 $as_echo_n "checking for CUT... " >&6; }
6630           if test ! -x "$tool_specified"; then
6631             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6632 $as_echo "not found" >&6; }
6633             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6634           fi
6635           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6636 $as_echo "$tool_specified" >&6; }
6637         fi
6638       fi
6639     fi
6640 
6641   fi
6642 
6643 
6644 
6645   if test "x$CUT" = x; then
6646     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6647   fi
6648 
6649 
6650 
6651 
6652 
6653   # Publish this variable in the help.
6654 
6655 
6656   if [ -z "${DATE+x}" ]; then
6657     # The variable is not set by user, try to locate tool using the code snippet
6658     for ac_prog in date
6659 do
6660   # Extract the first word of "$ac_prog", so it can be a program name with args.
6661 set dummy $ac_prog; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_path_DATE+:} false; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667   case $DATE in
6668   [\\/]* | ?:[\\/]*)
6669   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6670   ;;
6671   *)
6672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686 
6687   ;;
6688 esac
6689 fi
6690 DATE=$ac_cv_path_DATE
6691 if test -n "$DATE"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6693 $as_echo "$DATE" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698 
6699 
6700   test -n "$DATE" && break
6701 done
6702 
6703   else
6704     # The variable is set, but is it from the command line or the environment?
6705 
6706     # Try to remove the string !DATE! from our list.
6707     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6708     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6709       # If it failed, the variable was not from the command line. Ignore it,
6710       # but warn the user (except for BASH, which is always set by the calling BASH).
6711       if test "xDATE" != xBASH; then
6712         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6713 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6714       fi
6715       # Try to locate tool using the code snippet
6716       for ac_prog in date
6717 do
6718   # Extract the first word of "$ac_prog", so it can be a program name with args.
6719 set dummy $ac_prog; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_path_DATE+:} false; then :
6723   $as_echo_n "(cached) " >&6
6724 else
6725   case $DATE in
6726   [\\/]* | ?:[\\/]*)
6727   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6728   ;;
6729   *)
6730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744 
6745   ;;
6746 esac
6747 fi
6748 DATE=$ac_cv_path_DATE
6749 if test -n "$DATE"; then
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6751 $as_echo "$DATE" >&6; }
6752 else
6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756 
6757 
6758   test -n "$DATE" && break
6759 done
6760 
6761     else
6762       # If it succeeded, then it was overridden by the user. We will use it
6763       # for the tool.
6764 
6765       # First remove it from the list of overridden variables, so we can test
6766       # for unknown variables in the end.
6767       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6768 
6769       # Check if we try to supply an empty value
6770       if test "x$DATE" = x; then
6771         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6772 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6774 $as_echo_n "checking for DATE... " >&6; }
6775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6776 $as_echo "disabled" >&6; }
6777       else
6778         # Check if the provided tool contains a complete path.
6779         tool_specified="$DATE"
6780         tool_basename="${tool_specified##*/}"
6781         if test "x$tool_basename" = "x$tool_specified"; then
6782           # A command without a complete path is provided, search $PATH.
6783           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6784 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6785           # Extract the first word of "$tool_basename", so it can be a program name with args.
6786 set dummy $tool_basename; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_path_DATE+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   case $DATE in
6793   [\\/]* | ?:[\\/]*)
6794   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6795   ;;
6796   *)
6797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802     for ac_exec_ext in '' $ac_executable_extensions; do
6803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809   done
6810 IFS=$as_save_IFS
6811 
6812   ;;
6813 esac
6814 fi
6815 DATE=$ac_cv_path_DATE
6816 if test -n "$DATE"; then
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6818 $as_echo "$DATE" >&6; }
6819 else
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823 
6824 
6825           if test "x$DATE" = x; then
6826             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6827           fi
6828         else
6829           # Otherwise we believe it is a complete path. Use it as it is.
6830           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6831 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6832           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6833 $as_echo_n "checking for DATE... " >&6; }
6834           if test ! -x "$tool_specified"; then
6835             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6836 $as_echo "not found" >&6; }
6837             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6838           fi
6839           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6840 $as_echo "$tool_specified" >&6; }
6841         fi
6842       fi
6843     fi
6844 
6845   fi
6846 
6847 
6848 
6849   if test "x$DATE" = x; then
6850     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6851   fi
6852 
6853 
6854 
6855 
6856 
6857   # Publish this variable in the help.
6858 
6859 
6860   if [ -z "${DIFF+x}" ]; then
6861     # The variable is not set by user, try to locate tool using the code snippet
6862     for ac_prog in gdiff diff
6863 do
6864   # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_path_DIFF+:} false; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   case $DIFF in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6874   ;;
6875   *)
6876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881     for ac_exec_ext in '' $ac_executable_extensions; do
6882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888   done
6889 IFS=$as_save_IFS
6890 
6891   ;;
6892 esac
6893 fi
6894 DIFF=$ac_cv_path_DIFF
6895 if test -n "$DIFF"; then
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6897 $as_echo "$DIFF" >&6; }
6898 else
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902 
6903 
6904   test -n "$DIFF" && break
6905 done
6906 
6907   else
6908     # The variable is set, but is it from the command line or the environment?
6909 
6910     # Try to remove the string !DIFF! from our list.
6911     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6912     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6913       # If it failed, the variable was not from the command line. Ignore it,
6914       # but warn the user (except for BASH, which is always set by the calling BASH).
6915       if test "xDIFF" != xBASH; then
6916         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6917 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6918       fi
6919       # Try to locate tool using the code snippet
6920       for ac_prog in gdiff diff
6921 do
6922   # Extract the first word of "$ac_prog", so it can be a program name with args.
6923 set dummy $ac_prog; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_path_DIFF+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   case $DIFF in
6930   [\\/]* | ?:[\\/]*)
6931   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6932   ;;
6933   *)
6934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939     for ac_exec_ext in '' $ac_executable_extensions; do
6940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946   done
6947 IFS=$as_save_IFS
6948 
6949   ;;
6950 esac
6951 fi
6952 DIFF=$ac_cv_path_DIFF
6953 if test -n "$DIFF"; then
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6955 $as_echo "$DIFF" >&6; }
6956 else
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960 
6961 
6962   test -n "$DIFF" && break
6963 done
6964 
6965     else
6966       # If it succeeded, then it was overridden by the user. We will use it
6967       # for the tool.
6968 
6969       # First remove it from the list of overridden variables, so we can test
6970       # for unknown variables in the end.
6971       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6972 
6973       # Check if we try to supply an empty value
6974       if test "x$DIFF" = x; then
6975         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6976 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6977         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6978 $as_echo_n "checking for DIFF... " >&6; }
6979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6980 $as_echo "disabled" >&6; }
6981       else
6982         # Check if the provided tool contains a complete path.
6983         tool_specified="$DIFF"
6984         tool_basename="${tool_specified##*/}"
6985         if test "x$tool_basename" = "x$tool_specified"; then
6986           # A command without a complete path is provided, search $PATH.
6987           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6988 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6989           # Extract the first word of "$tool_basename", so it can be a program name with args.
6990 set dummy $tool_basename; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_path_DIFF+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   case $DIFF in
6997   [\\/]* | ?:[\\/]*)
6998   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6999   ;;
7000   *)
7001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006     for ac_exec_ext in '' $ac_executable_extensions; do
7007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013   done
7014 IFS=$as_save_IFS
7015 
7016   ;;
7017 esac
7018 fi
7019 DIFF=$ac_cv_path_DIFF
7020 if test -n "$DIFF"; then
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7022 $as_echo "$DIFF" >&6; }
7023 else
7024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027 
7028 
7029           if test "x$DIFF" = x; then
7030             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7031           fi
7032         else
7033           # Otherwise we believe it is a complete path. Use it as it is.
7034           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7035 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7036           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7037 $as_echo_n "checking for DIFF... " >&6; }
7038           if test ! -x "$tool_specified"; then
7039             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7040 $as_echo "not found" >&6; }
7041             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7042           fi
7043           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7044 $as_echo "$tool_specified" >&6; }
7045         fi
7046       fi
7047     fi
7048 
7049   fi
7050 
7051 
7052 
7053   if test "x$DIFF" = x; then
7054     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7055   fi
7056 
7057 
7058 
7059 
7060 
7061   # Publish this variable in the help.
7062 
7063 
7064   if [ -z "${DIRNAME+x}" ]; then
7065     # The variable is not set by user, try to locate tool using the code snippet
7066     for ac_prog in dirname
7067 do
7068   # Extract the first word of "$ac_prog", so it can be a program name with args.
7069 set dummy $ac_prog; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_path_DIRNAME+:} false; then :
7073   $as_echo_n "(cached) " >&6
7074 else
7075   case $DIRNAME in
7076   [\\/]* | ?:[\\/]*)
7077   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7078   ;;
7079   *)
7080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083   IFS=$as_save_IFS
7084   test -z "$as_dir" && as_dir=.
7085     for ac_exec_ext in '' $ac_executable_extensions; do
7086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089     break 2
7090   fi
7091 done
7092   done
7093 IFS=$as_save_IFS
7094 
7095   ;;
7096 esac
7097 fi
7098 DIRNAME=$ac_cv_path_DIRNAME
7099 if test -n "$DIRNAME"; then
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7101 $as_echo "$DIRNAME" >&6; }
7102 else
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106 
7107 
7108   test -n "$DIRNAME" && break
7109 done
7110 
7111   else
7112     # The variable is set, but is it from the command line or the environment?
7113 
7114     # Try to remove the string !DIRNAME! from our list.
7115     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7116     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7117       # If it failed, the variable was not from the command line. Ignore it,
7118       # but warn the user (except for BASH, which is always set by the calling BASH).
7119       if test "xDIRNAME" != xBASH; then
7120         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7121 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7122       fi
7123       # Try to locate tool using the code snippet
7124       for ac_prog in dirname
7125 do
7126   # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy $ac_prog; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_path_DIRNAME+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   case $DIRNAME in
7134   [\\/]* | ?:[\\/]*)
7135   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7136   ;;
7137   *)
7138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143     for ac_exec_ext in '' $ac_executable_extensions; do
7144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150   done
7151 IFS=$as_save_IFS
7152 
7153   ;;
7154 esac
7155 fi
7156 DIRNAME=$ac_cv_path_DIRNAME
7157 if test -n "$DIRNAME"; then
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7159 $as_echo "$DIRNAME" >&6; }
7160 else
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164 
7165 
7166   test -n "$DIRNAME" && break
7167 done
7168 
7169     else
7170       # If it succeeded, then it was overridden by the user. We will use it
7171       # for the tool.
7172 
7173       # First remove it from the list of overridden variables, so we can test
7174       # for unknown variables in the end.
7175       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7176 
7177       # Check if we try to supply an empty value
7178       if test "x$DIRNAME" = x; then
7179         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7180 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7181         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7182 $as_echo_n "checking for DIRNAME... " >&6; }
7183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7184 $as_echo "disabled" >&6; }
7185       else
7186         # Check if the provided tool contains a complete path.
7187         tool_specified="$DIRNAME"
7188         tool_basename="${tool_specified##*/}"
7189         if test "x$tool_basename" = "x$tool_specified"; then
7190           # A command without a complete path is provided, search $PATH.
7191           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7192 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7193           # Extract the first word of "$tool_basename", so it can be a program name with args.
7194 set dummy $tool_basename; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_path_DIRNAME+:} false; then :
7198   $as_echo_n "(cached) " >&6
7199 else
7200   case $DIRNAME in
7201   [\\/]* | ?:[\\/]*)
7202   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7203   ;;
7204   *)
7205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219 
7220   ;;
7221 esac
7222 fi
7223 DIRNAME=$ac_cv_path_DIRNAME
7224 if test -n "$DIRNAME"; then
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7226 $as_echo "$DIRNAME" >&6; }
7227 else
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7231 
7232 
7233           if test "x$DIRNAME" = x; then
7234             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7235           fi
7236         else
7237           # Otherwise we believe it is a complete path. Use it as it is.
7238           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7239 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7240           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7241 $as_echo_n "checking for DIRNAME... " >&6; }
7242           if test ! -x "$tool_specified"; then
7243             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7244 $as_echo "not found" >&6; }
7245             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7246           fi
7247           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7248 $as_echo "$tool_specified" >&6; }
7249         fi
7250       fi
7251     fi
7252 
7253   fi
7254 
7255 
7256 
7257   if test "x$DIRNAME" = x; then
7258     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7259   fi
7260 
7261 
7262 
7263 
7264 
7265   # Publish this variable in the help.
7266 
7267 
7268   if [ -z "${ECHO+x}" ]; then
7269     # The variable is not set by user, try to locate tool using the code snippet
7270     for ac_prog in echo
7271 do
7272   # Extract the first word of "$ac_prog", so it can be a program name with args.
7273 set dummy $ac_prog; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_path_ECHO+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   case $ECHO in
7280   [\\/]* | ?:[\\/]*)
7281   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7282   ;;
7283   *)
7284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289     for ac_exec_ext in '' $ac_executable_extensions; do
7290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296   done
7297 IFS=$as_save_IFS
7298 
7299   ;;
7300 esac
7301 fi
7302 ECHO=$ac_cv_path_ECHO
7303 if test -n "$ECHO"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7305 $as_echo "$ECHO" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310 
7311 
7312   test -n "$ECHO" && break
7313 done
7314 
7315   else
7316     # The variable is set, but is it from the command line or the environment?
7317 
7318     # Try to remove the string !ECHO! from our list.
7319     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7320     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7321       # If it failed, the variable was not from the command line. Ignore it,
7322       # but warn the user (except for BASH, which is always set by the calling BASH).
7323       if test "xECHO" != xBASH; then
7324         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7325 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7326       fi
7327       # Try to locate tool using the code snippet
7328       for ac_prog in echo
7329 do
7330   # Extract the first word of "$ac_prog", so it can be a program name with args.
7331 set dummy $ac_prog; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_path_ECHO+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   case $ECHO in
7338   [\\/]* | ?:[\\/]*)
7339   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7340   ;;
7341   *)
7342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345   IFS=$as_save_IFS
7346   test -z "$as_dir" && as_dir=.
7347     for ac_exec_ext in '' $ac_executable_extensions; do
7348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351     break 2
7352   fi
7353 done
7354   done
7355 IFS=$as_save_IFS
7356 
7357   ;;
7358 esac
7359 fi
7360 ECHO=$ac_cv_path_ECHO
7361 if test -n "$ECHO"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7363 $as_echo "$ECHO" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368 
7369 
7370   test -n "$ECHO" && break
7371 done
7372 
7373     else
7374       # If it succeeded, then it was overridden by the user. We will use it
7375       # for the tool.
7376 
7377       # First remove it from the list of overridden variables, so we can test
7378       # for unknown variables in the end.
7379       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7380 
7381       # Check if we try to supply an empty value
7382       if test "x$ECHO" = x; then
7383         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7384 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7386 $as_echo_n "checking for ECHO... " >&6; }
7387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7388 $as_echo "disabled" >&6; }
7389       else
7390         # Check if the provided tool contains a complete path.
7391         tool_specified="$ECHO"
7392         tool_basename="${tool_specified##*/}"
7393         if test "x$tool_basename" = "x$tool_specified"; then
7394           # A command without a complete path is provided, search $PATH.
7395           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7396 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7397           # Extract the first word of "$tool_basename", so it can be a program name with args.
7398 set dummy $tool_basename; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_path_ECHO+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   case $ECHO in
7405   [\\/]* | ?:[\\/]*)
7406   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7407   ;;
7408   *)
7409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412   IFS=$as_save_IFS
7413   test -z "$as_dir" && as_dir=.
7414     for ac_exec_ext in '' $ac_executable_extensions; do
7415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418     break 2
7419   fi
7420 done
7421   done
7422 IFS=$as_save_IFS
7423 
7424   ;;
7425 esac
7426 fi
7427 ECHO=$ac_cv_path_ECHO
7428 if test -n "$ECHO"; then
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7430 $as_echo "$ECHO" >&6; }
7431 else
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435 
7436 
7437           if test "x$ECHO" = x; then
7438             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7439           fi
7440         else
7441           # Otherwise we believe it is a complete path. Use it as it is.
7442           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7443 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7444           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7445 $as_echo_n "checking for ECHO... " >&6; }
7446           if test ! -x "$tool_specified"; then
7447             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7448 $as_echo "not found" >&6; }
7449             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7450           fi
7451           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7452 $as_echo "$tool_specified" >&6; }
7453         fi
7454       fi
7455     fi
7456 
7457   fi
7458 
7459 
7460 
7461   if test "x$ECHO" = x; then
7462     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7463   fi
7464 
7465 
7466 
7467 
7468 
7469   # Publish this variable in the help.
7470 
7471 
7472   if [ -z "${EXPR+x}" ]; then
7473     # The variable is not set by user, try to locate tool using the code snippet
7474     for ac_prog in expr
7475 do
7476   # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_path_EXPR+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   case $EXPR in
7484   [\\/]* | ?:[\\/]*)
7485   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7486   ;;
7487   *)
7488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493     for ac_exec_ext in '' $ac_executable_extensions; do
7494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500   done
7501 IFS=$as_save_IFS
7502 
7503   ;;
7504 esac
7505 fi
7506 EXPR=$ac_cv_path_EXPR
7507 if test -n "$EXPR"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7509 $as_echo "$EXPR" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514 
7515 
7516   test -n "$EXPR" && break
7517 done
7518 
7519   else
7520     # The variable is set, but is it from the command line or the environment?
7521 
7522     # Try to remove the string !EXPR! from our list.
7523     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7524     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7525       # If it failed, the variable was not from the command line. Ignore it,
7526       # but warn the user (except for BASH, which is always set by the calling BASH).
7527       if test "xEXPR" != xBASH; then
7528         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7529 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7530       fi
7531       # Try to locate tool using the code snippet
7532       for ac_prog in expr
7533 do
7534   # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_path_EXPR+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   case $EXPR in
7542   [\\/]* | ?:[\\/]*)
7543   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7544   ;;
7545   *)
7546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551     for ac_exec_ext in '' $ac_executable_extensions; do
7552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7553     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558   done
7559 IFS=$as_save_IFS
7560 
7561   ;;
7562 esac
7563 fi
7564 EXPR=$ac_cv_path_EXPR
7565 if test -n "$EXPR"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7567 $as_echo "$EXPR" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572 
7573 
7574   test -n "$EXPR" && break
7575 done
7576 
7577     else
7578       # If it succeeded, then it was overridden by the user. We will use it
7579       # for the tool.
7580 
7581       # First remove it from the list of overridden variables, so we can test
7582       # for unknown variables in the end.
7583       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7584 
7585       # Check if we try to supply an empty value
7586       if test "x$EXPR" = x; then
7587         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7588 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7590 $as_echo_n "checking for EXPR... " >&6; }
7591         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7592 $as_echo "disabled" >&6; }
7593       else
7594         # Check if the provided tool contains a complete path.
7595         tool_specified="$EXPR"
7596         tool_basename="${tool_specified##*/}"
7597         if test "x$tool_basename" = "x$tool_specified"; then
7598           # A command without a complete path is provided, search $PATH.
7599           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7600 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7601           # Extract the first word of "$tool_basename", so it can be a program name with args.
7602 set dummy $tool_basename; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_path_EXPR+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   case $EXPR in
7609   [\\/]* | ?:[\\/]*)
7610   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7611   ;;
7612   *)
7613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627 
7628   ;;
7629 esac
7630 fi
7631 EXPR=$ac_cv_path_EXPR
7632 if test -n "$EXPR"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7634 $as_echo "$EXPR" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639 
7640 
7641           if test "x$EXPR" = x; then
7642             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7643           fi
7644         else
7645           # Otherwise we believe it is a complete path. Use it as it is.
7646           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7647 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7648           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7649 $as_echo_n "checking for EXPR... " >&6; }
7650           if test ! -x "$tool_specified"; then
7651             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7652 $as_echo "not found" >&6; }
7653             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7654           fi
7655           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7656 $as_echo "$tool_specified" >&6; }
7657         fi
7658       fi
7659     fi
7660 
7661   fi
7662 
7663 
7664 
7665   if test "x$EXPR" = x; then
7666     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7667   fi
7668 
7669 
7670 
7671 
7672 
7673   # Publish this variable in the help.
7674 
7675 
7676   if [ -z "${FILE+x}" ]; then
7677     # The variable is not set by user, try to locate tool using the code snippet
7678     for ac_prog in file
7679 do
7680   # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_path_FILE+:} false; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   case $FILE in
7688   [\\/]* | ?:[\\/]*)
7689   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7690   ;;
7691   *)
7692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $PATH
7694 do
7695   IFS=$as_save_IFS
7696   test -z "$as_dir" && as_dir=.
7697     for ac_exec_ext in '' $ac_executable_extensions; do
7698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701     break 2
7702   fi
7703 done
7704   done
7705 IFS=$as_save_IFS
7706 
7707   ;;
7708 esac
7709 fi
7710 FILE=$ac_cv_path_FILE
7711 if test -n "$FILE"; then
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7713 $as_echo "$FILE" >&6; }
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 fi
7718 
7719 
7720   test -n "$FILE" && break
7721 done
7722 
7723   else
7724     # The variable is set, but is it from the command line or the environment?
7725 
7726     # Try to remove the string !FILE! from our list.
7727     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7728     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7729       # If it failed, the variable was not from the command line. Ignore it,
7730       # but warn the user (except for BASH, which is always set by the calling BASH).
7731       if test "xFILE" != xBASH; then
7732         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7733 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7734       fi
7735       # Try to locate tool using the code snippet
7736       for ac_prog in file
7737 do
7738   # Extract the first word of "$ac_prog", so it can be a program name with args.
7739 set dummy $ac_prog; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_path_FILE+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   case $FILE in
7746   [\\/]* | ?:[\\/]*)
7747   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7748   ;;
7749   *)
7750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755     for ac_exec_ext in '' $ac_executable_extensions; do
7756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762   done
7763 IFS=$as_save_IFS
7764 
7765   ;;
7766 esac
7767 fi
7768 FILE=$ac_cv_path_FILE
7769 if test -n "$FILE"; then
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7771 $as_echo "$FILE" >&6; }
7772 else
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776 
7777 
7778   test -n "$FILE" && break
7779 done
7780 
7781     else
7782       # If it succeeded, then it was overridden by the user. We will use it
7783       # for the tool.
7784 
7785       # First remove it from the list of overridden variables, so we can test
7786       # for unknown variables in the end.
7787       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7788 
7789       # Check if we try to supply an empty value
7790       if test "x$FILE" = x; then
7791         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7792 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7794 $as_echo_n "checking for FILE... " >&6; }
7795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7796 $as_echo "disabled" >&6; }
7797       else
7798         # Check if the provided tool contains a complete path.
7799         tool_specified="$FILE"
7800         tool_basename="${tool_specified##*/}"
7801         if test "x$tool_basename" = "x$tool_specified"; then
7802           # A command without a complete path is provided, search $PATH.
7803           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7804 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7805           # Extract the first word of "$tool_basename", so it can be a program name with args.
7806 set dummy $tool_basename; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_path_FILE+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   case $FILE in
7813   [\\/]* | ?:[\\/]*)
7814   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7815   ;;
7816   *)
7817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820   IFS=$as_save_IFS
7821   test -z "$as_dir" && as_dir=.
7822     for ac_exec_ext in '' $ac_executable_extensions; do
7823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826     break 2
7827   fi
7828 done
7829   done
7830 IFS=$as_save_IFS
7831 
7832   ;;
7833 esac
7834 fi
7835 FILE=$ac_cv_path_FILE
7836 if test -n "$FILE"; then
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7838 $as_echo "$FILE" >&6; }
7839 else
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 fi
7843 
7844 
7845           if test "x$FILE" = x; then
7846             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7847           fi
7848         else
7849           # Otherwise we believe it is a complete path. Use it as it is.
7850           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7851 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7852           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7853 $as_echo_n "checking for FILE... " >&6; }
7854           if test ! -x "$tool_specified"; then
7855             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7856 $as_echo "not found" >&6; }
7857             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7858           fi
7859           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7860 $as_echo "$tool_specified" >&6; }
7861         fi
7862       fi
7863     fi
7864 
7865   fi
7866 
7867 
7868 
7869   if test "x$FILE" = x; then
7870     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7871   fi
7872 
7873 
7874 
7875 
7876 
7877   # Publish this variable in the help.
7878 
7879 
7880   if [ -z "${FIND+x}" ]; then
7881     # The variable is not set by user, try to locate tool using the code snippet
7882     for ac_prog in find
7883 do
7884   # Extract the first word of "$ac_prog", so it can be a program name with args.
7885 set dummy $ac_prog; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_path_FIND+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   case $FIND in
7892   [\\/]* | ?:[\\/]*)
7893   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7894   ;;
7895   *)
7896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910 
7911   ;;
7912 esac
7913 fi
7914 FIND=$ac_cv_path_FIND
7915 if test -n "$FIND"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7917 $as_echo "$FIND" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922 
7923 
7924   test -n "$FIND" && break
7925 done
7926 
7927   else
7928     # The variable is set, but is it from the command line or the environment?
7929 
7930     # Try to remove the string !FIND! from our list.
7931     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7932     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7933       # If it failed, the variable was not from the command line. Ignore it,
7934       # but warn the user (except for BASH, which is always set by the calling BASH).
7935       if test "xFIND" != xBASH; then
7936         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7937 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7938       fi
7939       # Try to locate tool using the code snippet
7940       for ac_prog in find
7941 do
7942   # Extract the first word of "$ac_prog", so it can be a program name with args.
7943 set dummy $ac_prog; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_path_FIND+:} false; then :
7947   $as_echo_n "(cached) " >&6
7948 else
7949   case $FIND in
7950   [\\/]* | ?:[\\/]*)
7951   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7952   ;;
7953   *)
7954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959     for ac_exec_ext in '' $ac_executable_extensions; do
7960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966   done
7967 IFS=$as_save_IFS
7968 
7969   ;;
7970 esac
7971 fi
7972 FIND=$ac_cv_path_FIND
7973 if test -n "$FIND"; then
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7975 $as_echo "$FIND" >&6; }
7976 else
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980 
7981 
7982   test -n "$FIND" && break
7983 done
7984 
7985     else
7986       # If it succeeded, then it was overridden by the user. We will use it
7987       # for the tool.
7988 
7989       # First remove it from the list of overridden variables, so we can test
7990       # for unknown variables in the end.
7991       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7992 
7993       # Check if we try to supply an empty value
7994       if test "x$FIND" = x; then
7995         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7996 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7997         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7998 $as_echo_n "checking for FIND... " >&6; }
7999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8000 $as_echo "disabled" >&6; }
8001       else
8002         # Check if the provided tool contains a complete path.
8003         tool_specified="$FIND"
8004         tool_basename="${tool_specified##*/}"
8005         if test "x$tool_basename" = "x$tool_specified"; then
8006           # A command without a complete path is provided, search $PATH.
8007           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8008 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8009           # Extract the first word of "$tool_basename", so it can be a program name with args.
8010 set dummy $tool_basename; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_FIND+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   case $FIND in
8017   [\\/]* | ?:[\\/]*)
8018   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8019   ;;
8020   *)
8021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024   IFS=$as_save_IFS
8025   test -z "$as_dir" && as_dir=.
8026     for ac_exec_ext in '' $ac_executable_extensions; do
8027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030     break 2
8031   fi
8032 done
8033   done
8034 IFS=$as_save_IFS
8035 
8036   ;;
8037 esac
8038 fi
8039 FIND=$ac_cv_path_FIND
8040 if test -n "$FIND"; then
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8042 $as_echo "$FIND" >&6; }
8043 else
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 fi
8047 
8048 
8049           if test "x$FIND" = x; then
8050             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8051           fi
8052         else
8053           # Otherwise we believe it is a complete path. Use it as it is.
8054           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8055 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8056           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8057 $as_echo_n "checking for FIND... " >&6; }
8058           if test ! -x "$tool_specified"; then
8059             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8060 $as_echo "not found" >&6; }
8061             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8062           fi
8063           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8064 $as_echo "$tool_specified" >&6; }
8065         fi
8066       fi
8067     fi
8068 
8069   fi
8070 
8071 
8072 
8073   if test "x$FIND" = x; then
8074     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8075   fi
8076 
8077 
8078 
8079 
8080 
8081   # Publish this variable in the help.
8082 
8083 
8084   if [ -z "${HEAD+x}" ]; then
8085     # The variable is not set by user, try to locate tool using the code snippet
8086     for ac_prog in head
8087 do
8088   # Extract the first word of "$ac_prog", so it can be a program name with args.
8089 set dummy $ac_prog; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if ${ac_cv_path_HEAD+:} false; then :
8093   $as_echo_n "(cached) " >&6
8094 else
8095   case $HEAD in
8096   [\\/]* | ?:[\\/]*)
8097   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8098   ;;
8099   *)
8100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103   IFS=$as_save_IFS
8104   test -z "$as_dir" && as_dir=.
8105     for ac_exec_ext in '' $ac_executable_extensions; do
8106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112   done
8113 IFS=$as_save_IFS
8114 
8115   ;;
8116 esac
8117 fi
8118 HEAD=$ac_cv_path_HEAD
8119 if test -n "$HEAD"; then
8120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8121 $as_echo "$HEAD" >&6; }
8122 else
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126 
8127 
8128   test -n "$HEAD" && break
8129 done
8130 
8131   else
8132     # The variable is set, but is it from the command line or the environment?
8133 
8134     # Try to remove the string !HEAD! from our list.
8135     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8136     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8137       # If it failed, the variable was not from the command line. Ignore it,
8138       # but warn the user (except for BASH, which is always set by the calling BASH).
8139       if test "xHEAD" != xBASH; then
8140         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8141 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8142       fi
8143       # Try to locate tool using the code snippet
8144       for ac_prog in head
8145 do
8146   # Extract the first word of "$ac_prog", so it can be a program name with args.
8147 set dummy $ac_prog; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_path_HEAD+:} false; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   case $HEAD in
8154   [\\/]* | ?:[\\/]*)
8155   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8156   ;;
8157   *)
8158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8172 
8173   ;;
8174 esac
8175 fi
8176 HEAD=$ac_cv_path_HEAD
8177 if test -n "$HEAD"; then
8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8179 $as_echo "$HEAD" >&6; }
8180 else
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184 
8185 
8186   test -n "$HEAD" && break
8187 done
8188 
8189     else
8190       # If it succeeded, then it was overridden by the user. We will use it
8191       # for the tool.
8192 
8193       # First remove it from the list of overridden variables, so we can test
8194       # for unknown variables in the end.
8195       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8196 
8197       # Check if we try to supply an empty value
8198       if test "x$HEAD" = x; then
8199         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8200 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8201         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8202 $as_echo_n "checking for HEAD... " >&6; }
8203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8204 $as_echo "disabled" >&6; }
8205       else
8206         # Check if the provided tool contains a complete path.
8207         tool_specified="$HEAD"
8208         tool_basename="${tool_specified##*/}"
8209         if test "x$tool_basename" = "x$tool_specified"; then
8210           # A command without a complete path is provided, search $PATH.
8211           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8212 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8213           # Extract the first word of "$tool_basename", so it can be a program name with args.
8214 set dummy $tool_basename; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if ${ac_cv_path_HEAD+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   case $HEAD in
8221   [\\/]* | ?:[\\/]*)
8222   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8223   ;;
8224   *)
8225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8227 do
8228   IFS=$as_save_IFS
8229   test -z "$as_dir" && as_dir=.
8230     for ac_exec_ext in '' $ac_executable_extensions; do
8231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234     break 2
8235   fi
8236 done
8237   done
8238 IFS=$as_save_IFS
8239 
8240   ;;
8241 esac
8242 fi
8243 HEAD=$ac_cv_path_HEAD
8244 if test -n "$HEAD"; then
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8246 $as_echo "$HEAD" >&6; }
8247 else
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251 
8252 
8253           if test "x$HEAD" = x; then
8254             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8255           fi
8256         else
8257           # Otherwise we believe it is a complete path. Use it as it is.
8258           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8259 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8260           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8261 $as_echo_n "checking for HEAD... " >&6; }
8262           if test ! -x "$tool_specified"; then
8263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8264 $as_echo "not found" >&6; }
8265             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8266           fi
8267           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8268 $as_echo "$tool_specified" >&6; }
8269         fi
8270       fi
8271     fi
8272 
8273   fi
8274 
8275 
8276 
8277   if test "x$HEAD" = x; then
8278     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8279   fi
8280 
8281 
8282 
8283 
8284 
8285   # Publish this variable in the help.
8286 
8287 
8288   if [ -z "${LN+x}" ]; then
8289     # The variable is not set by user, try to locate tool using the code snippet
8290     for ac_prog in ln
8291 do
8292   # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if ${ac_cv_path_LN+:} false; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   case $LN in
8300   [\\/]* | ?:[\\/]*)
8301   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8302   ;;
8303   *)
8304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309     for ac_exec_ext in '' $ac_executable_extensions; do
8310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316   done
8317 IFS=$as_save_IFS
8318 
8319   ;;
8320 esac
8321 fi
8322 LN=$ac_cv_path_LN
8323 if test -n "$LN"; then
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8325 $as_echo "$LN" >&6; }
8326 else
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330 
8331 
8332   test -n "$LN" && break
8333 done
8334 
8335   else
8336     # The variable is set, but is it from the command line or the environment?
8337 
8338     # Try to remove the string !LN! from our list.
8339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8341       # If it failed, the variable was not from the command line. Ignore it,
8342       # but warn the user (except for BASH, which is always set by the calling BASH).
8343       if test "xLN" != xBASH; then
8344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8345 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8346       fi
8347       # Try to locate tool using the code snippet
8348       for ac_prog in ln
8349 do
8350   # Extract the first word of "$ac_prog", so it can be a program name with args.
8351 set dummy $ac_prog; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_LN+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   case $LN in
8358   [\\/]* | ?:[\\/]*)
8359   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8360   ;;
8361   *)
8362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365   IFS=$as_save_IFS
8366   test -z "$as_dir" && as_dir=.
8367     for ac_exec_ext in '' $ac_executable_extensions; do
8368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374   done
8375 IFS=$as_save_IFS
8376 
8377   ;;
8378 esac
8379 fi
8380 LN=$ac_cv_path_LN
8381 if test -n "$LN"; then
8382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8383 $as_echo "$LN" >&6; }
8384 else
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8387 fi
8388 
8389 
8390   test -n "$LN" && break
8391 done
8392 
8393     else
8394       # If it succeeded, then it was overridden by the user. We will use it
8395       # for the tool.
8396 
8397       # First remove it from the list of overridden variables, so we can test
8398       # for unknown variables in the end.
8399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8400 
8401       # Check if we try to supply an empty value
8402       if test "x$LN" = x; then
8403         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8404 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8406 $as_echo_n "checking for LN... " >&6; }
8407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8408 $as_echo "disabled" >&6; }
8409       else
8410         # Check if the provided tool contains a complete path.
8411         tool_specified="$LN"
8412         tool_basename="${tool_specified##*/}"
8413         if test "x$tool_basename" = "x$tool_specified"; then
8414           # A command without a complete path is provided, search $PATH.
8415           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8416 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8417           # Extract the first word of "$tool_basename", so it can be a program name with args.
8418 set dummy $tool_basename; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_path_LN+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   case $LN in
8425   [\\/]* | ?:[\\/]*)
8426   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8427   ;;
8428   *)
8429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432   IFS=$as_save_IFS
8433   test -z "$as_dir" && as_dir=.
8434     for ac_exec_ext in '' $ac_executable_extensions; do
8435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438     break 2
8439   fi
8440 done
8441   done
8442 IFS=$as_save_IFS
8443 
8444   ;;
8445 esac
8446 fi
8447 LN=$ac_cv_path_LN
8448 if test -n "$LN"; then
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8450 $as_echo "$LN" >&6; }
8451 else
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455 
8456 
8457           if test "x$LN" = x; then
8458             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8459           fi
8460         else
8461           # Otherwise we believe it is a complete path. Use it as it is.
8462           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8463 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8464           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8465 $as_echo_n "checking for LN... " >&6; }
8466           if test ! -x "$tool_specified"; then
8467             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8468 $as_echo "not found" >&6; }
8469             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8470           fi
8471           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8472 $as_echo "$tool_specified" >&6; }
8473         fi
8474       fi
8475     fi
8476 
8477   fi
8478 
8479 
8480 
8481   if test "x$LN" = x; then
8482     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8483   fi
8484 
8485 
8486 
8487 
8488 
8489   # Publish this variable in the help.
8490 
8491 
8492   if [ -z "${LS+x}" ]; then
8493     # The variable is not set by user, try to locate tool using the code snippet
8494     for ac_prog in ls
8495 do
8496   # Extract the first word of "$ac_prog", so it can be a program name with args.
8497 set dummy $ac_prog; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if ${ac_cv_path_LS+:} false; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503   case $LS in
8504   [\\/]* | ?:[\\/]*)
8505   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8506   ;;
8507   *)
8508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513     for ac_exec_ext in '' $ac_executable_extensions; do
8514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520   done
8521 IFS=$as_save_IFS
8522 
8523   ;;
8524 esac
8525 fi
8526 LS=$ac_cv_path_LS
8527 if test -n "$LS"; then
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8529 $as_echo "$LS" >&6; }
8530 else
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534 
8535 
8536   test -n "$LS" && break
8537 done
8538 
8539   else
8540     # The variable is set, but is it from the command line or the environment?
8541 
8542     # Try to remove the string !LS! from our list.
8543     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8544     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8545       # If it failed, the variable was not from the command line. Ignore it,
8546       # but warn the user (except for BASH, which is always set by the calling BASH).
8547       if test "xLS" != xBASH; then
8548         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8549 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8550       fi
8551       # Try to locate tool using the code snippet
8552       for ac_prog in ls
8553 do
8554   # Extract the first word of "$ac_prog", so it can be a program name with args.
8555 set dummy $ac_prog; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_path_LS+:} false; then :
8559   $as_echo_n "(cached) " >&6
8560 else
8561   case $LS in
8562   [\\/]* | ?:[\\/]*)
8563   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8564   ;;
8565   *)
8566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569   IFS=$as_save_IFS
8570   test -z "$as_dir" && as_dir=.
8571     for ac_exec_ext in '' $ac_executable_extensions; do
8572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575     break 2
8576   fi
8577 done
8578   done
8579 IFS=$as_save_IFS
8580 
8581   ;;
8582 esac
8583 fi
8584 LS=$ac_cv_path_LS
8585 if test -n "$LS"; then
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8587 $as_echo "$LS" >&6; }
8588 else
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592 
8593 
8594   test -n "$LS" && break
8595 done
8596 
8597     else
8598       # If it succeeded, then it was overridden by the user. We will use it
8599       # for the tool.
8600 
8601       # First remove it from the list of overridden variables, so we can test
8602       # for unknown variables in the end.
8603       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8604 
8605       # Check if we try to supply an empty value
8606       if test "x$LS" = x; then
8607         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8608 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8610 $as_echo_n "checking for LS... " >&6; }
8611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8612 $as_echo "disabled" >&6; }
8613       else
8614         # Check if the provided tool contains a complete path.
8615         tool_specified="$LS"
8616         tool_basename="${tool_specified##*/}"
8617         if test "x$tool_basename" = "x$tool_specified"; then
8618           # A command without a complete path is provided, search $PATH.
8619           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8620 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8621           # Extract the first word of "$tool_basename", so it can be a program name with args.
8622 set dummy $tool_basename; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if ${ac_cv_path_LS+:} false; then :
8626   $as_echo_n "(cached) " >&6
8627 else
8628   case $LS in
8629   [\\/]* | ?:[\\/]*)
8630   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8631   ;;
8632   *)
8633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636   IFS=$as_save_IFS
8637   test -z "$as_dir" && as_dir=.
8638     for ac_exec_ext in '' $ac_executable_extensions; do
8639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642     break 2
8643   fi
8644 done
8645   done
8646 IFS=$as_save_IFS
8647 
8648   ;;
8649 esac
8650 fi
8651 LS=$ac_cv_path_LS
8652 if test -n "$LS"; then
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8654 $as_echo "$LS" >&6; }
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8658 fi
8659 
8660 
8661           if test "x$LS" = x; then
8662             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8663           fi
8664         else
8665           # Otherwise we believe it is a complete path. Use it as it is.
8666           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8667 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8668           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8669 $as_echo_n "checking for LS... " >&6; }
8670           if test ! -x "$tool_specified"; then
8671             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8672 $as_echo "not found" >&6; }
8673             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8674           fi
8675           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8676 $as_echo "$tool_specified" >&6; }
8677         fi
8678       fi
8679     fi
8680 
8681   fi
8682 
8683 
8684 
8685   if test "x$LS" = x; then
8686     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8687   fi
8688 
8689 
8690 
8691 
8692 
8693   # Publish this variable in the help.
8694 
8695 
8696   if [ -z "${MKDIR+x}" ]; then
8697     # The variable is not set by user, try to locate tool using the code snippet
8698     for ac_prog in mkdir
8699 do
8700   # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_path_MKDIR+:} false; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   case $MKDIR in
8708   [\\/]* | ?:[\\/]*)
8709   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8710   ;;
8711   *)
8712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   test -z "$as_dir" && as_dir=.
8717     for ac_exec_ext in '' $ac_executable_extensions; do
8718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721     break 2
8722   fi
8723 done
8724   done
8725 IFS=$as_save_IFS
8726 
8727   ;;
8728 esac
8729 fi
8730 MKDIR=$ac_cv_path_MKDIR
8731 if test -n "$MKDIR"; then
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8733 $as_echo "$MKDIR" >&6; }
8734 else
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738 
8739 
8740   test -n "$MKDIR" && break
8741 done
8742 
8743   else
8744     # The variable is set, but is it from the command line or the environment?
8745 
8746     # Try to remove the string !MKDIR! from our list.
8747     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8748     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8749       # If it failed, the variable was not from the command line. Ignore it,
8750       # but warn the user (except for BASH, which is always set by the calling BASH).
8751       if test "xMKDIR" != xBASH; then
8752         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8753 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8754       fi
8755       # Try to locate tool using the code snippet
8756       for ac_prog in mkdir
8757 do
8758   # Extract the first word of "$ac_prog", so it can be a program name with args.
8759 set dummy $ac_prog; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_path_MKDIR+:} false; then :
8763   $as_echo_n "(cached) " >&6
8764 else
8765   case $MKDIR in
8766   [\\/]* | ?:[\\/]*)
8767   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8768   ;;
8769   *)
8770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8772 do
8773   IFS=$as_save_IFS
8774   test -z "$as_dir" && as_dir=.
8775     for ac_exec_ext in '' $ac_executable_extensions; do
8776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779     break 2
8780   fi
8781 done
8782   done
8783 IFS=$as_save_IFS
8784 
8785   ;;
8786 esac
8787 fi
8788 MKDIR=$ac_cv_path_MKDIR
8789 if test -n "$MKDIR"; then
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8791 $as_echo "$MKDIR" >&6; }
8792 else
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796 
8797 
8798   test -n "$MKDIR" && break
8799 done
8800 
8801     else
8802       # If it succeeded, then it was overridden by the user. We will use it
8803       # for the tool.
8804 
8805       # First remove it from the list of overridden variables, so we can test
8806       # for unknown variables in the end.
8807       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8808 
8809       # Check if we try to supply an empty value
8810       if test "x$MKDIR" = x; then
8811         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8812 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8814 $as_echo_n "checking for MKDIR... " >&6; }
8815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8816 $as_echo "disabled" >&6; }
8817       else
8818         # Check if the provided tool contains a complete path.
8819         tool_specified="$MKDIR"
8820         tool_basename="${tool_specified##*/}"
8821         if test "x$tool_basename" = "x$tool_specified"; then
8822           # A command without a complete path is provided, search $PATH.
8823           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8824 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8825           # Extract the first word of "$tool_basename", so it can be a program name with args.
8826 set dummy $tool_basename; ac_word=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if ${ac_cv_path_MKDIR+:} false; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   case $MKDIR in
8833   [\\/]* | ?:[\\/]*)
8834   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8835   ;;
8836   *)
8837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840   IFS=$as_save_IFS
8841   test -z "$as_dir" && as_dir=.
8842     for ac_exec_ext in '' $ac_executable_extensions; do
8843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846     break 2
8847   fi
8848 done
8849   done
8850 IFS=$as_save_IFS
8851 
8852   ;;
8853 esac
8854 fi
8855 MKDIR=$ac_cv_path_MKDIR
8856 if test -n "$MKDIR"; then
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8858 $as_echo "$MKDIR" >&6; }
8859 else
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863 
8864 
8865           if test "x$MKDIR" = x; then
8866             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8867           fi
8868         else
8869           # Otherwise we believe it is a complete path. Use it as it is.
8870           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8871 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8872           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8873 $as_echo_n "checking for MKDIR... " >&6; }
8874           if test ! -x "$tool_specified"; then
8875             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8876 $as_echo "not found" >&6; }
8877             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8878           fi
8879           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8880 $as_echo "$tool_specified" >&6; }
8881         fi
8882       fi
8883     fi
8884 
8885   fi
8886 
8887 
8888 
8889   if test "x$MKDIR" = x; then
8890     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8891   fi
8892 
8893 
8894 
8895 
8896 
8897   # Publish this variable in the help.
8898 
8899 
8900   if [ -z "${MKTEMP+x}" ]; then
8901     # The variable is not set by user, try to locate tool using the code snippet
8902     for ac_prog in mktemp
8903 do
8904   # Extract the first word of "$ac_prog", so it can be a program name with args.
8905 set dummy $ac_prog; ac_word=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if ${ac_cv_path_MKTEMP+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   case $MKTEMP in
8912   [\\/]* | ?:[\\/]*)
8913   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8914   ;;
8915   *)
8916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   test -z "$as_dir" && as_dir=.
8921     for ac_exec_ext in '' $ac_executable_extensions; do
8922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925     break 2
8926   fi
8927 done
8928   done
8929 IFS=$as_save_IFS
8930 
8931   ;;
8932 esac
8933 fi
8934 MKTEMP=$ac_cv_path_MKTEMP
8935 if test -n "$MKTEMP"; then
8936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8937 $as_echo "$MKTEMP" >&6; }
8938 else
8939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8941 fi
8942 
8943 
8944   test -n "$MKTEMP" && break
8945 done
8946 
8947   else
8948     # The variable is set, but is it from the command line or the environment?
8949 
8950     # Try to remove the string !MKTEMP! from our list.
8951     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8952     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8953       # If it failed, the variable was not from the command line. Ignore it,
8954       # but warn the user (except for BASH, which is always set by the calling BASH).
8955       if test "xMKTEMP" != xBASH; then
8956         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8957 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8958       fi
8959       # Try to locate tool using the code snippet
8960       for ac_prog in mktemp
8961 do
8962   # Extract the first word of "$ac_prog", so it can be a program name with args.
8963 set dummy $ac_prog; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_path_MKTEMP+:} false; then :
8967   $as_echo_n "(cached) " >&6
8968 else
8969   case $MKTEMP in
8970   [\\/]* | ?:[\\/]*)
8971   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8972   ;;
8973   *)
8974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977   IFS=$as_save_IFS
8978   test -z "$as_dir" && as_dir=.
8979     for ac_exec_ext in '' $ac_executable_extensions; do
8980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983     break 2
8984   fi
8985 done
8986   done
8987 IFS=$as_save_IFS
8988 
8989   ;;
8990 esac
8991 fi
8992 MKTEMP=$ac_cv_path_MKTEMP
8993 if test -n "$MKTEMP"; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8995 $as_echo "$MKTEMP" >&6; }
8996 else
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
8999 fi
9000 
9001 
9002   test -n "$MKTEMP" && break
9003 done
9004 
9005     else
9006       # If it succeeded, then it was overridden by the user. We will use it
9007       # for the tool.
9008 
9009       # First remove it from the list of overridden variables, so we can test
9010       # for unknown variables in the end.
9011       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9012 
9013       # Check if we try to supply an empty value
9014       if test "x$MKTEMP" = x; then
9015         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9016 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9018 $as_echo_n "checking for MKTEMP... " >&6; }
9019         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9020 $as_echo "disabled" >&6; }
9021       else
9022         # Check if the provided tool contains a complete path.
9023         tool_specified="$MKTEMP"
9024         tool_basename="${tool_specified##*/}"
9025         if test "x$tool_basename" = "x$tool_specified"; then
9026           # A command without a complete path is provided, search $PATH.
9027           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9028 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9029           # Extract the first word of "$tool_basename", so it can be a program name with args.
9030 set dummy $tool_basename; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_path_MKTEMP+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   case $MKTEMP in
9037   [\\/]* | ?:[\\/]*)
9038   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9039   ;;
9040   *)
9041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046     for ac_exec_ext in '' $ac_executable_extensions; do
9047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053   done
9054 IFS=$as_save_IFS
9055 
9056   ;;
9057 esac
9058 fi
9059 MKTEMP=$ac_cv_path_MKTEMP
9060 if test -n "$MKTEMP"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9062 $as_echo "$MKTEMP" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067 
9068 
9069           if test "x$MKTEMP" = x; then
9070             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9071           fi
9072         else
9073           # Otherwise we believe it is a complete path. Use it as it is.
9074           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9075 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9076           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9077 $as_echo_n "checking for MKTEMP... " >&6; }
9078           if test ! -x "$tool_specified"; then
9079             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9080 $as_echo "not found" >&6; }
9081             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9082           fi
9083           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9084 $as_echo "$tool_specified" >&6; }
9085         fi
9086       fi
9087     fi
9088 
9089   fi
9090 
9091 
9092 
9093   if test "x$MKTEMP" = x; then
9094     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9095   fi
9096 
9097 
9098 
9099 
9100 
9101   # Publish this variable in the help.
9102 
9103 
9104   if [ -z "${MV+x}" ]; then
9105     # The variable is not set by user, try to locate tool using the code snippet
9106     for ac_prog in mv
9107 do
9108   # Extract the first word of "$ac_prog", so it can be a program name with args.
9109 set dummy $ac_prog; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_path_MV+:} false; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   case $MV in
9116   [\\/]* | ?:[\\/]*)
9117   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9118   ;;
9119   *)
9120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123   IFS=$as_save_IFS
9124   test -z "$as_dir" && as_dir=.
9125     for ac_exec_ext in '' $ac_executable_extensions; do
9126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129     break 2
9130   fi
9131 done
9132   done
9133 IFS=$as_save_IFS
9134 
9135   ;;
9136 esac
9137 fi
9138 MV=$ac_cv_path_MV
9139 if test -n "$MV"; then
9140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9141 $as_echo "$MV" >&6; }
9142 else
9143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145 fi
9146 
9147 
9148   test -n "$MV" && break
9149 done
9150 
9151   else
9152     # The variable is set, but is it from the command line or the environment?
9153 
9154     # Try to remove the string !MV! from our list.
9155     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9156     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9157       # If it failed, the variable was not from the command line. Ignore it,
9158       # but warn the user (except for BASH, which is always set by the calling BASH).
9159       if test "xMV" != xBASH; then
9160         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9161 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9162       fi
9163       # Try to locate tool using the code snippet
9164       for ac_prog in mv
9165 do
9166   # Extract the first word of "$ac_prog", so it can be a program name with args.
9167 set dummy $ac_prog; ac_word=$2
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169 $as_echo_n "checking for $ac_word... " >&6; }
9170 if ${ac_cv_path_MV+:} false; then :
9171   $as_echo_n "(cached) " >&6
9172 else
9173   case $MV in
9174   [\\/]* | ?:[\\/]*)
9175   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9176   ;;
9177   *)
9178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 for as_dir in $PATH
9180 do
9181   IFS=$as_save_IFS
9182   test -z "$as_dir" && as_dir=.
9183     for ac_exec_ext in '' $ac_executable_extensions; do
9184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9185     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187     break 2
9188   fi
9189 done
9190   done
9191 IFS=$as_save_IFS
9192 
9193   ;;
9194 esac
9195 fi
9196 MV=$ac_cv_path_MV
9197 if test -n "$MV"; then
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9199 $as_echo "$MV" >&6; }
9200 else
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9203 fi
9204 
9205 
9206   test -n "$MV" && break
9207 done
9208 
9209     else
9210       # If it succeeded, then it was overridden by the user. We will use it
9211       # for the tool.
9212 
9213       # First remove it from the list of overridden variables, so we can test
9214       # for unknown variables in the end.
9215       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9216 
9217       # Check if we try to supply an empty value
9218       if test "x$MV" = x; then
9219         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9220 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9222 $as_echo_n "checking for MV... " >&6; }
9223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9224 $as_echo "disabled" >&6; }
9225       else
9226         # Check if the provided tool contains a complete path.
9227         tool_specified="$MV"
9228         tool_basename="${tool_specified##*/}"
9229         if test "x$tool_basename" = "x$tool_specified"; then
9230           # A command without a complete path is provided, search $PATH.
9231           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9232 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9233           # Extract the first word of "$tool_basename", so it can be a program name with args.
9234 set dummy $tool_basename; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if ${ac_cv_path_MV+:} false; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   case $MV in
9241   [\\/]* | ?:[\\/]*)
9242   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9243   ;;
9244   *)
9245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248   IFS=$as_save_IFS
9249   test -z "$as_dir" && as_dir=.
9250     for ac_exec_ext in '' $ac_executable_extensions; do
9251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254     break 2
9255   fi
9256 done
9257   done
9258 IFS=$as_save_IFS
9259 
9260   ;;
9261 esac
9262 fi
9263 MV=$ac_cv_path_MV
9264 if test -n "$MV"; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9266 $as_echo "$MV" >&6; }
9267 else
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271 
9272 
9273           if test "x$MV" = x; then
9274             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9275           fi
9276         else
9277           # Otherwise we believe it is a complete path. Use it as it is.
9278           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9279 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9280           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9281 $as_echo_n "checking for MV... " >&6; }
9282           if test ! -x "$tool_specified"; then
9283             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9284 $as_echo "not found" >&6; }
9285             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9286           fi
9287           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9288 $as_echo "$tool_specified" >&6; }
9289         fi
9290       fi
9291     fi
9292 
9293   fi
9294 
9295 
9296 
9297   if test "x$MV" = x; then
9298     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9299   fi
9300 
9301 
9302 
9303 
9304 
9305   # Publish this variable in the help.
9306 
9307 
9308   if [ -z "${NAWK+x}" ]; then
9309     # The variable is not set by user, try to locate tool using the code snippet
9310     for ac_prog in nawk gawk awk
9311 do
9312   # Extract the first word of "$ac_prog", so it can be a program name with args.
9313 set dummy $ac_prog; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_path_NAWK+:} false; then :
9317   $as_echo_n "(cached) " >&6
9318 else
9319   case $NAWK in
9320   [\\/]* | ?:[\\/]*)
9321   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9322   ;;
9323   *)
9324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327   IFS=$as_save_IFS
9328   test -z "$as_dir" && as_dir=.
9329     for ac_exec_ext in '' $ac_executable_extensions; do
9330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9331     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333     break 2
9334   fi
9335 done
9336   done
9337 IFS=$as_save_IFS
9338 
9339   ;;
9340 esac
9341 fi
9342 NAWK=$ac_cv_path_NAWK
9343 if test -n "$NAWK"; then
9344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9345 $as_echo "$NAWK" >&6; }
9346 else
9347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350 
9351 
9352   test -n "$NAWK" && break
9353 done
9354 
9355   else
9356     # The variable is set, but is it from the command line or the environment?
9357 
9358     # Try to remove the string !NAWK! from our list.
9359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9361       # If it failed, the variable was not from the command line. Ignore it,
9362       # but warn the user (except for BASH, which is always set by the calling BASH).
9363       if test "xNAWK" != xBASH; then
9364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9365 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9366       fi
9367       # Try to locate tool using the code snippet
9368       for ac_prog in nawk gawk awk
9369 do
9370   # Extract the first word of "$ac_prog", so it can be a program name with args.
9371 set dummy $ac_prog; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_path_NAWK+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   case $NAWK in
9378   [\\/]* | ?:[\\/]*)
9379   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9380   ;;
9381   *)
9382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9384 do
9385   IFS=$as_save_IFS
9386   test -z "$as_dir" && as_dir=.
9387     for ac_exec_ext in '' $ac_executable_extensions; do
9388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9389     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391     break 2
9392   fi
9393 done
9394   done
9395 IFS=$as_save_IFS
9396 
9397   ;;
9398 esac
9399 fi
9400 NAWK=$ac_cv_path_NAWK
9401 if test -n "$NAWK"; then
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9403 $as_echo "$NAWK" >&6; }
9404 else
9405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9407 fi
9408 
9409 
9410   test -n "$NAWK" && break
9411 done
9412 
9413     else
9414       # If it succeeded, then it was overridden by the user. We will use it
9415       # for the tool.
9416 
9417       # First remove it from the list of overridden variables, so we can test
9418       # for unknown variables in the end.
9419       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9420 
9421       # Check if we try to supply an empty value
9422       if test "x$NAWK" = x; then
9423         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9424 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9426 $as_echo_n "checking for NAWK... " >&6; }
9427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9428 $as_echo "disabled" >&6; }
9429       else
9430         # Check if the provided tool contains a complete path.
9431         tool_specified="$NAWK"
9432         tool_basename="${tool_specified##*/}"
9433         if test "x$tool_basename" = "x$tool_specified"; then
9434           # A command without a complete path is provided, search $PATH.
9435           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9436 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9437           # Extract the first word of "$tool_basename", so it can be a program name with args.
9438 set dummy $tool_basename; ac_word=$2
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440 $as_echo_n "checking for $ac_word... " >&6; }
9441 if ${ac_cv_path_NAWK+:} false; then :
9442   $as_echo_n "(cached) " >&6
9443 else
9444   case $NAWK in
9445   [\\/]* | ?:[\\/]*)
9446   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9447   ;;
9448   *)
9449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9451 do
9452   IFS=$as_save_IFS
9453   test -z "$as_dir" && as_dir=.
9454     for ac_exec_ext in '' $ac_executable_extensions; do
9455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9456     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458     break 2
9459   fi
9460 done
9461   done
9462 IFS=$as_save_IFS
9463 
9464   ;;
9465 esac
9466 fi
9467 NAWK=$ac_cv_path_NAWK
9468 if test -n "$NAWK"; then
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9470 $as_echo "$NAWK" >&6; }
9471 else
9472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9474 fi
9475 
9476 
9477           if test "x$NAWK" = x; then
9478             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9479           fi
9480         else
9481           # Otherwise we believe it is a complete path. Use it as it is.
9482           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9483 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9484           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9485 $as_echo_n "checking for NAWK... " >&6; }
9486           if test ! -x "$tool_specified"; then
9487             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9488 $as_echo "not found" >&6; }
9489             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9490           fi
9491           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9492 $as_echo "$tool_specified" >&6; }
9493         fi
9494       fi
9495     fi
9496 
9497   fi
9498 
9499 
9500 
9501   if test "x$NAWK" = x; then
9502     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9503   fi
9504 
9505 
9506 
9507 
9508 
9509   # Publish this variable in the help.
9510 
9511 
9512   if [ -z "${PRINTF+x}" ]; then
9513     # The variable is not set by user, try to locate tool using the code snippet
9514     for ac_prog in printf
9515 do
9516   # Extract the first word of "$ac_prog", so it can be a program name with args.
9517 set dummy $ac_prog; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_path_PRINTF+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   case $PRINTF in
9524   [\\/]* | ?:[\\/]*)
9525   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9526   ;;
9527   *)
9528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9530 do
9531   IFS=$as_save_IFS
9532   test -z "$as_dir" && as_dir=.
9533     for ac_exec_ext in '' $ac_executable_extensions; do
9534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537     break 2
9538   fi
9539 done
9540   done
9541 IFS=$as_save_IFS
9542 
9543   ;;
9544 esac
9545 fi
9546 PRINTF=$ac_cv_path_PRINTF
9547 if test -n "$PRINTF"; then
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9549 $as_echo "$PRINTF" >&6; }
9550 else
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554 
9555 
9556   test -n "$PRINTF" && break
9557 done
9558 
9559   else
9560     # The variable is set, but is it from the command line or the environment?
9561 
9562     # Try to remove the string !PRINTF! from our list.
9563     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9564     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9565       # If it failed, the variable was not from the command line. Ignore it,
9566       # but warn the user (except for BASH, which is always set by the calling BASH).
9567       if test "xPRINTF" != xBASH; then
9568         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9569 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9570       fi
9571       # Try to locate tool using the code snippet
9572       for ac_prog in printf
9573 do
9574   # Extract the first word of "$ac_prog", so it can be a program name with args.
9575 set dummy $ac_prog; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_PRINTF+:} false; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581   case $PRINTF in
9582   [\\/]* | ?:[\\/]*)
9583   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9584   ;;
9585   *)
9586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9588 do
9589   IFS=$as_save_IFS
9590   test -z "$as_dir" && as_dir=.
9591     for ac_exec_ext in '' $ac_executable_extensions; do
9592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9593     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595     break 2
9596   fi
9597 done
9598   done
9599 IFS=$as_save_IFS
9600 
9601   ;;
9602 esac
9603 fi
9604 PRINTF=$ac_cv_path_PRINTF
9605 if test -n "$PRINTF"; then
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9607 $as_echo "$PRINTF" >&6; }
9608 else
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9611 fi
9612 
9613 
9614   test -n "$PRINTF" && break
9615 done
9616 
9617     else
9618       # If it succeeded, then it was overridden by the user. We will use it
9619       # for the tool.
9620 
9621       # First remove it from the list of overridden variables, so we can test
9622       # for unknown variables in the end.
9623       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9624 
9625       # Check if we try to supply an empty value
9626       if test "x$PRINTF" = x; then
9627         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9628 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9630 $as_echo_n "checking for PRINTF... " >&6; }
9631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9632 $as_echo "disabled" >&6; }
9633       else
9634         # Check if the provided tool contains a complete path.
9635         tool_specified="$PRINTF"
9636         tool_basename="${tool_specified##*/}"
9637         if test "x$tool_basename" = "x$tool_specified"; then
9638           # A command without a complete path is provided, search $PATH.
9639           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9640 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9641           # Extract the first word of "$tool_basename", so it can be a program name with args.
9642 set dummy $tool_basename; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_PRINTF+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   case $PRINTF in
9649   [\\/]* | ?:[\\/]*)
9650   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9651   ;;
9652   *)
9653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656   IFS=$as_save_IFS
9657   test -z "$as_dir" && as_dir=.
9658     for ac_exec_ext in '' $ac_executable_extensions; do
9659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662     break 2
9663   fi
9664 done
9665   done
9666 IFS=$as_save_IFS
9667 
9668   ;;
9669 esac
9670 fi
9671 PRINTF=$ac_cv_path_PRINTF
9672 if test -n "$PRINTF"; then
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9674 $as_echo "$PRINTF" >&6; }
9675 else
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9679 
9680 
9681           if test "x$PRINTF" = x; then
9682             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9683           fi
9684         else
9685           # Otherwise we believe it is a complete path. Use it as it is.
9686           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9687 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9688           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9689 $as_echo_n "checking for PRINTF... " >&6; }
9690           if test ! -x "$tool_specified"; then
9691             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9692 $as_echo "not found" >&6; }
9693             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9694           fi
9695           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9696 $as_echo "$tool_specified" >&6; }
9697         fi
9698       fi
9699     fi
9700 
9701   fi
9702 
9703 
9704 
9705   if test "x$PRINTF" = x; then
9706     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9707   fi
9708 
9709 
9710 
9711 
9712 
9713   # Publish this variable in the help.
9714 
9715 
9716   if [ -z "${RM+x}" ]; then
9717     # The variable is not set by user, try to locate tool using the code snippet
9718     for ac_prog in rm
9719 do
9720   # Extract the first word of "$ac_prog", so it can be a program name with args.
9721 set dummy $ac_prog; ac_word=$2
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if ${ac_cv_path_RM+:} false; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   case $RM in
9728   [\\/]* | ?:[\\/]*)
9729   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9730   ;;
9731   *)
9732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 for as_dir in $PATH
9734 do
9735   IFS=$as_save_IFS
9736   test -z "$as_dir" && as_dir=.
9737     for ac_exec_ext in '' $ac_executable_extensions; do
9738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9739     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741     break 2
9742   fi
9743 done
9744   done
9745 IFS=$as_save_IFS
9746 
9747   ;;
9748 esac
9749 fi
9750 RM=$ac_cv_path_RM
9751 if test -n "$RM"; then
9752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9753 $as_echo "$RM" >&6; }
9754 else
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9757 fi
9758 
9759 
9760   test -n "$RM" && break
9761 done
9762 
9763   else
9764     # The variable is set, but is it from the command line or the environment?
9765 
9766     # Try to remove the string !RM! from our list.
9767     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9768     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9769       # If it failed, the variable was not from the command line. Ignore it,
9770       # but warn the user (except for BASH, which is always set by the calling BASH).
9771       if test "xRM" != xBASH; then
9772         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9773 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9774       fi
9775       # Try to locate tool using the code snippet
9776       for ac_prog in rm
9777 do
9778   # Extract the first word of "$ac_prog", so it can be a program name with args.
9779 set dummy $ac_prog; ac_word=$2
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781 $as_echo_n "checking for $ac_word... " >&6; }
9782 if ${ac_cv_path_RM+:} false; then :
9783   $as_echo_n "(cached) " >&6
9784 else
9785   case $RM in
9786   [\\/]* | ?:[\\/]*)
9787   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9788   ;;
9789   *)
9790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9792 do
9793   IFS=$as_save_IFS
9794   test -z "$as_dir" && as_dir=.
9795     for ac_exec_ext in '' $ac_executable_extensions; do
9796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9797     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799     break 2
9800   fi
9801 done
9802   done
9803 IFS=$as_save_IFS
9804 
9805   ;;
9806 esac
9807 fi
9808 RM=$ac_cv_path_RM
9809 if test -n "$RM"; then
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9811 $as_echo "$RM" >&6; }
9812 else
9813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9815 fi
9816 
9817 
9818   test -n "$RM" && break
9819 done
9820 
9821     else
9822       # If it succeeded, then it was overridden by the user. We will use it
9823       # for the tool.
9824 
9825       # First remove it from the list of overridden variables, so we can test
9826       # for unknown variables in the end.
9827       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9828 
9829       # Check if we try to supply an empty value
9830       if test "x$RM" = x; then
9831         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9832 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9834 $as_echo_n "checking for RM... " >&6; }
9835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9836 $as_echo "disabled" >&6; }
9837       else
9838         # Check if the provided tool contains a complete path.
9839         tool_specified="$RM"
9840         tool_basename="${tool_specified##*/}"
9841         if test "x$tool_basename" = "x$tool_specified"; then
9842           # A command without a complete path is provided, search $PATH.
9843           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9844 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9845           # Extract the first word of "$tool_basename", so it can be a program name with args.
9846 set dummy $tool_basename; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_path_RM+:} false; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   case $RM in
9853   [\\/]* | ?:[\\/]*)
9854   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9855   ;;
9856   *)
9857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9859 do
9860   IFS=$as_save_IFS
9861   test -z "$as_dir" && as_dir=.
9862     for ac_exec_ext in '' $ac_executable_extensions; do
9863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9864     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866     break 2
9867   fi
9868 done
9869   done
9870 IFS=$as_save_IFS
9871 
9872   ;;
9873 esac
9874 fi
9875 RM=$ac_cv_path_RM
9876 if test -n "$RM"; then
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9878 $as_echo "$RM" >&6; }
9879 else
9880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9882 fi
9883 
9884 
9885           if test "x$RM" = x; then
9886             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9887           fi
9888         else
9889           # Otherwise we believe it is a complete path. Use it as it is.
9890           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9891 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9892           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9893 $as_echo_n "checking for RM... " >&6; }
9894           if test ! -x "$tool_specified"; then
9895             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9896 $as_echo "not found" >&6; }
9897             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9898           fi
9899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9900 $as_echo "$tool_specified" >&6; }
9901         fi
9902       fi
9903     fi
9904 
9905   fi
9906 
9907 
9908 
9909   if test "x$RM" = x; then
9910     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9911   fi
9912 
9913 
9914 
9915 
9916 
9917   # Publish this variable in the help.
9918 
9919 
9920   if [ -z "${RMDIR+x}" ]; then
9921     # The variable is not set by user, try to locate tool using the code snippet
9922     for ac_prog in rmdir
9923 do
9924   # Extract the first word of "$ac_prog", so it can be a program name with args.
9925 set dummy $ac_prog; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if ${ac_cv_path_RMDIR+:} false; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931   case $RMDIR in
9932   [\\/]* | ?:[\\/]*)
9933   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9934   ;;
9935   *)
9936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939   IFS=$as_save_IFS
9940   test -z "$as_dir" && as_dir=.
9941     for ac_exec_ext in '' $ac_executable_extensions; do
9942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945     break 2
9946   fi
9947 done
9948   done
9949 IFS=$as_save_IFS
9950 
9951   ;;
9952 esac
9953 fi
9954 RMDIR=$ac_cv_path_RMDIR
9955 if test -n "$RMDIR"; then
9956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9957 $as_echo "$RMDIR" >&6; }
9958 else
9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9961 fi
9962 
9963 
9964   test -n "$RMDIR" && break
9965 done
9966 
9967   else
9968     # The variable is set, but is it from the command line or the environment?
9969 
9970     # Try to remove the string !RMDIR! from our list.
9971     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9972     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9973       # If it failed, the variable was not from the command line. Ignore it,
9974       # but warn the user (except for BASH, which is always set by the calling BASH).
9975       if test "xRMDIR" != xBASH; then
9976         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9977 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9978       fi
9979       # Try to locate tool using the code snippet
9980       for ac_prog in rmdir
9981 do
9982   # Extract the first word of "$ac_prog", so it can be a program name with args.
9983 set dummy $ac_prog; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_RMDIR+:} false; then :
9987   $as_echo_n "(cached) " >&6
9988 else
9989   case $RMDIR in
9990   [\\/]* | ?:[\\/]*)
9991   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9992   ;;
9993   *)
9994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997   IFS=$as_save_IFS
9998   test -z "$as_dir" && as_dir=.
9999     for ac_exec_ext in '' $ac_executable_extensions; do
10000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003     break 2
10004   fi
10005 done
10006   done
10007 IFS=$as_save_IFS
10008 
10009   ;;
10010 esac
10011 fi
10012 RMDIR=$ac_cv_path_RMDIR
10013 if test -n "$RMDIR"; then
10014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10015 $as_echo "$RMDIR" >&6; }
10016 else
10017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10019 fi
10020 
10021 
10022   test -n "$RMDIR" && break
10023 done
10024 
10025     else
10026       # If it succeeded, then it was overridden by the user. We will use it
10027       # for the tool.
10028 
10029       # First remove it from the list of overridden variables, so we can test
10030       # for unknown variables in the end.
10031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10032 
10033       # Check if we try to supply an empty value
10034       if test "x$RMDIR" = x; then
10035         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10036 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10038 $as_echo_n "checking for RMDIR... " >&6; }
10039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10040 $as_echo "disabled" >&6; }
10041       else
10042         # Check if the provided tool contains a complete path.
10043         tool_specified="$RMDIR"
10044         tool_basename="${tool_specified##*/}"
10045         if test "x$tool_basename" = "x$tool_specified"; then
10046           # A command without a complete path is provided, search $PATH.
10047           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10048 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10049           # Extract the first word of "$tool_basename", so it can be a program name with args.
10050 set dummy $tool_basename; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if ${ac_cv_path_RMDIR+:} false; then :
10054   $as_echo_n "(cached) " >&6
10055 else
10056   case $RMDIR in
10057   [\\/]* | ?:[\\/]*)
10058   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10059   ;;
10060   *)
10061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10063 do
10064   IFS=$as_save_IFS
10065   test -z "$as_dir" && as_dir=.
10066     for ac_exec_ext in '' $ac_executable_extensions; do
10067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10068     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070     break 2
10071   fi
10072 done
10073   done
10074 IFS=$as_save_IFS
10075 
10076   ;;
10077 esac
10078 fi
10079 RMDIR=$ac_cv_path_RMDIR
10080 if test -n "$RMDIR"; then
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10082 $as_echo "$RMDIR" >&6; }
10083 else
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085 $as_echo "no" >&6; }
10086 fi
10087 
10088 
10089           if test "x$RMDIR" = x; then
10090             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10091           fi
10092         else
10093           # Otherwise we believe it is a complete path. Use it as it is.
10094           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10095 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10096           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10097 $as_echo_n "checking for RMDIR... " >&6; }
10098           if test ! -x "$tool_specified"; then
10099             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10100 $as_echo "not found" >&6; }
10101             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10102           fi
10103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10104 $as_echo "$tool_specified" >&6; }
10105         fi
10106       fi
10107     fi
10108 
10109   fi
10110 
10111 
10112 
10113   if test "x$RMDIR" = x; then
10114     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10115   fi
10116 
10117 
10118 
10119 
10120 
10121   # Publish this variable in the help.
10122 
10123 
10124   if [ -z "${SH+x}" ]; then
10125     # The variable is not set by user, try to locate tool using the code snippet
10126     for ac_prog in sh
10127 do
10128   # Extract the first word of "$ac_prog", so it can be a program name with args.
10129 set dummy $ac_prog; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_path_SH+:} false; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   case $SH in
10136   [\\/]* | ?:[\\/]*)
10137   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10138   ;;
10139   *)
10140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10142 do
10143   IFS=$as_save_IFS
10144   test -z "$as_dir" && as_dir=.
10145     for ac_exec_ext in '' $ac_executable_extensions; do
10146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10147     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149     break 2
10150   fi
10151 done
10152   done
10153 IFS=$as_save_IFS
10154 
10155   ;;
10156 esac
10157 fi
10158 SH=$ac_cv_path_SH
10159 if test -n "$SH"; then
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10161 $as_echo "$SH" >&6; }
10162 else
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 fi
10166 
10167 
10168   test -n "$SH" && break
10169 done
10170 
10171   else
10172     # The variable is set, but is it from the command line or the environment?
10173 
10174     # Try to remove the string !SH! from our list.
10175     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10176     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10177       # If it failed, the variable was not from the command line. Ignore it,
10178       # but warn the user (except for BASH, which is always set by the calling BASH).
10179       if test "xSH" != xBASH; then
10180         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10181 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10182       fi
10183       # Try to locate tool using the code snippet
10184       for ac_prog in sh
10185 do
10186   # Extract the first word of "$ac_prog", so it can be a program name with args.
10187 set dummy $ac_prog; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_SH+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   case $SH in
10194   [\\/]* | ?:[\\/]*)
10195   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10196   ;;
10197   *)
10198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201   IFS=$as_save_IFS
10202   test -z "$as_dir" && as_dir=.
10203     for ac_exec_ext in '' $ac_executable_extensions; do
10204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207     break 2
10208   fi
10209 done
10210   done
10211 IFS=$as_save_IFS
10212 
10213   ;;
10214 esac
10215 fi
10216 SH=$ac_cv_path_SH
10217 if test -n "$SH"; then
10218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10219 $as_echo "$SH" >&6; }
10220 else
10221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224 
10225 
10226   test -n "$SH" && break
10227 done
10228 
10229     else
10230       # If it succeeded, then it was overridden by the user. We will use it
10231       # for the tool.
10232 
10233       # First remove it from the list of overridden variables, so we can test
10234       # for unknown variables in the end.
10235       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10236 
10237       # Check if we try to supply an empty value
10238       if test "x$SH" = x; then
10239         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10240 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10242 $as_echo_n "checking for SH... " >&6; }
10243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10244 $as_echo "disabled" >&6; }
10245       else
10246         # Check if the provided tool contains a complete path.
10247         tool_specified="$SH"
10248         tool_basename="${tool_specified##*/}"
10249         if test "x$tool_basename" = "x$tool_specified"; then
10250           # A command without a complete path is provided, search $PATH.
10251           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10252 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10253           # Extract the first word of "$tool_basename", so it can be a program name with args.
10254 set dummy $tool_basename; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if ${ac_cv_path_SH+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   case $SH in
10261   [\\/]* | ?:[\\/]*)
10262   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10263   ;;
10264   *)
10265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10267 do
10268   IFS=$as_save_IFS
10269   test -z "$as_dir" && as_dir=.
10270     for ac_exec_ext in '' $ac_executable_extensions; do
10271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274     break 2
10275   fi
10276 done
10277   done
10278 IFS=$as_save_IFS
10279 
10280   ;;
10281 esac
10282 fi
10283 SH=$ac_cv_path_SH
10284 if test -n "$SH"; then
10285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10286 $as_echo "$SH" >&6; }
10287 else
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289 $as_echo "no" >&6; }
10290 fi
10291 
10292 
10293           if test "x$SH" = x; then
10294             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10295           fi
10296         else
10297           # Otherwise we believe it is a complete path. Use it as it is.
10298           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10299 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10300           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10301 $as_echo_n "checking for SH... " >&6; }
10302           if test ! -x "$tool_specified"; then
10303             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10304 $as_echo "not found" >&6; }
10305             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10306           fi
10307           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10308 $as_echo "$tool_specified" >&6; }
10309         fi
10310       fi
10311     fi
10312 
10313   fi
10314 
10315 
10316 
10317   if test "x$SH" = x; then
10318     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10319   fi
10320 
10321 
10322 
10323 
10324 
10325   # Publish this variable in the help.
10326 
10327 
10328   if [ -z "${SORT+x}" ]; then
10329     # The variable is not set by user, try to locate tool using the code snippet
10330     for ac_prog in sort
10331 do
10332   # Extract the first word of "$ac_prog", so it can be a program name with args.
10333 set dummy $ac_prog; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_path_SORT+:} false; then :
10337   $as_echo_n "(cached) " >&6
10338 else
10339   case $SORT in
10340   [\\/]* | ?:[\\/]*)
10341   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10342   ;;
10343   *)
10344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10346 do
10347   IFS=$as_save_IFS
10348   test -z "$as_dir" && as_dir=.
10349     for ac_exec_ext in '' $ac_executable_extensions; do
10350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353     break 2
10354   fi
10355 done
10356   done
10357 IFS=$as_save_IFS
10358 
10359   ;;
10360 esac
10361 fi
10362 SORT=$ac_cv_path_SORT
10363 if test -n "$SORT"; then
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10365 $as_echo "$SORT" >&6; }
10366 else
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10369 fi
10370 
10371 
10372   test -n "$SORT" && break
10373 done
10374 
10375   else
10376     # The variable is set, but is it from the command line or the environment?
10377 
10378     # Try to remove the string !SORT! from our list.
10379     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10380     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10381       # If it failed, the variable was not from the command line. Ignore it,
10382       # but warn the user (except for BASH, which is always set by the calling BASH).
10383       if test "xSORT" != xBASH; then
10384         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10385 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10386       fi
10387       # Try to locate tool using the code snippet
10388       for ac_prog in sort
10389 do
10390   # Extract the first word of "$ac_prog", so it can be a program name with args.
10391 set dummy $ac_prog; ac_word=$2
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393 $as_echo_n "checking for $ac_word... " >&6; }
10394 if ${ac_cv_path_SORT+:} false; then :
10395   $as_echo_n "(cached) " >&6
10396 else
10397   case $SORT in
10398   [\\/]* | ?:[\\/]*)
10399   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10400   ;;
10401   *)
10402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405   IFS=$as_save_IFS
10406   test -z "$as_dir" && as_dir=.
10407     for ac_exec_ext in '' $ac_executable_extensions; do
10408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411     break 2
10412   fi
10413 done
10414   done
10415 IFS=$as_save_IFS
10416 
10417   ;;
10418 esac
10419 fi
10420 SORT=$ac_cv_path_SORT
10421 if test -n "$SORT"; then
10422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10423 $as_echo "$SORT" >&6; }
10424 else
10425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10427 fi
10428 
10429 
10430   test -n "$SORT" && break
10431 done
10432 
10433     else
10434       # If it succeeded, then it was overridden by the user. We will use it
10435       # for the tool.
10436 
10437       # First remove it from the list of overridden variables, so we can test
10438       # for unknown variables in the end.
10439       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10440 
10441       # Check if we try to supply an empty value
10442       if test "x$SORT" = x; then
10443         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10444 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10446 $as_echo_n "checking for SORT... " >&6; }
10447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10448 $as_echo "disabled" >&6; }
10449       else
10450         # Check if the provided tool contains a complete path.
10451         tool_specified="$SORT"
10452         tool_basename="${tool_specified##*/}"
10453         if test "x$tool_basename" = "x$tool_specified"; then
10454           # A command without a complete path is provided, search $PATH.
10455           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10456 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10457           # Extract the first word of "$tool_basename", so it can be a program name with args.
10458 set dummy $tool_basename; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if ${ac_cv_path_SORT+:} false; then :
10462   $as_echo_n "(cached) " >&6
10463 else
10464   case $SORT in
10465   [\\/]* | ?:[\\/]*)
10466   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10467   ;;
10468   *)
10469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474     for ac_exec_ext in '' $ac_executable_extensions; do
10475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10478     break 2
10479   fi
10480 done
10481   done
10482 IFS=$as_save_IFS
10483 
10484   ;;
10485 esac
10486 fi
10487 SORT=$ac_cv_path_SORT
10488 if test -n "$SORT"; then
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10490 $as_echo "$SORT" >&6; }
10491 else
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10494 fi
10495 
10496 
10497           if test "x$SORT" = x; then
10498             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10499           fi
10500         else
10501           # Otherwise we believe it is a complete path. Use it as it is.
10502           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10503 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10504           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10505 $as_echo_n "checking for SORT... " >&6; }
10506           if test ! -x "$tool_specified"; then
10507             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10508 $as_echo "not found" >&6; }
10509             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10510           fi
10511           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10512 $as_echo "$tool_specified" >&6; }
10513         fi
10514       fi
10515     fi
10516 
10517   fi
10518 
10519 
10520 
10521   if test "x$SORT" = x; then
10522     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10523   fi
10524 
10525 
10526 
10527 
10528 
10529   # Publish this variable in the help.
10530 
10531 
10532   if [ -z "${TAIL+x}" ]; then
10533     # The variable is not set by user, try to locate tool using the code snippet
10534     for ac_prog in tail
10535 do
10536   # Extract the first word of "$ac_prog", so it can be a program name with args.
10537 set dummy $ac_prog; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_path_TAIL+:} false; then :
10541   $as_echo_n "(cached) " >&6
10542 else
10543   case $TAIL in
10544   [\\/]* | ?:[\\/]*)
10545   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10546   ;;
10547   *)
10548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10550 do
10551   IFS=$as_save_IFS
10552   test -z "$as_dir" && as_dir=.
10553     for ac_exec_ext in '' $ac_executable_extensions; do
10554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557     break 2
10558   fi
10559 done
10560   done
10561 IFS=$as_save_IFS
10562 
10563   ;;
10564 esac
10565 fi
10566 TAIL=$ac_cv_path_TAIL
10567 if test -n "$TAIL"; then
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10569 $as_echo "$TAIL" >&6; }
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 fi
10574 
10575 
10576   test -n "$TAIL" && break
10577 done
10578 
10579   else
10580     # The variable is set, but is it from the command line or the environment?
10581 
10582     # Try to remove the string !TAIL! from our list.
10583     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10584     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10585       # If it failed, the variable was not from the command line. Ignore it,
10586       # but warn the user (except for BASH, which is always set by the calling BASH).
10587       if test "xTAIL" != xBASH; then
10588         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10589 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10590       fi
10591       # Try to locate tool using the code snippet
10592       for ac_prog in tail
10593 do
10594   # Extract the first word of "$ac_prog", so it can be a program name with args.
10595 set dummy $ac_prog; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_path_TAIL+:} false; then :
10599   $as_echo_n "(cached) " >&6
10600 else
10601   case $TAIL in
10602   [\\/]* | ?:[\\/]*)
10603   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10604   ;;
10605   *)
10606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10607 for as_dir in $PATH
10608 do
10609   IFS=$as_save_IFS
10610   test -z "$as_dir" && as_dir=.
10611     for ac_exec_ext in '' $ac_executable_extensions; do
10612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10613     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10615     break 2
10616   fi
10617 done
10618   done
10619 IFS=$as_save_IFS
10620 
10621   ;;
10622 esac
10623 fi
10624 TAIL=$ac_cv_path_TAIL
10625 if test -n "$TAIL"; then
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10627 $as_echo "$TAIL" >&6; }
10628 else
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10631 fi
10632 
10633 
10634   test -n "$TAIL" && break
10635 done
10636 
10637     else
10638       # If it succeeded, then it was overridden by the user. We will use it
10639       # for the tool.
10640 
10641       # First remove it from the list of overridden variables, so we can test
10642       # for unknown variables in the end.
10643       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10644 
10645       # Check if we try to supply an empty value
10646       if test "x$TAIL" = x; then
10647         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10648 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10650 $as_echo_n "checking for TAIL... " >&6; }
10651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10652 $as_echo "disabled" >&6; }
10653       else
10654         # Check if the provided tool contains a complete path.
10655         tool_specified="$TAIL"
10656         tool_basename="${tool_specified##*/}"
10657         if test "x$tool_basename" = "x$tool_specified"; then
10658           # A command without a complete path is provided, search $PATH.
10659           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10660 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10661           # Extract the first word of "$tool_basename", so it can be a program name with args.
10662 set dummy $tool_basename; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if ${ac_cv_path_TAIL+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   case $TAIL in
10669   [\\/]* | ?:[\\/]*)
10670   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10671   ;;
10672   *)
10673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10675 do
10676   IFS=$as_save_IFS
10677   test -z "$as_dir" && as_dir=.
10678     for ac_exec_ext in '' $ac_executable_extensions; do
10679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682     break 2
10683   fi
10684 done
10685   done
10686 IFS=$as_save_IFS
10687 
10688   ;;
10689 esac
10690 fi
10691 TAIL=$ac_cv_path_TAIL
10692 if test -n "$TAIL"; then
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10694 $as_echo "$TAIL" >&6; }
10695 else
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10698 fi
10699 
10700 
10701           if test "x$TAIL" = x; then
10702             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10703           fi
10704         else
10705           # Otherwise we believe it is a complete path. Use it as it is.
10706           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10707 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10708           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10709 $as_echo_n "checking for TAIL... " >&6; }
10710           if test ! -x "$tool_specified"; then
10711             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10712 $as_echo "not found" >&6; }
10713             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10714           fi
10715           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10716 $as_echo "$tool_specified" >&6; }
10717         fi
10718       fi
10719     fi
10720 
10721   fi
10722 
10723 
10724 
10725   if test "x$TAIL" = x; then
10726     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10727   fi
10728 
10729 
10730 
10731 
10732 
10733   # Publish this variable in the help.
10734 
10735 
10736   if [ -z "${TAR+x}" ]; then
10737     # The variable is not set by user, try to locate tool using the code snippet
10738     for ac_prog in tar
10739 do
10740   # Extract the first word of "$ac_prog", so it can be a program name with args.
10741 set dummy $ac_prog; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if ${ac_cv_path_TAR+:} false; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747   case $TAR in
10748   [\\/]* | ?:[\\/]*)
10749   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10750   ;;
10751   *)
10752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10754 do
10755   IFS=$as_save_IFS
10756   test -z "$as_dir" && as_dir=.
10757     for ac_exec_ext in '' $ac_executable_extensions; do
10758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761     break 2
10762   fi
10763 done
10764   done
10765 IFS=$as_save_IFS
10766 
10767   ;;
10768 esac
10769 fi
10770 TAR=$ac_cv_path_TAR
10771 if test -n "$TAR"; then
10772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10773 $as_echo "$TAR" >&6; }
10774 else
10775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10777 fi
10778 
10779 
10780   test -n "$TAR" && break
10781 done
10782 
10783   else
10784     # The variable is set, but is it from the command line or the environment?
10785 
10786     # Try to remove the string !TAR! from our list.
10787     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10788     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10789       # If it failed, the variable was not from the command line. Ignore it,
10790       # but warn the user (except for BASH, which is always set by the calling BASH).
10791       if test "xTAR" != xBASH; then
10792         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10793 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10794       fi
10795       # Try to locate tool using the code snippet
10796       for ac_prog in tar
10797 do
10798   # Extract the first word of "$ac_prog", so it can be a program name with args.
10799 set dummy $ac_prog; ac_word=$2
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801 $as_echo_n "checking for $ac_word... " >&6; }
10802 if ${ac_cv_path_TAR+:} false; then :
10803   $as_echo_n "(cached) " >&6
10804 else
10805   case $TAR in
10806   [\\/]* | ?:[\\/]*)
10807   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10808   ;;
10809   *)
10810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10812 do
10813   IFS=$as_save_IFS
10814   test -z "$as_dir" && as_dir=.
10815     for ac_exec_ext in '' $ac_executable_extensions; do
10816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819     break 2
10820   fi
10821 done
10822   done
10823 IFS=$as_save_IFS
10824 
10825   ;;
10826 esac
10827 fi
10828 TAR=$ac_cv_path_TAR
10829 if test -n "$TAR"; then
10830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10831 $as_echo "$TAR" >&6; }
10832 else
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10835 fi
10836 
10837 
10838   test -n "$TAR" && break
10839 done
10840 
10841     else
10842       # If it succeeded, then it was overridden by the user. We will use it
10843       # for the tool.
10844 
10845       # First remove it from the list of overridden variables, so we can test
10846       # for unknown variables in the end.
10847       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10848 
10849       # Check if we try to supply an empty value
10850       if test "x$TAR" = x; then
10851         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10852 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10854 $as_echo_n "checking for TAR... " >&6; }
10855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10856 $as_echo "disabled" >&6; }
10857       else
10858         # Check if the provided tool contains a complete path.
10859         tool_specified="$TAR"
10860         tool_basename="${tool_specified##*/}"
10861         if test "x$tool_basename" = "x$tool_specified"; then
10862           # A command without a complete path is provided, search $PATH.
10863           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10864 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10865           # Extract the first word of "$tool_basename", so it can be a program name with args.
10866 set dummy $tool_basename; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if ${ac_cv_path_TAR+:} false; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   case $TAR in
10873   [\\/]* | ?:[\\/]*)
10874   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10875   ;;
10876   *)
10877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10879 do
10880   IFS=$as_save_IFS
10881   test -z "$as_dir" && as_dir=.
10882     for ac_exec_ext in '' $ac_executable_extensions; do
10883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886     break 2
10887   fi
10888 done
10889   done
10890 IFS=$as_save_IFS
10891 
10892   ;;
10893 esac
10894 fi
10895 TAR=$ac_cv_path_TAR
10896 if test -n "$TAR"; then
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10898 $as_echo "$TAR" >&6; }
10899 else
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 fi
10903 
10904 
10905           if test "x$TAR" = x; then
10906             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10907           fi
10908         else
10909           # Otherwise we believe it is a complete path. Use it as it is.
10910           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10911 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10912           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10913 $as_echo_n "checking for TAR... " >&6; }
10914           if test ! -x "$tool_specified"; then
10915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10916 $as_echo "not found" >&6; }
10917             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10918           fi
10919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10920 $as_echo "$tool_specified" >&6; }
10921         fi
10922       fi
10923     fi
10924 
10925   fi
10926 
10927 
10928 
10929   if test "x$TAR" = x; then
10930     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10931   fi
10932 
10933 
10934 
10935 
10936 
10937   # Publish this variable in the help.
10938 
10939 
10940   if [ -z "${TEE+x}" ]; then
10941     # The variable is not set by user, try to locate tool using the code snippet
10942     for ac_prog in tee
10943 do
10944   # Extract the first word of "$ac_prog", so it can be a program name with args.
10945 set dummy $ac_prog; ac_word=$2
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947 $as_echo_n "checking for $ac_word... " >&6; }
10948 if ${ac_cv_path_TEE+:} false; then :
10949   $as_echo_n "(cached) " >&6
10950 else
10951   case $TEE in
10952   [\\/]* | ?:[\\/]*)
10953   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10954   ;;
10955   *)
10956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957 for as_dir in $PATH
10958 do
10959   IFS=$as_save_IFS
10960   test -z "$as_dir" && as_dir=.
10961     for ac_exec_ext in '' $ac_executable_extensions; do
10962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965     break 2
10966   fi
10967 done
10968   done
10969 IFS=$as_save_IFS
10970 
10971   ;;
10972 esac
10973 fi
10974 TEE=$ac_cv_path_TEE
10975 if test -n "$TEE"; then
10976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10977 $as_echo "$TEE" >&6; }
10978 else
10979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10981 fi
10982 
10983 
10984   test -n "$TEE" && break
10985 done
10986 
10987   else
10988     # The variable is set, but is it from the command line or the environment?
10989 
10990     # Try to remove the string !TEE! from our list.
10991     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10992     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10993       # If it failed, the variable was not from the command line. Ignore it,
10994       # but warn the user (except for BASH, which is always set by the calling BASH).
10995       if test "xTEE" != xBASH; then
10996         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10997 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10998       fi
10999       # Try to locate tool using the code snippet
11000       for ac_prog in tee
11001 do
11002   # Extract the first word of "$ac_prog", so it can be a program name with args.
11003 set dummy $ac_prog; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_path_TEE+:} false; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   case $TEE in
11010   [\\/]* | ?:[\\/]*)
11011   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11012   ;;
11013   *)
11014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11016 do
11017   IFS=$as_save_IFS
11018   test -z "$as_dir" && as_dir=.
11019     for ac_exec_ext in '' $ac_executable_extensions; do
11020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023     break 2
11024   fi
11025 done
11026   done
11027 IFS=$as_save_IFS
11028 
11029   ;;
11030 esac
11031 fi
11032 TEE=$ac_cv_path_TEE
11033 if test -n "$TEE"; then
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11035 $as_echo "$TEE" >&6; }
11036 else
11037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 fi
11040 
11041 
11042   test -n "$TEE" && break
11043 done
11044 
11045     else
11046       # If it succeeded, then it was overridden by the user. We will use it
11047       # for the tool.
11048 
11049       # First remove it from the list of overridden variables, so we can test
11050       # for unknown variables in the end.
11051       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11052 
11053       # Check if we try to supply an empty value
11054       if test "x$TEE" = x; then
11055         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11056 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11058 $as_echo_n "checking for TEE... " >&6; }
11059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11060 $as_echo "disabled" >&6; }
11061       else
11062         # Check if the provided tool contains a complete path.
11063         tool_specified="$TEE"
11064         tool_basename="${tool_specified##*/}"
11065         if test "x$tool_basename" = "x$tool_specified"; then
11066           # A command without a complete path is provided, search $PATH.
11067           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11068 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11069           # Extract the first word of "$tool_basename", so it can be a program name with args.
11070 set dummy $tool_basename; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_path_TEE+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   case $TEE in
11077   [\\/]* | ?:[\\/]*)
11078   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11079   ;;
11080   *)
11081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11083 do
11084   IFS=$as_save_IFS
11085   test -z "$as_dir" && as_dir=.
11086     for ac_exec_ext in '' $ac_executable_extensions; do
11087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090     break 2
11091   fi
11092 done
11093   done
11094 IFS=$as_save_IFS
11095 
11096   ;;
11097 esac
11098 fi
11099 TEE=$ac_cv_path_TEE
11100 if test -n "$TEE"; then
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11102 $as_echo "$TEE" >&6; }
11103 else
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107 
11108 
11109           if test "x$TEE" = x; then
11110             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11111           fi
11112         else
11113           # Otherwise we believe it is a complete path. Use it as it is.
11114           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11115 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11116           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11117 $as_echo_n "checking for TEE... " >&6; }
11118           if test ! -x "$tool_specified"; then
11119             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11120 $as_echo "not found" >&6; }
11121             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11122           fi
11123           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11124 $as_echo "$tool_specified" >&6; }
11125         fi
11126       fi
11127     fi
11128 
11129   fi
11130 
11131 
11132 
11133   if test "x$TEE" = x; then
11134     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11135   fi
11136 
11137 
11138 
11139 
11140 
11141   # Publish this variable in the help.
11142 
11143 
11144   if [ -z "${TOUCH+x}" ]; then
11145     # The variable is not set by user, try to locate tool using the code snippet
11146     for ac_prog in touch
11147 do
11148   # Extract the first word of "$ac_prog", so it can be a program name with args.
11149 set dummy $ac_prog; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if ${ac_cv_path_TOUCH+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   case $TOUCH in
11156   [\\/]* | ?:[\\/]*)
11157   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11158   ;;
11159   *)
11160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11162 do
11163   IFS=$as_save_IFS
11164   test -z "$as_dir" && as_dir=.
11165     for ac_exec_ext in '' $ac_executable_extensions; do
11166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169     break 2
11170   fi
11171 done
11172   done
11173 IFS=$as_save_IFS
11174 
11175   ;;
11176 esac
11177 fi
11178 TOUCH=$ac_cv_path_TOUCH
11179 if test -n "$TOUCH"; then
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11181 $as_echo "$TOUCH" >&6; }
11182 else
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11185 fi
11186 
11187 
11188   test -n "$TOUCH" && break
11189 done
11190 
11191   else
11192     # The variable is set, but is it from the command line or the environment?
11193 
11194     # Try to remove the string !TOUCH! from our list.
11195     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11196     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11197       # If it failed, the variable was not from the command line. Ignore it,
11198       # but warn the user (except for BASH, which is always set by the calling BASH).
11199       if test "xTOUCH" != xBASH; then
11200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11201 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11202       fi
11203       # Try to locate tool using the code snippet
11204       for ac_prog in touch
11205 do
11206   # Extract the first word of "$ac_prog", so it can be a program name with args.
11207 set dummy $ac_prog; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if ${ac_cv_path_TOUCH+:} false; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   case $TOUCH in
11214   [\\/]* | ?:[\\/]*)
11215   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11216   ;;
11217   *)
11218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11220 do
11221   IFS=$as_save_IFS
11222   test -z "$as_dir" && as_dir=.
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11227     break 2
11228   fi
11229 done
11230   done
11231 IFS=$as_save_IFS
11232 
11233   ;;
11234 esac
11235 fi
11236 TOUCH=$ac_cv_path_TOUCH
11237 if test -n "$TOUCH"; then
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11239 $as_echo "$TOUCH" >&6; }
11240 else
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244 
11245 
11246   test -n "$TOUCH" && break
11247 done
11248 
11249     else
11250       # If it succeeded, then it was overridden by the user. We will use it
11251       # for the tool.
11252 
11253       # First remove it from the list of overridden variables, so we can test
11254       # for unknown variables in the end.
11255       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11256 
11257       # Check if we try to supply an empty value
11258       if test "x$TOUCH" = x; then
11259         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11260 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11262 $as_echo_n "checking for TOUCH... " >&6; }
11263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11264 $as_echo "disabled" >&6; }
11265       else
11266         # Check if the provided tool contains a complete path.
11267         tool_specified="$TOUCH"
11268         tool_basename="${tool_specified##*/}"
11269         if test "x$tool_basename" = "x$tool_specified"; then
11270           # A command without a complete path is provided, search $PATH.
11271           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11272 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11273           # Extract the first word of "$tool_basename", so it can be a program name with args.
11274 set dummy $tool_basename; ac_word=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if ${ac_cv_path_TOUCH+:} false; then :
11278   $as_echo_n "(cached) " >&6
11279 else
11280   case $TOUCH in
11281   [\\/]* | ?:[\\/]*)
11282   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11283   ;;
11284   *)
11285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11287 do
11288   IFS=$as_save_IFS
11289   test -z "$as_dir" && as_dir=.
11290     for ac_exec_ext in '' $ac_executable_extensions; do
11291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11294     break 2
11295   fi
11296 done
11297   done
11298 IFS=$as_save_IFS
11299 
11300   ;;
11301 esac
11302 fi
11303 TOUCH=$ac_cv_path_TOUCH
11304 if test -n "$TOUCH"; then
11305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11306 $as_echo "$TOUCH" >&6; }
11307 else
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 fi
11311 
11312 
11313           if test "x$TOUCH" = x; then
11314             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11315           fi
11316         else
11317           # Otherwise we believe it is a complete path. Use it as it is.
11318           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11319 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11320           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11321 $as_echo_n "checking for TOUCH... " >&6; }
11322           if test ! -x "$tool_specified"; then
11323             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11324 $as_echo "not found" >&6; }
11325             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11326           fi
11327           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11328 $as_echo "$tool_specified" >&6; }
11329         fi
11330       fi
11331     fi
11332 
11333   fi
11334 
11335 
11336 
11337   if test "x$TOUCH" = x; then
11338     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11339   fi
11340 
11341 
11342 
11343 
11344 
11345   # Publish this variable in the help.
11346 
11347 
11348   if [ -z "${TR+x}" ]; then
11349     # The variable is not set by user, try to locate tool using the code snippet
11350     for ac_prog in tr
11351 do
11352   # Extract the first word of "$ac_prog", so it can be a program name with args.
11353 set dummy $ac_prog; ac_word=$2
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355 $as_echo_n "checking for $ac_word... " >&6; }
11356 if ${ac_cv_path_TR+:} false; then :
11357   $as_echo_n "(cached) " >&6
11358 else
11359   case $TR in
11360   [\\/]* | ?:[\\/]*)
11361   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11362   ;;
11363   *)
11364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11366 do
11367   IFS=$as_save_IFS
11368   test -z "$as_dir" && as_dir=.
11369     for ac_exec_ext in '' $ac_executable_extensions; do
11370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11371     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373     break 2
11374   fi
11375 done
11376   done
11377 IFS=$as_save_IFS
11378 
11379   ;;
11380 esac
11381 fi
11382 TR=$ac_cv_path_TR
11383 if test -n "$TR"; then
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11385 $as_echo "$TR" >&6; }
11386 else
11387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11389 fi
11390 
11391 
11392   test -n "$TR" && break
11393 done
11394 
11395   else
11396     # The variable is set, but is it from the command line or the environment?
11397 
11398     # Try to remove the string !TR! from our list.
11399     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11400     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11401       # If it failed, the variable was not from the command line. Ignore it,
11402       # but warn the user (except for BASH, which is always set by the calling BASH).
11403       if test "xTR" != xBASH; then
11404         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11405 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11406       fi
11407       # Try to locate tool using the code snippet
11408       for ac_prog in tr
11409 do
11410   # Extract the first word of "$ac_prog", so it can be a program name with args.
11411 set dummy $ac_prog; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if ${ac_cv_path_TR+:} false; then :
11415   $as_echo_n "(cached) " >&6
11416 else
11417   case $TR in
11418   [\\/]* | ?:[\\/]*)
11419   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11420   ;;
11421   *)
11422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425   IFS=$as_save_IFS
11426   test -z "$as_dir" && as_dir=.
11427     for ac_exec_ext in '' $ac_executable_extensions; do
11428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11429     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431     break 2
11432   fi
11433 done
11434   done
11435 IFS=$as_save_IFS
11436 
11437   ;;
11438 esac
11439 fi
11440 TR=$ac_cv_path_TR
11441 if test -n "$TR"; then
11442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11443 $as_echo "$TR" >&6; }
11444 else
11445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11447 fi
11448 
11449 
11450   test -n "$TR" && break
11451 done
11452 
11453     else
11454       # If it succeeded, then it was overridden by the user. We will use it
11455       # for the tool.
11456 
11457       # First remove it from the list of overridden variables, so we can test
11458       # for unknown variables in the end.
11459       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11460 
11461       # Check if we try to supply an empty value
11462       if test "x$TR" = x; then
11463         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11464 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11466 $as_echo_n "checking for TR... " >&6; }
11467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11468 $as_echo "disabled" >&6; }
11469       else
11470         # Check if the provided tool contains a complete path.
11471         tool_specified="$TR"
11472         tool_basename="${tool_specified##*/}"
11473         if test "x$tool_basename" = "x$tool_specified"; then
11474           # A command without a complete path is provided, search $PATH.
11475           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11476 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11477           # Extract the first word of "$tool_basename", so it can be a program name with args.
11478 set dummy $tool_basename; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_path_TR+:} false; then :
11482   $as_echo_n "(cached) " >&6
11483 else
11484   case $TR in
11485   [\\/]* | ?:[\\/]*)
11486   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11487   ;;
11488   *)
11489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492   IFS=$as_save_IFS
11493   test -z "$as_dir" && as_dir=.
11494     for ac_exec_ext in '' $ac_executable_extensions; do
11495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498     break 2
11499   fi
11500 done
11501   done
11502 IFS=$as_save_IFS
11503 
11504   ;;
11505 esac
11506 fi
11507 TR=$ac_cv_path_TR
11508 if test -n "$TR"; then
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11510 $as_echo "$TR" >&6; }
11511 else
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 fi
11515 
11516 
11517           if test "x$TR" = x; then
11518             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11519           fi
11520         else
11521           # Otherwise we believe it is a complete path. Use it as it is.
11522           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11523 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11524           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11525 $as_echo_n "checking for TR... " >&6; }
11526           if test ! -x "$tool_specified"; then
11527             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11528 $as_echo "not found" >&6; }
11529             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11530           fi
11531           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11532 $as_echo "$tool_specified" >&6; }
11533         fi
11534       fi
11535     fi
11536 
11537   fi
11538 
11539 
11540 
11541   if test "x$TR" = x; then
11542     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11543   fi
11544 
11545 
11546 
11547 
11548 
11549   # Publish this variable in the help.
11550 
11551 
11552   if [ -z "${UNAME+x}" ]; then
11553     # The variable is not set by user, try to locate tool using the code snippet
11554     for ac_prog in uname
11555 do
11556   # Extract the first word of "$ac_prog", so it can be a program name with args.
11557 set dummy $ac_prog; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if ${ac_cv_path_UNAME+:} false; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   case $UNAME in
11564   [\\/]* | ?:[\\/]*)
11565   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11566   ;;
11567   *)
11568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571   IFS=$as_save_IFS
11572   test -z "$as_dir" && as_dir=.
11573     for ac_exec_ext in '' $ac_executable_extensions; do
11574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577     break 2
11578   fi
11579 done
11580   done
11581 IFS=$as_save_IFS
11582 
11583   ;;
11584 esac
11585 fi
11586 UNAME=$ac_cv_path_UNAME
11587 if test -n "$UNAME"; then
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11589 $as_echo "$UNAME" >&6; }
11590 else
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11593 fi
11594 
11595 
11596   test -n "$UNAME" && break
11597 done
11598 
11599   else
11600     # The variable is set, but is it from the command line or the environment?
11601 
11602     # Try to remove the string !UNAME! from our list.
11603     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11604     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11605       # If it failed, the variable was not from the command line. Ignore it,
11606       # but warn the user (except for BASH, which is always set by the calling BASH).
11607       if test "xUNAME" != xBASH; then
11608         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11609 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11610       fi
11611       # Try to locate tool using the code snippet
11612       for ac_prog in uname
11613 do
11614   # Extract the first word of "$ac_prog", so it can be a program name with args.
11615 set dummy $ac_prog; ac_word=$2
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if ${ac_cv_path_UNAME+:} false; then :
11619   $as_echo_n "(cached) " >&6
11620 else
11621   case $UNAME in
11622   [\\/]* | ?:[\\/]*)
11623   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11624   ;;
11625   *)
11626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629   IFS=$as_save_IFS
11630   test -z "$as_dir" && as_dir=.
11631     for ac_exec_ext in '' $ac_executable_extensions; do
11632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635     break 2
11636   fi
11637 done
11638   done
11639 IFS=$as_save_IFS
11640 
11641   ;;
11642 esac
11643 fi
11644 UNAME=$ac_cv_path_UNAME
11645 if test -n "$UNAME"; then
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11647 $as_echo "$UNAME" >&6; }
11648 else
11649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652 
11653 
11654   test -n "$UNAME" && break
11655 done
11656 
11657     else
11658       # If it succeeded, then it was overridden by the user. We will use it
11659       # for the tool.
11660 
11661       # First remove it from the list of overridden variables, so we can test
11662       # for unknown variables in the end.
11663       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11664 
11665       # Check if we try to supply an empty value
11666       if test "x$UNAME" = x; then
11667         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11668 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11669         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11670 $as_echo_n "checking for UNAME... " >&6; }
11671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11672 $as_echo "disabled" >&6; }
11673       else
11674         # Check if the provided tool contains a complete path.
11675         tool_specified="$UNAME"
11676         tool_basename="${tool_specified##*/}"
11677         if test "x$tool_basename" = "x$tool_specified"; then
11678           # A command without a complete path is provided, search $PATH.
11679           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11680 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11681           # Extract the first word of "$tool_basename", so it can be a program name with args.
11682 set dummy $tool_basename; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if ${ac_cv_path_UNAME+:} false; then :
11686   $as_echo_n "(cached) " >&6
11687 else
11688   case $UNAME in
11689   [\\/]* | ?:[\\/]*)
11690   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11691   ;;
11692   *)
11693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in $PATH
11695 do
11696   IFS=$as_save_IFS
11697   test -z "$as_dir" && as_dir=.
11698     for ac_exec_ext in '' $ac_executable_extensions; do
11699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11700     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702     break 2
11703   fi
11704 done
11705   done
11706 IFS=$as_save_IFS
11707 
11708   ;;
11709 esac
11710 fi
11711 UNAME=$ac_cv_path_UNAME
11712 if test -n "$UNAME"; then
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11714 $as_echo "$UNAME" >&6; }
11715 else
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719 
11720 
11721           if test "x$UNAME" = x; then
11722             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11723           fi
11724         else
11725           # Otherwise we believe it is a complete path. Use it as it is.
11726           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11727 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11728           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11729 $as_echo_n "checking for UNAME... " >&6; }
11730           if test ! -x "$tool_specified"; then
11731             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11732 $as_echo "not found" >&6; }
11733             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11734           fi
11735           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11736 $as_echo "$tool_specified" >&6; }
11737         fi
11738       fi
11739     fi
11740 
11741   fi
11742 
11743 
11744 
11745   if test "x$UNAME" = x; then
11746     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11747   fi
11748 
11749 
11750 
11751 
11752 
11753   # Publish this variable in the help.
11754 
11755 
11756   if [ -z "${UNIQ+x}" ]; then
11757     # The variable is not set by user, try to locate tool using the code snippet
11758     for ac_prog in uniq
11759 do
11760   # Extract the first word of "$ac_prog", so it can be a program name with args.
11761 set dummy $ac_prog; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if ${ac_cv_path_UNIQ+:} false; then :
11765   $as_echo_n "(cached) " >&6
11766 else
11767   case $UNIQ in
11768   [\\/]* | ?:[\\/]*)
11769   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11770   ;;
11771   *)
11772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775   IFS=$as_save_IFS
11776   test -z "$as_dir" && as_dir=.
11777     for ac_exec_ext in '' $ac_executable_extensions; do
11778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11779     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11781     break 2
11782   fi
11783 done
11784   done
11785 IFS=$as_save_IFS
11786 
11787   ;;
11788 esac
11789 fi
11790 UNIQ=$ac_cv_path_UNIQ
11791 if test -n "$UNIQ"; then
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11793 $as_echo "$UNIQ" >&6; }
11794 else
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798 
11799 
11800   test -n "$UNIQ" && break
11801 done
11802 
11803   else
11804     # The variable is set, but is it from the command line or the environment?
11805 
11806     # Try to remove the string !UNIQ! from our list.
11807     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11808     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11809       # If it failed, the variable was not from the command line. Ignore it,
11810       # but warn the user (except for BASH, which is always set by the calling BASH).
11811       if test "xUNIQ" != xBASH; then
11812         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11813 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11814       fi
11815       # Try to locate tool using the code snippet
11816       for ac_prog in uniq
11817 do
11818   # Extract the first word of "$ac_prog", so it can be a program name with args.
11819 set dummy $ac_prog; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if ${ac_cv_path_UNIQ+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   case $UNIQ in
11826   [\\/]* | ?:[\\/]*)
11827   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11828   ;;
11829   *)
11830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833   IFS=$as_save_IFS
11834   test -z "$as_dir" && as_dir=.
11835     for ac_exec_ext in '' $ac_executable_extensions; do
11836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839     break 2
11840   fi
11841 done
11842   done
11843 IFS=$as_save_IFS
11844 
11845   ;;
11846 esac
11847 fi
11848 UNIQ=$ac_cv_path_UNIQ
11849 if test -n "$UNIQ"; then
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11851 $as_echo "$UNIQ" >&6; }
11852 else
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856 
11857 
11858   test -n "$UNIQ" && break
11859 done
11860 
11861     else
11862       # If it succeeded, then it was overridden by the user. We will use it
11863       # for the tool.
11864 
11865       # First remove it from the list of overridden variables, so we can test
11866       # for unknown variables in the end.
11867       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11868 
11869       # Check if we try to supply an empty value
11870       if test "x$UNIQ" = x; then
11871         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11872 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11874 $as_echo_n "checking for UNIQ... " >&6; }
11875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11876 $as_echo "disabled" >&6; }
11877       else
11878         # Check if the provided tool contains a complete path.
11879         tool_specified="$UNIQ"
11880         tool_basename="${tool_specified##*/}"
11881         if test "x$tool_basename" = "x$tool_specified"; then
11882           # A command without a complete path is provided, search $PATH.
11883           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11884 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11885           # Extract the first word of "$tool_basename", so it can be a program name with args.
11886 set dummy $tool_basename; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_path_UNIQ+:} false; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   case $UNIQ in
11893   [\\/]* | ?:[\\/]*)
11894   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11895   ;;
11896   *)
11897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900   IFS=$as_save_IFS
11901   test -z "$as_dir" && as_dir=.
11902     for ac_exec_ext in '' $ac_executable_extensions; do
11903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906     break 2
11907   fi
11908 done
11909   done
11910 IFS=$as_save_IFS
11911 
11912   ;;
11913 esac
11914 fi
11915 UNIQ=$ac_cv_path_UNIQ
11916 if test -n "$UNIQ"; then
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11918 $as_echo "$UNIQ" >&6; }
11919 else
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 fi
11923 
11924 
11925           if test "x$UNIQ" = x; then
11926             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11927           fi
11928         else
11929           # Otherwise we believe it is a complete path. Use it as it is.
11930           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11931 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11932           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11933 $as_echo_n "checking for UNIQ... " >&6; }
11934           if test ! -x "$tool_specified"; then
11935             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11936 $as_echo "not found" >&6; }
11937             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11938           fi
11939           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11940 $as_echo "$tool_specified" >&6; }
11941         fi
11942       fi
11943     fi
11944 
11945   fi
11946 
11947 
11948 
11949   if test "x$UNIQ" = x; then
11950     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11951   fi
11952 
11953 
11954 
11955 
11956 
11957   # Publish this variable in the help.
11958 
11959 
11960   if [ -z "${WC+x}" ]; then
11961     # The variable is not set by user, try to locate tool using the code snippet
11962     for ac_prog in wc
11963 do
11964   # Extract the first word of "$ac_prog", so it can be a program name with args.
11965 set dummy $ac_prog; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_WC+:} false; then :
11969   $as_echo_n "(cached) " >&6
11970 else
11971   case $WC in
11972   [\\/]* | ?:[\\/]*)
11973   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11974   ;;
11975   *)
11976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11978 do
11979   IFS=$as_save_IFS
11980   test -z "$as_dir" && as_dir=.
11981     for ac_exec_ext in '' $ac_executable_extensions; do
11982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985     break 2
11986   fi
11987 done
11988   done
11989 IFS=$as_save_IFS
11990 
11991   ;;
11992 esac
11993 fi
11994 WC=$ac_cv_path_WC
11995 if test -n "$WC"; then
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11997 $as_echo "$WC" >&6; }
11998 else
11999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001 fi
12002 
12003 
12004   test -n "$WC" && break
12005 done
12006 
12007   else
12008     # The variable is set, but is it from the command line or the environment?
12009 
12010     # Try to remove the string !WC! from our list.
12011     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12012     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12013       # If it failed, the variable was not from the command line. Ignore it,
12014       # but warn the user (except for BASH, which is always set by the calling BASH).
12015       if test "xWC" != xBASH; then
12016         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12017 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12018       fi
12019       # Try to locate tool using the code snippet
12020       for ac_prog in wc
12021 do
12022   # Extract the first word of "$ac_prog", so it can be a program name with args.
12023 set dummy $ac_prog; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if ${ac_cv_path_WC+:} false; then :
12027   $as_echo_n "(cached) " >&6
12028 else
12029   case $WC in
12030   [\\/]* | ?:[\\/]*)
12031   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12032   ;;
12033   *)
12034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035 for as_dir in $PATH
12036 do
12037   IFS=$as_save_IFS
12038   test -z "$as_dir" && as_dir=.
12039     for ac_exec_ext in '' $ac_executable_extensions; do
12040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043     break 2
12044   fi
12045 done
12046   done
12047 IFS=$as_save_IFS
12048 
12049   ;;
12050 esac
12051 fi
12052 WC=$ac_cv_path_WC
12053 if test -n "$WC"; then
12054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12055 $as_echo "$WC" >&6; }
12056 else
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12059 fi
12060 
12061 
12062   test -n "$WC" && break
12063 done
12064 
12065     else
12066       # If it succeeded, then it was overridden by the user. We will use it
12067       # for the tool.
12068 
12069       # First remove it from the list of overridden variables, so we can test
12070       # for unknown variables in the end.
12071       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12072 
12073       # Check if we try to supply an empty value
12074       if test "x$WC" = x; then
12075         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12076 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12078 $as_echo_n "checking for WC... " >&6; }
12079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12080 $as_echo "disabled" >&6; }
12081       else
12082         # Check if the provided tool contains a complete path.
12083         tool_specified="$WC"
12084         tool_basename="${tool_specified##*/}"
12085         if test "x$tool_basename" = "x$tool_specified"; then
12086           # A command without a complete path is provided, search $PATH.
12087           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12088 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12089           # Extract the first word of "$tool_basename", so it can be a program name with args.
12090 set dummy $tool_basename; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_path_WC+:} false; then :
12094   $as_echo_n "(cached) " >&6
12095 else
12096   case $WC in
12097   [\\/]* | ?:[\\/]*)
12098   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12099   ;;
12100   *)
12101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104   IFS=$as_save_IFS
12105   test -z "$as_dir" && as_dir=.
12106     for ac_exec_ext in '' $ac_executable_extensions; do
12107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113   done
12114 IFS=$as_save_IFS
12115 
12116   ;;
12117 esac
12118 fi
12119 WC=$ac_cv_path_WC
12120 if test -n "$WC"; then
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12122 $as_echo "$WC" >&6; }
12123 else
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127 
12128 
12129           if test "x$WC" = x; then
12130             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12131           fi
12132         else
12133           # Otherwise we believe it is a complete path. Use it as it is.
12134           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12135 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12136           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12137 $as_echo_n "checking for WC... " >&6; }
12138           if test ! -x "$tool_specified"; then
12139             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12140 $as_echo "not found" >&6; }
12141             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12142           fi
12143           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12144 $as_echo "$tool_specified" >&6; }
12145         fi
12146       fi
12147     fi
12148 
12149   fi
12150 
12151 
12152 
12153   if test "x$WC" = x; then
12154     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12155   fi
12156 
12157 
12158 
12159 
12160 
12161   # Publish this variable in the help.
12162 
12163 
12164   if [ -z "${WHICH+x}" ]; then
12165     # The variable is not set by user, try to locate tool using the code snippet
12166     for ac_prog in which
12167 do
12168   # Extract the first word of "$ac_prog", so it can be a program name with args.
12169 set dummy $ac_prog; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_path_WHICH+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   case $WHICH in
12176   [\\/]* | ?:[\\/]*)
12177   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12178   ;;
12179   *)
12180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12182 do
12183   IFS=$as_save_IFS
12184   test -z "$as_dir" && as_dir=.
12185     for ac_exec_ext in '' $ac_executable_extensions; do
12186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189     break 2
12190   fi
12191 done
12192   done
12193 IFS=$as_save_IFS
12194 
12195   ;;
12196 esac
12197 fi
12198 WHICH=$ac_cv_path_WHICH
12199 if test -n "$WHICH"; then
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12201 $as_echo "$WHICH" >&6; }
12202 else
12203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206 
12207 
12208   test -n "$WHICH" && break
12209 done
12210 
12211   else
12212     # The variable is set, but is it from the command line or the environment?
12213 
12214     # Try to remove the string !WHICH! from our list.
12215     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12216     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12217       # If it failed, the variable was not from the command line. Ignore it,
12218       # but warn the user (except for BASH, which is always set by the calling BASH).
12219       if test "xWHICH" != xBASH; then
12220         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12221 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12222       fi
12223       # Try to locate tool using the code snippet
12224       for ac_prog in which
12225 do
12226   # Extract the first word of "$ac_prog", so it can be a program name with args.
12227 set dummy $ac_prog; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_path_WHICH+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   case $WHICH in
12234   [\\/]* | ?:[\\/]*)
12235   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12236   ;;
12237   *)
12238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243     for ac_exec_ext in '' $ac_executable_extensions; do
12244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247     break 2
12248   fi
12249 done
12250   done
12251 IFS=$as_save_IFS
12252 
12253   ;;
12254 esac
12255 fi
12256 WHICH=$ac_cv_path_WHICH
12257 if test -n "$WHICH"; then
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12259 $as_echo "$WHICH" >&6; }
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264 
12265 
12266   test -n "$WHICH" && break
12267 done
12268 
12269     else
12270       # If it succeeded, then it was overridden by the user. We will use it
12271       # for the tool.
12272 
12273       # First remove it from the list of overridden variables, so we can test
12274       # for unknown variables in the end.
12275       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12276 
12277       # Check if we try to supply an empty value
12278       if test "x$WHICH" = x; then
12279         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12280 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12282 $as_echo_n "checking for WHICH... " >&6; }
12283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12284 $as_echo "disabled" >&6; }
12285       else
12286         # Check if the provided tool contains a complete path.
12287         tool_specified="$WHICH"
12288         tool_basename="${tool_specified##*/}"
12289         if test "x$tool_basename" = "x$tool_specified"; then
12290           # A command without a complete path is provided, search $PATH.
12291           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12292 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12293           # Extract the first word of "$tool_basename", so it can be a program name with args.
12294 set dummy $tool_basename; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_path_WHICH+:} false; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   case $WHICH in
12301   [\\/]* | ?:[\\/]*)
12302   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12303   ;;
12304   *)
12305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308   IFS=$as_save_IFS
12309   test -z "$as_dir" && as_dir=.
12310     for ac_exec_ext in '' $ac_executable_extensions; do
12311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314     break 2
12315   fi
12316 done
12317   done
12318 IFS=$as_save_IFS
12319 
12320   ;;
12321 esac
12322 fi
12323 WHICH=$ac_cv_path_WHICH
12324 if test -n "$WHICH"; then
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12326 $as_echo "$WHICH" >&6; }
12327 else
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 fi
12331 
12332 
12333           if test "x$WHICH" = x; then
12334             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12335           fi
12336         else
12337           # Otherwise we believe it is a complete path. Use it as it is.
12338           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12339 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12340           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12341 $as_echo_n "checking for WHICH... " >&6; }
12342           if test ! -x "$tool_specified"; then
12343             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12344 $as_echo "not found" >&6; }
12345             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12346           fi
12347           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12348 $as_echo "$tool_specified" >&6; }
12349         fi
12350       fi
12351     fi
12352 
12353   fi
12354 
12355 
12356 
12357   if test "x$WHICH" = x; then
12358     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12359   fi
12360 
12361 
12362 
12363 
12364 
12365   # Publish this variable in the help.
12366 
12367 
12368   if [ -z "${XARGS+x}" ]; then
12369     # The variable is not set by user, try to locate tool using the code snippet
12370     for ac_prog in xargs
12371 do
12372   # Extract the first word of "$ac_prog", so it can be a program name with args.
12373 set dummy $ac_prog; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if ${ac_cv_path_XARGS+:} false; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   case $XARGS in
12380   [\\/]* | ?:[\\/]*)
12381   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12382   ;;
12383   *)
12384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387   IFS=$as_save_IFS
12388   test -z "$as_dir" && as_dir=.
12389     for ac_exec_ext in '' $ac_executable_extensions; do
12390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393     break 2
12394   fi
12395 done
12396   done
12397 IFS=$as_save_IFS
12398 
12399   ;;
12400 esac
12401 fi
12402 XARGS=$ac_cv_path_XARGS
12403 if test -n "$XARGS"; then
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12405 $as_echo "$XARGS" >&6; }
12406 else
12407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12409 fi
12410 
12411 
12412   test -n "$XARGS" && break
12413 done
12414 
12415   else
12416     # The variable is set, but is it from the command line or the environment?
12417 
12418     # Try to remove the string !XARGS! from our list.
12419     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12420     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12421       # If it failed, the variable was not from the command line. Ignore it,
12422       # but warn the user (except for BASH, which is always set by the calling BASH).
12423       if test "xXARGS" != xBASH; then
12424         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12425 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12426       fi
12427       # Try to locate tool using the code snippet
12428       for ac_prog in xargs
12429 do
12430   # Extract the first word of "$ac_prog", so it can be a program name with args.
12431 set dummy $ac_prog; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433 $as_echo_n "checking for $ac_word... " >&6; }
12434 if ${ac_cv_path_XARGS+:} false; then :
12435   $as_echo_n "(cached) " >&6
12436 else
12437   case $XARGS in
12438   [\\/]* | ?:[\\/]*)
12439   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12440   ;;
12441   *)
12442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12444 do
12445   IFS=$as_save_IFS
12446   test -z "$as_dir" && as_dir=.
12447     for ac_exec_ext in '' $ac_executable_extensions; do
12448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451     break 2
12452   fi
12453 done
12454   done
12455 IFS=$as_save_IFS
12456 
12457   ;;
12458 esac
12459 fi
12460 XARGS=$ac_cv_path_XARGS
12461 if test -n "$XARGS"; then
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12463 $as_echo "$XARGS" >&6; }
12464 else
12465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12467 fi
12468 
12469 
12470   test -n "$XARGS" && break
12471 done
12472 
12473     else
12474       # If it succeeded, then it was overridden by the user. We will use it
12475       # for the tool.
12476 
12477       # First remove it from the list of overridden variables, so we can test
12478       # for unknown variables in the end.
12479       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12480 
12481       # Check if we try to supply an empty value
12482       if test "x$XARGS" = x; then
12483         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12484 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12486 $as_echo_n "checking for XARGS... " >&6; }
12487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12488 $as_echo "disabled" >&6; }
12489       else
12490         # Check if the provided tool contains a complete path.
12491         tool_specified="$XARGS"
12492         tool_basename="${tool_specified##*/}"
12493         if test "x$tool_basename" = "x$tool_specified"; then
12494           # A command without a complete path is provided, search $PATH.
12495           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12496 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12497           # Extract the first word of "$tool_basename", so it can be a program name with args.
12498 set dummy $tool_basename; ac_word=$2
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12500 $as_echo_n "checking for $ac_word... " >&6; }
12501 if ${ac_cv_path_XARGS+:} false; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   case $XARGS in
12505   [\\/]* | ?:[\\/]*)
12506   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12507   ;;
12508   *)
12509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512   IFS=$as_save_IFS
12513   test -z "$as_dir" && as_dir=.
12514     for ac_exec_ext in '' $ac_executable_extensions; do
12515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518     break 2
12519   fi
12520 done
12521   done
12522 IFS=$as_save_IFS
12523 
12524   ;;
12525 esac
12526 fi
12527 XARGS=$ac_cv_path_XARGS
12528 if test -n "$XARGS"; then
12529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12530 $as_echo "$XARGS" >&6; }
12531 else
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12534 fi
12535 
12536 
12537           if test "x$XARGS" = x; then
12538             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12539           fi
12540         else
12541           # Otherwise we believe it is a complete path. Use it as it is.
12542           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12543 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12544           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12545 $as_echo_n "checking for XARGS... " >&6; }
12546           if test ! -x "$tool_specified"; then
12547             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12548 $as_echo "not found" >&6; }
12549             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12550           fi
12551           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12552 $as_echo "$tool_specified" >&6; }
12553         fi
12554       fi
12555     fi
12556 
12557   fi
12558 
12559 
12560 
12561   if test "x$XARGS" = x; then
12562     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12563   fi
12564 
12565 
12566 
12567   # Then required tools that require some special treatment.
12568 
12569 
12570   # Publish this variable in the help.
12571 
12572 
12573   if [ -z "${AWK+x}" ]; then
12574     # The variable is not set by user, try to locate tool using the code snippet
12575     for ac_prog in gawk mawk nawk awk
12576 do
12577   # Extract the first word of "$ac_prog", so it can be a program name with args.
12578 set dummy $ac_prog; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_prog_AWK+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   if test -n "$AWK"; then
12585   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590   IFS=$as_save_IFS
12591   test -z "$as_dir" && as_dir=.
12592     for ac_exec_ext in '' $ac_executable_extensions; do
12593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594     ac_cv_prog_AWK="$ac_prog"
12595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596     break 2
12597   fi
12598 done
12599   done
12600 IFS=$as_save_IFS
12601 
12602 fi
12603 fi
12604 AWK=$ac_cv_prog_AWK
12605 if test -n "$AWK"; then
12606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12607 $as_echo "$AWK" >&6; }
12608 else
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612 
12613 
12614   test -n "$AWK" && break
12615 done
12616 
12617   else
12618     # The variable is set, but is it from the command line or the environment?
12619 
12620     # Try to remove the string !AWK! from our list.
12621     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12622     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12623       # If it failed, the variable was not from the command line. Ignore it,
12624       # but warn the user (except for BASH, which is always set by the calling BASH).
12625       if test "xAWK" != xBASH; then
12626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12627 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12628       fi
12629       # Try to locate tool using the code snippet
12630       for ac_prog in gawk mawk nawk awk
12631 do
12632   # Extract the first word of "$ac_prog", so it can be a program name with args.
12633 set dummy $ac_prog; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_prog_AWK+:} false; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   if test -n "$AWK"; then
12640   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12641 else
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645   IFS=$as_save_IFS
12646   test -z "$as_dir" && as_dir=.
12647     for ac_exec_ext in '' $ac_executable_extensions; do
12648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649     ac_cv_prog_AWK="$ac_prog"
12650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651     break 2
12652   fi
12653 done
12654   done
12655 IFS=$as_save_IFS
12656 
12657 fi
12658 fi
12659 AWK=$ac_cv_prog_AWK
12660 if test -n "$AWK"; then
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12662 $as_echo "$AWK" >&6; }
12663 else
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 $as_echo "no" >&6; }
12666 fi
12667 
12668 
12669   test -n "$AWK" && break
12670 done
12671 
12672     else
12673       # If it succeeded, then it was overridden by the user. We will use it
12674       # for the tool.
12675 
12676       # First remove it from the list of overridden variables, so we can test
12677       # for unknown variables in the end.
12678       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12679 
12680       # Check if we try to supply an empty value
12681       if test "x$AWK" = x; then
12682         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12683 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12685 $as_echo_n "checking for AWK... " >&6; }
12686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12687 $as_echo "disabled" >&6; }
12688       else
12689         # Check if the provided tool contains a complete path.
12690         tool_specified="$AWK"
12691         tool_basename="${tool_specified##*/}"
12692         if test "x$tool_basename" = "x$tool_specified"; then
12693           # A command without a complete path is provided, search $PATH.
12694           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12695 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12696           # Extract the first word of "$tool_basename", so it can be a program name with args.
12697 set dummy $tool_basename; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_path_AWK+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   case $AWK in
12704   [\\/]* | ?:[\\/]*)
12705   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12706   ;;
12707   *)
12708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12710 do
12711   IFS=$as_save_IFS
12712   test -z "$as_dir" && as_dir=.
12713     for ac_exec_ext in '' $ac_executable_extensions; do
12714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717     break 2
12718   fi
12719 done
12720   done
12721 IFS=$as_save_IFS
12722 
12723   ;;
12724 esac
12725 fi
12726 AWK=$ac_cv_path_AWK
12727 if test -n "$AWK"; then
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12729 $as_echo "$AWK" >&6; }
12730 else
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733 fi
12734 
12735 
12736           if test "x$AWK" = x; then
12737             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12738           fi
12739         else
12740           # Otherwise we believe it is a complete path. Use it as it is.
12741           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12742 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12743           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12744 $as_echo_n "checking for AWK... " >&6; }
12745           if test ! -x "$tool_specified"; then
12746             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12747 $as_echo "not found" >&6; }
12748             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12749           fi
12750           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12751 $as_echo "$tool_specified" >&6; }
12752         fi
12753       fi
12754     fi
12755 
12756   fi
12757 
12758 
12759   if test "x$AWK" = x; then
12760     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12761   fi
12762 
12763 
12764 
12765 
12766   # Publish this variable in the help.
12767 
12768 
12769   if [ -z "${GREP+x}" ]; then
12770     # The variable is not set by user, try to locate tool using the code snippet
12771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12772 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12773 if ${ac_cv_path_GREP+:} false; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   if test -z "$GREP"; then
12777   ac_path_GREP_found=false
12778   # Loop through the user's path and test for each of PROGNAME-LIST
12779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12781 do
12782   IFS=$as_save_IFS
12783   test -z "$as_dir" && as_dir=.
12784     for ac_prog in grep ggrep; do
12785     for ac_exec_ext in '' $ac_executable_extensions; do
12786       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12787       as_fn_executable_p "$ac_path_GREP" || continue
12788 # Check for GNU ac_path_GREP and select it if it is found.
12789   # Check for GNU $ac_path_GREP
12790 case `"$ac_path_GREP" --version 2>&1` in
12791 *GNU*)
12792   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12793 *)
12794   ac_count=0
12795   $as_echo_n 0123456789 >"conftest.in"
12796   while :
12797   do
12798     cat "conftest.in" "conftest.in" >"conftest.tmp"
12799     mv "conftest.tmp" "conftest.in"
12800     cp "conftest.in" "conftest.nl"
12801     $as_echo 'GREP' >> "conftest.nl"
12802     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12803     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12804     as_fn_arith $ac_count + 1 && ac_count=$as_val
12805     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12806       # Best one so far, save it but keep looking for a better one
12807       ac_cv_path_GREP="$ac_path_GREP"
12808       ac_path_GREP_max=$ac_count
12809     fi
12810     # 10*(2^10) chars as input seems more than enough
12811     test $ac_count -gt 10 && break
12812   done
12813   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12814 esac
12815 
12816       $ac_path_GREP_found && break 3
12817     done
12818   done
12819   done
12820 IFS=$as_save_IFS
12821   if test -z "$ac_cv_path_GREP"; then
12822     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12823   fi
12824 else
12825   ac_cv_path_GREP=$GREP
12826 fi
12827 
12828 fi
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12830 $as_echo "$ac_cv_path_GREP" >&6; }
12831  GREP="$ac_cv_path_GREP"
12832 
12833 
12834   else
12835     # The variable is set, but is it from the command line or the environment?
12836 
12837     # Try to remove the string !GREP! from our list.
12838     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12839     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12840       # If it failed, the variable was not from the command line. Ignore it,
12841       # but warn the user (except for BASH, which is always set by the calling BASH).
12842       if test "xGREP" != xBASH; then
12843         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12844 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12845       fi
12846       # Try to locate tool using the code snippet
12847       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12848 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12849 if ${ac_cv_path_GREP+:} false; then :
12850   $as_echo_n "(cached) " >&6
12851 else
12852   if test -z "$GREP"; then
12853   ac_path_GREP_found=false
12854   # Loop through the user's path and test for each of PROGNAME-LIST
12855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12857 do
12858   IFS=$as_save_IFS
12859   test -z "$as_dir" && as_dir=.
12860     for ac_prog in grep ggrep; do
12861     for ac_exec_ext in '' $ac_executable_extensions; do
12862       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12863       as_fn_executable_p "$ac_path_GREP" || continue
12864 # Check for GNU ac_path_GREP and select it if it is found.
12865   # Check for GNU $ac_path_GREP
12866 case `"$ac_path_GREP" --version 2>&1` in
12867 *GNU*)
12868   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12869 *)
12870   ac_count=0
12871   $as_echo_n 0123456789 >"conftest.in"
12872   while :
12873   do
12874     cat "conftest.in" "conftest.in" >"conftest.tmp"
12875     mv "conftest.tmp" "conftest.in"
12876     cp "conftest.in" "conftest.nl"
12877     $as_echo 'GREP' >> "conftest.nl"
12878     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12880     as_fn_arith $ac_count + 1 && ac_count=$as_val
12881     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12882       # Best one so far, save it but keep looking for a better one
12883       ac_cv_path_GREP="$ac_path_GREP"
12884       ac_path_GREP_max=$ac_count
12885     fi
12886     # 10*(2^10) chars as input seems more than enough
12887     test $ac_count -gt 10 && break
12888   done
12889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12890 esac
12891 
12892       $ac_path_GREP_found && break 3
12893     done
12894   done
12895   done
12896 IFS=$as_save_IFS
12897   if test -z "$ac_cv_path_GREP"; then
12898     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12899   fi
12900 else
12901   ac_cv_path_GREP=$GREP
12902 fi
12903 
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12906 $as_echo "$ac_cv_path_GREP" >&6; }
12907  GREP="$ac_cv_path_GREP"
12908 
12909 
12910     else
12911       # If it succeeded, then it was overridden by the user. We will use it
12912       # for the tool.
12913 
12914       # First remove it from the list of overridden variables, so we can test
12915       # for unknown variables in the end.
12916       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12917 
12918       # Check if we try to supply an empty value
12919       if test "x$GREP" = x; then
12920         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12921 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12923 $as_echo_n "checking for GREP... " >&6; }
12924         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12925 $as_echo "disabled" >&6; }
12926       else
12927         # Check if the provided tool contains a complete path.
12928         tool_specified="$GREP"
12929         tool_basename="${tool_specified##*/}"
12930         if test "x$tool_basename" = "x$tool_specified"; then
12931           # A command without a complete path is provided, search $PATH.
12932           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12933 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12934           # Extract the first word of "$tool_basename", so it can be a program name with args.
12935 set dummy $tool_basename; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if ${ac_cv_path_GREP+:} false; then :
12939   $as_echo_n "(cached) " >&6
12940 else
12941   case $GREP in
12942   [\\/]* | ?:[\\/]*)
12943   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12944   ;;
12945   *)
12946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $PATH
12948 do
12949   IFS=$as_save_IFS
12950   test -z "$as_dir" && as_dir=.
12951     for ac_exec_ext in '' $ac_executable_extensions; do
12952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12953     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955     break 2
12956   fi
12957 done
12958   done
12959 IFS=$as_save_IFS
12960 
12961   ;;
12962 esac
12963 fi
12964 GREP=$ac_cv_path_GREP
12965 if test -n "$GREP"; then
12966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12967 $as_echo "$GREP" >&6; }
12968 else
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12971 fi
12972 
12973 
12974           if test "x$GREP" = x; then
12975             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12976           fi
12977         else
12978           # Otherwise we believe it is a complete path. Use it as it is.
12979           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12980 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12981           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12982 $as_echo_n "checking for GREP... " >&6; }
12983           if test ! -x "$tool_specified"; then
12984             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12985 $as_echo "not found" >&6; }
12986             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12987           fi
12988           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12989 $as_echo "$tool_specified" >&6; }
12990         fi
12991       fi
12992     fi
12993 
12994   fi
12995 
12996 
12997   if test "x$GREP" = x; then
12998     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12999   fi
13000 
13001 
13002 
13003 
13004   # Publish this variable in the help.
13005 
13006 
13007   if [ -z "${EGREP+x}" ]; then
13008     # The variable is not set by user, try to locate tool using the code snippet
13009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13010 $as_echo_n "checking for egrep... " >&6; }
13011 if ${ac_cv_path_EGREP+:} false; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13015    then ac_cv_path_EGREP="$GREP -E"
13016    else
13017      if test -z "$EGREP"; then
13018   ac_path_EGREP_found=false
13019   # Loop through the user's path and test for each of PROGNAME-LIST
13020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13022 do
13023   IFS=$as_save_IFS
13024   test -z "$as_dir" && as_dir=.
13025     for ac_prog in egrep; do
13026     for ac_exec_ext in '' $ac_executable_extensions; do
13027       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13028       as_fn_executable_p "$ac_path_EGREP" || continue
13029 # Check for GNU ac_path_EGREP and select it if it is found.
13030   # Check for GNU $ac_path_EGREP
13031 case `"$ac_path_EGREP" --version 2>&1` in
13032 *GNU*)
13033   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13034 *)
13035   ac_count=0
13036   $as_echo_n 0123456789 >"conftest.in"
13037   while :
13038   do
13039     cat "conftest.in" "conftest.in" >"conftest.tmp"
13040     mv "conftest.tmp" "conftest.in"
13041     cp "conftest.in" "conftest.nl"
13042     $as_echo 'EGREP' >> "conftest.nl"
13043     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13045     as_fn_arith $ac_count + 1 && ac_count=$as_val
13046     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13047       # Best one so far, save it but keep looking for a better one
13048       ac_cv_path_EGREP="$ac_path_EGREP"
13049       ac_path_EGREP_max=$ac_count
13050     fi
13051     # 10*(2^10) chars as input seems more than enough
13052     test $ac_count -gt 10 && break
13053   done
13054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13055 esac
13056 
13057       $ac_path_EGREP_found && break 3
13058     done
13059   done
13060   done
13061 IFS=$as_save_IFS
13062   if test -z "$ac_cv_path_EGREP"; then
13063     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13064   fi
13065 else
13066   ac_cv_path_EGREP=$EGREP
13067 fi
13068 
13069    fi
13070 fi
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13072 $as_echo "$ac_cv_path_EGREP" >&6; }
13073  EGREP="$ac_cv_path_EGREP"
13074 
13075 
13076   else
13077     # The variable is set, but is it from the command line or the environment?
13078 
13079     # Try to remove the string !EGREP! from our list.
13080     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13081     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13082       # If it failed, the variable was not from the command line. Ignore it,
13083       # but warn the user (except for BASH, which is always set by the calling BASH).
13084       if test "xEGREP" != xBASH; then
13085         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13086 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13087       fi
13088       # Try to locate tool using the code snippet
13089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13090 $as_echo_n "checking for egrep... " >&6; }
13091 if ${ac_cv_path_EGREP+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13095    then ac_cv_path_EGREP="$GREP -E"
13096    else
13097      if test -z "$EGREP"; then
13098   ac_path_EGREP_found=false
13099   # Loop through the user's path and test for each of PROGNAME-LIST
13100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13102 do
13103   IFS=$as_save_IFS
13104   test -z "$as_dir" && as_dir=.
13105     for ac_prog in egrep; do
13106     for ac_exec_ext in '' $ac_executable_extensions; do
13107       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13108       as_fn_executable_p "$ac_path_EGREP" || continue
13109 # Check for GNU ac_path_EGREP and select it if it is found.
13110   # Check for GNU $ac_path_EGREP
13111 case `"$ac_path_EGREP" --version 2>&1` in
13112 *GNU*)
13113   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13114 *)
13115   ac_count=0
13116   $as_echo_n 0123456789 >"conftest.in"
13117   while :
13118   do
13119     cat "conftest.in" "conftest.in" >"conftest.tmp"
13120     mv "conftest.tmp" "conftest.in"
13121     cp "conftest.in" "conftest.nl"
13122     $as_echo 'EGREP' >> "conftest.nl"
13123     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13125     as_fn_arith $ac_count + 1 && ac_count=$as_val
13126     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13127       # Best one so far, save it but keep looking for a better one
13128       ac_cv_path_EGREP="$ac_path_EGREP"
13129       ac_path_EGREP_max=$ac_count
13130     fi
13131     # 10*(2^10) chars as input seems more than enough
13132     test $ac_count -gt 10 && break
13133   done
13134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13135 esac
13136 
13137       $ac_path_EGREP_found && break 3
13138     done
13139   done
13140   done
13141 IFS=$as_save_IFS
13142   if test -z "$ac_cv_path_EGREP"; then
13143     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13144   fi
13145 else
13146   ac_cv_path_EGREP=$EGREP
13147 fi
13148 
13149    fi
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13152 $as_echo "$ac_cv_path_EGREP" >&6; }
13153  EGREP="$ac_cv_path_EGREP"
13154 
13155 
13156     else
13157       # If it succeeded, then it was overridden by the user. We will use it
13158       # for the tool.
13159 
13160       # First remove it from the list of overridden variables, so we can test
13161       # for unknown variables in the end.
13162       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13163 
13164       # Check if we try to supply an empty value
13165       if test "x$EGREP" = x; then
13166         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13167 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13169 $as_echo_n "checking for EGREP... " >&6; }
13170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13171 $as_echo "disabled" >&6; }
13172       else
13173         # Check if the provided tool contains a complete path.
13174         tool_specified="$EGREP"
13175         tool_basename="${tool_specified##*/}"
13176         if test "x$tool_basename" = "x$tool_specified"; then
13177           # A command without a complete path is provided, search $PATH.
13178           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13179 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13180           # Extract the first word of "$tool_basename", so it can be a program name with args.
13181 set dummy $tool_basename; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if ${ac_cv_path_EGREP+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   case $EGREP in
13188   [\\/]* | ?:[\\/]*)
13189   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13190   ;;
13191   *)
13192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13194 do
13195   IFS=$as_save_IFS
13196   test -z "$as_dir" && as_dir=.
13197     for ac_exec_ext in '' $ac_executable_extensions; do
13198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13199     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201     break 2
13202   fi
13203 done
13204   done
13205 IFS=$as_save_IFS
13206 
13207   ;;
13208 esac
13209 fi
13210 EGREP=$ac_cv_path_EGREP
13211 if test -n "$EGREP"; then
13212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13213 $as_echo "$EGREP" >&6; }
13214 else
13215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 fi
13218 
13219 
13220           if test "x$EGREP" = x; then
13221             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13222           fi
13223         else
13224           # Otherwise we believe it is a complete path. Use it as it is.
13225           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13226 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13227           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13228 $as_echo_n "checking for EGREP... " >&6; }
13229           if test ! -x "$tool_specified"; then
13230             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13231 $as_echo "not found" >&6; }
13232             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13233           fi
13234           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13235 $as_echo "$tool_specified" >&6; }
13236         fi
13237       fi
13238     fi
13239 
13240   fi
13241 
13242 
13243   if test "x$EGREP" = x; then
13244     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13245   fi
13246 
13247 
13248 
13249 
13250   # Publish this variable in the help.
13251 
13252 
13253   if [ -z "${FGREP+x}" ]; then
13254     # The variable is not set by user, try to locate tool using the code snippet
13255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13256 $as_echo_n "checking for fgrep... " >&6; }
13257 if ${ac_cv_path_FGREP+:} false; then :
13258   $as_echo_n "(cached) " >&6
13259 else
13260   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13261    then ac_cv_path_FGREP="$GREP -F"
13262    else
13263      if test -z "$FGREP"; then
13264   ac_path_FGREP_found=false
13265   # Loop through the user's path and test for each of PROGNAME-LIST
13266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13268 do
13269   IFS=$as_save_IFS
13270   test -z "$as_dir" && as_dir=.
13271     for ac_prog in fgrep; do
13272     for ac_exec_ext in '' $ac_executable_extensions; do
13273       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13274       as_fn_executable_p "$ac_path_FGREP" || continue
13275 # Check for GNU ac_path_FGREP and select it if it is found.
13276   # Check for GNU $ac_path_FGREP
13277 case `"$ac_path_FGREP" --version 2>&1` in
13278 *GNU*)
13279   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13280 *)
13281   ac_count=0
13282   $as_echo_n 0123456789 >"conftest.in"
13283   while :
13284   do
13285     cat "conftest.in" "conftest.in" >"conftest.tmp"
13286     mv "conftest.tmp" "conftest.in"
13287     cp "conftest.in" "conftest.nl"
13288     $as_echo 'FGREP' >> "conftest.nl"
13289     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13290     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13291     as_fn_arith $ac_count + 1 && ac_count=$as_val
13292     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13293       # Best one so far, save it but keep looking for a better one
13294       ac_cv_path_FGREP="$ac_path_FGREP"
13295       ac_path_FGREP_max=$ac_count
13296     fi
13297     # 10*(2^10) chars as input seems more than enough
13298     test $ac_count -gt 10 && break
13299   done
13300   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13301 esac
13302 
13303       $ac_path_FGREP_found && break 3
13304     done
13305   done
13306   done
13307 IFS=$as_save_IFS
13308   if test -z "$ac_cv_path_FGREP"; then
13309     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13310   fi
13311 else
13312   ac_cv_path_FGREP=$FGREP
13313 fi
13314 
13315    fi
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13318 $as_echo "$ac_cv_path_FGREP" >&6; }
13319  FGREP="$ac_cv_path_FGREP"
13320 
13321 
13322   else
13323     # The variable is set, but is it from the command line or the environment?
13324 
13325     # Try to remove the string !FGREP! from our list.
13326     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13327     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13328       # If it failed, the variable was not from the command line. Ignore it,
13329       # but warn the user (except for BASH, which is always set by the calling BASH).
13330       if test "xFGREP" != xBASH; then
13331         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13332 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13333       fi
13334       # Try to locate tool using the code snippet
13335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13336 $as_echo_n "checking for fgrep... " >&6; }
13337 if ${ac_cv_path_FGREP+:} false; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13341    then ac_cv_path_FGREP="$GREP -F"
13342    else
13343      if test -z "$FGREP"; then
13344   ac_path_FGREP_found=false
13345   # Loop through the user's path and test for each of PROGNAME-LIST
13346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13348 do
13349   IFS=$as_save_IFS
13350   test -z "$as_dir" && as_dir=.
13351     for ac_prog in fgrep; do
13352     for ac_exec_ext in '' $ac_executable_extensions; do
13353       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13354       as_fn_executable_p "$ac_path_FGREP" || continue
13355 # Check for GNU ac_path_FGREP and select it if it is found.
13356   # Check for GNU $ac_path_FGREP
13357 case `"$ac_path_FGREP" --version 2>&1` in
13358 *GNU*)
13359   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13360 *)
13361   ac_count=0
13362   $as_echo_n 0123456789 >"conftest.in"
13363   while :
13364   do
13365     cat "conftest.in" "conftest.in" >"conftest.tmp"
13366     mv "conftest.tmp" "conftest.in"
13367     cp "conftest.in" "conftest.nl"
13368     $as_echo 'FGREP' >> "conftest.nl"
13369     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13370     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13371     as_fn_arith $ac_count + 1 && ac_count=$as_val
13372     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13373       # Best one so far, save it but keep looking for a better one
13374       ac_cv_path_FGREP="$ac_path_FGREP"
13375       ac_path_FGREP_max=$ac_count
13376     fi
13377     # 10*(2^10) chars as input seems more than enough
13378     test $ac_count -gt 10 && break
13379   done
13380   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13381 esac
13382 
13383       $ac_path_FGREP_found && break 3
13384     done
13385   done
13386   done
13387 IFS=$as_save_IFS
13388   if test -z "$ac_cv_path_FGREP"; then
13389     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13390   fi
13391 else
13392   ac_cv_path_FGREP=$FGREP
13393 fi
13394 
13395    fi
13396 fi
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13398 $as_echo "$ac_cv_path_FGREP" >&6; }
13399  FGREP="$ac_cv_path_FGREP"
13400 
13401 
13402     else
13403       # If it succeeded, then it was overridden by the user. We will use it
13404       # for the tool.
13405 
13406       # First remove it from the list of overridden variables, so we can test
13407       # for unknown variables in the end.
13408       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13409 
13410       # Check if we try to supply an empty value
13411       if test "x$FGREP" = x; then
13412         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13413 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13415 $as_echo_n "checking for FGREP... " >&6; }
13416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13417 $as_echo "disabled" >&6; }
13418       else
13419         # Check if the provided tool contains a complete path.
13420         tool_specified="$FGREP"
13421         tool_basename="${tool_specified##*/}"
13422         if test "x$tool_basename" = "x$tool_specified"; then
13423           # A command without a complete path is provided, search $PATH.
13424           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13425 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13426           # Extract the first word of "$tool_basename", so it can be a program name with args.
13427 set dummy $tool_basename; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if ${ac_cv_path_FGREP+:} false; then :
13431   $as_echo_n "(cached) " >&6
13432 else
13433   case $FGREP in
13434   [\\/]* | ?:[\\/]*)
13435   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13436   ;;
13437   *)
13438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13439 for as_dir in $PATH
13440 do
13441   IFS=$as_save_IFS
13442   test -z "$as_dir" && as_dir=.
13443     for ac_exec_ext in '' $ac_executable_extensions; do
13444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13445     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447     break 2
13448   fi
13449 done
13450   done
13451 IFS=$as_save_IFS
13452 
13453   ;;
13454 esac
13455 fi
13456 FGREP=$ac_cv_path_FGREP
13457 if test -n "$FGREP"; then
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13459 $as_echo "$FGREP" >&6; }
13460 else
13461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462 $as_echo "no" >&6; }
13463 fi
13464 
13465 
13466           if test "x$FGREP" = x; then
13467             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13468           fi
13469         else
13470           # Otherwise we believe it is a complete path. Use it as it is.
13471           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13472 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13473           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13474 $as_echo_n "checking for FGREP... " >&6; }
13475           if test ! -x "$tool_specified"; then
13476             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13477 $as_echo "not found" >&6; }
13478             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13479           fi
13480           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13481 $as_echo "$tool_specified" >&6; }
13482         fi
13483       fi
13484     fi
13485 
13486   fi
13487 
13488 
13489   if test "x$FGREP" = x; then
13490     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13491   fi
13492 
13493 
13494 
13495 
13496   # Publish this variable in the help.
13497 
13498 
13499   if [ -z "${SED+x}" ]; then
13500     # The variable is not set by user, try to locate tool using the code snippet
13501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13502 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13503 if ${ac_cv_path_SED+:} false; then :
13504   $as_echo_n "(cached) " >&6
13505 else
13506             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13507      for ac_i in 1 2 3 4 5 6 7; do
13508        ac_script="$ac_script$as_nl$ac_script"
13509      done
13510      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13511      { ac_script=; unset ac_script;}
13512      if test -z "$SED"; then
13513   ac_path_SED_found=false
13514   # Loop through the user's path and test for each of PROGNAME-LIST
13515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $PATH
13517 do
13518   IFS=$as_save_IFS
13519   test -z "$as_dir" && as_dir=.
13520     for ac_prog in sed gsed; do
13521     for ac_exec_ext in '' $ac_executable_extensions; do
13522       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13523       as_fn_executable_p "$ac_path_SED" || continue
13524 # Check for GNU ac_path_SED and select it if it is found.
13525   # Check for GNU $ac_path_SED
13526 case `"$ac_path_SED" --version 2>&1` in
13527 *GNU*)
13528   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13529 *)
13530   ac_count=0
13531   $as_echo_n 0123456789 >"conftest.in"
13532   while :
13533   do
13534     cat "conftest.in" "conftest.in" >"conftest.tmp"
13535     mv "conftest.tmp" "conftest.in"
13536     cp "conftest.in" "conftest.nl"
13537     $as_echo '' >> "conftest.nl"
13538     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13539     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13540     as_fn_arith $ac_count + 1 && ac_count=$as_val
13541     if test $ac_count -gt ${ac_path_SED_max-0}; then
13542       # Best one so far, save it but keep looking for a better one
13543       ac_cv_path_SED="$ac_path_SED"
13544       ac_path_SED_max=$ac_count
13545     fi
13546     # 10*(2^10) chars as input seems more than enough
13547     test $ac_count -gt 10 && break
13548   done
13549   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13550 esac
13551 
13552       $ac_path_SED_found && break 3
13553     done
13554   done
13555   done
13556 IFS=$as_save_IFS
13557   if test -z "$ac_cv_path_SED"; then
13558     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13559   fi
13560 else
13561   ac_cv_path_SED=$SED
13562 fi
13563 
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13566 $as_echo "$ac_cv_path_SED" >&6; }
13567  SED="$ac_cv_path_SED"
13568   rm -f conftest.sed
13569 
13570   else
13571     # The variable is set, but is it from the command line or the environment?
13572 
13573     # Try to remove the string !SED! from our list.
13574     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13575     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13576       # If it failed, the variable was not from the command line. Ignore it,
13577       # but warn the user (except for BASH, which is always set by the calling BASH).
13578       if test "xSED" != xBASH; then
13579         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13580 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13581       fi
13582       # Try to locate tool using the code snippet
13583       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13584 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13585 if ${ac_cv_path_SED+:} false; then :
13586   $as_echo_n "(cached) " >&6
13587 else
13588             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13589      for ac_i in 1 2 3 4 5 6 7; do
13590        ac_script="$ac_script$as_nl$ac_script"
13591      done
13592      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13593      { ac_script=; unset ac_script;}
13594      if test -z "$SED"; then
13595   ac_path_SED_found=false
13596   # Loop through the user's path and test for each of PROGNAME-LIST
13597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13599 do
13600   IFS=$as_save_IFS
13601   test -z "$as_dir" && as_dir=.
13602     for ac_prog in sed gsed; do
13603     for ac_exec_ext in '' $ac_executable_extensions; do
13604       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13605       as_fn_executable_p "$ac_path_SED" || continue
13606 # Check for GNU ac_path_SED and select it if it is found.
13607   # Check for GNU $ac_path_SED
13608 case `"$ac_path_SED" --version 2>&1` in
13609 *GNU*)
13610   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13611 *)
13612   ac_count=0
13613   $as_echo_n 0123456789 >"conftest.in"
13614   while :
13615   do
13616     cat "conftest.in" "conftest.in" >"conftest.tmp"
13617     mv "conftest.tmp" "conftest.in"
13618     cp "conftest.in" "conftest.nl"
13619     $as_echo '' >> "conftest.nl"
13620     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13622     as_fn_arith $ac_count + 1 && ac_count=$as_val
13623     if test $ac_count -gt ${ac_path_SED_max-0}; then
13624       # Best one so far, save it but keep looking for a better one
13625       ac_cv_path_SED="$ac_path_SED"
13626       ac_path_SED_max=$ac_count
13627     fi
13628     # 10*(2^10) chars as input seems more than enough
13629     test $ac_count -gt 10 && break
13630   done
13631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13632 esac
13633 
13634       $ac_path_SED_found && break 3
13635     done
13636   done
13637   done
13638 IFS=$as_save_IFS
13639   if test -z "$ac_cv_path_SED"; then
13640     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13641   fi
13642 else
13643   ac_cv_path_SED=$SED
13644 fi
13645 
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13648 $as_echo "$ac_cv_path_SED" >&6; }
13649  SED="$ac_cv_path_SED"
13650   rm -f conftest.sed
13651 
13652     else
13653       # If it succeeded, then it was overridden by the user. We will use it
13654       # for the tool.
13655 
13656       # First remove it from the list of overridden variables, so we can test
13657       # for unknown variables in the end.
13658       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13659 
13660       # Check if we try to supply an empty value
13661       if test "x$SED" = x; then
13662         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13663 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13665 $as_echo_n "checking for SED... " >&6; }
13666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13667 $as_echo "disabled" >&6; }
13668       else
13669         # Check if the provided tool contains a complete path.
13670         tool_specified="$SED"
13671         tool_basename="${tool_specified##*/}"
13672         if test "x$tool_basename" = "x$tool_specified"; then
13673           # A command without a complete path is provided, search $PATH.
13674           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13675 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13676           # Extract the first word of "$tool_basename", so it can be a program name with args.
13677 set dummy $tool_basename; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679 $as_echo_n "checking for $ac_word... " >&6; }
13680 if ${ac_cv_path_SED+:} false; then :
13681   $as_echo_n "(cached) " >&6
13682 else
13683   case $SED in
13684   [\\/]* | ?:[\\/]*)
13685   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13686   ;;
13687   *)
13688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13690 do
13691   IFS=$as_save_IFS
13692   test -z "$as_dir" && as_dir=.
13693     for ac_exec_ext in '' $ac_executable_extensions; do
13694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697     break 2
13698   fi
13699 done
13700   done
13701 IFS=$as_save_IFS
13702 
13703   ;;
13704 esac
13705 fi
13706 SED=$ac_cv_path_SED
13707 if test -n "$SED"; then
13708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13709 $as_echo "$SED" >&6; }
13710 else
13711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13713 fi
13714 
13715 
13716           if test "x$SED" = x; then
13717             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13718           fi
13719         else
13720           # Otherwise we believe it is a complete path. Use it as it is.
13721           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13722 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13723           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13724 $as_echo_n "checking for SED... " >&6; }
13725           if test ! -x "$tool_specified"; then
13726             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13727 $as_echo "not found" >&6; }
13728             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13729           fi
13730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13731 $as_echo "$tool_specified" >&6; }
13732         fi
13733       fi
13734     fi
13735 
13736   fi
13737 
13738 
13739   if test "x$SED" = x; then
13740     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13741   fi
13742 
13743 
13744 
13745   # Always force rm.
13746   RM="$RM -f"
13747 
13748   # pwd behaves differently on various platforms and some don't support the -L flag.
13749   # Always use the bash builtin pwd to get uniform behavior.
13750   THEPWDCMD=pwd
13751 
13752   # These are not required on all platforms
13753 
13754 
13755   # Publish this variable in the help.
13756 
13757 
13758   if [ -z "${CYGPATH+x}" ]; then
13759     # The variable is not set by user, try to locate tool using the code snippet
13760     for ac_prog in cygpath
13761 do
13762   # Extract the first word of "$ac_prog", so it can be a program name with args.
13763 set dummy $ac_prog; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if ${ac_cv_path_CYGPATH+:} false; then :
13767   $as_echo_n "(cached) " >&6
13768 else
13769   case $CYGPATH in
13770   [\\/]* | ?:[\\/]*)
13771   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13772   ;;
13773   *)
13774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777   IFS=$as_save_IFS
13778   test -z "$as_dir" && as_dir=.
13779     for ac_exec_ext in '' $ac_executable_extensions; do
13780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783     break 2
13784   fi
13785 done
13786   done
13787 IFS=$as_save_IFS
13788 
13789   ;;
13790 esac
13791 fi
13792 CYGPATH=$ac_cv_path_CYGPATH
13793 if test -n "$CYGPATH"; then
13794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13795 $as_echo "$CYGPATH" >&6; }
13796 else
13797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13799 fi
13800 
13801 
13802   test -n "$CYGPATH" && break
13803 done
13804 
13805   else
13806     # The variable is set, but is it from the command line or the environment?
13807 
13808     # Try to remove the string !CYGPATH! from our list.
13809     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13810     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13811       # If it failed, the variable was not from the command line. Ignore it,
13812       # but warn the user (except for BASH, which is always set by the calling BASH).
13813       if test "xCYGPATH" != xBASH; then
13814         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13815 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13816       fi
13817       # Try to locate tool using the code snippet
13818       for ac_prog in cygpath
13819 do
13820   # Extract the first word of "$ac_prog", so it can be a program name with args.
13821 set dummy $ac_prog; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823 $as_echo_n "checking for $ac_word... " >&6; }
13824 if ${ac_cv_path_CYGPATH+:} false; then :
13825   $as_echo_n "(cached) " >&6
13826 else
13827   case $CYGPATH in
13828   [\\/]* | ?:[\\/]*)
13829   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13830   ;;
13831   *)
13832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13833 for as_dir in $PATH
13834 do
13835   IFS=$as_save_IFS
13836   test -z "$as_dir" && as_dir=.
13837     for ac_exec_ext in '' $ac_executable_extensions; do
13838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13839     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13841     break 2
13842   fi
13843 done
13844   done
13845 IFS=$as_save_IFS
13846 
13847   ;;
13848 esac
13849 fi
13850 CYGPATH=$ac_cv_path_CYGPATH
13851 if test -n "$CYGPATH"; then
13852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13853 $as_echo "$CYGPATH" >&6; }
13854 else
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858 
13859 
13860   test -n "$CYGPATH" && break
13861 done
13862 
13863     else
13864       # If it succeeded, then it was overridden by the user. We will use it
13865       # for the tool.
13866 
13867       # First remove it from the list of overridden variables, so we can test
13868       # for unknown variables in the end.
13869       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13870 
13871       # Check if we try to supply an empty value
13872       if test "x$CYGPATH" = x; then
13873         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13874 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13875         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13876 $as_echo_n "checking for CYGPATH... " >&6; }
13877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13878 $as_echo "disabled" >&6; }
13879       else
13880         # Check if the provided tool contains a complete path.
13881         tool_specified="$CYGPATH"
13882         tool_basename="${tool_specified##*/}"
13883         if test "x$tool_basename" = "x$tool_specified"; then
13884           # A command without a complete path is provided, search $PATH.
13885           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13886 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13887           # Extract the first word of "$tool_basename", so it can be a program name with args.
13888 set dummy $tool_basename; ac_word=$2
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890 $as_echo_n "checking for $ac_word... " >&6; }
13891 if ${ac_cv_path_CYGPATH+:} false; then :
13892   $as_echo_n "(cached) " >&6
13893 else
13894   case $CYGPATH in
13895   [\\/]* | ?:[\\/]*)
13896   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13897   ;;
13898   *)
13899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13901 do
13902   IFS=$as_save_IFS
13903   test -z "$as_dir" && as_dir=.
13904     for ac_exec_ext in '' $ac_executable_extensions; do
13905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13906     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13908     break 2
13909   fi
13910 done
13911   done
13912 IFS=$as_save_IFS
13913 
13914   ;;
13915 esac
13916 fi
13917 CYGPATH=$ac_cv_path_CYGPATH
13918 if test -n "$CYGPATH"; then
13919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13920 $as_echo "$CYGPATH" >&6; }
13921 else
13922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13924 fi
13925 
13926 
13927           if test "x$CYGPATH" = x; then
13928             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13929           fi
13930         else
13931           # Otherwise we believe it is a complete path. Use it as it is.
13932           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13933 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13934           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13935 $as_echo_n "checking for CYGPATH... " >&6; }
13936           if test ! -x "$tool_specified"; then
13937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13938 $as_echo "not found" >&6; }
13939             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13940           fi
13941           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13942 $as_echo "$tool_specified" >&6; }
13943         fi
13944       fi
13945     fi
13946 
13947   fi
13948 
13949 
13950 
13951 
13952   # Publish this variable in the help.
13953 
13954 
13955   if [ -z "${READLINK+x}" ]; then
13956     # The variable is not set by user, try to locate tool using the code snippet
13957     for ac_prog in greadlink readlink
13958 do
13959   # Extract the first word of "$ac_prog", so it can be a program name with args.
13960 set dummy $ac_prog; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962 $as_echo_n "checking for $ac_word... " >&6; }
13963 if ${ac_cv_path_READLINK+:} false; then :
13964   $as_echo_n "(cached) " >&6
13965 else
13966   case $READLINK in
13967   [\\/]* | ?:[\\/]*)
13968   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13969   ;;
13970   *)
13971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13973 do
13974   IFS=$as_save_IFS
13975   test -z "$as_dir" && as_dir=.
13976     for ac_exec_ext in '' $ac_executable_extensions; do
13977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13978     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980     break 2
13981   fi
13982 done
13983   done
13984 IFS=$as_save_IFS
13985 
13986   ;;
13987 esac
13988 fi
13989 READLINK=$ac_cv_path_READLINK
13990 if test -n "$READLINK"; then
13991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13992 $as_echo "$READLINK" >&6; }
13993 else
13994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13996 fi
13997 
13998 
13999   test -n "$READLINK" && break
14000 done
14001 
14002   else
14003     # The variable is set, but is it from the command line or the environment?
14004 
14005     # Try to remove the string !READLINK! from our list.
14006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14008       # If it failed, the variable was not from the command line. Ignore it,
14009       # but warn the user (except for BASH, which is always set by the calling BASH).
14010       if test "xREADLINK" != xBASH; then
14011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14012 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14013       fi
14014       # Try to locate tool using the code snippet
14015       for ac_prog in greadlink readlink
14016 do
14017   # Extract the first word of "$ac_prog", so it can be a program name with args.
14018 set dummy $ac_prog; ac_word=$2
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if ${ac_cv_path_READLINK+:} false; then :
14022   $as_echo_n "(cached) " >&6
14023 else
14024   case $READLINK in
14025   [\\/]* | ?:[\\/]*)
14026   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14027   ;;
14028   *)
14029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14031 do
14032   IFS=$as_save_IFS
14033   test -z "$as_dir" && as_dir=.
14034     for ac_exec_ext in '' $ac_executable_extensions; do
14035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14036     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14038     break 2
14039   fi
14040 done
14041   done
14042 IFS=$as_save_IFS
14043 
14044   ;;
14045 esac
14046 fi
14047 READLINK=$ac_cv_path_READLINK
14048 if test -n "$READLINK"; then
14049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14050 $as_echo "$READLINK" >&6; }
14051 else
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 fi
14055 
14056 
14057   test -n "$READLINK" && break
14058 done
14059 
14060     else
14061       # If it succeeded, then it was overridden by the user. We will use it
14062       # for the tool.
14063 
14064       # First remove it from the list of overridden variables, so we can test
14065       # for unknown variables in the end.
14066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14067 
14068       # Check if we try to supply an empty value
14069       if test "x$READLINK" = x; then
14070         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14071 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14073 $as_echo_n "checking for READLINK... " >&6; }
14074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14075 $as_echo "disabled" >&6; }
14076       else
14077         # Check if the provided tool contains a complete path.
14078         tool_specified="$READLINK"
14079         tool_basename="${tool_specified##*/}"
14080         if test "x$tool_basename" = "x$tool_specified"; then
14081           # A command without a complete path is provided, search $PATH.
14082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14083 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14084           # Extract the first word of "$tool_basename", so it can be a program name with args.
14085 set dummy $tool_basename; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_path_READLINK+:} false; then :
14089   $as_echo_n "(cached) " >&6
14090 else
14091   case $READLINK in
14092   [\\/]* | ?:[\\/]*)
14093   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14094   ;;
14095   *)
14096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097 for as_dir in $PATH
14098 do
14099   IFS=$as_save_IFS
14100   test -z "$as_dir" && as_dir=.
14101     for ac_exec_ext in '' $ac_executable_extensions; do
14102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14103     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14105     break 2
14106   fi
14107 done
14108   done
14109 IFS=$as_save_IFS
14110 
14111   ;;
14112 esac
14113 fi
14114 READLINK=$ac_cv_path_READLINK
14115 if test -n "$READLINK"; then
14116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14117 $as_echo "$READLINK" >&6; }
14118 else
14119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 $as_echo "no" >&6; }
14121 fi
14122 
14123 
14124           if test "x$READLINK" = x; then
14125             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14126           fi
14127         else
14128           # Otherwise we believe it is a complete path. Use it as it is.
14129           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14130 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14131           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14132 $as_echo_n "checking for READLINK... " >&6; }
14133           if test ! -x "$tool_specified"; then
14134             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14135 $as_echo "not found" >&6; }
14136             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14137           fi
14138           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14139 $as_echo "$tool_specified" >&6; }
14140         fi
14141       fi
14142     fi
14143 
14144   fi
14145 
14146 
14147 
14148 
14149   # Publish this variable in the help.
14150 
14151 
14152   if [ -z "${DF+x}" ]; then
14153     # The variable is not set by user, try to locate tool using the code snippet
14154     for ac_prog in df
14155 do
14156   # Extract the first word of "$ac_prog", so it can be a program name with args.
14157 set dummy $ac_prog; ac_word=$2
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14159 $as_echo_n "checking for $ac_word... " >&6; }
14160 if ${ac_cv_path_DF+:} false; then :
14161   $as_echo_n "(cached) " >&6
14162 else
14163   case $DF in
14164   [\\/]* | ?:[\\/]*)
14165   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14166   ;;
14167   *)
14168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14170 do
14171   IFS=$as_save_IFS
14172   test -z "$as_dir" && as_dir=.
14173     for ac_exec_ext in '' $ac_executable_extensions; do
14174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14175     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14177     break 2
14178   fi
14179 done
14180   done
14181 IFS=$as_save_IFS
14182 
14183   ;;
14184 esac
14185 fi
14186 DF=$ac_cv_path_DF
14187 if test -n "$DF"; then
14188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14189 $as_echo "$DF" >&6; }
14190 else
14191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192 $as_echo "no" >&6; }
14193 fi
14194 
14195 
14196   test -n "$DF" && break
14197 done
14198 
14199   else
14200     # The variable is set, but is it from the command line or the environment?
14201 
14202     # Try to remove the string !DF! from our list.
14203     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14204     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14205       # If it failed, the variable was not from the command line. Ignore it,
14206       # but warn the user (except for BASH, which is always set by the calling BASH).
14207       if test "xDF" != xBASH; then
14208         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14209 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14210       fi
14211       # Try to locate tool using the code snippet
14212       for ac_prog in df
14213 do
14214   # Extract the first word of "$ac_prog", so it can be a program name with args.
14215 set dummy $ac_prog; ac_word=$2
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14217 $as_echo_n "checking for $ac_word... " >&6; }
14218 if ${ac_cv_path_DF+:} false; then :
14219   $as_echo_n "(cached) " >&6
14220 else
14221   case $DF in
14222   [\\/]* | ?:[\\/]*)
14223   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14224   ;;
14225   *)
14226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
14228 do
14229   IFS=$as_save_IFS
14230   test -z "$as_dir" && as_dir=.
14231     for ac_exec_ext in '' $ac_executable_extensions; do
14232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14233     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14235     break 2
14236   fi
14237 done
14238   done
14239 IFS=$as_save_IFS
14240 
14241   ;;
14242 esac
14243 fi
14244 DF=$ac_cv_path_DF
14245 if test -n "$DF"; then
14246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14247 $as_echo "$DF" >&6; }
14248 else
14249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14251 fi
14252 
14253 
14254   test -n "$DF" && break
14255 done
14256 
14257     else
14258       # If it succeeded, then it was overridden by the user. We will use it
14259       # for the tool.
14260 
14261       # First remove it from the list of overridden variables, so we can test
14262       # for unknown variables in the end.
14263       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14264 
14265       # Check if we try to supply an empty value
14266       if test "x$DF" = x; then
14267         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14268 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14270 $as_echo_n "checking for DF... " >&6; }
14271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14272 $as_echo "disabled" >&6; }
14273       else
14274         # Check if the provided tool contains a complete path.
14275         tool_specified="$DF"
14276         tool_basename="${tool_specified##*/}"
14277         if test "x$tool_basename" = "x$tool_specified"; then
14278           # A command without a complete path is provided, search $PATH.
14279           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14280 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14281           # Extract the first word of "$tool_basename", so it can be a program name with args.
14282 set dummy $tool_basename; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14284 $as_echo_n "checking for $ac_word... " >&6; }
14285 if ${ac_cv_path_DF+:} false; then :
14286   $as_echo_n "(cached) " >&6
14287 else
14288   case $DF in
14289   [\\/]* | ?:[\\/]*)
14290   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14291   ;;
14292   *)
14293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14295 do
14296   IFS=$as_save_IFS
14297   test -z "$as_dir" && as_dir=.
14298     for ac_exec_ext in '' $ac_executable_extensions; do
14299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14300     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302     break 2
14303   fi
14304 done
14305   done
14306 IFS=$as_save_IFS
14307 
14308   ;;
14309 esac
14310 fi
14311 DF=$ac_cv_path_DF
14312 if test -n "$DF"; then
14313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14314 $as_echo "$DF" >&6; }
14315 else
14316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14318 fi
14319 
14320 
14321           if test "x$DF" = x; then
14322             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14323           fi
14324         else
14325           # Otherwise we believe it is a complete path. Use it as it is.
14326           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14327 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14328           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14329 $as_echo_n "checking for DF... " >&6; }
14330           if test ! -x "$tool_specified"; then
14331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14332 $as_echo "not found" >&6; }
14333             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14334           fi
14335           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14336 $as_echo "$tool_specified" >&6; }
14337         fi
14338       fi
14339     fi
14340 
14341   fi
14342 
14343 
14344 
14345 
14346   # Publish this variable in the help.
14347 
14348 
14349   if [ -z "${CPIO+x}" ]; then
14350     # The variable is not set by user, try to locate tool using the code snippet
14351     for ac_prog in cpio bsdcpio
14352 do
14353   # Extract the first word of "$ac_prog", so it can be a program name with args.
14354 set dummy $ac_prog; ac_word=$2
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14356 $as_echo_n "checking for $ac_word... " >&6; }
14357 if ${ac_cv_path_CPIO+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   case $CPIO in
14361   [\\/]* | ?:[\\/]*)
14362   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14363   ;;
14364   *)
14365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366 for as_dir in $PATH
14367 do
14368   IFS=$as_save_IFS
14369   test -z "$as_dir" && as_dir=.
14370     for ac_exec_ext in '' $ac_executable_extensions; do
14371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14372     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14374     break 2
14375   fi
14376 done
14377   done
14378 IFS=$as_save_IFS
14379 
14380   ;;
14381 esac
14382 fi
14383 CPIO=$ac_cv_path_CPIO
14384 if test -n "$CPIO"; then
14385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14386 $as_echo "$CPIO" >&6; }
14387 else
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14390 fi
14391 
14392 
14393   test -n "$CPIO" && break
14394 done
14395 
14396   else
14397     # The variable is set, but is it from the command line or the environment?
14398 
14399     # Try to remove the string !CPIO! from our list.
14400     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14401     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14402       # If it failed, the variable was not from the command line. Ignore it,
14403       # but warn the user (except for BASH, which is always set by the calling BASH).
14404       if test "xCPIO" != xBASH; then
14405         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14406 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14407       fi
14408       # Try to locate tool using the code snippet
14409       for ac_prog in cpio bsdcpio
14410 do
14411   # Extract the first word of "$ac_prog", so it can be a program name with args.
14412 set dummy $ac_prog; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14414 $as_echo_n "checking for $ac_word... " >&6; }
14415 if ${ac_cv_path_CPIO+:} false; then :
14416   $as_echo_n "(cached) " >&6
14417 else
14418   case $CPIO in
14419   [\\/]* | ?:[\\/]*)
14420   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14421   ;;
14422   *)
14423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14425 do
14426   IFS=$as_save_IFS
14427   test -z "$as_dir" && as_dir=.
14428     for ac_exec_ext in '' $ac_executable_extensions; do
14429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14430     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14432     break 2
14433   fi
14434 done
14435   done
14436 IFS=$as_save_IFS
14437 
14438   ;;
14439 esac
14440 fi
14441 CPIO=$ac_cv_path_CPIO
14442 if test -n "$CPIO"; then
14443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14444 $as_echo "$CPIO" >&6; }
14445 else
14446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447 $as_echo "no" >&6; }
14448 fi
14449 
14450 
14451   test -n "$CPIO" && break
14452 done
14453 
14454     else
14455       # If it succeeded, then it was overridden by the user. We will use it
14456       # for the tool.
14457 
14458       # First remove it from the list of overridden variables, so we can test
14459       # for unknown variables in the end.
14460       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14461 
14462       # Check if we try to supply an empty value
14463       if test "x$CPIO" = x; then
14464         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14465 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14467 $as_echo_n "checking for CPIO... " >&6; }
14468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14469 $as_echo "disabled" >&6; }
14470       else
14471         # Check if the provided tool contains a complete path.
14472         tool_specified="$CPIO"
14473         tool_basename="${tool_specified##*/}"
14474         if test "x$tool_basename" = "x$tool_specified"; then
14475           # A command without a complete path is provided, search $PATH.
14476           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14477 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14478           # Extract the first word of "$tool_basename", so it can be a program name with args.
14479 set dummy $tool_basename; ac_word=$2
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 $as_echo_n "checking for $ac_word... " >&6; }
14482 if ${ac_cv_path_CPIO+:} false; then :
14483   $as_echo_n "(cached) " >&6
14484 else
14485   case $CPIO in
14486   [\\/]* | ?:[\\/]*)
14487   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14488   ;;
14489   *)
14490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14492 do
14493   IFS=$as_save_IFS
14494   test -z "$as_dir" && as_dir=.
14495     for ac_exec_ext in '' $ac_executable_extensions; do
14496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14497     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499     break 2
14500   fi
14501 done
14502   done
14503 IFS=$as_save_IFS
14504 
14505   ;;
14506 esac
14507 fi
14508 CPIO=$ac_cv_path_CPIO
14509 if test -n "$CPIO"; then
14510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14511 $as_echo "$CPIO" >&6; }
14512 else
14513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 fi
14516 
14517 
14518           if test "x$CPIO" = x; then
14519             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14520           fi
14521         else
14522           # Otherwise we believe it is a complete path. Use it as it is.
14523           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14524 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14525           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14526 $as_echo_n "checking for CPIO... " >&6; }
14527           if test ! -x "$tool_specified"; then
14528             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14529 $as_echo "not found" >&6; }
14530             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14531           fi
14532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14533 $as_echo "$tool_specified" >&6; }
14534         fi
14535       fi
14536     fi
14537 
14538   fi
14539 
14540 
14541 
14542 
14543   # Publish this variable in the help.
14544 
14545 
14546   if [ -z "${NICE+x}" ]; then
14547     # The variable is not set by user, try to locate tool using the code snippet
14548     for ac_prog in nice
14549 do
14550   # Extract the first word of "$ac_prog", so it can be a program name with args.
14551 set dummy $ac_prog; ac_word=$2
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14553 $as_echo_n "checking for $ac_word... " >&6; }
14554 if ${ac_cv_path_NICE+:} false; then :
14555   $as_echo_n "(cached) " >&6
14556 else
14557   case $NICE in
14558   [\\/]* | ?:[\\/]*)
14559   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14560   ;;
14561   *)
14562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $PATH
14564 do
14565   IFS=$as_save_IFS
14566   test -z "$as_dir" && as_dir=.
14567     for ac_exec_ext in '' $ac_executable_extensions; do
14568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14571     break 2
14572   fi
14573 done
14574   done
14575 IFS=$as_save_IFS
14576 
14577   ;;
14578 esac
14579 fi
14580 NICE=$ac_cv_path_NICE
14581 if test -n "$NICE"; then
14582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14583 $as_echo "$NICE" >&6; }
14584 else
14585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14587 fi
14588 
14589 
14590   test -n "$NICE" && break
14591 done
14592 
14593   else
14594     # The variable is set, but is it from the command line or the environment?
14595 
14596     # Try to remove the string !NICE! from our list.
14597     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14598     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14599       # If it failed, the variable was not from the command line. Ignore it,
14600       # but warn the user (except for BASH, which is always set by the calling BASH).
14601       if test "xNICE" != xBASH; then
14602         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14603 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14604       fi
14605       # Try to locate tool using the code snippet
14606       for ac_prog in nice
14607 do
14608   # Extract the first word of "$ac_prog", so it can be a program name with args.
14609 set dummy $ac_prog; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611 $as_echo_n "checking for $ac_word... " >&6; }
14612 if ${ac_cv_path_NICE+:} false; then :
14613   $as_echo_n "(cached) " >&6
14614 else
14615   case $NICE in
14616   [\\/]* | ?:[\\/]*)
14617   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14618   ;;
14619   *)
14620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14621 for as_dir in $PATH
14622 do
14623   IFS=$as_save_IFS
14624   test -z "$as_dir" && as_dir=.
14625     for ac_exec_ext in '' $ac_executable_extensions; do
14626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14627     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14629     break 2
14630   fi
14631 done
14632   done
14633 IFS=$as_save_IFS
14634 
14635   ;;
14636 esac
14637 fi
14638 NICE=$ac_cv_path_NICE
14639 if test -n "$NICE"; then
14640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14641 $as_echo "$NICE" >&6; }
14642 else
14643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14645 fi
14646 
14647 
14648   test -n "$NICE" && break
14649 done
14650 
14651     else
14652       # If it succeeded, then it was overridden by the user. We will use it
14653       # for the tool.
14654 
14655       # First remove it from the list of overridden variables, so we can test
14656       # for unknown variables in the end.
14657       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14658 
14659       # Check if we try to supply an empty value
14660       if test "x$NICE" = x; then
14661         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14662 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14664 $as_echo_n "checking for NICE... " >&6; }
14665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14666 $as_echo "disabled" >&6; }
14667       else
14668         # Check if the provided tool contains a complete path.
14669         tool_specified="$NICE"
14670         tool_basename="${tool_specified##*/}"
14671         if test "x$tool_basename" = "x$tool_specified"; then
14672           # A command without a complete path is provided, search $PATH.
14673           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14674 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14675           # Extract the first word of "$tool_basename", so it can be a program name with args.
14676 set dummy $tool_basename; ac_word=$2
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14678 $as_echo_n "checking for $ac_word... " >&6; }
14679 if ${ac_cv_path_NICE+:} false; then :
14680   $as_echo_n "(cached) " >&6
14681 else
14682   case $NICE in
14683   [\\/]* | ?:[\\/]*)
14684   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14685   ;;
14686   *)
14687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14689 do
14690   IFS=$as_save_IFS
14691   test -z "$as_dir" && as_dir=.
14692     for ac_exec_ext in '' $ac_executable_extensions; do
14693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14694     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14696     break 2
14697   fi
14698 done
14699   done
14700 IFS=$as_save_IFS
14701 
14702   ;;
14703 esac
14704 fi
14705 NICE=$ac_cv_path_NICE
14706 if test -n "$NICE"; then
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14708 $as_echo "$NICE" >&6; }
14709 else
14710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14712 fi
14713 
14714 
14715           if test "x$NICE" = x; then
14716             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14717           fi
14718         else
14719           # Otherwise we believe it is a complete path. Use it as it is.
14720           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14721 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14722           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14723 $as_echo_n "checking for NICE... " >&6; }
14724           if test ! -x "$tool_specified"; then
14725             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14726 $as_echo "not found" >&6; }
14727             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14728           fi
14729           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14730 $as_echo "$tool_specified" >&6; }
14731         fi
14732       fi
14733     fi
14734 
14735   fi
14736 
14737 
14738 
14739 
14740 # Now we can determine OpenJDK build and target platforms. This is required to
14741 # have early on.
14742 # Make sure we can run config.sub.
14743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14744   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14745 
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14747 $as_echo_n "checking build system type... " >&6; }
14748 if ${ac_cv_build+:} false; then :
14749   $as_echo_n "(cached) " >&6
14750 else
14751   ac_build_alias=$build_alias
14752 test "x$ac_build_alias" = x &&
14753   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14754 test "x$ac_build_alias" = x &&
14755   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14757   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14758 
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14761 $as_echo "$ac_cv_build" >&6; }
14762 case $ac_cv_build in
14763 *-*-*) ;;
14764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14765 esac
14766 build=$ac_cv_build
14767 ac_save_IFS=$IFS; IFS='-'
14768 set x $ac_cv_build
14769 shift
14770 build_cpu=$1
14771 build_vendor=$2
14772 shift; shift
14773 # Remember, the first character of IFS is used to create $*,
14774 # except with old shells:
14775 build_os=$*
14776 IFS=$ac_save_IFS
14777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14778 
14779 
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14781 $as_echo_n "checking host system type... " >&6; }
14782 if ${ac_cv_host+:} false; then :
14783   $as_echo_n "(cached) " >&6
14784 else
14785   if test "x$host_alias" = x; then
14786   ac_cv_host=$ac_cv_build
14787 else
14788   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14789     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14790 fi
14791 
14792 fi
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14794 $as_echo "$ac_cv_host" >&6; }
14795 case $ac_cv_host in
14796 *-*-*) ;;
14797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14798 esac
14799 host=$ac_cv_host
14800 ac_save_IFS=$IFS; IFS='-'
14801 set x $ac_cv_host
14802 shift
14803 host_cpu=$1
14804 host_vendor=$2
14805 shift; shift
14806 # Remember, the first character of IFS is used to create $*,
14807 # except with old shells:
14808 host_os=$*
14809 IFS=$ac_save_IFS
14810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14811 
14812 
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14814 $as_echo_n "checking target system type... " >&6; }
14815 if ${ac_cv_target+:} false; then :
14816   $as_echo_n "(cached) " >&6
14817 else
14818   if test "x$target_alias" = x; then
14819   ac_cv_target=$ac_cv_host
14820 else
14821   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14822     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14823 fi
14824 
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14827 $as_echo "$ac_cv_target" >&6; }
14828 case $ac_cv_target in
14829 *-*-*) ;;
14830 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14831 esac
14832 target=$ac_cv_target
14833 ac_save_IFS=$IFS; IFS='-'
14834 set x $ac_cv_target
14835 shift
14836 target_cpu=$1
14837 target_vendor=$2
14838 shift; shift
14839 # Remember, the first character of IFS is used to create $*,
14840 # except with old shells:
14841 target_os=$*
14842 IFS=$ac_save_IFS
14843 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14844 
14845 
14846 # The aliases save the names the user supplied, while $host etc.
14847 # will get canonicalized.
14848 test -n "$target_alias" &&
14849   test "$program_prefix$program_suffix$program_transform_name" = \
14850     NONENONEs,x,x, &&
14851   program_prefix=${target_alias}-
14852 
14853   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14854   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14855   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14856   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14857   # to use the configure naming style.
14858 
14859 
14860 
14861 
14862 
14863   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14864   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14865   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14866   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14867   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14868   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14869 
14870 
14871 
14872   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14873 
14874   case "$build_os" in
14875     *linux*)
14876       VAR_OS=linux
14877       VAR_OS_TYPE=unix
14878       ;;
14879     *solaris*)
14880       VAR_OS=solaris
14881       VAR_OS_TYPE=unix
14882       ;;
14883     *darwin*)
14884       VAR_OS=macosx
14885       VAR_OS_TYPE=unix
14886       ;;
14887     *bsd*)
14888       VAR_OS=bsd
14889       VAR_OS_TYPE=unix
14890       ;;
14891     *cygwin*)
14892       VAR_OS=windows
14893       VAR_OS_ENV=windows.cygwin
14894       ;;
14895     *mingw*)
14896       VAR_OS=windows
14897       VAR_OS_ENV=windows.msys
14898       ;;
14899     *aix*)
14900       VAR_OS=aix
14901       VAR_OS_TYPE=unix
14902       ;;
14903     *)
14904       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14905       ;;
14906   esac
14907 
14908 
14909   # First argument is the cpu name from the trip/quad
14910   case "$build_cpu" in
14911     x86_64)
14912       VAR_CPU=x86_64
14913       VAR_CPU_ARCH=x86
14914       VAR_CPU_BITS=64
14915       VAR_CPU_ENDIAN=little
14916       ;;
14917     i?86)
14918       VAR_CPU=x86
14919       VAR_CPU_ARCH=x86
14920       VAR_CPU_BITS=32
14921       VAR_CPU_ENDIAN=little
14922       ;;
14923     arm*)
14924       VAR_CPU=arm
14925       VAR_CPU_ARCH=arm
14926       VAR_CPU_BITS=32
14927       VAR_CPU_ENDIAN=little
14928       ;;
14929     aarch64)
14930       VAR_CPU=aarch64
14931       VAR_CPU_ARCH=aarch64
14932       VAR_CPU_BITS=64
14933       VAR_CPU_ENDIAN=little
14934       ;;
14935     powerpc)
14936       VAR_CPU=ppc
14937       VAR_CPU_ARCH=ppc
14938       VAR_CPU_BITS=32
14939       VAR_CPU_ENDIAN=big
14940       ;;
14941     powerpc64)
14942       VAR_CPU=ppc64
14943       VAR_CPU_ARCH=ppc
14944       VAR_CPU_BITS=64
14945       VAR_CPU_ENDIAN=big
14946       ;;
14947     powerpc64le)
14948       VAR_CPU=ppc64le
14949       VAR_CPU_ARCH=ppc
14950       VAR_CPU_BITS=64
14951       VAR_CPU_ENDIAN=little
14952       ;;
14953     s390)
14954       VAR_CPU=s390
14955       VAR_CPU_ARCH=s390
14956       VAR_CPU_BITS=32
14957       VAR_CPU_ENDIAN=big
14958       ;;
14959     s390x)
14960       VAR_CPU=s390x
14961       VAR_CPU_ARCH=s390
14962       VAR_CPU_BITS=64
14963       VAR_CPU_ENDIAN=big
14964       ;;
14965     sparc)
14966       VAR_CPU=sparc
14967       VAR_CPU_ARCH=sparc
14968       VAR_CPU_BITS=32
14969       VAR_CPU_ENDIAN=big
14970       ;;
14971     sparcv9|sparc64)
14972       VAR_CPU=sparcv9
14973       VAR_CPU_ARCH=sparc
14974       VAR_CPU_BITS=64
14975       VAR_CPU_ENDIAN=big
14976       ;;
14977     *)
14978       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14979       ;;
14980   esac
14981 
14982   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14983   OPENJDK_BUILD_OS="$VAR_OS"
14984   if test "x$VAR_OS_TYPE" != x; then
14985     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14986   else
14987     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14988   fi
14989   if test "x$VAR_OS_ENV" != x; then
14990     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14991   else
14992     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14993   fi
14994   OPENJDK_BUILD_CPU="$VAR_CPU"
14995   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14996   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14997   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14998 
14999 
15000 
15001 
15002 
15003 
15004 
15005 
15006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15007 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15009 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15010 
15011   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15012 
15013   case "$host_os" in
15014     *linux*)
15015       VAR_OS=linux
15016       VAR_OS_TYPE=unix
15017       ;;
15018     *solaris*)
15019       VAR_OS=solaris
15020       VAR_OS_TYPE=unix
15021       ;;
15022     *darwin*)
15023       VAR_OS=macosx
15024       VAR_OS_TYPE=unix
15025       ;;
15026     *bsd*)
15027       VAR_OS=bsd
15028       VAR_OS_TYPE=unix
15029       ;;
15030     *cygwin*)
15031       VAR_OS=windows
15032       VAR_OS_ENV=windows.cygwin
15033       ;;
15034     *mingw*)
15035       VAR_OS=windows
15036       VAR_OS_ENV=windows.msys
15037       ;;
15038     *aix*)
15039       VAR_OS=aix
15040       VAR_OS_TYPE=unix
15041       ;;
15042     *)
15043       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15044       ;;
15045   esac
15046 
15047 
15048   # First argument is the cpu name from the trip/quad
15049   case "$host_cpu" in
15050     x86_64)
15051       VAR_CPU=x86_64
15052       VAR_CPU_ARCH=x86
15053       VAR_CPU_BITS=64
15054       VAR_CPU_ENDIAN=little
15055       ;;
15056     i?86)
15057       VAR_CPU=x86
15058       VAR_CPU_ARCH=x86
15059       VAR_CPU_BITS=32
15060       VAR_CPU_ENDIAN=little
15061       ;;
15062     arm*)
15063       VAR_CPU=arm
15064       VAR_CPU_ARCH=arm
15065       VAR_CPU_BITS=32
15066       VAR_CPU_ENDIAN=little
15067       ;;
15068     aarch64)
15069       VAR_CPU=aarch64
15070       VAR_CPU_ARCH=aarch64
15071       VAR_CPU_BITS=64
15072       VAR_CPU_ENDIAN=little
15073       ;;
15074     powerpc)
15075       VAR_CPU=ppc
15076       VAR_CPU_ARCH=ppc
15077       VAR_CPU_BITS=32
15078       VAR_CPU_ENDIAN=big
15079       ;;
15080     powerpc64)
15081       VAR_CPU=ppc64
15082       VAR_CPU_ARCH=ppc
15083       VAR_CPU_BITS=64
15084       VAR_CPU_ENDIAN=big
15085       ;;
15086     powerpc64le)
15087       VAR_CPU=ppc64le
15088       VAR_CPU_ARCH=ppc
15089       VAR_CPU_BITS=64
15090       VAR_CPU_ENDIAN=little
15091       ;;
15092     s390)
15093       VAR_CPU=s390
15094       VAR_CPU_ARCH=s390
15095       VAR_CPU_BITS=32
15096       VAR_CPU_ENDIAN=big
15097       ;;
15098     s390x)
15099       VAR_CPU=s390x
15100       VAR_CPU_ARCH=s390
15101       VAR_CPU_BITS=64
15102       VAR_CPU_ENDIAN=big
15103       ;;
15104     sparc)
15105       VAR_CPU=sparc
15106       VAR_CPU_ARCH=sparc
15107       VAR_CPU_BITS=32
15108       VAR_CPU_ENDIAN=big
15109       ;;
15110     sparcv9|sparc64)
15111       VAR_CPU=sparcv9
15112       VAR_CPU_ARCH=sparc
15113       VAR_CPU_BITS=64
15114       VAR_CPU_ENDIAN=big
15115       ;;
15116     *)
15117       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15118       ;;
15119   esac
15120 
15121   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15122   OPENJDK_TARGET_OS="$VAR_OS"
15123   if test "x$VAR_OS_TYPE" != x; then
15124     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15125   else
15126     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15127   fi
15128   if test "x$VAR_OS_ENV" != x; then
15129     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15130   else
15131     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15132   fi
15133   OPENJDK_TARGET_CPU="$VAR_CPU"
15134   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15135   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15136   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15137 
15138 
15139 
15140 
15141 
15142 
15143 
15144 
15145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15146 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15148 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15149 
15150 
15151 
15152 # Check whether --with-target-bits was given.
15153 if test "${with_target_bits+set}" = set; then :
15154   withval=$with_target_bits;
15155 fi
15156 
15157 
15158   # We have three types of compiles:
15159   # native  == normal compilation, target system == build system
15160   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15161   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15162   #
15163   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15164     # We're doing a proper cross-compilation
15165     COMPILE_TYPE="cross"
15166   else
15167     COMPILE_TYPE="native"
15168   fi
15169 
15170   if test "x$with_target_bits" != x; then
15171     if test "x$COMPILE_TYPE" = "xcross"; then
15172       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15173     fi
15174 
15175     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15176       # A reduced build is requested
15177       COMPILE_TYPE="reduced"
15178       OPENJDK_TARGET_CPU_BITS=32
15179       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15180         OPENJDK_TARGET_CPU=x86
15181       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15182         OPENJDK_TARGET_CPU=sparc
15183       else
15184         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15185       fi
15186     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15187       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
15188     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15189       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15190 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15191     else
15192       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15193     fi
15194   fi
15195 
15196 
15197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15198 $as_echo_n "checking compilation type... " >&6; }
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15200 $as_echo "$COMPILE_TYPE" >&6; }
15201 
15202 
15203   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15204     REQUIRED_OS_NAME=SunOS
15205     REQUIRED_OS_VERSION=5.10
15206   fi
15207   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15208     REQUIRED_OS_NAME=Linux
15209     REQUIRED_OS_VERSION=2.6
15210   fi
15211   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15212     REQUIRED_OS_NAME=Windows
15213     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15214       REQUIRED_OS_VERSION=5.2
15215     else
15216       REQUIRED_OS_VERSION=5.1
15217     fi
15218   fi
15219   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15220     REQUIRED_OS_NAME=Darwin
15221     REQUIRED_OS_VERSION=11.2
15222   fi
15223   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15224     REQUIRED_OS_NAME=AIX
15225     REQUIRED_OS_VERSION=7.1
15226   fi
15227 
15228 
15229 
15230 
15231 
15232   # Also store the legacy naming of the cpu.
15233   # Ie i586 and amd64 instead of x86 and x86_64
15234   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15235   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15236     OPENJDK_TARGET_CPU_LEGACY="i586"
15237   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15238     # On all platforms except MacOSX replace x86_64 with amd64.
15239     OPENJDK_TARGET_CPU_LEGACY="amd64"
15240   fi
15241 
15242 
15243   # And the second legacy naming of the cpu.
15244   # Ie i386 and amd64 instead of x86 and x86_64.
15245   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15246   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15247     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15248   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15249     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15250   fi
15251 
15252 
15253   # This is the name of the cpu (but using i386 and amd64 instead of
15254   # x86 and x86_64, respectively), preceeded by a /, to be used when
15255   # locating libraries. On macosx, it's empty, though.
15256   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15257   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15258     OPENJDK_TARGET_CPU_LIBDIR=""
15259   fi
15260 
15261 
15262   # Now do the same for OPENJDK_BUILD_CPU...
15263   # Also store the legacy naming of the cpu.
15264   # Ie i586 and amd64 instead of x86 and x86_64
15265   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15266   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15267     OPENJDK_BUILD_CPU_LEGACY="i586"
15268   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15269     # On all platforms except MacOSX replace x86_64 with amd64.
15270     OPENJDK_BUILD_CPU_LEGACY="amd64"
15271   fi
15272 
15273 
15274   # And the second legacy naming of the cpu.
15275   # Ie i386 and amd64 instead of x86 and x86_64.
15276   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15277   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15278     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15279   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15280     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15281   fi
15282 
15283 
15284   # This is the name of the cpu (but using i386 and amd64 instead of
15285   # x86 and x86_64, respectively), preceeded by a /, to be used when
15286   # locating libraries. On macosx, it's empty, though.
15287   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
15288   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15289     OPENJDK_BUILD_CPU_LIBDIR=""
15290   fi
15291 
15292 
15293   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15294   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15295   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15296   OPENJDK_TARGET_CPU_ISADIR=""
15297   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15298     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15299       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15300     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15301       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15302     fi
15303   fi
15304 
15305 
15306   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15307   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15308   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15309     # On linux only, we replace x86 with i386.
15310     OPENJDK_TARGET_CPU_OSARCH="i386"
15311   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15312     # On all platforms except macosx, we replace x86_64 with amd64.
15313     OPENJDK_TARGET_CPU_OSARCH="amd64"
15314   fi
15315 
15316 
15317   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15318   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15319     OPENJDK_TARGET_CPU_JLI="i386"
15320   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15321     # On all platforms except macosx, we replace x86_64 with amd64.
15322     OPENJDK_TARGET_CPU_JLI="amd64"
15323   fi
15324   # Now setup the -D flags for building libjli.
15325   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15326   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15327     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15328       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15329     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15330       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15331     fi
15332   fi
15333 
15334 
15335   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
15336   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15337     OPENJDK_BUILD_CPU_JLI="i386"
15338   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15339     # On all platforms except macosx, we replace x86_64 with amd64.
15340     OPENJDK_BUILD_CPU_JLI="amd64"
15341   fi
15342   # Now setup the -D flags for building libjli.
15343   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
15344   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15345     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
15346       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15347     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
15348       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15349     fi
15350   fi
15351 
15352 
15353   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15354       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15355   else
15356       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15357   fi
15358 
15359 
15360   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15361     A_LP64="LP64:="
15362     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15363     # unpack200.exe
15364     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15365       ADD_LP64="-D_LP64=1"
15366     fi
15367   fi
15368   LP64=$A_LP64
15369 
15370   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
15371     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
15372       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
15373     fi
15374   fi
15375 
15376   if test "x$COMPILE_TYPE" = "xcross"; then
15377     # FIXME: ... or should this include reduced builds..?
15378     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15379   else
15380     DEFINE_CROSS_COMPILE_ARCH=""
15381   fi
15382 
15383 
15384   # ZERO_ARCHDEF is used to enable architecture-specific code
15385   case "${OPENJDK_TARGET_CPU}" in
15386     ppc)     ZERO_ARCHDEF=PPC32 ;;
15387     ppc64)   ZERO_ARCHDEF=PPC64 ;;
15388     s390*)   ZERO_ARCHDEF=S390  ;;
15389     sparc*)  ZERO_ARCHDEF=SPARC ;;
15390     x86_64*) ZERO_ARCHDEF=AMD64 ;;
15391     x86)     ZERO_ARCHDEF=IA32  ;;
15392     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
15393   esac
15394 
15395 
15396 
15397 
15398 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15399 
15400   # Save the current directory this script was started from
15401   CURDIR="$PWD"
15402 
15403   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15404   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15405   # was not available at that time.
15406   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15407   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15408     ORIGINAL_PATH="$REWRITTEN_PATH"
15409     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15410 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15411   fi
15412 
15413   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15414     PATH_SEP=";"
15415 
15416   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15417   if test $SRC_ROOT_LENGTH -gt 100; then
15418     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15419   fi
15420 
15421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15423 $as_echo_n "checking cygwin release... " >&6; }
15424     CYGWIN_VERSION=`$UNAME -r`
15425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15426 $as_echo "$CYGWIN_VERSION" >&6; }
15427     WINDOWS_ENV_VENDOR='cygwin'
15428     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15429 
15430     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15431     if test "x$CYGWIN_VERSION_OLD" != x; then
15432       { $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
15433 $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;}
15434       as_fn_error $? "Cannot continue" "$LINENO" 5
15435     fi
15436     if test "x$CYGPATH" = x; then
15437       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15438     fi
15439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15440 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15441     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15442     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15443     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15444     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15446 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15447     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15448     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15449     if test "x$test_cygdrive_prefix" = x; then
15450       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15451     fi
15452   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15454 $as_echo_n "checking msys release... " >&6; }
15455     MSYS_VERSION=`$UNAME -r`
15456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15457 $as_echo "$MSYS_VERSION" >&6; }
15458 
15459     WINDOWS_ENV_VENDOR='msys'
15460     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15461 
15462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15463 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15464     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15465     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15466 
15467   windows_path="$MSYS_ROOT_PATH"
15468   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15469     unix_path=`$CYGPATH -u "$windows_path"`
15470     MSYS_ROOT_PATH="$unix_path"
15471   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15472     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15473     MSYS_ROOT_PATH="$unix_path"
15474   fi
15475 
15476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15477 $as_echo "$MSYS_ROOT_PATH" >&6; }
15478     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15479   else
15480     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15481   fi
15482 
15483   # Test if windows or unix (cygwin/msys) find is first in path.
15484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15485 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15486   FIND_BINARY_OUTPUT=`find --version 2>&1`
15487   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15489 $as_echo "unix style" >&6; }
15490   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15492 $as_echo "Windows" >&6; }
15493     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15494 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15495     { $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
15496 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15497     as_fn_error $? "Cannot continue" "$LINENO" 5
15498   else
15499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15500 $as_echo "unknown" >&6; }
15501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15502 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15503   fi
15504 
15505   else
15506     PATH_SEP=":"
15507   fi
15508 
15509 
15510   # We get the top-level directory from the supporting wrappers.
15511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15512 $as_echo_n "checking for top-level directory... " >&6; }
15513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15514 $as_echo "$TOPDIR" >&6; }
15515 
15516 
15517   # Save the original version of TOPDIR for string comparisons
15518   ORIGINAL_TOPDIR="$TOPDIR"
15519 
15520 
15521   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15522 
15523   # Only process if variable expands to non-empty
15524 
15525   if test "x$CURDIR" != x; then
15526     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15527 
15528   # Input might be given as Windows format, start by converting to
15529   # unix format.
15530   path="$CURDIR"
15531   new_path=`$CYGPATH -u "$path"`
15532 
15533   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15534   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15535   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15536   # "foo.exe" is OK but "foo" is an error.
15537   #
15538   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15539   # It is also a way to make sure we got the proper file name for the real test later on.
15540   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15541   if test "x$test_shortpath" = x; then
15542     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15543 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15544     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15545   fi
15546 
15547   # Call helper function which possibly converts this using DOS-style short mode.
15548   # If so, the updated path is stored in $new_path.
15549 
15550   input_path="$new_path"
15551   # Check if we need to convert this using DOS-style short mode. If the path
15552   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15553   # take no chances and rewrite it.
15554   # Note: m4 eats our [], so we need to use [ and ] instead.
15555   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15556   if test "x$has_forbidden_chars" != x; then
15557     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15558     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15559     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15560     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15561       # Going to short mode and back again did indeed matter. Since short mode is
15562       # case insensitive, let's make it lowercase to improve readability.
15563       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15564       # Now convert it back to Unix-style (cygpath)
15565       input_path=`$CYGPATH -u "$shortmode_path"`
15566       new_path="$input_path"
15567     fi
15568   fi
15569 
15570   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15571   if test "x$test_cygdrive_prefix" = x; then
15572     # As a simple fix, exclude /usr/bin since it's not a real path.
15573     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15574       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15575       # a path prefixed by /cygdrive for fixpath to work.
15576       new_path="$CYGWIN_ROOT_PATH$input_path"
15577     fi
15578   fi
15579 
15580 
15581   if test "x$path" != "x$new_path"; then
15582     CURDIR="$new_path"
15583     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15584 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15585   fi
15586 
15587     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15588 
15589   path="$CURDIR"
15590   has_colon=`$ECHO $path | $GREP ^.:`
15591   new_path="$path"
15592   if test "x$has_colon" = x; then
15593     # Not in mixed or Windows style, start by that.
15594     new_path=`cmd //c echo $path`
15595   fi
15596 
15597 
15598   input_path="$new_path"
15599   # Check if we need to convert this using DOS-style short mode. If the path
15600   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15601   # take no chances and rewrite it.
15602   # Note: m4 eats our [], so we need to use [ and ] instead.
15603   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15604   if test "x$has_forbidden_chars" != x; then
15605     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15606     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15607   fi
15608 
15609 
15610   windows_path="$new_path"
15611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15612     unix_path=`$CYGPATH -u "$windows_path"`
15613     new_path="$unix_path"
15614   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15615     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15616     new_path="$unix_path"
15617   fi
15618 
15619   if test "x$path" != "x$new_path"; then
15620     CURDIR="$new_path"
15621     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15622 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15623   fi
15624 
15625   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15626   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15627 
15628     else
15629       # We're on a unix platform. Hooray! :)
15630       path="$CURDIR"
15631       has_space=`$ECHO "$path" | $GREP " "`
15632       if test "x$has_space" != x; then
15633         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15634 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15635         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15636       fi
15637 
15638       # Use eval to expand a potential ~
15639       eval path="$path"
15640       if test ! -f "$path" && test ! -d "$path"; then
15641         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15642       fi
15643 
15644       if test -d "$path"; then
15645         CURDIR="`cd "$path"; $THEPWDCMD -L`"
15646       else
15647         dir="`$DIRNAME "$path"`"
15648         base="`$BASENAME "$path"`"
15649         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15650       fi
15651     fi
15652   fi
15653 
15654 
15655   # Only process if variable expands to non-empty
15656 
15657   if test "x$TOPDIR" != x; then
15658     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15659 
15660   # Input might be given as Windows format, start by converting to
15661   # unix format.
15662   path="$TOPDIR"
15663   new_path=`$CYGPATH -u "$path"`
15664 
15665   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15666   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15667   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15668   # "foo.exe" is OK but "foo" is an error.
15669   #
15670   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15671   # It is also a way to make sure we got the proper file name for the real test later on.
15672   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15673   if test "x$test_shortpath" = x; then
15674     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15675 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15676     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15677   fi
15678 
15679   # Call helper function which possibly converts this using DOS-style short mode.
15680   # If so, the updated path is stored in $new_path.
15681 
15682   input_path="$new_path"
15683   # Check if we need to convert this using DOS-style short mode. If the path
15684   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15685   # take no chances and rewrite it.
15686   # Note: m4 eats our [], so we need to use [ and ] instead.
15687   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15688   if test "x$has_forbidden_chars" != x; then
15689     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15690     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15691     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15692     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15693       # Going to short mode and back again did indeed matter. Since short mode is
15694       # case insensitive, let's make it lowercase to improve readability.
15695       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15696       # Now convert it back to Unix-style (cygpath)
15697       input_path=`$CYGPATH -u "$shortmode_path"`
15698       new_path="$input_path"
15699     fi
15700   fi
15701 
15702   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15703   if test "x$test_cygdrive_prefix" = x; then
15704     # As a simple fix, exclude /usr/bin since it's not a real path.
15705     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15706       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15707       # a path prefixed by /cygdrive for fixpath to work.
15708       new_path="$CYGWIN_ROOT_PATH$input_path"
15709     fi
15710   fi
15711 
15712 
15713   if test "x$path" != "x$new_path"; then
15714     TOPDIR="$new_path"
15715     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15716 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15717   fi
15718 
15719     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15720 
15721   path="$TOPDIR"
15722   has_colon=`$ECHO $path | $GREP ^.:`
15723   new_path="$path"
15724   if test "x$has_colon" = x; then
15725     # Not in mixed or Windows style, start by that.
15726     new_path=`cmd //c echo $path`
15727   fi
15728 
15729 
15730   input_path="$new_path"
15731   # Check if we need to convert this using DOS-style short mode. If the path
15732   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15733   # take no chances and rewrite it.
15734   # Note: m4 eats our [], so we need to use [ and ] instead.
15735   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15736   if test "x$has_forbidden_chars" != x; then
15737     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15738     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15739   fi
15740 
15741 
15742   windows_path="$new_path"
15743   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15744     unix_path=`$CYGPATH -u "$windows_path"`
15745     new_path="$unix_path"
15746   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15747     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15748     new_path="$unix_path"
15749   fi
15750 
15751   if test "x$path" != "x$new_path"; then
15752     TOPDIR="$new_path"
15753     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15754 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15755   fi
15756 
15757   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15758   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15759 
15760     else
15761       # We're on a unix platform. Hooray! :)
15762       path="$TOPDIR"
15763       has_space=`$ECHO "$path" | $GREP " "`
15764       if test "x$has_space" != x; then
15765         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15766 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15767         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15768       fi
15769 
15770       # Use eval to expand a potential ~
15771       eval path="$path"
15772       if test ! -f "$path" && test ! -d "$path"; then
15773         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15774       fi
15775 
15776       if test -d "$path"; then
15777         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15778       else
15779         dir="`$DIRNAME "$path"`"
15780         base="`$BASENAME "$path"`"
15781         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15782       fi
15783     fi
15784   fi
15785 
15786   # SRC_ROOT is a traditional alias for TOPDIR.
15787   SRC_ROOT=$TOPDIR
15788 
15789   # Calculate a canonical version of TOPDIR for string comparisons
15790   CANONICAL_TOPDIR=$TOPDIR
15791 
15792   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15793     # Follow a chain of symbolic links. Use readlink
15794     # where it exists, else fall back to horribly
15795     # complicated shell code.
15796     if test "x$READLINK_TESTED" != yes; then
15797       # On MacOSX there is a readlink tool with a different
15798       # purpose than the GNU readlink tool. Check the found readlink.
15799       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15800       if test "x$ISGNU" = x; then
15801         # A readlink that we do not know how to use.
15802         # Are there other non-GNU readlinks out there?
15803         READLINK_TESTED=yes
15804         READLINK=
15805       fi
15806     fi
15807 
15808     if test "x$READLINK" != x; then
15809       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15810     else
15811       # Save the current directory for restoring afterwards
15812       STARTDIR=$PWD
15813       COUNTER=0
15814       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15815       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15816       cd $sym_link_dir
15817       # Use -P flag to resolve symlinks in directories.
15818       cd `$THEPWDCMD -P`
15819       sym_link_dir=`$THEPWDCMD -P`
15820       # Resolve file symlinks
15821       while test $COUNTER -lt 20; do
15822         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15823         if test "x$ISLINK" == x; then
15824           # This is not a symbolic link! We are done!
15825           break
15826         fi
15827         # Again resolve directory symlinks since the target of the just found
15828         # link could be in a different directory
15829         cd `$DIRNAME $ISLINK`
15830         sym_link_dir=`$THEPWDCMD -P`
15831         sym_link_file=`$BASENAME $ISLINK`
15832         let COUNTER=COUNTER+1
15833       done
15834       cd $STARTDIR
15835       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15836     fi
15837   fi
15838 
15839 
15840 
15841   # Locate the directory of this script.
15842   AUTOCONF_DIR=$TOPDIR/common/autoconf
15843 
15844   # Setup username (for use in adhoc version strings etc)
15845   # Outer [ ] to quote m4.
15846    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
15847 
15848 
15849 
15850 # Check if it's a pure open build or if custom sources are to be used.
15851 
15852   # Check whether --enable-openjdk-only was given.
15853 if test "${enable_openjdk_only+set}" = set; then :
15854   enableval=$enable_openjdk_only;
15855 else
15856   enable_openjdk_only="no"
15857 fi
15858 
15859 
15860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15861 $as_echo_n "checking for presence of closed sources... " >&6; }
15862   if test -d "$SRC_ROOT/jdk/src/closed"; then
15863     CLOSED_SOURCE_PRESENT=yes
15864   else
15865     CLOSED_SOURCE_PRESENT=no
15866   fi
15867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15868 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15869 
15870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15871 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15872   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15874 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15875 
15876   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15877     OPENJDK=true
15878     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15879       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15880 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15881     fi
15882   else
15883     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15884       OPENJDK=true
15885     else
15886       OPENJDK=false
15887     fi
15888   fi
15889 
15890   if test "x$OPENJDK" = "xtrue"; then
15891     SET_OPENJDK="OPENJDK=true"
15892   fi
15893 
15894 
15895 
15896   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15897   # the IncludeCustomExtension macro.
15898 
15899 
15900 # Check whether --with-custom-make-dir was given.
15901 if test "${with_custom_make_dir+set}" = set; then :
15902   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
15903 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15904 fi
15905 
15906 
15907 
15908 
15909 # These are needed to be able to create a configuration name (and thus the output directory)
15910 
15911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15912 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15913 
15914 # Check whether --with-jdk-variant was given.
15915 if test "${with_jdk_variant+set}" = set; then :
15916   withval=$with_jdk_variant;
15917 fi
15918 
15919 
15920   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15921     JDK_VARIANT="normal"
15922   else
15923     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15924   fi
15925 
15926 
15927 
15928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15929 $as_echo "$JDK_VARIANT" >&6; }
15930 
15931 
15932 
15933 # Check whether --with-jvm-interpreter was given.
15934 if test "${with_jvm_interpreter+set}" = set; then :
15935   withval=$with_jvm_interpreter;
15936 fi
15937 
15938 
15939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15940 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15941   if test "x$with_jvm_interpreter" = x; then
15942     JVM_INTERPRETER="template"
15943   else
15944     JVM_INTERPRETER="$with_jvm_interpreter"
15945   fi
15946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_INTERPRETER" >&5
15947 $as_echo "$JVM_INTERPRETER" >&6; }
15948 
15949   if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15950     as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15951   fi
15952 
15953 
15954 
15955 
15956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15957 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15958 
15959 # Check whether --with-jvm-variants was given.
15960 if test "${with_jvm_variants+set}" = set; then :
15961   withval=$with_jvm_variants;
15962 fi
15963 
15964 
15965   if test "x$with_jvm_variants" = x; then
15966     with_jvm_variants="server"
15967   fi
15968 
15969   JVM_VARIANTS=",$with_jvm_variants,"
15970   TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//'  -e 's/minimal1,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'`
15971 
15972   if test "x$TEST_VARIANTS" != "x,"; then
15973     as_fn_error $? "The available JVM variants are: server, client, minimal1, zero, zeroshark, core" "$LINENO" 5
15974   fi
15975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15976 $as_echo "$with_jvm_variants" >&6; }
15977 
15978   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15979   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15980   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15981   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15982   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15983   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15984 
15985   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15986     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15987       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15988     fi
15989   fi
15990   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15991     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15992       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15993     fi
15994   fi
15995 
15996   # Replace the commas with AND for use in the build directory name.
15997   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15998   COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'`
15999   if test "x$COUNT_VARIANTS" != "x,1"; then
16000     BUILDING_MULTIPLE_JVM_VARIANTS=yes
16001   else
16002     BUILDING_MULTIPLE_JVM_VARIANTS=no
16003   fi
16004 
16005   if test "x$JVM_VARIANT_ZERO" = xtrue && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xyes; then
16006     as_fn_error $? "You cannot build multiple variants with zero." "$LINENO" 5
16007   fi
16008 
16009 
16010 
16011 
16012 
16013 
16014 
16015 
16016 
16017   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16018     MACOSX_UNIVERSAL="true"
16019   fi
16020 
16021 
16022 
16023 
16024   DEBUG_LEVEL="release"
16025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16026 $as_echo_n "checking which debug level to use... " >&6; }
16027   # Check whether --enable-debug was given.
16028 if test "${enable_debug+set}" = set; then :
16029   enableval=$enable_debug;
16030         ENABLE_DEBUG="${enableval}"
16031         DEBUG_LEVEL="fastdebug"
16032 
16033 else
16034   ENABLE_DEBUG="no"
16035 fi
16036 
16037 
16038 
16039 # Check whether --with-debug-level was given.
16040 if test "${with_debug_level+set}" = set; then :
16041   withval=$with_debug_level;
16042         DEBUG_LEVEL="${withval}"
16043         if test "x$ENABLE_DEBUG" = xyes; then
16044           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16045         fi
16046 
16047 fi
16048 
16049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16050 $as_echo "$DEBUG_LEVEL" >&6; }
16051 
16052   if test "x$DEBUG_LEVEL" != xrelease && \
16053       test "x$DEBUG_LEVEL" != xoptimized && \
16054       test "x$DEBUG_LEVEL" != xfastdebug && \
16055       test "x$DEBUG_LEVEL" != xslowdebug; then
16056     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16057   fi
16058 
16059 
16060   case $DEBUG_LEVEL in
16061     release )
16062       VARIANT="OPT"
16063       FASTDEBUG="false"
16064       DEBUG_CLASSFILES="false"
16065       BUILD_VARIANT_RELEASE=""
16066       HOTSPOT_DEBUG_LEVEL="product"
16067       HOTSPOT_EXPORT="product"
16068       ;;
16069     fastdebug )
16070       VARIANT="DBG"
16071       FASTDEBUG="true"
16072       DEBUG_CLASSFILES="true"
16073       BUILD_VARIANT_RELEASE="-fastdebug"
16074       HOTSPOT_DEBUG_LEVEL="fastdebug"
16075       HOTSPOT_EXPORT="fastdebug"
16076       ;;
16077     slowdebug )
16078       VARIANT="DBG"
16079       FASTDEBUG="false"
16080       DEBUG_CLASSFILES="true"
16081       BUILD_VARIANT_RELEASE="-debug"
16082       HOTSPOT_DEBUG_LEVEL="debug"
16083       HOTSPOT_EXPORT="debug"
16084       ;;
16085     optimized )
16086       VARIANT="OPT"
16087       FASTDEBUG="false"
16088       DEBUG_CLASSFILES="false"
16089       BUILD_VARIANT_RELEASE="-optimized"
16090       HOTSPOT_DEBUG_LEVEL="optimized"
16091       HOTSPOT_EXPORT="optimized"
16092       ;;
16093   esac
16094 
16095   # The debug level 'optimized' is a little special because it is currently only
16096   # applicable to the HotSpot build where it means to build a completely
16097   # optimized version of the VM without any debugging code (like for the
16098   # 'release' debug level which is called 'product' in the HotSpot build) but
16099   # with the exception that it can contain additional code which is otherwise
16100   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16101   # test new and/or experimental features which are not intended for customer
16102   # shipment. Because these new features need to be tested and benchmarked in
16103   # real world scenarios, we want to build the containing JDK at the 'release'
16104   # debug level.
16105   if test "x$DEBUG_LEVEL" = xoptimized; then
16106     DEBUG_LEVEL="release"
16107   fi
16108 
16109   #####
16110   # Generate the legacy makefile targets for hotspot.
16111   # The hotspot api for selecting the build artifacts, really, needs to be improved.
16112   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
16113   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
16114   # But until then ...
16115   HOTSPOT_TARGET=""
16116 
16117   if test "x$JVM_VARIANT_SERVER" = xtrue; then
16118     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
16119   fi
16120 
16121   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
16122     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
16123   fi
16124 
16125   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
16126     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
16127   fi
16128 
16129   if test "x$JVM_VARIANT_ZERO" = xtrue; then
16130     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
16131   fi
16132 
16133   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
16134     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
16135   fi
16136 
16137   if test "x$JVM_VARIANT_CORE" = xtrue; then
16138     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
16139   fi
16140 
16141   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
16142 
16143   # On Macosx universal binaries are produced, but they only contain
16144   # 64 bit intel. This invalidates control of which jvms are built
16145   # from configure, but only server is valid anyway. Fix this
16146   # when hotspot makefiles are rewritten.
16147   if test "x$MACOSX_UNIVERSAL" = xtrue; then
16148     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
16149   fi
16150 
16151   #####
16152 
16153 
16154 
16155 
16156 
16157 
16158 
16159 
16160 # With basic setup done, call the custom early hook.
16161 
16162 
16163 # Check if we have devkits, extra paths or sysroot set.
16164 
16165 
16166 # Check whether --with-devkit was given.
16167 if test "${with_devkit+set}" = set; then :
16168   withval=$with_devkit;
16169 
16170   # Only process if variable expands to non-empty
16171 
16172   if test "x$with_devkit" != x; then
16173     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16174 
16175   # Input might be given as Windows format, start by converting to
16176   # unix format.
16177   path="$with_devkit"
16178   new_path=`$CYGPATH -u "$path"`
16179 
16180   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16181   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16182   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16183   # "foo.exe" is OK but "foo" is an error.
16184   #
16185   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16186   # It is also a way to make sure we got the proper file name for the real test later on.
16187   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16188   if test "x$test_shortpath" = x; then
16189     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16190 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16191     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16192   fi
16193 
16194   # Call helper function which possibly converts this using DOS-style short mode.
16195   # If so, the updated path is stored in $new_path.
16196 
16197   input_path="$new_path"
16198   # Check if we need to convert this using DOS-style short mode. If the path
16199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16200   # take no chances and rewrite it.
16201   # Note: m4 eats our [], so we need to use [ and ] instead.
16202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16203   if test "x$has_forbidden_chars" != x; then
16204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16205     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16206     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16207     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16208       # Going to short mode and back again did indeed matter. Since short mode is
16209       # case insensitive, let's make it lowercase to improve readability.
16210       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16211       # Now convert it back to Unix-style (cygpath)
16212       input_path=`$CYGPATH -u "$shortmode_path"`
16213       new_path="$input_path"
16214     fi
16215   fi
16216 
16217   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16218   if test "x$test_cygdrive_prefix" = x; then
16219     # As a simple fix, exclude /usr/bin since it's not a real path.
16220     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16221       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16222       # a path prefixed by /cygdrive for fixpath to work.
16223       new_path="$CYGWIN_ROOT_PATH$input_path"
16224     fi
16225   fi
16226 
16227 
16228   if test "x$path" != "x$new_path"; then
16229     with_devkit="$new_path"
16230     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16231 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16232   fi
16233 
16234     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16235 
16236   path="$with_devkit"
16237   has_colon=`$ECHO $path | $GREP ^.:`
16238   new_path="$path"
16239   if test "x$has_colon" = x; then
16240     # Not in mixed or Windows style, start by that.
16241     new_path=`cmd //c echo $path`
16242   fi
16243 
16244 
16245   input_path="$new_path"
16246   # Check if we need to convert this using DOS-style short mode. If the path
16247   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16248   # take no chances and rewrite it.
16249   # Note: m4 eats our [], so we need to use [ and ] instead.
16250   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16251   if test "x$has_forbidden_chars" != x; then
16252     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16253     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16254   fi
16255 
16256 
16257   windows_path="$new_path"
16258   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16259     unix_path=`$CYGPATH -u "$windows_path"`
16260     new_path="$unix_path"
16261   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16262     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16263     new_path="$unix_path"
16264   fi
16265 
16266   if test "x$path" != "x$new_path"; then
16267     with_devkit="$new_path"
16268     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16269 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16270   fi
16271 
16272   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16273   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16274 
16275     else
16276       # We're on a unix platform. Hooray! :)
16277       path="$with_devkit"
16278       has_space=`$ECHO "$path" | $GREP " "`
16279       if test "x$has_space" != x; then
16280         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16281 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16282         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16283       fi
16284 
16285       # Use eval to expand a potential ~
16286       eval path="$path"
16287       if test ! -f "$path" && test ! -d "$path"; then
16288         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16289       fi
16290 
16291       if test -d "$path"; then
16292         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16293       else
16294         dir="`$DIRNAME "$path"`"
16295         base="`$BASENAME "$path"`"
16296         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16297       fi
16298     fi
16299   fi
16300 
16301         DEVKIT_ROOT="$with_devkit"
16302         # Check for a meta data info file in the root of the devkit
16303         if test -f "$DEVKIT_ROOT/devkit.info"; then
16304           . $DEVKIT_ROOT/devkit.info
16305           # This potentially sets the following:
16306           # A descriptive name of the devkit
16307 
16308   if test "x$DEVKIT_NAME" = x; then
16309     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16310   fi
16311 
16312           # Corresponds to --with-extra-path
16313 
16314   if test "x$DEVKIT_EXTRA_PATH" = x; then
16315     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16316   fi
16317 
16318           # Corresponds to --with-toolchain-path
16319 
16320   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16321     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16322   fi
16323 
16324           # Corresponds to --with-sysroot
16325 
16326   if test "x$DEVKIT_SYSROOT" = x; then
16327     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16328   fi
16329 
16330 
16331           # Identifies the Visual Studio version in the devkit
16332 
16333   if test "x$DEVKIT_VS_VERSION" = x; then
16334     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16335   fi
16336 
16337           # The Visual Studio include environment variable
16338 
16339   if test "x$DEVKIT_VS_INCLUDE" = x; then
16340     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16341   fi
16342 
16343           # The Visual Studio lib environment variable
16344 
16345   if test "x$DEVKIT_VS_LIB" = x; then
16346     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16347   fi
16348 
16349           # Corresponds to --with-msvcr-dll
16350 
16351   if test "x$DEVKIT_MSVCR_DLL" = x; then
16352     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16353   fi
16354 
16355           # Corresponds to --with-msvcp-dll
16356 
16357   if test "x$DEVKIT_MSVCP_DLL" = x; then
16358     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16359   fi
16360 
16361         fi
16362 
16363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16364 $as_echo_n "checking for devkit... " >&6; }
16365         if test "x$DEVKIT_NAME" != x; then
16366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16367 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16368         else
16369           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16370 $as_echo "$DEVKIT_ROOT" >&6; }
16371         fi
16372 
16373 
16374   if test "x$DEVKIT_EXTRA_PATH" != x; then
16375     if test "x$EXTRA_PATH" = x; then
16376       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16377     else
16378       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16379     fi
16380   fi
16381 
16382 
16383         # Fallback default of just /bin if DEVKIT_PATH is not defined
16384         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16385           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16386         fi
16387 
16388   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16389     if test "x$TOOLCHAIN_PATH" = x; then
16390       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16391     else
16392       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16393     fi
16394   fi
16395 
16396 
16397         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16398         # places for backwards compatiblity.
16399         if test "x$DEVKIT_SYSROOT" != x; then
16400           SYSROOT="$DEVKIT_SYSROOT"
16401         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16402           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16403         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16404           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16405         fi
16406 
16407 
16408 fi
16409 
16410 
16411   # You can force the sysroot if the sysroot encoded into the compiler tools
16412   # is not correct.
16413 
16414 # Check whether --with-sys-root was given.
16415 if test "${with_sys_root+set}" = set; then :
16416   withval=$with_sys_root; SYSROOT=$with_sys_root
16417 
16418 fi
16419 
16420 
16421 
16422 # Check whether --with-sysroot was given.
16423 if test "${with_sysroot+set}" = set; then :
16424   withval=$with_sysroot; SYSROOT=$with_sysroot
16425 
16426 fi
16427 
16428 
16429 
16430 # Check whether --with-tools-dir was given.
16431 if test "${with_tools_dir+set}" = set; then :
16432   withval=$with_tools_dir;
16433   if test "x$with_tools_dir" != x; then
16434     if test "x$TOOLCHAIN_PATH" = x; then
16435       TOOLCHAIN_PATH="$with_tools_dir"
16436     else
16437       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16438     fi
16439   fi
16440 
16441 
16442 fi
16443 
16444 
16445 
16446 # Check whether --with-toolchain-path was given.
16447 if test "${with_toolchain_path+set}" = set; then :
16448   withval=$with_toolchain_path;
16449   if test "x$with_toolchain_path" != x; then
16450     if test "x$TOOLCHAIN_PATH" = x; then
16451       TOOLCHAIN_PATH="$with_toolchain_path"
16452     else
16453       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16454     fi
16455   fi
16456 
16457 
16458 fi
16459 
16460 
16461 
16462 # Check whether --with-extra-path was given.
16463 if test "${with_extra_path+set}" = set; then :
16464   withval=$with_extra_path;
16465   if test "x$with_extra_path" != x; then
16466     if test "x$EXTRA_PATH" = x; then
16467       EXTRA_PATH="$with_extra_path"
16468     else
16469       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16470     fi
16471   fi
16472 
16473 
16474 fi
16475 
16476 
16477   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16478     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16479     # If not, detect if Xcode is installed by running xcodebuild -version
16480     # if no Xcode installed, xcodebuild exits with 1
16481     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16482     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16483       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16484       # fall back on the stub binary in /usr/bin/xcodebuild
16485       # Extract the first word of "xcodebuild", so it can be a program name with args.
16486 set dummy xcodebuild; ac_word=$2
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16488 $as_echo_n "checking for $ac_word... " >&6; }
16489 if ${ac_cv_path_XCODEBUILD+:} false; then :
16490   $as_echo_n "(cached) " >&6
16491 else
16492   case $XCODEBUILD in
16493   [\\/]* | ?:[\\/]*)
16494   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16495   ;;
16496   *)
16497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $TOOLCHAIN_PATH
16499 do
16500   IFS=$as_save_IFS
16501   test -z "$as_dir" && as_dir=.
16502     for ac_exec_ext in '' $ac_executable_extensions; do
16503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16504     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16506     break 2
16507   fi
16508 done
16509   done
16510 IFS=$as_save_IFS
16511 
16512   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16513   ;;
16514 esac
16515 fi
16516 XCODEBUILD=$ac_cv_path_XCODEBUILD
16517 if test -n "$XCODEBUILD"; then
16518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16519 $as_echo "$XCODEBUILD" >&6; }
16520 else
16521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16522 $as_echo "no" >&6; }
16523 fi
16524 
16525 
16526     else
16527       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16528       # when only the command line tools are installed there are no SDKs, so headers
16529       # are copied into the system frameworks
16530       XCODEBUILD=
16531 
16532     fi
16533 
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16535 $as_echo_n "checking for sdk name... " >&6; }
16536 
16537 # Check whether --with-sdk-name was given.
16538 if test "${with_sdk_name+set}" = set; then :
16539   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16540 
16541 fi
16542 
16543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16544 $as_echo "$SDKNAME" >&6; }
16545 
16546     # if toolchain path is specified then don't rely on system headers, they may not compile
16547     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16548     test -z "$TOOLCHAIN_PATH" && \
16549       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16550 
16551     if test -z "$SYSROOT"; then
16552       if test -n "$XCODEBUILD"; then
16553         # if we don't have system headers, use default SDK name (last resort)
16554         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16555           SDKNAME=${SDKNAME:-macosx}
16556         fi
16557 
16558         if test -n "$SDKNAME"; then
16559           # Call xcodebuild to determine SYSROOT
16560           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16561         fi
16562       else
16563         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16564           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
16565         fi
16566       fi
16567     else
16568       # warn user if --with-sdk-name was also set
16569       if test -n "$with_sdk_name"; then
16570         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16571 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16572       fi
16573     fi
16574 
16575     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16576       # If no system framework headers, then SYSROOT must be set, or we won't build
16577       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
16578     fi
16579 
16580     # Perform a basic sanity test
16581     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16582       if test -z "$SYSROOT"; then
16583         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
16584       else
16585         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16586       fi
16587     fi
16588 
16589     # set SDKROOT too, Xcode tools will pick it up
16590     SDKROOT=$SYSROOT
16591 
16592   fi
16593 
16594   # Prepend the extra path to the global path
16595 
16596   if test "x$EXTRA_PATH" != x; then
16597     if test "x$PATH" = x; then
16598       PATH="$EXTRA_PATH"
16599     else
16600       PATH="$EXTRA_PATH:$PATH"
16601     fi
16602   fi
16603 
16604 
16605   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16606     # Add extra search paths on solaris for utilities like ar and as etc...
16607     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16608   fi
16609 
16610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16611 $as_echo_n "checking for sysroot... " >&6; }
16612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16613 $as_echo "$SYSROOT" >&6; }
16614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16615 $as_echo_n "checking for toolchain path... " >&6; }
16616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16617 $as_echo "$TOOLCHAIN_PATH" >&6; }
16618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16619 $as_echo_n "checking for extra path... " >&6; }
16620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16621 $as_echo "$EXTRA_PATH" >&6; }
16622 
16623 
16624 # To properly create a configuration name, we need to have the OpenJDK target
16625 # and options (variants and debug level) parsed.
16626 
16627 
16628 
16629 # Check whether --with-conf-name was given.
16630 if test "${with_conf_name+set}" = set; then :
16631   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16632 fi
16633 
16634 
16635   # Test from where we are running configure, in or outside of src root.
16636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16637 $as_echo_n "checking where to store configuration... " >&6; }
16638   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16639       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16640       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16641     # We are running configure from the src root.
16642     # Create a default ./build/target-variant-debuglevel output root.
16643     if test "x${CONF_NAME}" = x; then
16644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16645 $as_echo "in default location" >&6; }
16646       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16647     else
16648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16649 $as_echo "in build directory with custom name" >&6; }
16650     fi
16651     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16652     $MKDIR -p "$OUTPUT_ROOT"
16653     if test ! -d "$OUTPUT_ROOT"; then
16654       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16655     fi
16656   else
16657     # We are running configure from outside of the src dir.
16658     # Then use the current directory as output dir!
16659     # If configuration is situated in normal build directory, just use the build
16660     # directory name as configuration name, otherwise use the complete path.
16661     if test "x${CONF_NAME}" = x; then
16662       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16663     fi
16664     OUTPUT_ROOT="$CURDIR"
16665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16666 $as_echo "in current directory" >&6; }
16667 
16668     # WARNING: This might be a bad thing to do. You need to be sure you want to
16669     # have a configuration in this directory. Do some sanity checks!
16670 
16671     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16672       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16673       # other files
16674       files_present=`$LS $OUTPUT_ROOT`
16675       # Configure has already touched config.log and confdefs.h in the current dir when this check
16676       # is performed.
16677       filtered_files=`$ECHO "$files_present" \
16678           | $SED -e 's/config.log//g' \
16679               -e 's/configure.log//g' \
16680               -e 's/confdefs.h//g' \
16681               -e 's/ //g' \
16682           | $TR -d '\n'`
16683       if test "x$filtered_files" != x; then
16684         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16685 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16686         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16687 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16688         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16689 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16690         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16691 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16692         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16693 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16694         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16695 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16696         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16697 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16698         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16699       fi
16700     fi
16701   fi
16702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16703 $as_echo_n "checking what configuration name to use... " >&6; }
16704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16705 $as_echo "$CONF_NAME" >&6; }
16706 
16707 
16708   # Only process if variable expands to non-empty
16709 
16710   if test "x$OUTPUT_ROOT" != x; then
16711     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16712 
16713   # Input might be given as Windows format, start by converting to
16714   # unix format.
16715   path="$OUTPUT_ROOT"
16716   new_path=`$CYGPATH -u "$path"`
16717 
16718   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16719   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16720   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16721   # "foo.exe" is OK but "foo" is an error.
16722   #
16723   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16724   # It is also a way to make sure we got the proper file name for the real test later on.
16725   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16726   if test "x$test_shortpath" = x; then
16727     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16728 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16729     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16730   fi
16731 
16732   # Call helper function which possibly converts this using DOS-style short mode.
16733   # If so, the updated path is stored in $new_path.
16734 
16735   input_path="$new_path"
16736   # Check if we need to convert this using DOS-style short mode. If the path
16737   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16738   # take no chances and rewrite it.
16739   # Note: m4 eats our [], so we need to use [ and ] instead.
16740   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16741   if test "x$has_forbidden_chars" != x; then
16742     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16743     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16744     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16745     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16746       # Going to short mode and back again did indeed matter. Since short mode is
16747       # case insensitive, let's make it lowercase to improve readability.
16748       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16749       # Now convert it back to Unix-style (cygpath)
16750       input_path=`$CYGPATH -u "$shortmode_path"`
16751       new_path="$input_path"
16752     fi
16753   fi
16754 
16755   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16756   if test "x$test_cygdrive_prefix" = x; then
16757     # As a simple fix, exclude /usr/bin since it's not a real path.
16758     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16759       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16760       # a path prefixed by /cygdrive for fixpath to work.
16761       new_path="$CYGWIN_ROOT_PATH$input_path"
16762     fi
16763   fi
16764 
16765 
16766   if test "x$path" != "x$new_path"; then
16767     OUTPUT_ROOT="$new_path"
16768     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16769 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16770   fi
16771 
16772     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16773 
16774   path="$OUTPUT_ROOT"
16775   has_colon=`$ECHO $path | $GREP ^.:`
16776   new_path="$path"
16777   if test "x$has_colon" = x; then
16778     # Not in mixed or Windows style, start by that.
16779     new_path=`cmd //c echo $path`
16780   fi
16781 
16782 
16783   input_path="$new_path"
16784   # Check if we need to convert this using DOS-style short mode. If the path
16785   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16786   # take no chances and rewrite it.
16787   # Note: m4 eats our [], so we need to use [ and ] instead.
16788   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16789   if test "x$has_forbidden_chars" != x; then
16790     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16791     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16792   fi
16793 
16794 
16795   windows_path="$new_path"
16796   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16797     unix_path=`$CYGPATH -u "$windows_path"`
16798     new_path="$unix_path"
16799   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16800     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16801     new_path="$unix_path"
16802   fi
16803 
16804   if test "x$path" != "x$new_path"; then
16805     OUTPUT_ROOT="$new_path"
16806     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16807 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16808   fi
16809 
16810   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16811   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16812 
16813     else
16814       # We're on a unix platform. Hooray! :)
16815       path="$OUTPUT_ROOT"
16816       has_space=`$ECHO "$path" | $GREP " "`
16817       if test "x$has_space" != x; then
16818         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16819 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16820         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16821       fi
16822 
16823       # Use eval to expand a potential ~
16824       eval path="$path"
16825       if test ! -f "$path" && test ! -d "$path"; then
16826         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16827       fi
16828 
16829       if test -d "$path"; then
16830         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16831       else
16832         dir="`$DIRNAME "$path"`"
16833         base="`$BASENAME "$path"`"
16834         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
16835       fi
16836     fi
16837   fi
16838 
16839 
16840   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16841   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16842 
16843   SPEC=$OUTPUT_ROOT/spec.gmk
16844 
16845   CONF_NAME=$CONF_NAME
16846 
16847   OUTPUT_ROOT=$OUTPUT_ROOT
16848 
16849 
16850 
16851   # The spec.gmk file contains all variables for the make system.
16852   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16853 
16854   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16855   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16856 
16857   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16858   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16859 
16860   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
16861   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
16862 
16863   # The compare.sh is used to compare the build output to other builds.
16864   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16865 
16866   # The generated Makefile knows where the spec.gmk is and where the source is.
16867   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16868   # which will look for generated configurations
16869   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16870 
16871 
16872 
16873 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16874 
16875   for ac_prog in apt-get yum port pkgutil pkgadd
16876 do
16877   # Extract the first word of "$ac_prog", so it can be a program name with args.
16878 set dummy $ac_prog; ac_word=$2
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16880 $as_echo_n "checking for $ac_word... " >&6; }
16881 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16882   $as_echo_n "(cached) " >&6
16883 else
16884   if test -n "$PKGHANDLER"; then
16885   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16886 else
16887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888 for as_dir in $PATH
16889 do
16890   IFS=$as_save_IFS
16891   test -z "$as_dir" && as_dir=.
16892     for ac_exec_ext in '' $ac_executable_extensions; do
16893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16894     ac_cv_prog_PKGHANDLER="$ac_prog"
16895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16896     break 2
16897   fi
16898 done
16899   done
16900 IFS=$as_save_IFS
16901 
16902 fi
16903 fi
16904 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16905 if test -n "$PKGHANDLER"; then
16906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16907 $as_echo "$PKGHANDLER" >&6; }
16908 else
16909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910 $as_echo "no" >&6; }
16911 fi
16912 
16913 
16914   test -n "$PKGHANDLER" && break
16915 done
16916 
16917 
16918 
16919 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16920 
16921 
16922 
16923   # Publish this variable in the help.
16924 
16925 
16926   if [ -z "${MAKE+x}" ]; then
16927     # The variable is not set by user, try to locate tool using the code snippet
16928 
16929     # Try our hardest to locate a correct version of GNU make
16930     for ac_prog in gmake
16931 do
16932   # Extract the first word of "$ac_prog", so it can be a program name with args.
16933 set dummy $ac_prog; ac_word=$2
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16935 $as_echo_n "checking for $ac_word... " >&6; }
16936 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16937   $as_echo_n "(cached) " >&6
16938 else
16939   case $CHECK_GMAKE in
16940   [\\/]* | ?:[\\/]*)
16941   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16942   ;;
16943   *)
16944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16945 for as_dir in $PATH
16946 do
16947   IFS=$as_save_IFS
16948   test -z "$as_dir" && as_dir=.
16949     for ac_exec_ext in '' $ac_executable_extensions; do
16950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16951     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16953     break 2
16954   fi
16955 done
16956   done
16957 IFS=$as_save_IFS
16958 
16959   ;;
16960 esac
16961 fi
16962 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16963 if test -n "$CHECK_GMAKE"; then
16964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16965 $as_echo "$CHECK_GMAKE" >&6; }
16966 else
16967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16968 $as_echo "no" >&6; }
16969 fi
16970 
16971 
16972   test -n "$CHECK_GMAKE" && break
16973 done
16974 
16975 
16976   MAKE_CANDIDATE=""$CHECK_GMAKE""
16977   DESCRIPTION="gmake in PATH"
16978 
16979   # On Cygwin, we require a newer version of make than on other platforms
16980   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16981     MAKE_VERSION_EXPR="-e 4\."
16982     MAKE_REQUIRED_VERSION="4.0"
16983    else
16984     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16985     MAKE_REQUIRED_VERSION="3.81"
16986   fi
16987 
16988   if test "x$MAKE_CANDIDATE" != x; then
16989     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16990 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16991     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16992     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16993     if test "x$IS_GNU_MAKE" = x; then
16994       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16995 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16996     else
16997       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16998       if test "x$IS_MODERN_MAKE" = x; then
16999         { $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
17000 $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;}
17001       else
17002         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17003           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17004             MAKE_EXPECTED_ENV='cygwin'
17005           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17006             MAKE_EXPECTED_ENV='msys'
17007           else
17008             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17009           fi
17010           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17011           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17012         else
17013           # Not relevant for non-Windows
17014           IS_MAKE_CORRECT_ENV=true
17015         fi
17016         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17017           { $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
17018 $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;}
17019         else
17020           FOUND_MAKE=$MAKE_CANDIDATE
17021 
17022   # Only process if variable expands to non-empty
17023 
17024   if test "x$FOUND_MAKE" != x; then
17025     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17026 
17027   # First separate the path from the arguments. This will split at the first
17028   # space.
17029   complete="$FOUND_MAKE"
17030   path="${complete%% *}"
17031   tmp="$complete EOL"
17032   arguments="${tmp#* }"
17033 
17034   # Input might be given as Windows format, start by converting to
17035   # unix format.
17036   new_path=`$CYGPATH -u "$path"`
17037 
17038   # Now try to locate executable using which
17039   new_path=`$WHICH "$new_path" 2> /dev/null`
17040   # bat and cmd files are not always considered executable in cygwin causing which
17041   # to not find them
17042   if test "x$new_path" = x \
17043       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17044       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17045     new_path=`$CYGPATH -u "$path"`
17046   fi
17047   if test "x$new_path" = x; then
17048     # Oops. Which didn't find the executable.
17049     # The splitting of arguments from the executable at a space might have been incorrect,
17050     # since paths with space are more likely in Windows. Give it another try with the whole
17051     # argument.
17052     path="$complete"
17053     arguments="EOL"
17054     new_path=`$CYGPATH -u "$path"`
17055     new_path=`$WHICH "$new_path" 2> /dev/null`
17056     # bat and cmd files are not always considered executable in cygwin causing which
17057     # to not find them
17058     if test "x$new_path" = x \
17059         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17060         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17061       new_path=`$CYGPATH -u "$path"`
17062     fi
17063     if test "x$new_path" = x; then
17064       # It's still not found. Now this is an unrecoverable error.
17065       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17066 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17067       has_space=`$ECHO "$complete" | $GREP " "`
17068       if test "x$has_space" != x; then
17069         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17071       fi
17072       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17073     fi
17074   fi
17075 
17076   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17077   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17078   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17079   # "foo.exe" is OK but "foo" is an error.
17080   #
17081   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17082   # It is also a way to make sure we got the proper file name for the real test later on.
17083   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17084   if test "x$test_shortpath" = x; then
17085     # Short path failed, file does not exist as specified.
17086     # Try adding .exe or .cmd
17087     if test -f "${new_path}.exe"; then
17088       input_to_shortpath="${new_path}.exe"
17089     elif test -f "${new_path}.cmd"; then
17090       input_to_shortpath="${new_path}.cmd"
17091     else
17092       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17093 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17094       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17095 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17096       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17097     fi
17098   else
17099     input_to_shortpath="$new_path"
17100   fi
17101 
17102   # Call helper function which possibly converts this using DOS-style short mode.
17103   # If so, the updated path is stored in $new_path.
17104   new_path="$input_to_shortpath"
17105 
17106   input_path="$input_to_shortpath"
17107   # Check if we need to convert this using DOS-style short mode. If the path
17108   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17109   # take no chances and rewrite it.
17110   # Note: m4 eats our [], so we need to use [ and ] instead.
17111   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17112   if test "x$has_forbidden_chars" != x; then
17113     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17114     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17115     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17116     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17117       # Going to short mode and back again did indeed matter. Since short mode is
17118       # case insensitive, let's make it lowercase to improve readability.
17119       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17120       # Now convert it back to Unix-style (cygpath)
17121       input_path=`$CYGPATH -u "$shortmode_path"`
17122       new_path="$input_path"
17123     fi
17124   fi
17125 
17126   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17127   if test "x$test_cygdrive_prefix" = x; then
17128     # As a simple fix, exclude /usr/bin since it's not a real path.
17129     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17130       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17131       # a path prefixed by /cygdrive for fixpath to work.
17132       new_path="$CYGWIN_ROOT_PATH$input_path"
17133     fi
17134   fi
17135 
17136   # remove trailing .exe if any
17137   new_path="${new_path/%.exe/}"
17138 
17139     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17140 
17141   # First separate the path from the arguments. This will split at the first
17142   # space.
17143   complete="$FOUND_MAKE"
17144   path="${complete%% *}"
17145   tmp="$complete EOL"
17146   arguments="${tmp#* }"
17147 
17148   # Input might be given as Windows format, start by converting to
17149   # unix format.
17150   new_path="$path"
17151 
17152   windows_path="$new_path"
17153   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17154     unix_path=`$CYGPATH -u "$windows_path"`
17155     new_path="$unix_path"
17156   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17157     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17158     new_path="$unix_path"
17159   fi
17160 
17161 
17162   # Now try to locate executable using which
17163   new_path=`$WHICH "$new_path" 2> /dev/null`
17164 
17165   if test "x$new_path" = x; then
17166     # Oops. Which didn't find the executable.
17167     # The splitting of arguments from the executable at a space might have been incorrect,
17168     # since paths with space are more likely in Windows. Give it another try with the whole
17169     # argument.
17170     path="$complete"
17171     arguments="EOL"
17172     new_path="$path"
17173 
17174   windows_path="$new_path"
17175   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17176     unix_path=`$CYGPATH -u "$windows_path"`
17177     new_path="$unix_path"
17178   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17179     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17180     new_path="$unix_path"
17181   fi
17182 
17183 
17184     new_path=`$WHICH "$new_path" 2> /dev/null`
17185     # bat and cmd files are not always considered executable in MSYS causing which
17186     # to not find them
17187     if test "x$new_path" = x \
17188         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17189         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17190       new_path="$path"
17191 
17192   windows_path="$new_path"
17193   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17194     unix_path=`$CYGPATH -u "$windows_path"`
17195     new_path="$unix_path"
17196   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17197     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17198     new_path="$unix_path"
17199   fi
17200 
17201     fi
17202 
17203     if test "x$new_path" = x; then
17204       # It's still not found. Now this is an unrecoverable error.
17205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17206 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17207       has_space=`$ECHO "$complete" | $GREP " "`
17208       if test "x$has_space" != x; then
17209         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17211       fi
17212       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17213     fi
17214   fi
17215 
17216   # Now new_path has a complete unix path to the binary
17217   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17218     # Keep paths in /bin as-is, but remove trailing .exe if any
17219     new_path="${new_path/%.exe/}"
17220     # Do not save /bin paths to all_fixpath_prefixes!
17221   else
17222     # Not in mixed or Windows style, start by that.
17223     new_path=`cmd //c echo $new_path`
17224 
17225   input_path="$new_path"
17226   # Check if we need to convert this using DOS-style short mode. If the path
17227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17228   # take no chances and rewrite it.
17229   # Note: m4 eats our [], so we need to use [ and ] instead.
17230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17231   if test "x$has_forbidden_chars" != x; then
17232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17233     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17234   fi
17235 
17236     # Output is in $new_path
17237 
17238   windows_path="$new_path"
17239   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17240     unix_path=`$CYGPATH -u "$windows_path"`
17241     new_path="$unix_path"
17242   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17243     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17244     new_path="$unix_path"
17245   fi
17246 
17247     # remove trailing .exe if any
17248     new_path="${new_path/%.exe/}"
17249 
17250     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17251     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17252   fi
17253 
17254     else
17255       # We're on a unix platform. Hooray! :)
17256       # First separate the path from the arguments. This will split at the first
17257       # space.
17258       complete="$FOUND_MAKE"
17259       path="${complete%% *}"
17260       tmp="$complete EOL"
17261       arguments="${tmp#* }"
17262 
17263       # Cannot rely on the command "which" here since it doesn't always work.
17264       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17265       if test -z "$is_absolute_path"; then
17266         # Path to executable is not absolute. Find it.
17267         IFS_save="$IFS"
17268         IFS=:
17269         for p in $PATH; do
17270           if test -f "$p/$path" && test -x "$p/$path"; then
17271             new_path="$p/$path"
17272             break
17273           fi
17274         done
17275         IFS="$IFS_save"
17276       else
17277         # This is an absolute path, we can use it without further modifications.
17278         new_path="$path"
17279       fi
17280 
17281       if test "x$new_path" = x; then
17282         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17284         has_space=`$ECHO "$complete" | $GREP " "`
17285         if test "x$has_space" != x; then
17286           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17287 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17288         fi
17289         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17290       fi
17291     fi
17292 
17293     # Now join together the path and the arguments once again
17294     if test "x$arguments" != xEOL; then
17295       new_complete="$new_path ${arguments% *}"
17296     else
17297       new_complete="$new_path"
17298     fi
17299 
17300     if test "x$complete" != "x$new_complete"; then
17301       FOUND_MAKE="$new_complete"
17302       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17303 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17304     fi
17305   fi
17306 
17307         fi
17308       fi
17309     fi
17310   fi
17311 
17312 
17313     if test "x$FOUND_MAKE" = x; then
17314       for ac_prog in make
17315 do
17316   # Extract the first word of "$ac_prog", so it can be a program name with args.
17317 set dummy $ac_prog; ac_word=$2
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17319 $as_echo_n "checking for $ac_word... " >&6; }
17320 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17321   $as_echo_n "(cached) " >&6
17322 else
17323   case $CHECK_MAKE in
17324   [\\/]* | ?:[\\/]*)
17325   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17326   ;;
17327   *)
17328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17329 for as_dir in $PATH
17330 do
17331   IFS=$as_save_IFS
17332   test -z "$as_dir" && as_dir=.
17333     for ac_exec_ext in '' $ac_executable_extensions; do
17334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17335     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17337     break 2
17338   fi
17339 done
17340   done
17341 IFS=$as_save_IFS
17342 
17343   ;;
17344 esac
17345 fi
17346 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17347 if test -n "$CHECK_MAKE"; then
17348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17349 $as_echo "$CHECK_MAKE" >&6; }
17350 else
17351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17352 $as_echo "no" >&6; }
17353 fi
17354 
17355 
17356   test -n "$CHECK_MAKE" && break
17357 done
17358 
17359 
17360   MAKE_CANDIDATE=""$CHECK_MAKE""
17361   DESCRIPTION="make in PATH"
17362 
17363   # On Cygwin, we require a newer version of make than on other platforms
17364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17365     MAKE_VERSION_EXPR="-e 4\."
17366     MAKE_REQUIRED_VERSION="4.0"
17367    else
17368     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17369     MAKE_REQUIRED_VERSION="3.81"
17370   fi
17371 
17372   if test "x$MAKE_CANDIDATE" != x; then
17373     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17374 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17375     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17376     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17377     if test "x$IS_GNU_MAKE" = x; then
17378       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17379 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17380     else
17381       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17382       if test "x$IS_MODERN_MAKE" = x; then
17383         { $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
17384 $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;}
17385       else
17386         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17387           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17388             MAKE_EXPECTED_ENV='cygwin'
17389           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17390             MAKE_EXPECTED_ENV='msys'
17391           else
17392             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17393           fi
17394           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17395           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17396         else
17397           # Not relevant for non-Windows
17398           IS_MAKE_CORRECT_ENV=true
17399         fi
17400         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17401           { $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
17402 $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;}
17403         else
17404           FOUND_MAKE=$MAKE_CANDIDATE
17405 
17406   # Only process if variable expands to non-empty
17407 
17408   if test "x$FOUND_MAKE" != x; then
17409     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17410 
17411   # First separate the path from the arguments. This will split at the first
17412   # space.
17413   complete="$FOUND_MAKE"
17414   path="${complete%% *}"
17415   tmp="$complete EOL"
17416   arguments="${tmp#* }"
17417 
17418   # Input might be given as Windows format, start by converting to
17419   # unix format.
17420   new_path=`$CYGPATH -u "$path"`
17421 
17422   # Now try to locate executable using which
17423   new_path=`$WHICH "$new_path" 2> /dev/null`
17424   # bat and cmd files are not always considered executable in cygwin causing which
17425   # to not find them
17426   if test "x$new_path" = x \
17427       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17428       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17429     new_path=`$CYGPATH -u "$path"`
17430   fi
17431   if test "x$new_path" = x; then
17432     # Oops. Which didn't find the executable.
17433     # The splitting of arguments from the executable at a space might have been incorrect,
17434     # since paths with space are more likely in Windows. Give it another try with the whole
17435     # argument.
17436     path="$complete"
17437     arguments="EOL"
17438     new_path=`$CYGPATH -u "$path"`
17439     new_path=`$WHICH "$new_path" 2> /dev/null`
17440     # bat and cmd files are not always considered executable in cygwin causing which
17441     # to not find them
17442     if test "x$new_path" = x \
17443         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17444         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17445       new_path=`$CYGPATH -u "$path"`
17446     fi
17447     if test "x$new_path" = x; then
17448       # It's still not found. Now this is an unrecoverable error.
17449       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17450 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17451       has_space=`$ECHO "$complete" | $GREP " "`
17452       if test "x$has_space" != x; then
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17454 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17455       fi
17456       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17457     fi
17458   fi
17459 
17460   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17461   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17462   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17463   # "foo.exe" is OK but "foo" is an error.
17464   #
17465   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17466   # It is also a way to make sure we got the proper file name for the real test later on.
17467   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17468   if test "x$test_shortpath" = x; then
17469     # Short path failed, file does not exist as specified.
17470     # Try adding .exe or .cmd
17471     if test -f "${new_path}.exe"; then
17472       input_to_shortpath="${new_path}.exe"
17473     elif test -f "${new_path}.cmd"; then
17474       input_to_shortpath="${new_path}.cmd"
17475     else
17476       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17477 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17478       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17479 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17480       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17481     fi
17482   else
17483     input_to_shortpath="$new_path"
17484   fi
17485 
17486   # Call helper function which possibly converts this using DOS-style short mode.
17487   # If so, the updated path is stored in $new_path.
17488   new_path="$input_to_shortpath"
17489 
17490   input_path="$input_to_shortpath"
17491   # Check if we need to convert this using DOS-style short mode. If the path
17492   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17493   # take no chances and rewrite it.
17494   # Note: m4 eats our [], so we need to use [ and ] instead.
17495   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17496   if test "x$has_forbidden_chars" != x; then
17497     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17498     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17499     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17500     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17501       # Going to short mode and back again did indeed matter. Since short mode is
17502       # case insensitive, let's make it lowercase to improve readability.
17503       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17504       # Now convert it back to Unix-style (cygpath)
17505       input_path=`$CYGPATH -u "$shortmode_path"`
17506       new_path="$input_path"
17507     fi
17508   fi
17509 
17510   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17511   if test "x$test_cygdrive_prefix" = x; then
17512     # As a simple fix, exclude /usr/bin since it's not a real path.
17513     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17514       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17515       # a path prefixed by /cygdrive for fixpath to work.
17516       new_path="$CYGWIN_ROOT_PATH$input_path"
17517     fi
17518   fi
17519 
17520   # remove trailing .exe if any
17521   new_path="${new_path/%.exe/}"
17522 
17523     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17524 
17525   # First separate the path from the arguments. This will split at the first
17526   # space.
17527   complete="$FOUND_MAKE"
17528   path="${complete%% *}"
17529   tmp="$complete EOL"
17530   arguments="${tmp#* }"
17531 
17532   # Input might be given as Windows format, start by converting to
17533   # unix format.
17534   new_path="$path"
17535 
17536   windows_path="$new_path"
17537   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17538     unix_path=`$CYGPATH -u "$windows_path"`
17539     new_path="$unix_path"
17540   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17541     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17542     new_path="$unix_path"
17543   fi
17544 
17545 
17546   # Now try to locate executable using which
17547   new_path=`$WHICH "$new_path" 2> /dev/null`
17548 
17549   if test "x$new_path" = x; then
17550     # Oops. Which didn't find the executable.
17551     # The splitting of arguments from the executable at a space might have been incorrect,
17552     # since paths with space are more likely in Windows. Give it another try with the whole
17553     # argument.
17554     path="$complete"
17555     arguments="EOL"
17556     new_path="$path"
17557 
17558   windows_path="$new_path"
17559   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17560     unix_path=`$CYGPATH -u "$windows_path"`
17561     new_path="$unix_path"
17562   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17563     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17564     new_path="$unix_path"
17565   fi
17566 
17567 
17568     new_path=`$WHICH "$new_path" 2> /dev/null`
17569     # bat and cmd files are not always considered executable in MSYS causing which
17570     # to not find them
17571     if test "x$new_path" = x \
17572         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17573         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17574       new_path="$path"
17575 
17576   windows_path="$new_path"
17577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17578     unix_path=`$CYGPATH -u "$windows_path"`
17579     new_path="$unix_path"
17580   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17581     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17582     new_path="$unix_path"
17583   fi
17584 
17585     fi
17586 
17587     if test "x$new_path" = x; then
17588       # It's still not found. Now this is an unrecoverable error.
17589       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17590 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17591       has_space=`$ECHO "$complete" | $GREP " "`
17592       if test "x$has_space" != x; then
17593         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17594 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17595       fi
17596       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17597     fi
17598   fi
17599 
17600   # Now new_path has a complete unix path to the binary
17601   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17602     # Keep paths in /bin as-is, but remove trailing .exe if any
17603     new_path="${new_path/%.exe/}"
17604     # Do not save /bin paths to all_fixpath_prefixes!
17605   else
17606     # Not in mixed or Windows style, start by that.
17607     new_path=`cmd //c echo $new_path`
17608 
17609   input_path="$new_path"
17610   # Check if we need to convert this using DOS-style short mode. If the path
17611   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17612   # take no chances and rewrite it.
17613   # Note: m4 eats our [], so we need to use [ and ] instead.
17614   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17615   if test "x$has_forbidden_chars" != x; then
17616     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17617     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17618   fi
17619 
17620     # Output is in $new_path
17621 
17622   windows_path="$new_path"
17623   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17624     unix_path=`$CYGPATH -u "$windows_path"`
17625     new_path="$unix_path"
17626   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17627     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17628     new_path="$unix_path"
17629   fi
17630 
17631     # remove trailing .exe if any
17632     new_path="${new_path/%.exe/}"
17633 
17634     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17635     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17636   fi
17637 
17638     else
17639       # We're on a unix platform. Hooray! :)
17640       # First separate the path from the arguments. This will split at the first
17641       # space.
17642       complete="$FOUND_MAKE"
17643       path="${complete%% *}"
17644       tmp="$complete EOL"
17645       arguments="${tmp#* }"
17646 
17647       # Cannot rely on the command "which" here since it doesn't always work.
17648       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17649       if test -z "$is_absolute_path"; then
17650         # Path to executable is not absolute. Find it.
17651         IFS_save="$IFS"
17652         IFS=:
17653         for p in $PATH; do
17654           if test -f "$p/$path" && test -x "$p/$path"; then
17655             new_path="$p/$path"
17656             break
17657           fi
17658         done
17659         IFS="$IFS_save"
17660       else
17661         # This is an absolute path, we can use it without further modifications.
17662         new_path="$path"
17663       fi
17664 
17665       if test "x$new_path" = x; then
17666         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17667 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17668         has_space=`$ECHO "$complete" | $GREP " "`
17669         if test "x$has_space" != x; then
17670           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17671 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17672         fi
17673         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17674       fi
17675     fi
17676 
17677     # Now join together the path and the arguments once again
17678     if test "x$arguments" != xEOL; then
17679       new_complete="$new_path ${arguments% *}"
17680     else
17681       new_complete="$new_path"
17682     fi
17683 
17684     if test "x$complete" != "x$new_complete"; then
17685       FOUND_MAKE="$new_complete"
17686       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17687 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17688     fi
17689   fi
17690 
17691         fi
17692       fi
17693     fi
17694   fi
17695 
17696     fi
17697 
17698     if test "x$FOUND_MAKE" = x; then
17699       if test "x$TOOLCHAIN_PATH" != x; then
17700         # We have a toolchain path, check that as well before giving up.
17701         OLD_PATH=$PATH
17702         PATH=$TOOLCHAIN_PATH:$PATH
17703         for ac_prog in gmake
17704 do
17705   # Extract the first word of "$ac_prog", so it can be a program name with args.
17706 set dummy $ac_prog; ac_word=$2
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17708 $as_echo_n "checking for $ac_word... " >&6; }
17709 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17710   $as_echo_n "(cached) " >&6
17711 else
17712   case $CHECK_TOOLSDIR_GMAKE in
17713   [\\/]* | ?:[\\/]*)
17714   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17715   ;;
17716   *)
17717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17718 for as_dir in $PATH
17719 do
17720   IFS=$as_save_IFS
17721   test -z "$as_dir" && as_dir=.
17722     for ac_exec_ext in '' $ac_executable_extensions; do
17723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17724     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17726     break 2
17727   fi
17728 done
17729   done
17730 IFS=$as_save_IFS
17731 
17732   ;;
17733 esac
17734 fi
17735 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17736 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17738 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17739 else
17740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17741 $as_echo "no" >&6; }
17742 fi
17743 
17744 
17745   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17746 done
17747 
17748 
17749   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17750   DESCRIPTION="gmake in tools-dir"
17751 
17752   # On Cygwin, we require a newer version of make than on other platforms
17753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17754     MAKE_VERSION_EXPR="-e 4\."
17755     MAKE_REQUIRED_VERSION="4.0"
17756    else
17757     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17758     MAKE_REQUIRED_VERSION="3.81"
17759   fi
17760 
17761   if test "x$MAKE_CANDIDATE" != x; then
17762     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17763 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17764     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17765     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17766     if test "x$IS_GNU_MAKE" = x; then
17767       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17768 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17769     else
17770       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17771       if test "x$IS_MODERN_MAKE" = x; then
17772         { $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
17773 $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;}
17774       else
17775         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17776           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17777             MAKE_EXPECTED_ENV='cygwin'
17778           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17779             MAKE_EXPECTED_ENV='msys'
17780           else
17781             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17782           fi
17783           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17784           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17785         else
17786           # Not relevant for non-Windows
17787           IS_MAKE_CORRECT_ENV=true
17788         fi
17789         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17790           { $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
17791 $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;}
17792         else
17793           FOUND_MAKE=$MAKE_CANDIDATE
17794 
17795   # Only process if variable expands to non-empty
17796 
17797   if test "x$FOUND_MAKE" != x; then
17798     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17799 
17800   # First separate the path from the arguments. This will split at the first
17801   # space.
17802   complete="$FOUND_MAKE"
17803   path="${complete%% *}"
17804   tmp="$complete EOL"
17805   arguments="${tmp#* }"
17806 
17807   # Input might be given as Windows format, start by converting to
17808   # unix format.
17809   new_path=`$CYGPATH -u "$path"`
17810 
17811   # Now try to locate executable using which
17812   new_path=`$WHICH "$new_path" 2> /dev/null`
17813   # bat and cmd files are not always considered executable in cygwin causing which
17814   # to not find them
17815   if test "x$new_path" = x \
17816       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17817       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17818     new_path=`$CYGPATH -u "$path"`
17819   fi
17820   if test "x$new_path" = x; then
17821     # Oops. Which didn't find the executable.
17822     # The splitting of arguments from the executable at a space might have been incorrect,
17823     # since paths with space are more likely in Windows. Give it another try with the whole
17824     # argument.
17825     path="$complete"
17826     arguments="EOL"
17827     new_path=`$CYGPATH -u "$path"`
17828     new_path=`$WHICH "$new_path" 2> /dev/null`
17829     # bat and cmd files are not always considered executable in cygwin causing which
17830     # to not find them
17831     if test "x$new_path" = x \
17832         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17833         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17834       new_path=`$CYGPATH -u "$path"`
17835     fi
17836     if test "x$new_path" = x; then
17837       # It's still not found. Now this is an unrecoverable error.
17838       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17839 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17840       has_space=`$ECHO "$complete" | $GREP " "`
17841       if test "x$has_space" != x; then
17842         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17843 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17844       fi
17845       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17846     fi
17847   fi
17848 
17849   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17850   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17851   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17852   # "foo.exe" is OK but "foo" is an error.
17853   #
17854   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17855   # It is also a way to make sure we got the proper file name for the real test later on.
17856   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17857   if test "x$test_shortpath" = x; then
17858     # Short path failed, file does not exist as specified.
17859     # Try adding .exe or .cmd
17860     if test -f "${new_path}.exe"; then
17861       input_to_shortpath="${new_path}.exe"
17862     elif test -f "${new_path}.cmd"; then
17863       input_to_shortpath="${new_path}.cmd"
17864     else
17865       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17866 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17867       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17868 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17869       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17870     fi
17871   else
17872     input_to_shortpath="$new_path"
17873   fi
17874 
17875   # Call helper function which possibly converts this using DOS-style short mode.
17876   # If so, the updated path is stored in $new_path.
17877   new_path="$input_to_shortpath"
17878 
17879   input_path="$input_to_shortpath"
17880   # Check if we need to convert this using DOS-style short mode. If the path
17881   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17882   # take no chances and rewrite it.
17883   # Note: m4 eats our [], so we need to use [ and ] instead.
17884   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17885   if test "x$has_forbidden_chars" != x; then
17886     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17887     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17888     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17889     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17890       # Going to short mode and back again did indeed matter. Since short mode is
17891       # case insensitive, let's make it lowercase to improve readability.
17892       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17893       # Now convert it back to Unix-style (cygpath)
17894       input_path=`$CYGPATH -u "$shortmode_path"`
17895       new_path="$input_path"
17896     fi
17897   fi
17898 
17899   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17900   if test "x$test_cygdrive_prefix" = x; then
17901     # As a simple fix, exclude /usr/bin since it's not a real path.
17902     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17903       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17904       # a path prefixed by /cygdrive for fixpath to work.
17905       new_path="$CYGWIN_ROOT_PATH$input_path"
17906     fi
17907   fi
17908 
17909   # remove trailing .exe if any
17910   new_path="${new_path/%.exe/}"
17911 
17912     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17913 
17914   # First separate the path from the arguments. This will split at the first
17915   # space.
17916   complete="$FOUND_MAKE"
17917   path="${complete%% *}"
17918   tmp="$complete EOL"
17919   arguments="${tmp#* }"
17920 
17921   # Input might be given as Windows format, start by converting to
17922   # unix format.
17923   new_path="$path"
17924 
17925   windows_path="$new_path"
17926   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17927     unix_path=`$CYGPATH -u "$windows_path"`
17928     new_path="$unix_path"
17929   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17930     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17931     new_path="$unix_path"
17932   fi
17933 
17934 
17935   # Now try to locate executable using which
17936   new_path=`$WHICH "$new_path" 2> /dev/null`
17937 
17938   if test "x$new_path" = x; then
17939     # Oops. Which didn't find the executable.
17940     # The splitting of arguments from the executable at a space might have been incorrect,
17941     # since paths with space are more likely in Windows. Give it another try with the whole
17942     # argument.
17943     path="$complete"
17944     arguments="EOL"
17945     new_path="$path"
17946 
17947   windows_path="$new_path"
17948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17949     unix_path=`$CYGPATH -u "$windows_path"`
17950     new_path="$unix_path"
17951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17952     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17953     new_path="$unix_path"
17954   fi
17955 
17956 
17957     new_path=`$WHICH "$new_path" 2> /dev/null`
17958     # bat and cmd files are not always considered executable in MSYS causing which
17959     # to not find them
17960     if test "x$new_path" = x \
17961         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17962         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17963       new_path="$path"
17964 
17965   windows_path="$new_path"
17966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17967     unix_path=`$CYGPATH -u "$windows_path"`
17968     new_path="$unix_path"
17969   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17970     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17971     new_path="$unix_path"
17972   fi
17973 
17974     fi
17975 
17976     if test "x$new_path" = x; then
17977       # It's still not found. Now this is an unrecoverable error.
17978       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17979 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17980       has_space=`$ECHO "$complete" | $GREP " "`
17981       if test "x$has_space" != x; then
17982         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17983 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17984       fi
17985       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17986     fi
17987   fi
17988 
17989   # Now new_path has a complete unix path to the binary
17990   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17991     # Keep paths in /bin as-is, but remove trailing .exe if any
17992     new_path="${new_path/%.exe/}"
17993     # Do not save /bin paths to all_fixpath_prefixes!
17994   else
17995     # Not in mixed or Windows style, start by that.
17996     new_path=`cmd //c echo $new_path`
17997 
17998   input_path="$new_path"
17999   # Check if we need to convert this using DOS-style short mode. If the path
18000   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18001   # take no chances and rewrite it.
18002   # Note: m4 eats our [], so we need to use [ and ] instead.
18003   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18004   if test "x$has_forbidden_chars" != x; then
18005     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18006     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18007   fi
18008 
18009     # Output is in $new_path
18010 
18011   windows_path="$new_path"
18012   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18013     unix_path=`$CYGPATH -u "$windows_path"`
18014     new_path="$unix_path"
18015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18016     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18017     new_path="$unix_path"
18018   fi
18019 
18020     # remove trailing .exe if any
18021     new_path="${new_path/%.exe/}"
18022 
18023     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18024     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18025   fi
18026 
18027     else
18028       # We're on a unix platform. Hooray! :)
18029       # First separate the path from the arguments. This will split at the first
18030       # space.
18031       complete="$FOUND_MAKE"
18032       path="${complete%% *}"
18033       tmp="$complete EOL"
18034       arguments="${tmp#* }"
18035 
18036       # Cannot rely on the command "which" here since it doesn't always work.
18037       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18038       if test -z "$is_absolute_path"; then
18039         # Path to executable is not absolute. Find it.
18040         IFS_save="$IFS"
18041         IFS=:
18042         for p in $PATH; do
18043           if test -f "$p/$path" && test -x "$p/$path"; then
18044             new_path="$p/$path"
18045             break
18046           fi
18047         done
18048         IFS="$IFS_save"
18049       else
18050         # This is an absolute path, we can use it without further modifications.
18051         new_path="$path"
18052       fi
18053 
18054       if test "x$new_path" = x; then
18055         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18056 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18057         has_space=`$ECHO "$complete" | $GREP " "`
18058         if test "x$has_space" != x; then
18059           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18060 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18061         fi
18062         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18063       fi
18064     fi
18065 
18066     # Now join together the path and the arguments once again
18067     if test "x$arguments" != xEOL; then
18068       new_complete="$new_path ${arguments% *}"
18069     else
18070       new_complete="$new_path"
18071     fi
18072 
18073     if test "x$complete" != "x$new_complete"; then
18074       FOUND_MAKE="$new_complete"
18075       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18076 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18077     fi
18078   fi
18079 
18080         fi
18081       fi
18082     fi
18083   fi
18084 
18085         if test "x$FOUND_MAKE" = x; then
18086           for ac_prog in make
18087 do
18088   # Extract the first word of "$ac_prog", so it can be a program name with args.
18089 set dummy $ac_prog; ac_word=$2
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18091 $as_echo_n "checking for $ac_word... " >&6; }
18092 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18093   $as_echo_n "(cached) " >&6
18094 else
18095   case $CHECK_TOOLSDIR_MAKE in
18096   [\\/]* | ?:[\\/]*)
18097   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18098   ;;
18099   *)
18100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18101 for as_dir in $PATH
18102 do
18103   IFS=$as_save_IFS
18104   test -z "$as_dir" && as_dir=.
18105     for ac_exec_ext in '' $ac_executable_extensions; do
18106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18107     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18109     break 2
18110   fi
18111 done
18112   done
18113 IFS=$as_save_IFS
18114 
18115   ;;
18116 esac
18117 fi
18118 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18119 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18121 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18122 else
18123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18124 $as_echo "no" >&6; }
18125 fi
18126 
18127 
18128   test -n "$CHECK_TOOLSDIR_MAKE" && break
18129 done
18130 
18131 
18132   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18133   DESCRIPTION="make in tools-dir"
18134 
18135   # On Cygwin, we require a newer version of make than on other platforms
18136   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18137     MAKE_VERSION_EXPR="-e 4\."
18138     MAKE_REQUIRED_VERSION="4.0"
18139    else
18140     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18141     MAKE_REQUIRED_VERSION="3.81"
18142   fi
18143 
18144   if test "x$MAKE_CANDIDATE" != x; then
18145     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18146 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18147     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18148     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18149     if test "x$IS_GNU_MAKE" = x; then
18150       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18151 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18152     else
18153       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18154       if test "x$IS_MODERN_MAKE" = x; then
18155         { $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
18156 $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;}
18157       else
18158         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18159           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18160             MAKE_EXPECTED_ENV='cygwin'
18161           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18162             MAKE_EXPECTED_ENV='msys'
18163           else
18164             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18165           fi
18166           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18167           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18168         else
18169           # Not relevant for non-Windows
18170           IS_MAKE_CORRECT_ENV=true
18171         fi
18172         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18173           { $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
18174 $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;}
18175         else
18176           FOUND_MAKE=$MAKE_CANDIDATE
18177 
18178   # Only process if variable expands to non-empty
18179 
18180   if test "x$FOUND_MAKE" != x; then
18181     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18182 
18183   # First separate the path from the arguments. This will split at the first
18184   # space.
18185   complete="$FOUND_MAKE"
18186   path="${complete%% *}"
18187   tmp="$complete EOL"
18188   arguments="${tmp#* }"
18189 
18190   # Input might be given as Windows format, start by converting to
18191   # unix format.
18192   new_path=`$CYGPATH -u "$path"`
18193 
18194   # Now try to locate executable using which
18195   new_path=`$WHICH "$new_path" 2> /dev/null`
18196   # bat and cmd files are not always considered executable in cygwin causing which
18197   # to not find them
18198   if test "x$new_path" = x \
18199       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18200       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18201     new_path=`$CYGPATH -u "$path"`
18202   fi
18203   if test "x$new_path" = x; then
18204     # Oops. Which didn't find the executable.
18205     # The splitting of arguments from the executable at a space might have been incorrect,
18206     # since paths with space are more likely in Windows. Give it another try with the whole
18207     # argument.
18208     path="$complete"
18209     arguments="EOL"
18210     new_path=`$CYGPATH -u "$path"`
18211     new_path=`$WHICH "$new_path" 2> /dev/null`
18212     # bat and cmd files are not always considered executable in cygwin causing which
18213     # to not find them
18214     if test "x$new_path" = x \
18215         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18216         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18217       new_path=`$CYGPATH -u "$path"`
18218     fi
18219     if test "x$new_path" = x; then
18220       # It's still not found. Now this is an unrecoverable error.
18221       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18222 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18223       has_space=`$ECHO "$complete" | $GREP " "`
18224       if test "x$has_space" != x; then
18225         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18226 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18227       fi
18228       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18229     fi
18230   fi
18231 
18232   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18233   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18234   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18235   # "foo.exe" is OK but "foo" is an error.
18236   #
18237   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18238   # It is also a way to make sure we got the proper file name for the real test later on.
18239   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18240   if test "x$test_shortpath" = x; then
18241     # Short path failed, file does not exist as specified.
18242     # Try adding .exe or .cmd
18243     if test -f "${new_path}.exe"; then
18244       input_to_shortpath="${new_path}.exe"
18245     elif test -f "${new_path}.cmd"; then
18246       input_to_shortpath="${new_path}.cmd"
18247     else
18248       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18249 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18250       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18251 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18252       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18253     fi
18254   else
18255     input_to_shortpath="$new_path"
18256   fi
18257 
18258   # Call helper function which possibly converts this using DOS-style short mode.
18259   # If so, the updated path is stored in $new_path.
18260   new_path="$input_to_shortpath"
18261 
18262   input_path="$input_to_shortpath"
18263   # Check if we need to convert this using DOS-style short mode. If the path
18264   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18265   # take no chances and rewrite it.
18266   # Note: m4 eats our [], so we need to use [ and ] instead.
18267   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18268   if test "x$has_forbidden_chars" != x; then
18269     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18270     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18271     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18272     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18273       # Going to short mode and back again did indeed matter. Since short mode is
18274       # case insensitive, let's make it lowercase to improve readability.
18275       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18276       # Now convert it back to Unix-style (cygpath)
18277       input_path=`$CYGPATH -u "$shortmode_path"`
18278       new_path="$input_path"
18279     fi
18280   fi
18281 
18282   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18283   if test "x$test_cygdrive_prefix" = x; then
18284     # As a simple fix, exclude /usr/bin since it's not a real path.
18285     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18286       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18287       # a path prefixed by /cygdrive for fixpath to work.
18288       new_path="$CYGWIN_ROOT_PATH$input_path"
18289     fi
18290   fi
18291 
18292   # remove trailing .exe if any
18293   new_path="${new_path/%.exe/}"
18294 
18295     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18296 
18297   # First separate the path from the arguments. This will split at the first
18298   # space.
18299   complete="$FOUND_MAKE"
18300   path="${complete%% *}"
18301   tmp="$complete EOL"
18302   arguments="${tmp#* }"
18303 
18304   # Input might be given as Windows format, start by converting to
18305   # unix format.
18306   new_path="$path"
18307 
18308   windows_path="$new_path"
18309   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18310     unix_path=`$CYGPATH -u "$windows_path"`
18311     new_path="$unix_path"
18312   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18313     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18314     new_path="$unix_path"
18315   fi
18316 
18317 
18318   # Now try to locate executable using which
18319   new_path=`$WHICH "$new_path" 2> /dev/null`
18320 
18321   if test "x$new_path" = x; then
18322     # Oops. Which didn't find the executable.
18323     # The splitting of arguments from the executable at a space might have been incorrect,
18324     # since paths with space are more likely in Windows. Give it another try with the whole
18325     # argument.
18326     path="$complete"
18327     arguments="EOL"
18328     new_path="$path"
18329 
18330   windows_path="$new_path"
18331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18332     unix_path=`$CYGPATH -u "$windows_path"`
18333     new_path="$unix_path"
18334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18335     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18336     new_path="$unix_path"
18337   fi
18338 
18339 
18340     new_path=`$WHICH "$new_path" 2> /dev/null`
18341     # bat and cmd files are not always considered executable in MSYS causing which
18342     # to not find them
18343     if test "x$new_path" = x \
18344         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18345         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18346       new_path="$path"
18347 
18348   windows_path="$new_path"
18349   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18350     unix_path=`$CYGPATH -u "$windows_path"`
18351     new_path="$unix_path"
18352   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18353     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18354     new_path="$unix_path"
18355   fi
18356 
18357     fi
18358 
18359     if test "x$new_path" = x; then
18360       # It's still not found. Now this is an unrecoverable error.
18361       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18362 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18363       has_space=`$ECHO "$complete" | $GREP " "`
18364       if test "x$has_space" != x; then
18365         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18366 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18367       fi
18368       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18369     fi
18370   fi
18371 
18372   # Now new_path has a complete unix path to the binary
18373   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18374     # Keep paths in /bin as-is, but remove trailing .exe if any
18375     new_path="${new_path/%.exe/}"
18376     # Do not save /bin paths to all_fixpath_prefixes!
18377   else
18378     # Not in mixed or Windows style, start by that.
18379     new_path=`cmd //c echo $new_path`
18380 
18381   input_path="$new_path"
18382   # Check if we need to convert this using DOS-style short mode. If the path
18383   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18384   # take no chances and rewrite it.
18385   # Note: m4 eats our [], so we need to use [ and ] instead.
18386   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18387   if test "x$has_forbidden_chars" != x; then
18388     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18389     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18390   fi
18391 
18392     # Output is in $new_path
18393 
18394   windows_path="$new_path"
18395   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18396     unix_path=`$CYGPATH -u "$windows_path"`
18397     new_path="$unix_path"
18398   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18399     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18400     new_path="$unix_path"
18401   fi
18402 
18403     # remove trailing .exe if any
18404     new_path="${new_path/%.exe/}"
18405 
18406     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18407     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18408   fi
18409 
18410     else
18411       # We're on a unix platform. Hooray! :)
18412       # First separate the path from the arguments. This will split at the first
18413       # space.
18414       complete="$FOUND_MAKE"
18415       path="${complete%% *}"
18416       tmp="$complete EOL"
18417       arguments="${tmp#* }"
18418 
18419       # Cannot rely on the command "which" here since it doesn't always work.
18420       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18421       if test -z "$is_absolute_path"; then
18422         # Path to executable is not absolute. Find it.
18423         IFS_save="$IFS"
18424         IFS=:
18425         for p in $PATH; do
18426           if test -f "$p/$path" && test -x "$p/$path"; then
18427             new_path="$p/$path"
18428             break
18429           fi
18430         done
18431         IFS="$IFS_save"
18432       else
18433         # This is an absolute path, we can use it without further modifications.
18434         new_path="$path"
18435       fi
18436 
18437       if test "x$new_path" = x; then
18438         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18439 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18440         has_space=`$ECHO "$complete" | $GREP " "`
18441         if test "x$has_space" != x; then
18442           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18443 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18444         fi
18445         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18446       fi
18447     fi
18448 
18449     # Now join together the path and the arguments once again
18450     if test "x$arguments" != xEOL; then
18451       new_complete="$new_path ${arguments% *}"
18452     else
18453       new_complete="$new_path"
18454     fi
18455 
18456     if test "x$complete" != "x$new_complete"; then
18457       FOUND_MAKE="$new_complete"
18458       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18459 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18460     fi
18461   fi
18462 
18463         fi
18464       fi
18465     fi
18466   fi
18467 
18468         fi
18469         PATH=$OLD_PATH
18470       fi
18471     fi
18472 
18473     if test "x$FOUND_MAKE" = x; then
18474       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
18475     fi
18476 
18477   else
18478     # The variable is set, but is it from the command line or the environment?
18479 
18480     # Try to remove the string !MAKE! from our list.
18481     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18482     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18483       # If it failed, the variable was not from the command line. Ignore it,
18484       # but warn the user (except for BASH, which is always set by the calling BASH).
18485       if test "xMAKE" != xBASH; then
18486         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18487 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18488       fi
18489       # Try to locate tool using the code snippet
18490 
18491     # Try our hardest to locate a correct version of GNU make
18492     for ac_prog in gmake
18493 do
18494   # Extract the first word of "$ac_prog", so it can be a program name with args.
18495 set dummy $ac_prog; ac_word=$2
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18497 $as_echo_n "checking for $ac_word... " >&6; }
18498 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18499   $as_echo_n "(cached) " >&6
18500 else
18501   case $CHECK_GMAKE in
18502   [\\/]* | ?:[\\/]*)
18503   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18504   ;;
18505   *)
18506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18507 for as_dir in $PATH
18508 do
18509   IFS=$as_save_IFS
18510   test -z "$as_dir" && as_dir=.
18511     for ac_exec_ext in '' $ac_executable_extensions; do
18512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18513     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18515     break 2
18516   fi
18517 done
18518   done
18519 IFS=$as_save_IFS
18520 
18521   ;;
18522 esac
18523 fi
18524 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18525 if test -n "$CHECK_GMAKE"; then
18526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18527 $as_echo "$CHECK_GMAKE" >&6; }
18528 else
18529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18530 $as_echo "no" >&6; }
18531 fi
18532 
18533 
18534   test -n "$CHECK_GMAKE" && break
18535 done
18536 
18537 
18538   MAKE_CANDIDATE=""$CHECK_GMAKE""
18539   DESCRIPTION="gmake in PATH"
18540 
18541   # On Cygwin, we require a newer version of make than on other platforms
18542   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18543     MAKE_VERSION_EXPR="-e 4\."
18544     MAKE_REQUIRED_VERSION="4.0"
18545    else
18546     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18547     MAKE_REQUIRED_VERSION="3.81"
18548   fi
18549 
18550   if test "x$MAKE_CANDIDATE" != x; then
18551     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18552 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18553     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18554     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18555     if test "x$IS_GNU_MAKE" = x; then
18556       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18557 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18558     else
18559       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18560       if test "x$IS_MODERN_MAKE" = x; then
18561         { $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
18562 $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;}
18563       else
18564         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18565           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18566             MAKE_EXPECTED_ENV='cygwin'
18567           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18568             MAKE_EXPECTED_ENV='msys'
18569           else
18570             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18571           fi
18572           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18573           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18574         else
18575           # Not relevant for non-Windows
18576           IS_MAKE_CORRECT_ENV=true
18577         fi
18578         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18579           { $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
18580 $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;}
18581         else
18582           FOUND_MAKE=$MAKE_CANDIDATE
18583 
18584   # Only process if variable expands to non-empty
18585 
18586   if test "x$FOUND_MAKE" != x; then
18587     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18588 
18589   # First separate the path from the arguments. This will split at the first
18590   # space.
18591   complete="$FOUND_MAKE"
18592   path="${complete%% *}"
18593   tmp="$complete EOL"
18594   arguments="${tmp#* }"
18595 
18596   # Input might be given as Windows format, start by converting to
18597   # unix format.
18598   new_path=`$CYGPATH -u "$path"`
18599 
18600   # Now try to locate executable using which
18601   new_path=`$WHICH "$new_path" 2> /dev/null`
18602   # bat and cmd files are not always considered executable in cygwin causing which
18603   # to not find them
18604   if test "x$new_path" = x \
18605       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18606       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18607     new_path=`$CYGPATH -u "$path"`
18608   fi
18609   if test "x$new_path" = x; then
18610     # Oops. Which didn't find the executable.
18611     # The splitting of arguments from the executable at a space might have been incorrect,
18612     # since paths with space are more likely in Windows. Give it another try with the whole
18613     # argument.
18614     path="$complete"
18615     arguments="EOL"
18616     new_path=`$CYGPATH -u "$path"`
18617     new_path=`$WHICH "$new_path" 2> /dev/null`
18618     # bat and cmd files are not always considered executable in cygwin causing which
18619     # to not find them
18620     if test "x$new_path" = x \
18621         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18622         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18623       new_path=`$CYGPATH -u "$path"`
18624     fi
18625     if test "x$new_path" = x; then
18626       # It's still not found. Now this is an unrecoverable error.
18627       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18628 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18629       has_space=`$ECHO "$complete" | $GREP " "`
18630       if test "x$has_space" != x; then
18631         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18632 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18633       fi
18634       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18635     fi
18636   fi
18637 
18638   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18639   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18640   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18641   # "foo.exe" is OK but "foo" is an error.
18642   #
18643   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18644   # It is also a way to make sure we got the proper file name for the real test later on.
18645   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18646   if test "x$test_shortpath" = x; then
18647     # Short path failed, file does not exist as specified.
18648     # Try adding .exe or .cmd
18649     if test -f "${new_path}.exe"; then
18650       input_to_shortpath="${new_path}.exe"
18651     elif test -f "${new_path}.cmd"; then
18652       input_to_shortpath="${new_path}.cmd"
18653     else
18654       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18655 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18656       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18657 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18658       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18659     fi
18660   else
18661     input_to_shortpath="$new_path"
18662   fi
18663 
18664   # Call helper function which possibly converts this using DOS-style short mode.
18665   # If so, the updated path is stored in $new_path.
18666   new_path="$input_to_shortpath"
18667 
18668   input_path="$input_to_shortpath"
18669   # Check if we need to convert this using DOS-style short mode. If the path
18670   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18671   # take no chances and rewrite it.
18672   # Note: m4 eats our [], so we need to use [ and ] instead.
18673   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18674   if test "x$has_forbidden_chars" != x; then
18675     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18676     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18677     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18678     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18679       # Going to short mode and back again did indeed matter. Since short mode is
18680       # case insensitive, let's make it lowercase to improve readability.
18681       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18682       # Now convert it back to Unix-style (cygpath)
18683       input_path=`$CYGPATH -u "$shortmode_path"`
18684       new_path="$input_path"
18685     fi
18686   fi
18687 
18688   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18689   if test "x$test_cygdrive_prefix" = x; then
18690     # As a simple fix, exclude /usr/bin since it's not a real path.
18691     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18692       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18693       # a path prefixed by /cygdrive for fixpath to work.
18694       new_path="$CYGWIN_ROOT_PATH$input_path"
18695     fi
18696   fi
18697 
18698   # remove trailing .exe if any
18699   new_path="${new_path/%.exe/}"
18700 
18701     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18702 
18703   # First separate the path from the arguments. This will split at the first
18704   # space.
18705   complete="$FOUND_MAKE"
18706   path="${complete%% *}"
18707   tmp="$complete EOL"
18708   arguments="${tmp#* }"
18709 
18710   # Input might be given as Windows format, start by converting to
18711   # unix format.
18712   new_path="$path"
18713 
18714   windows_path="$new_path"
18715   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18716     unix_path=`$CYGPATH -u "$windows_path"`
18717     new_path="$unix_path"
18718   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18719     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18720     new_path="$unix_path"
18721   fi
18722 
18723 
18724   # Now try to locate executable using which
18725   new_path=`$WHICH "$new_path" 2> /dev/null`
18726 
18727   if test "x$new_path" = x; then
18728     # Oops. Which didn't find the executable.
18729     # The splitting of arguments from the executable at a space might have been incorrect,
18730     # since paths with space are more likely in Windows. Give it another try with the whole
18731     # argument.
18732     path="$complete"
18733     arguments="EOL"
18734     new_path="$path"
18735 
18736   windows_path="$new_path"
18737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18738     unix_path=`$CYGPATH -u "$windows_path"`
18739     new_path="$unix_path"
18740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18741     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18742     new_path="$unix_path"
18743   fi
18744 
18745 
18746     new_path=`$WHICH "$new_path" 2> /dev/null`
18747     # bat and cmd files are not always considered executable in MSYS causing which
18748     # to not find them
18749     if test "x$new_path" = x \
18750         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18751         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18752       new_path="$path"
18753 
18754   windows_path="$new_path"
18755   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18756     unix_path=`$CYGPATH -u "$windows_path"`
18757     new_path="$unix_path"
18758   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18759     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18760     new_path="$unix_path"
18761   fi
18762 
18763     fi
18764 
18765     if test "x$new_path" = x; then
18766       # It's still not found. Now this is an unrecoverable error.
18767       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18768 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18769       has_space=`$ECHO "$complete" | $GREP " "`
18770       if test "x$has_space" != x; then
18771         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18772 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18773       fi
18774       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18775     fi
18776   fi
18777 
18778   # Now new_path has a complete unix path to the binary
18779   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18780     # Keep paths in /bin as-is, but remove trailing .exe if any
18781     new_path="${new_path/%.exe/}"
18782     # Do not save /bin paths to all_fixpath_prefixes!
18783   else
18784     # Not in mixed or Windows style, start by that.
18785     new_path=`cmd //c echo $new_path`
18786 
18787   input_path="$new_path"
18788   # Check if we need to convert this using DOS-style short mode. If the path
18789   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18790   # take no chances and rewrite it.
18791   # Note: m4 eats our [], so we need to use [ and ] instead.
18792   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18793   if test "x$has_forbidden_chars" != x; then
18794     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18795     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18796   fi
18797 
18798     # Output is in $new_path
18799 
18800   windows_path="$new_path"
18801   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18802     unix_path=`$CYGPATH -u "$windows_path"`
18803     new_path="$unix_path"
18804   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18805     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18806     new_path="$unix_path"
18807   fi
18808 
18809     # remove trailing .exe if any
18810     new_path="${new_path/%.exe/}"
18811 
18812     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18813     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18814   fi
18815 
18816     else
18817       # We're on a unix platform. Hooray! :)
18818       # First separate the path from the arguments. This will split at the first
18819       # space.
18820       complete="$FOUND_MAKE"
18821       path="${complete%% *}"
18822       tmp="$complete EOL"
18823       arguments="${tmp#* }"
18824 
18825       # Cannot rely on the command "which" here since it doesn't always work.
18826       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18827       if test -z "$is_absolute_path"; then
18828         # Path to executable is not absolute. Find it.
18829         IFS_save="$IFS"
18830         IFS=:
18831         for p in $PATH; do
18832           if test -f "$p/$path" && test -x "$p/$path"; then
18833             new_path="$p/$path"
18834             break
18835           fi
18836         done
18837         IFS="$IFS_save"
18838       else
18839         # This is an absolute path, we can use it without further modifications.
18840         new_path="$path"
18841       fi
18842 
18843       if test "x$new_path" = x; then
18844         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18845 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18846         has_space=`$ECHO "$complete" | $GREP " "`
18847         if test "x$has_space" != x; then
18848           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18849 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18850         fi
18851         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18852       fi
18853     fi
18854 
18855     # Now join together the path and the arguments once again
18856     if test "x$arguments" != xEOL; then
18857       new_complete="$new_path ${arguments% *}"
18858     else
18859       new_complete="$new_path"
18860     fi
18861 
18862     if test "x$complete" != "x$new_complete"; then
18863       FOUND_MAKE="$new_complete"
18864       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18865 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18866     fi
18867   fi
18868 
18869         fi
18870       fi
18871     fi
18872   fi
18873 
18874 
18875     if test "x$FOUND_MAKE" = x; then
18876       for ac_prog in make
18877 do
18878   # Extract the first word of "$ac_prog", so it can be a program name with args.
18879 set dummy $ac_prog; ac_word=$2
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18881 $as_echo_n "checking for $ac_word... " >&6; }
18882 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18883   $as_echo_n "(cached) " >&6
18884 else
18885   case $CHECK_MAKE in
18886   [\\/]* | ?:[\\/]*)
18887   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18888   ;;
18889   *)
18890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891 for as_dir in $PATH
18892 do
18893   IFS=$as_save_IFS
18894   test -z "$as_dir" && as_dir=.
18895     for ac_exec_ext in '' $ac_executable_extensions; do
18896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18897     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18899     break 2
18900   fi
18901 done
18902   done
18903 IFS=$as_save_IFS
18904 
18905   ;;
18906 esac
18907 fi
18908 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18909 if test -n "$CHECK_MAKE"; then
18910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18911 $as_echo "$CHECK_MAKE" >&6; }
18912 else
18913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18914 $as_echo "no" >&6; }
18915 fi
18916 
18917 
18918   test -n "$CHECK_MAKE" && break
18919 done
18920 
18921 
18922   MAKE_CANDIDATE=""$CHECK_MAKE""
18923   DESCRIPTION="make in PATH"
18924 
18925   # On Cygwin, we require a newer version of make than on other platforms
18926   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18927     MAKE_VERSION_EXPR="-e 4\."
18928     MAKE_REQUIRED_VERSION="4.0"
18929    else
18930     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18931     MAKE_REQUIRED_VERSION="3.81"
18932   fi
18933 
18934   if test "x$MAKE_CANDIDATE" != x; then
18935     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18936 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18937     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18938     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18939     if test "x$IS_GNU_MAKE" = x; then
18940       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18941 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18942     else
18943       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18944       if test "x$IS_MODERN_MAKE" = x; then
18945         { $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
18946 $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;}
18947       else
18948         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18949           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18950             MAKE_EXPECTED_ENV='cygwin'
18951           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18952             MAKE_EXPECTED_ENV='msys'
18953           else
18954             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18955           fi
18956           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18957           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18958         else
18959           # Not relevant for non-Windows
18960           IS_MAKE_CORRECT_ENV=true
18961         fi
18962         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18963           { $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
18964 $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;}
18965         else
18966           FOUND_MAKE=$MAKE_CANDIDATE
18967 
18968   # Only process if variable expands to non-empty
18969 
18970   if test "x$FOUND_MAKE" != x; then
18971     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18972 
18973   # First separate the path from the arguments. This will split at the first
18974   # space.
18975   complete="$FOUND_MAKE"
18976   path="${complete%% *}"
18977   tmp="$complete EOL"
18978   arguments="${tmp#* }"
18979 
18980   # Input might be given as Windows format, start by converting to
18981   # unix format.
18982   new_path=`$CYGPATH -u "$path"`
18983 
18984   # Now try to locate executable using which
18985   new_path=`$WHICH "$new_path" 2> /dev/null`
18986   # bat and cmd files are not always considered executable in cygwin causing which
18987   # to not find them
18988   if test "x$new_path" = x \
18989       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18990       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18991     new_path=`$CYGPATH -u "$path"`
18992   fi
18993   if test "x$new_path" = x; then
18994     # Oops. Which didn't find the executable.
18995     # The splitting of arguments from the executable at a space might have been incorrect,
18996     # since paths with space are more likely in Windows. Give it another try with the whole
18997     # argument.
18998     path="$complete"
18999     arguments="EOL"
19000     new_path=`$CYGPATH -u "$path"`
19001     new_path=`$WHICH "$new_path" 2> /dev/null`
19002     # bat and cmd files are not always considered executable in cygwin causing which
19003     # to not find them
19004     if test "x$new_path" = x \
19005         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19006         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19007       new_path=`$CYGPATH -u "$path"`
19008     fi
19009     if test "x$new_path" = x; then
19010       # It's still not found. Now this is an unrecoverable error.
19011       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19012 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19013       has_space=`$ECHO "$complete" | $GREP " "`
19014       if test "x$has_space" != x; then
19015         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19016 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19017       fi
19018       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19019     fi
19020   fi
19021 
19022   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19023   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19024   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19025   # "foo.exe" is OK but "foo" is an error.
19026   #
19027   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19028   # It is also a way to make sure we got the proper file name for the real test later on.
19029   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19030   if test "x$test_shortpath" = x; then
19031     # Short path failed, file does not exist as specified.
19032     # Try adding .exe or .cmd
19033     if test -f "${new_path}.exe"; then
19034       input_to_shortpath="${new_path}.exe"
19035     elif test -f "${new_path}.cmd"; then
19036       input_to_shortpath="${new_path}.cmd"
19037     else
19038       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19039 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19040       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19041 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19042       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19043     fi
19044   else
19045     input_to_shortpath="$new_path"
19046   fi
19047 
19048   # Call helper function which possibly converts this using DOS-style short mode.
19049   # If so, the updated path is stored in $new_path.
19050   new_path="$input_to_shortpath"
19051 
19052   input_path="$input_to_shortpath"
19053   # Check if we need to convert this using DOS-style short mode. If the path
19054   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19055   # take no chances and rewrite it.
19056   # Note: m4 eats our [], so we need to use [ and ] instead.
19057   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19058   if test "x$has_forbidden_chars" != x; then
19059     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19060     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19061     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19062     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19063       # Going to short mode and back again did indeed matter. Since short mode is
19064       # case insensitive, let's make it lowercase to improve readability.
19065       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19066       # Now convert it back to Unix-style (cygpath)
19067       input_path=`$CYGPATH -u "$shortmode_path"`
19068       new_path="$input_path"
19069     fi
19070   fi
19071 
19072   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19073   if test "x$test_cygdrive_prefix" = x; then
19074     # As a simple fix, exclude /usr/bin since it's not a real path.
19075     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19076       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19077       # a path prefixed by /cygdrive for fixpath to work.
19078       new_path="$CYGWIN_ROOT_PATH$input_path"
19079     fi
19080   fi
19081 
19082   # remove trailing .exe if any
19083   new_path="${new_path/%.exe/}"
19084 
19085     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19086 
19087   # First separate the path from the arguments. This will split at the first
19088   # space.
19089   complete="$FOUND_MAKE"
19090   path="${complete%% *}"
19091   tmp="$complete EOL"
19092   arguments="${tmp#* }"
19093 
19094   # Input might be given as Windows format, start by converting to
19095   # unix format.
19096   new_path="$path"
19097 
19098   windows_path="$new_path"
19099   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19100     unix_path=`$CYGPATH -u "$windows_path"`
19101     new_path="$unix_path"
19102   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19103     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19104     new_path="$unix_path"
19105   fi
19106 
19107 
19108   # Now try to locate executable using which
19109   new_path=`$WHICH "$new_path" 2> /dev/null`
19110 
19111   if test "x$new_path" = x; then
19112     # Oops. Which didn't find the executable.
19113     # The splitting of arguments from the executable at a space might have been incorrect,
19114     # since paths with space are more likely in Windows. Give it another try with the whole
19115     # argument.
19116     path="$complete"
19117     arguments="EOL"
19118     new_path="$path"
19119 
19120   windows_path="$new_path"
19121   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19122     unix_path=`$CYGPATH -u "$windows_path"`
19123     new_path="$unix_path"
19124   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19125     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19126     new_path="$unix_path"
19127   fi
19128 
19129 
19130     new_path=`$WHICH "$new_path" 2> /dev/null`
19131     # bat and cmd files are not always considered executable in MSYS causing which
19132     # to not find them
19133     if test "x$new_path" = x \
19134         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19135         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19136       new_path="$path"
19137 
19138   windows_path="$new_path"
19139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19140     unix_path=`$CYGPATH -u "$windows_path"`
19141     new_path="$unix_path"
19142   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19143     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19144     new_path="$unix_path"
19145   fi
19146 
19147     fi
19148 
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   # Now new_path has a complete unix path to the binary
19163   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19164     # Keep paths in /bin as-is, but remove trailing .exe if any
19165     new_path="${new_path/%.exe/}"
19166     # Do not save /bin paths to all_fixpath_prefixes!
19167   else
19168     # Not in mixed or Windows style, start by that.
19169     new_path=`cmd //c echo $new_path`
19170 
19171   input_path="$new_path"
19172   # Check if we need to convert this using DOS-style short mode. If the path
19173   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19174   # take no chances and rewrite it.
19175   # Note: m4 eats our [], so we need to use [ and ] instead.
19176   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19177   if test "x$has_forbidden_chars" != x; then
19178     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19179     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19180   fi
19181 
19182     # Output is in $new_path
19183 
19184   windows_path="$new_path"
19185   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19186     unix_path=`$CYGPATH -u "$windows_path"`
19187     new_path="$unix_path"
19188   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19189     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19190     new_path="$unix_path"
19191   fi
19192 
19193     # remove trailing .exe if any
19194     new_path="${new_path/%.exe/}"
19195 
19196     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19197     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19198   fi
19199 
19200     else
19201       # We're on a unix platform. Hooray! :)
19202       # First separate the path from the arguments. This will split at the first
19203       # space.
19204       complete="$FOUND_MAKE"
19205       path="${complete%% *}"
19206       tmp="$complete EOL"
19207       arguments="${tmp#* }"
19208 
19209       # Cannot rely on the command "which" here since it doesn't always work.
19210       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19211       if test -z "$is_absolute_path"; then
19212         # Path to executable is not absolute. Find it.
19213         IFS_save="$IFS"
19214         IFS=:
19215         for p in $PATH; do
19216           if test -f "$p/$path" && test -x "$p/$path"; then
19217             new_path="$p/$path"
19218             break
19219           fi
19220         done
19221         IFS="$IFS_save"
19222       else
19223         # This is an absolute path, we can use it without further modifications.
19224         new_path="$path"
19225       fi
19226 
19227       if test "x$new_path" = x; then
19228         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19229 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19230         has_space=`$ECHO "$complete" | $GREP " "`
19231         if test "x$has_space" != x; then
19232           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19233 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19234         fi
19235         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19236       fi
19237     fi
19238 
19239     # Now join together the path and the arguments once again
19240     if test "x$arguments" != xEOL; then
19241       new_complete="$new_path ${arguments% *}"
19242     else
19243       new_complete="$new_path"
19244     fi
19245 
19246     if test "x$complete" != "x$new_complete"; then
19247       FOUND_MAKE="$new_complete"
19248       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19249 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19250     fi
19251   fi
19252 
19253         fi
19254       fi
19255     fi
19256   fi
19257 
19258     fi
19259 
19260     if test "x$FOUND_MAKE" = x; then
19261       if test "x$TOOLCHAIN_PATH" != x; then
19262         # We have a toolchain path, check that as well before giving up.
19263         OLD_PATH=$PATH
19264         PATH=$TOOLCHAIN_PATH:$PATH
19265         for ac_prog in gmake
19266 do
19267   # Extract the first word of "$ac_prog", so it can be a program name with args.
19268 set dummy $ac_prog; ac_word=$2
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19270 $as_echo_n "checking for $ac_word... " >&6; }
19271 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19272   $as_echo_n "(cached) " >&6
19273 else
19274   case $CHECK_TOOLSDIR_GMAKE in
19275   [\\/]* | ?:[\\/]*)
19276   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19277   ;;
19278   *)
19279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19280 for as_dir in $PATH
19281 do
19282   IFS=$as_save_IFS
19283   test -z "$as_dir" && as_dir=.
19284     for ac_exec_ext in '' $ac_executable_extensions; do
19285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19286     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19288     break 2
19289   fi
19290 done
19291   done
19292 IFS=$as_save_IFS
19293 
19294   ;;
19295 esac
19296 fi
19297 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19298 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19300 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19301 else
19302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19303 $as_echo "no" >&6; }
19304 fi
19305 
19306 
19307   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19308 done
19309 
19310 
19311   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19312   DESCRIPTION="gmake in tools-dir"
19313 
19314   # On Cygwin, we require a newer version of make than on other platforms
19315   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19316     MAKE_VERSION_EXPR="-e 4\."
19317     MAKE_REQUIRED_VERSION="4.0"
19318    else
19319     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19320     MAKE_REQUIRED_VERSION="3.81"
19321   fi
19322 
19323   if test "x$MAKE_CANDIDATE" != x; then
19324     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19325 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19326     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19327     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19328     if test "x$IS_GNU_MAKE" = x; then
19329       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19330 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19331     else
19332       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19333       if test "x$IS_MODERN_MAKE" = x; then
19334         { $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
19335 $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;}
19336       else
19337         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19338           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19339             MAKE_EXPECTED_ENV='cygwin'
19340           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19341             MAKE_EXPECTED_ENV='msys'
19342           else
19343             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19344           fi
19345           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19346           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19347         else
19348           # Not relevant for non-Windows
19349           IS_MAKE_CORRECT_ENV=true
19350         fi
19351         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19352           { $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
19353 $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;}
19354         else
19355           FOUND_MAKE=$MAKE_CANDIDATE
19356 
19357   # Only process if variable expands to non-empty
19358 
19359   if test "x$FOUND_MAKE" != x; then
19360     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19361 
19362   # First separate the path from the arguments. This will split at the first
19363   # space.
19364   complete="$FOUND_MAKE"
19365   path="${complete%% *}"
19366   tmp="$complete EOL"
19367   arguments="${tmp#* }"
19368 
19369   # Input might be given as Windows format, start by converting to
19370   # unix format.
19371   new_path=`$CYGPATH -u "$path"`
19372 
19373   # Now try to locate executable using which
19374   new_path=`$WHICH "$new_path" 2> /dev/null`
19375   # bat and cmd files are not always considered executable in cygwin causing which
19376   # to not find them
19377   if test "x$new_path" = x \
19378       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19379       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19380     new_path=`$CYGPATH -u "$path"`
19381   fi
19382   if test "x$new_path" = x; then
19383     # Oops. Which didn't find the executable.
19384     # The splitting of arguments from the executable at a space might have been incorrect,
19385     # since paths with space are more likely in Windows. Give it another try with the whole
19386     # argument.
19387     path="$complete"
19388     arguments="EOL"
19389     new_path=`$CYGPATH -u "$path"`
19390     new_path=`$WHICH "$new_path" 2> /dev/null`
19391     # bat and cmd files are not always considered executable in cygwin causing which
19392     # to not find them
19393     if test "x$new_path" = x \
19394         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19395         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19396       new_path=`$CYGPATH -u "$path"`
19397     fi
19398     if test "x$new_path" = x; then
19399       # It's still not found. Now this is an unrecoverable error.
19400       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19401 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19402       has_space=`$ECHO "$complete" | $GREP " "`
19403       if test "x$has_space" != x; then
19404         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19405 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19406       fi
19407       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19408     fi
19409   fi
19410 
19411   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19412   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19413   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19414   # "foo.exe" is OK but "foo" is an error.
19415   #
19416   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19417   # It is also a way to make sure we got the proper file name for the real test later on.
19418   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19419   if test "x$test_shortpath" = x; then
19420     # Short path failed, file does not exist as specified.
19421     # Try adding .exe or .cmd
19422     if test -f "${new_path}.exe"; then
19423       input_to_shortpath="${new_path}.exe"
19424     elif test -f "${new_path}.cmd"; then
19425       input_to_shortpath="${new_path}.cmd"
19426     else
19427       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19428 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19429       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19430 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19431       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19432     fi
19433   else
19434     input_to_shortpath="$new_path"
19435   fi
19436 
19437   # Call helper function which possibly converts this using DOS-style short mode.
19438   # If so, the updated path is stored in $new_path.
19439   new_path="$input_to_shortpath"
19440 
19441   input_path="$input_to_shortpath"
19442   # Check if we need to convert this using DOS-style short mode. If the path
19443   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19444   # take no chances and rewrite it.
19445   # Note: m4 eats our [], so we need to use [ and ] instead.
19446   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19447   if test "x$has_forbidden_chars" != x; then
19448     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19449     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19450     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19451     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19452       # Going to short mode and back again did indeed matter. Since short mode is
19453       # case insensitive, let's make it lowercase to improve readability.
19454       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19455       # Now convert it back to Unix-style (cygpath)
19456       input_path=`$CYGPATH -u "$shortmode_path"`
19457       new_path="$input_path"
19458     fi
19459   fi
19460 
19461   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19462   if test "x$test_cygdrive_prefix" = x; then
19463     # As a simple fix, exclude /usr/bin since it's not a real path.
19464     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19465       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19466       # a path prefixed by /cygdrive for fixpath to work.
19467       new_path="$CYGWIN_ROOT_PATH$input_path"
19468     fi
19469   fi
19470 
19471   # remove trailing .exe if any
19472   new_path="${new_path/%.exe/}"
19473 
19474     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19475 
19476   # First separate the path from the arguments. This will split at the first
19477   # space.
19478   complete="$FOUND_MAKE"
19479   path="${complete%% *}"
19480   tmp="$complete EOL"
19481   arguments="${tmp#* }"
19482 
19483   # Input might be given as Windows format, start by converting to
19484   # unix format.
19485   new_path="$path"
19486 
19487   windows_path="$new_path"
19488   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19489     unix_path=`$CYGPATH -u "$windows_path"`
19490     new_path="$unix_path"
19491   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19492     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19493     new_path="$unix_path"
19494   fi
19495 
19496 
19497   # Now try to locate executable using which
19498   new_path=`$WHICH "$new_path" 2> /dev/null`
19499 
19500   if test "x$new_path" = x; then
19501     # Oops. Which didn't find the executable.
19502     # The splitting of arguments from the executable at a space might have been incorrect,
19503     # since paths with space are more likely in Windows. Give it another try with the whole
19504     # argument.
19505     path="$complete"
19506     arguments="EOL"
19507     new_path="$path"
19508 
19509   windows_path="$new_path"
19510   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19511     unix_path=`$CYGPATH -u "$windows_path"`
19512     new_path="$unix_path"
19513   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19514     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19515     new_path="$unix_path"
19516   fi
19517 
19518 
19519     new_path=`$WHICH "$new_path" 2> /dev/null`
19520     # bat and cmd files are not always considered executable in MSYS causing which
19521     # to not find them
19522     if test "x$new_path" = x \
19523         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19524         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19525       new_path="$path"
19526 
19527   windows_path="$new_path"
19528   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19529     unix_path=`$CYGPATH -u "$windows_path"`
19530     new_path="$unix_path"
19531   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19532     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19533     new_path="$unix_path"
19534   fi
19535 
19536     fi
19537 
19538     if test "x$new_path" = x; then
19539       # It's still not found. Now this is an unrecoverable error.
19540       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19541 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19542       has_space=`$ECHO "$complete" | $GREP " "`
19543       if test "x$has_space" != x; then
19544         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19545 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19546       fi
19547       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19548     fi
19549   fi
19550 
19551   # Now new_path has a complete unix path to the binary
19552   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19553     # Keep paths in /bin as-is, but remove trailing .exe if any
19554     new_path="${new_path/%.exe/}"
19555     # Do not save /bin paths to all_fixpath_prefixes!
19556   else
19557     # Not in mixed or Windows style, start by that.
19558     new_path=`cmd //c echo $new_path`
19559 
19560   input_path="$new_path"
19561   # Check if we need to convert this using DOS-style short mode. If the path
19562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19563   # take no chances and rewrite it.
19564   # Note: m4 eats our [], so we need to use [ and ] instead.
19565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19566   if test "x$has_forbidden_chars" != x; then
19567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19568     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19569   fi
19570 
19571     # Output is in $new_path
19572 
19573   windows_path="$new_path"
19574   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19575     unix_path=`$CYGPATH -u "$windows_path"`
19576     new_path="$unix_path"
19577   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19578     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19579     new_path="$unix_path"
19580   fi
19581 
19582     # remove trailing .exe if any
19583     new_path="${new_path/%.exe/}"
19584 
19585     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19586     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19587   fi
19588 
19589     else
19590       # We're on a unix platform. Hooray! :)
19591       # First separate the path from the arguments. This will split at the first
19592       # space.
19593       complete="$FOUND_MAKE"
19594       path="${complete%% *}"
19595       tmp="$complete EOL"
19596       arguments="${tmp#* }"
19597 
19598       # Cannot rely on the command "which" here since it doesn't always work.
19599       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19600       if test -z "$is_absolute_path"; then
19601         # Path to executable is not absolute. Find it.
19602         IFS_save="$IFS"
19603         IFS=:
19604         for p in $PATH; do
19605           if test -f "$p/$path" && test -x "$p/$path"; then
19606             new_path="$p/$path"
19607             break
19608           fi
19609         done
19610         IFS="$IFS_save"
19611       else
19612         # This is an absolute path, we can use it without further modifications.
19613         new_path="$path"
19614       fi
19615 
19616       if test "x$new_path" = x; then
19617         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19618 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19619         has_space=`$ECHO "$complete" | $GREP " "`
19620         if test "x$has_space" != x; then
19621           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19622 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19623         fi
19624         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19625       fi
19626     fi
19627 
19628     # Now join together the path and the arguments once again
19629     if test "x$arguments" != xEOL; then
19630       new_complete="$new_path ${arguments% *}"
19631     else
19632       new_complete="$new_path"
19633     fi
19634 
19635     if test "x$complete" != "x$new_complete"; then
19636       FOUND_MAKE="$new_complete"
19637       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19638 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19639     fi
19640   fi
19641 
19642         fi
19643       fi
19644     fi
19645   fi
19646 
19647         if test "x$FOUND_MAKE" = x; then
19648           for ac_prog in make
19649 do
19650   # Extract the first word of "$ac_prog", so it can be a program name with args.
19651 set dummy $ac_prog; ac_word=$2
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19653 $as_echo_n "checking for $ac_word... " >&6; }
19654 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19655   $as_echo_n "(cached) " >&6
19656 else
19657   case $CHECK_TOOLSDIR_MAKE in
19658   [\\/]* | ?:[\\/]*)
19659   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19660   ;;
19661   *)
19662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663 for as_dir in $PATH
19664 do
19665   IFS=$as_save_IFS
19666   test -z "$as_dir" && as_dir=.
19667     for ac_exec_ext in '' $ac_executable_extensions; do
19668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19669     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19671     break 2
19672   fi
19673 done
19674   done
19675 IFS=$as_save_IFS
19676 
19677   ;;
19678 esac
19679 fi
19680 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19681 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19683 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19684 else
19685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19687 fi
19688 
19689 
19690   test -n "$CHECK_TOOLSDIR_MAKE" && break
19691 done
19692 
19693 
19694   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19695   DESCRIPTION="make in tools-dir"
19696 
19697   # On Cygwin, we require a newer version of make than on other platforms
19698   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19699     MAKE_VERSION_EXPR="-e 4\."
19700     MAKE_REQUIRED_VERSION="4.0"
19701    else
19702     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19703     MAKE_REQUIRED_VERSION="3.81"
19704   fi
19705 
19706   if test "x$MAKE_CANDIDATE" != x; then
19707     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19708 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19709     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19710     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19711     if test "x$IS_GNU_MAKE" = x; then
19712       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19713 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19714     else
19715       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19716       if test "x$IS_MODERN_MAKE" = x; then
19717         { $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
19718 $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;}
19719       else
19720         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19721           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19722             MAKE_EXPECTED_ENV='cygwin'
19723           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19724             MAKE_EXPECTED_ENV='msys'
19725           else
19726             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19727           fi
19728           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19729           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19730         else
19731           # Not relevant for non-Windows
19732           IS_MAKE_CORRECT_ENV=true
19733         fi
19734         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19735           { $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
19736 $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;}
19737         else
19738           FOUND_MAKE=$MAKE_CANDIDATE
19739 
19740   # Only process if variable expands to non-empty
19741 
19742   if test "x$FOUND_MAKE" != x; then
19743     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19744 
19745   # First separate the path from the arguments. This will split at the first
19746   # space.
19747   complete="$FOUND_MAKE"
19748   path="${complete%% *}"
19749   tmp="$complete EOL"
19750   arguments="${tmp#* }"
19751 
19752   # Input might be given as Windows format, start by converting to
19753   # unix format.
19754   new_path=`$CYGPATH -u "$path"`
19755 
19756   # Now try to locate executable using which
19757   new_path=`$WHICH "$new_path" 2> /dev/null`
19758   # bat and cmd files are not always considered executable in cygwin causing which
19759   # to not find them
19760   if test "x$new_path" = x \
19761       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19762       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19763     new_path=`$CYGPATH -u "$path"`
19764   fi
19765   if test "x$new_path" = x; then
19766     # Oops. Which didn't find the executable.
19767     # The splitting of arguments from the executable at a space might have been incorrect,
19768     # since paths with space are more likely in Windows. Give it another try with the whole
19769     # argument.
19770     path="$complete"
19771     arguments="EOL"
19772     new_path=`$CYGPATH -u "$path"`
19773     new_path=`$WHICH "$new_path" 2> /dev/null`
19774     # bat and cmd files are not always considered executable in cygwin causing which
19775     # to not find them
19776     if test "x$new_path" = x \
19777         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19778         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19779       new_path=`$CYGPATH -u "$path"`
19780     fi
19781     if test "x$new_path" = x; then
19782       # It's still not found. Now this is an unrecoverable error.
19783       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19784 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19785       has_space=`$ECHO "$complete" | $GREP " "`
19786       if test "x$has_space" != x; then
19787         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19788 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19789       fi
19790       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19791     fi
19792   fi
19793 
19794   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19795   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19796   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19797   # "foo.exe" is OK but "foo" is an error.
19798   #
19799   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19800   # It is also a way to make sure we got the proper file name for the real test later on.
19801   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19802   if test "x$test_shortpath" = x; then
19803     # Short path failed, file does not exist as specified.
19804     # Try adding .exe or .cmd
19805     if test -f "${new_path}.exe"; then
19806       input_to_shortpath="${new_path}.exe"
19807     elif test -f "${new_path}.cmd"; then
19808       input_to_shortpath="${new_path}.cmd"
19809     else
19810       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19811 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19812       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19813 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19814       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19815     fi
19816   else
19817     input_to_shortpath="$new_path"
19818   fi
19819 
19820   # Call helper function which possibly converts this using DOS-style short mode.
19821   # If so, the updated path is stored in $new_path.
19822   new_path="$input_to_shortpath"
19823 
19824   input_path="$input_to_shortpath"
19825   # Check if we need to convert this using DOS-style short mode. If the path
19826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19827   # take no chances and rewrite it.
19828   # Note: m4 eats our [], so we need to use [ and ] instead.
19829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19830   if test "x$has_forbidden_chars" != x; then
19831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19832     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19833     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19834     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19835       # Going to short mode and back again did indeed matter. Since short mode is
19836       # case insensitive, let's make it lowercase to improve readability.
19837       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19838       # Now convert it back to Unix-style (cygpath)
19839       input_path=`$CYGPATH -u "$shortmode_path"`
19840       new_path="$input_path"
19841     fi
19842   fi
19843 
19844   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19845   if test "x$test_cygdrive_prefix" = x; then
19846     # As a simple fix, exclude /usr/bin since it's not a real path.
19847     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19848       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19849       # a path prefixed by /cygdrive for fixpath to work.
19850       new_path="$CYGWIN_ROOT_PATH$input_path"
19851     fi
19852   fi
19853 
19854   # remove trailing .exe if any
19855   new_path="${new_path/%.exe/}"
19856 
19857     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19858 
19859   # First separate the path from the arguments. This will split at the first
19860   # space.
19861   complete="$FOUND_MAKE"
19862   path="${complete%% *}"
19863   tmp="$complete EOL"
19864   arguments="${tmp#* }"
19865 
19866   # Input might be given as Windows format, start by converting to
19867   # unix format.
19868   new_path="$path"
19869 
19870   windows_path="$new_path"
19871   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19872     unix_path=`$CYGPATH -u "$windows_path"`
19873     new_path="$unix_path"
19874   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19875     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19876     new_path="$unix_path"
19877   fi
19878 
19879 
19880   # Now try to locate executable using which
19881   new_path=`$WHICH "$new_path" 2> /dev/null`
19882 
19883   if test "x$new_path" = x; then
19884     # Oops. Which didn't find the executable.
19885     # The splitting of arguments from the executable at a space might have been incorrect,
19886     # since paths with space are more likely in Windows. Give it another try with the whole
19887     # argument.
19888     path="$complete"
19889     arguments="EOL"
19890     new_path="$path"
19891 
19892   windows_path="$new_path"
19893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19894     unix_path=`$CYGPATH -u "$windows_path"`
19895     new_path="$unix_path"
19896   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19897     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19898     new_path="$unix_path"
19899   fi
19900 
19901 
19902     new_path=`$WHICH "$new_path" 2> /dev/null`
19903     # bat and cmd files are not always considered executable in MSYS causing which
19904     # to not find them
19905     if test "x$new_path" = x \
19906         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19907         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19908       new_path="$path"
19909 
19910   windows_path="$new_path"
19911   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19912     unix_path=`$CYGPATH -u "$windows_path"`
19913     new_path="$unix_path"
19914   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19915     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19916     new_path="$unix_path"
19917   fi
19918 
19919     fi
19920 
19921     if test "x$new_path" = x; then
19922       # It's still not found. Now this is an unrecoverable error.
19923       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19924 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19925       has_space=`$ECHO "$complete" | $GREP " "`
19926       if test "x$has_space" != x; then
19927         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19928 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19929       fi
19930       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19931     fi
19932   fi
19933 
19934   # Now new_path has a complete unix path to the binary
19935   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19936     # Keep paths in /bin as-is, but remove trailing .exe if any
19937     new_path="${new_path/%.exe/}"
19938     # Do not save /bin paths to all_fixpath_prefixes!
19939   else
19940     # Not in mixed or Windows style, start by that.
19941     new_path=`cmd //c echo $new_path`
19942 
19943   input_path="$new_path"
19944   # Check if we need to convert this using DOS-style short mode. If the path
19945   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19946   # take no chances and rewrite it.
19947   # Note: m4 eats our [], so we need to use [ and ] instead.
19948   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19949   if test "x$has_forbidden_chars" != x; then
19950     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19951     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19952   fi
19953 
19954     # Output is in $new_path
19955 
19956   windows_path="$new_path"
19957   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19958     unix_path=`$CYGPATH -u "$windows_path"`
19959     new_path="$unix_path"
19960   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19961     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19962     new_path="$unix_path"
19963   fi
19964 
19965     # remove trailing .exe if any
19966     new_path="${new_path/%.exe/}"
19967 
19968     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19969     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19970   fi
19971 
19972     else
19973       # We're on a unix platform. Hooray! :)
19974       # First separate the path from the arguments. This will split at the first
19975       # space.
19976       complete="$FOUND_MAKE"
19977       path="${complete%% *}"
19978       tmp="$complete EOL"
19979       arguments="${tmp#* }"
19980 
19981       # Cannot rely on the command "which" here since it doesn't always work.
19982       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19983       if test -z "$is_absolute_path"; then
19984         # Path to executable is not absolute. Find it.
19985         IFS_save="$IFS"
19986         IFS=:
19987         for p in $PATH; do
19988           if test -f "$p/$path" && test -x "$p/$path"; then
19989             new_path="$p/$path"
19990             break
19991           fi
19992         done
19993         IFS="$IFS_save"
19994       else
19995         # This is an absolute path, we can use it without further modifications.
19996         new_path="$path"
19997       fi
19998 
19999       if test "x$new_path" = x; then
20000         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20001 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20002         has_space=`$ECHO "$complete" | $GREP " "`
20003         if test "x$has_space" != x; then
20004           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20005 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20006         fi
20007         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20008       fi
20009     fi
20010 
20011     # Now join together the path and the arguments once again
20012     if test "x$arguments" != xEOL; then
20013       new_complete="$new_path ${arguments% *}"
20014     else
20015       new_complete="$new_path"
20016     fi
20017 
20018     if test "x$complete" != "x$new_complete"; then
20019       FOUND_MAKE="$new_complete"
20020       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20021 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20022     fi
20023   fi
20024 
20025         fi
20026       fi
20027     fi
20028   fi
20029 
20030         fi
20031         PATH=$OLD_PATH
20032       fi
20033     fi
20034 
20035     if test "x$FOUND_MAKE" = x; then
20036       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
20037     fi
20038 
20039     else
20040       # If it succeeded, then it was overridden by the user. We will use it
20041       # for the tool.
20042 
20043       # First remove it from the list of overridden variables, so we can test
20044       # for unknown variables in the end.
20045       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20046 
20047       # Check if we try to supply an empty value
20048       if test "x$MAKE" = x; then
20049         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20050 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20051         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20052 $as_echo_n "checking for MAKE... " >&6; }
20053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20054 $as_echo "disabled" >&6; }
20055       else
20056         # Check if the provided tool contains a complete path.
20057         tool_specified="$MAKE"
20058         tool_basename="${tool_specified##*/}"
20059         if test "x$tool_basename" = "x$tool_specified"; then
20060           # A command without a complete path is provided, search $PATH.
20061           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20062 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20063           # Extract the first word of "$tool_basename", so it can be a program name with args.
20064 set dummy $tool_basename; ac_word=$2
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20066 $as_echo_n "checking for $ac_word... " >&6; }
20067 if ${ac_cv_path_MAKE+:} false; then :
20068   $as_echo_n "(cached) " >&6
20069 else
20070   case $MAKE in
20071   [\\/]* | ?:[\\/]*)
20072   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20073   ;;
20074   *)
20075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20076 for as_dir in $PATH
20077 do
20078   IFS=$as_save_IFS
20079   test -z "$as_dir" && as_dir=.
20080     for ac_exec_ext in '' $ac_executable_extensions; do
20081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20082     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20084     break 2
20085   fi
20086 done
20087   done
20088 IFS=$as_save_IFS
20089 
20090   ;;
20091 esac
20092 fi
20093 MAKE=$ac_cv_path_MAKE
20094 if test -n "$MAKE"; then
20095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20096 $as_echo "$MAKE" >&6; }
20097 else
20098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20099 $as_echo "no" >&6; }
20100 fi
20101 
20102 
20103           if test "x$MAKE" = x; then
20104             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20105           fi
20106         else
20107           # Otherwise we believe it is a complete path. Use it as it is.
20108           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20109 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20110           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20111 $as_echo_n "checking for MAKE... " >&6; }
20112           if test ! -x "$tool_specified"; then
20113             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20114 $as_echo "not found" >&6; }
20115             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20116           fi
20117           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20118 $as_echo "$tool_specified" >&6; }
20119         fi
20120       fi
20121     fi
20122 
20123     # If MAKE was set by user, verify the version
20124 
20125   MAKE_CANDIDATE=""$MAKE""
20126   DESCRIPTION="user supplied MAKE=$MAKE"
20127 
20128   # On Cygwin, we require a newer version of make than on other platforms
20129   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20130     MAKE_VERSION_EXPR="-e 4\."
20131     MAKE_REQUIRED_VERSION="4.0"
20132    else
20133     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20134     MAKE_REQUIRED_VERSION="3.81"
20135   fi
20136 
20137   if test "x$MAKE_CANDIDATE" != x; then
20138     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20139 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20140     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20141     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20142     if test "x$IS_GNU_MAKE" = x; then
20143       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20144 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20145     else
20146       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20147       if test "x$IS_MODERN_MAKE" = x; then
20148         { $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
20149 $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;}
20150       else
20151         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20152           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20153             MAKE_EXPECTED_ENV='cygwin'
20154           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20155             MAKE_EXPECTED_ENV='msys'
20156           else
20157             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20158           fi
20159           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20160           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20161         else
20162           # Not relevant for non-Windows
20163           IS_MAKE_CORRECT_ENV=true
20164         fi
20165         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20166           { $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
20167 $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;}
20168         else
20169           FOUND_MAKE=$MAKE_CANDIDATE
20170 
20171   # Only process if variable expands to non-empty
20172 
20173   if test "x$FOUND_MAKE" != x; then
20174     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20175 
20176   # First separate the path from the arguments. This will split at the first
20177   # space.
20178   complete="$FOUND_MAKE"
20179   path="${complete%% *}"
20180   tmp="$complete EOL"
20181   arguments="${tmp#* }"
20182 
20183   # Input might be given as Windows format, start by converting to
20184   # unix format.
20185   new_path=`$CYGPATH -u "$path"`
20186 
20187   # Now try to locate executable using which
20188   new_path=`$WHICH "$new_path" 2> /dev/null`
20189   # bat and cmd files are not always considered executable in cygwin causing which
20190   # to not find them
20191   if test "x$new_path" = x \
20192       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20193       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20194     new_path=`$CYGPATH -u "$path"`
20195   fi
20196   if test "x$new_path" = x; then
20197     # Oops. Which didn't find the executable.
20198     # The splitting of arguments from the executable at a space might have been incorrect,
20199     # since paths with space are more likely in Windows. Give it another try with the whole
20200     # argument.
20201     path="$complete"
20202     arguments="EOL"
20203     new_path=`$CYGPATH -u "$path"`
20204     new_path=`$WHICH "$new_path" 2> /dev/null`
20205     # bat and cmd files are not always considered executable in cygwin causing which
20206     # to not find them
20207     if test "x$new_path" = x \
20208         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20209         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20210       new_path=`$CYGPATH -u "$path"`
20211     fi
20212     if test "x$new_path" = x; then
20213       # It's still not found. Now this is an unrecoverable error.
20214       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20215 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20216       has_space=`$ECHO "$complete" | $GREP " "`
20217       if test "x$has_space" != x; then
20218         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20219 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20220       fi
20221       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20222     fi
20223   fi
20224 
20225   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20226   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20227   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20228   # "foo.exe" is OK but "foo" is an error.
20229   #
20230   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20231   # It is also a way to make sure we got the proper file name for the real test later on.
20232   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20233   if test "x$test_shortpath" = x; then
20234     # Short path failed, file does not exist as specified.
20235     # Try adding .exe or .cmd
20236     if test -f "${new_path}.exe"; then
20237       input_to_shortpath="${new_path}.exe"
20238     elif test -f "${new_path}.cmd"; then
20239       input_to_shortpath="${new_path}.cmd"
20240     else
20241       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20242 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20243       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20244 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20245       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20246     fi
20247   else
20248     input_to_shortpath="$new_path"
20249   fi
20250 
20251   # Call helper function which possibly converts this using DOS-style short mode.
20252   # If so, the updated path is stored in $new_path.
20253   new_path="$input_to_shortpath"
20254 
20255   input_path="$input_to_shortpath"
20256   # Check if we need to convert this using DOS-style short mode. If the path
20257   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20258   # take no chances and rewrite it.
20259   # Note: m4 eats our [], so we need to use [ and ] instead.
20260   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20261   if test "x$has_forbidden_chars" != x; then
20262     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20263     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20264     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20265     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20266       # Going to short mode and back again did indeed matter. Since short mode is
20267       # case insensitive, let's make it lowercase to improve readability.
20268       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20269       # Now convert it back to Unix-style (cygpath)
20270       input_path=`$CYGPATH -u "$shortmode_path"`
20271       new_path="$input_path"
20272     fi
20273   fi
20274 
20275   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20276   if test "x$test_cygdrive_prefix" = x; then
20277     # As a simple fix, exclude /usr/bin since it's not a real path.
20278     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20279       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20280       # a path prefixed by /cygdrive for fixpath to work.
20281       new_path="$CYGWIN_ROOT_PATH$input_path"
20282     fi
20283   fi
20284 
20285   # remove trailing .exe if any
20286   new_path="${new_path/%.exe/}"
20287 
20288     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20289 
20290   # First separate the path from the arguments. This will split at the first
20291   # space.
20292   complete="$FOUND_MAKE"
20293   path="${complete%% *}"
20294   tmp="$complete EOL"
20295   arguments="${tmp#* }"
20296 
20297   # Input might be given as Windows format, start by converting to
20298   # unix format.
20299   new_path="$path"
20300 
20301   windows_path="$new_path"
20302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20303     unix_path=`$CYGPATH -u "$windows_path"`
20304     new_path="$unix_path"
20305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20306     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20307     new_path="$unix_path"
20308   fi
20309 
20310 
20311   # Now try to locate executable using which
20312   new_path=`$WHICH "$new_path" 2> /dev/null`
20313 
20314   if test "x$new_path" = x; then
20315     # Oops. Which didn't find the executable.
20316     # The splitting of arguments from the executable at a space might have been incorrect,
20317     # since paths with space are more likely in Windows. Give it another try with the whole
20318     # argument.
20319     path="$complete"
20320     arguments="EOL"
20321     new_path="$path"
20322 
20323   windows_path="$new_path"
20324   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20325     unix_path=`$CYGPATH -u "$windows_path"`
20326     new_path="$unix_path"
20327   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20328     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20329     new_path="$unix_path"
20330   fi
20331 
20332 
20333     new_path=`$WHICH "$new_path" 2> /dev/null`
20334     # bat and cmd files are not always considered executable in MSYS causing which
20335     # to not find them
20336     if test "x$new_path" = x \
20337         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20338         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20339       new_path="$path"
20340 
20341   windows_path="$new_path"
20342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20343     unix_path=`$CYGPATH -u "$windows_path"`
20344     new_path="$unix_path"
20345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20347     new_path="$unix_path"
20348   fi
20349 
20350     fi
20351 
20352     if test "x$new_path" = x; then
20353       # It's still not found. Now this is an unrecoverable error.
20354       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20355 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20356       has_space=`$ECHO "$complete" | $GREP " "`
20357       if test "x$has_space" != x; then
20358         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20359 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20360       fi
20361       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20362     fi
20363   fi
20364 
20365   # Now new_path has a complete unix path to the binary
20366   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20367     # Keep paths in /bin as-is, but remove trailing .exe if any
20368     new_path="${new_path/%.exe/}"
20369     # Do not save /bin paths to all_fixpath_prefixes!
20370   else
20371     # Not in mixed or Windows style, start by that.
20372     new_path=`cmd //c echo $new_path`
20373 
20374   input_path="$new_path"
20375   # Check if we need to convert this using DOS-style short mode. If the path
20376   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20377   # take no chances and rewrite it.
20378   # Note: m4 eats our [], so we need to use [ and ] instead.
20379   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20380   if test "x$has_forbidden_chars" != x; then
20381     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20382     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20383   fi
20384 
20385     # Output is in $new_path
20386 
20387   windows_path="$new_path"
20388   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20389     unix_path=`$CYGPATH -u "$windows_path"`
20390     new_path="$unix_path"
20391   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20392     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20393     new_path="$unix_path"
20394   fi
20395 
20396     # remove trailing .exe if any
20397     new_path="${new_path/%.exe/}"
20398 
20399     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20400     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20401   fi
20402 
20403     else
20404       # We're on a unix platform. Hooray! :)
20405       # First separate the path from the arguments. This will split at the first
20406       # space.
20407       complete="$FOUND_MAKE"
20408       path="${complete%% *}"
20409       tmp="$complete EOL"
20410       arguments="${tmp#* }"
20411 
20412       # Cannot rely on the command "which" here since it doesn't always work.
20413       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20414       if test -z "$is_absolute_path"; then
20415         # Path to executable is not absolute. Find it.
20416         IFS_save="$IFS"
20417         IFS=:
20418         for p in $PATH; do
20419           if test -f "$p/$path" && test -x "$p/$path"; then
20420             new_path="$p/$path"
20421             break
20422           fi
20423         done
20424         IFS="$IFS_save"
20425       else
20426         # This is an absolute path, we can use it without further modifications.
20427         new_path="$path"
20428       fi
20429 
20430       if test "x$new_path" = x; then
20431         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20432 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20433         has_space=`$ECHO "$complete" | $GREP " "`
20434         if test "x$has_space" != x; then
20435           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20436 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20437         fi
20438         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20439       fi
20440     fi
20441 
20442     # Now join together the path and the arguments once again
20443     if test "x$arguments" != xEOL; then
20444       new_complete="$new_path ${arguments% *}"
20445     else
20446       new_complete="$new_path"
20447     fi
20448 
20449     if test "x$complete" != "x$new_complete"; then
20450       FOUND_MAKE="$new_complete"
20451       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20452 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20453     fi
20454   fi
20455 
20456         fi
20457       fi
20458     fi
20459   fi
20460 
20461     if test "x$FOUND_MAKE" = x; then
20462       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20463     fi
20464 
20465   fi
20466 
20467 
20468   MAKE=$FOUND_MAKE
20469 
20470   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20471 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20472 
20473 
20474   # Check if make supports the output sync option and if so, setup using it.
20475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20476 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20477   if $MAKE --version -O > /dev/null 2>&1; then
20478     OUTPUT_SYNC_SUPPORTED=true
20479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480 $as_echo "yes" >&6; }
20481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20482 $as_echo_n "checking for output-sync value... " >&6; }
20483 
20484 # Check whether --with-output-sync was given.
20485 if test "${with_output_sync+set}" = set; then :
20486   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20487 fi
20488 
20489     if test "x$OUTPUT_SYNC" = "x"; then
20490       OUTPUT_SYNC=none
20491     fi
20492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20493 $as_echo "$OUTPUT_SYNC" >&6; }
20494     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20495       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20496     fi
20497   else
20498     OUTPUT_SYNC_SUPPORTED=false
20499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20500 $as_echo "no" >&6; }
20501   fi
20502 
20503 
20504 
20505 
20506 
20507 
20508   # Test if find supports -delete
20509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20510 $as_echo_n "checking if find supports -delete... " >&6; }
20511   FIND_DELETE="-delete"
20512 
20513   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20514 
20515   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20516 
20517   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20518   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20519     # No, it does not.
20520     rm $DELETEDIR/TestIfFindSupportsDelete
20521     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20522       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20523       FIND_DELETE="-print | xargs rm"
20524     else
20525       FIND_DELETE="-exec rm \{\} \+"
20526     fi
20527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528 $as_echo "no" >&6; }
20529   else
20530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20531 $as_echo "yes" >&6; }
20532   fi
20533   rmdir $DELETEDIR
20534 
20535 
20536 
20537   # These tools might not be installed by default,
20538   # need hint on how to install them.
20539 
20540 
20541 
20542   # Publish this variable in the help.
20543 
20544 
20545   if [ -z "${UNZIP+x}" ]; then
20546     # The variable is not set by user, try to locate tool using the code snippet
20547     for ac_prog in unzip
20548 do
20549   # Extract the first word of "$ac_prog", so it can be a program name with args.
20550 set dummy $ac_prog; ac_word=$2
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20552 $as_echo_n "checking for $ac_word... " >&6; }
20553 if ${ac_cv_path_UNZIP+:} false; then :
20554   $as_echo_n "(cached) " >&6
20555 else
20556   case $UNZIP in
20557   [\\/]* | ?:[\\/]*)
20558   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20559   ;;
20560   *)
20561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562 for as_dir in $PATH
20563 do
20564   IFS=$as_save_IFS
20565   test -z "$as_dir" && as_dir=.
20566     for ac_exec_ext in '' $ac_executable_extensions; do
20567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20568     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20570     break 2
20571   fi
20572 done
20573   done
20574 IFS=$as_save_IFS
20575 
20576   ;;
20577 esac
20578 fi
20579 UNZIP=$ac_cv_path_UNZIP
20580 if test -n "$UNZIP"; then
20581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20582 $as_echo "$UNZIP" >&6; }
20583 else
20584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20585 $as_echo "no" >&6; }
20586 fi
20587 
20588 
20589   test -n "$UNZIP" && break
20590 done
20591 
20592   else
20593     # The variable is set, but is it from the command line or the environment?
20594 
20595     # Try to remove the string !UNZIP! from our list.
20596     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20597     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20598       # If it failed, the variable was not from the command line. Ignore it,
20599       # but warn the user (except for BASH, which is always set by the calling BASH).
20600       if test "xUNZIP" != xBASH; then
20601         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20602 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20603       fi
20604       # Try to locate tool using the code snippet
20605       for ac_prog in unzip
20606 do
20607   # Extract the first word of "$ac_prog", so it can be a program name with args.
20608 set dummy $ac_prog; ac_word=$2
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20610 $as_echo_n "checking for $ac_word... " >&6; }
20611 if ${ac_cv_path_UNZIP+:} false; then :
20612   $as_echo_n "(cached) " >&6
20613 else
20614   case $UNZIP in
20615   [\\/]* | ?:[\\/]*)
20616   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20617   ;;
20618   *)
20619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20620 for as_dir in $PATH
20621 do
20622   IFS=$as_save_IFS
20623   test -z "$as_dir" && as_dir=.
20624     for ac_exec_ext in '' $ac_executable_extensions; do
20625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20626     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20628     break 2
20629   fi
20630 done
20631   done
20632 IFS=$as_save_IFS
20633 
20634   ;;
20635 esac
20636 fi
20637 UNZIP=$ac_cv_path_UNZIP
20638 if test -n "$UNZIP"; then
20639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20640 $as_echo "$UNZIP" >&6; }
20641 else
20642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643 $as_echo "no" >&6; }
20644 fi
20645 
20646 
20647   test -n "$UNZIP" && break
20648 done
20649 
20650     else
20651       # If it succeeded, then it was overridden by the user. We will use it
20652       # for the tool.
20653 
20654       # First remove it from the list of overridden variables, so we can test
20655       # for unknown variables in the end.
20656       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20657 
20658       # Check if we try to supply an empty value
20659       if test "x$UNZIP" = x; then
20660         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20661 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20663 $as_echo_n "checking for UNZIP... " >&6; }
20664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20665 $as_echo "disabled" >&6; }
20666       else
20667         # Check if the provided tool contains a complete path.
20668         tool_specified="$UNZIP"
20669         tool_basename="${tool_specified##*/}"
20670         if test "x$tool_basename" = "x$tool_specified"; then
20671           # A command without a complete path is provided, search $PATH.
20672           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20673 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20674           # Extract the first word of "$tool_basename", so it can be a program name with args.
20675 set dummy $tool_basename; ac_word=$2
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20677 $as_echo_n "checking for $ac_word... " >&6; }
20678 if ${ac_cv_path_UNZIP+:} false; then :
20679   $as_echo_n "(cached) " >&6
20680 else
20681   case $UNZIP in
20682   [\\/]* | ?:[\\/]*)
20683   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20684   ;;
20685   *)
20686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20687 for as_dir in $PATH
20688 do
20689   IFS=$as_save_IFS
20690   test -z "$as_dir" && as_dir=.
20691     for ac_exec_ext in '' $ac_executable_extensions; do
20692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20693     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20695     break 2
20696   fi
20697 done
20698   done
20699 IFS=$as_save_IFS
20700 
20701   ;;
20702 esac
20703 fi
20704 UNZIP=$ac_cv_path_UNZIP
20705 if test -n "$UNZIP"; then
20706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20707 $as_echo "$UNZIP" >&6; }
20708 else
20709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20710 $as_echo "no" >&6; }
20711 fi
20712 
20713 
20714           if test "x$UNZIP" = x; then
20715             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20716           fi
20717         else
20718           # Otherwise we believe it is a complete path. Use it as it is.
20719           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20720 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20721           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20722 $as_echo_n "checking for UNZIP... " >&6; }
20723           if test ! -x "$tool_specified"; then
20724             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20725 $as_echo "not found" >&6; }
20726             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20727           fi
20728           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20729 $as_echo "$tool_specified" >&6; }
20730         fi
20731       fi
20732     fi
20733 
20734   fi
20735 
20736 
20737 
20738   if test "x$UNZIP" = x; then
20739     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20740   fi
20741 
20742 
20743 
20744 
20745 
20746   # Publish this variable in the help.
20747 
20748 
20749   if [ -z "${ZIP+x}" ]; then
20750     # The variable is not set by user, try to locate tool using the code snippet
20751     for ac_prog in zip
20752 do
20753   # Extract the first word of "$ac_prog", so it can be a program name with args.
20754 set dummy $ac_prog; ac_word=$2
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20756 $as_echo_n "checking for $ac_word... " >&6; }
20757 if ${ac_cv_path_ZIP+:} false; then :
20758   $as_echo_n "(cached) " >&6
20759 else
20760   case $ZIP in
20761   [\\/]* | ?:[\\/]*)
20762   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20763   ;;
20764   *)
20765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20766 for as_dir in $PATH
20767 do
20768   IFS=$as_save_IFS
20769   test -z "$as_dir" && as_dir=.
20770     for ac_exec_ext in '' $ac_executable_extensions; do
20771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20772     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20774     break 2
20775   fi
20776 done
20777   done
20778 IFS=$as_save_IFS
20779 
20780   ;;
20781 esac
20782 fi
20783 ZIP=$ac_cv_path_ZIP
20784 if test -n "$ZIP"; then
20785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20786 $as_echo "$ZIP" >&6; }
20787 else
20788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20789 $as_echo "no" >&6; }
20790 fi
20791 
20792 
20793   test -n "$ZIP" && break
20794 done
20795 
20796   else
20797     # The variable is set, but is it from the command line or the environment?
20798 
20799     # Try to remove the string !ZIP! from our list.
20800     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20801     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20802       # If it failed, the variable was not from the command line. Ignore it,
20803       # but warn the user (except for BASH, which is always set by the calling BASH).
20804       if test "xZIP" != xBASH; then
20805         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20806 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20807       fi
20808       # Try to locate tool using the code snippet
20809       for ac_prog in zip
20810 do
20811   # Extract the first word of "$ac_prog", so it can be a program name with args.
20812 set dummy $ac_prog; ac_word=$2
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20814 $as_echo_n "checking for $ac_word... " >&6; }
20815 if ${ac_cv_path_ZIP+:} false; then :
20816   $as_echo_n "(cached) " >&6
20817 else
20818   case $ZIP in
20819   [\\/]* | ?:[\\/]*)
20820   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20821   ;;
20822   *)
20823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824 for as_dir in $PATH
20825 do
20826   IFS=$as_save_IFS
20827   test -z "$as_dir" && as_dir=.
20828     for ac_exec_ext in '' $ac_executable_extensions; do
20829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20830     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20832     break 2
20833   fi
20834 done
20835   done
20836 IFS=$as_save_IFS
20837 
20838   ;;
20839 esac
20840 fi
20841 ZIP=$ac_cv_path_ZIP
20842 if test -n "$ZIP"; then
20843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20844 $as_echo "$ZIP" >&6; }
20845 else
20846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20847 $as_echo "no" >&6; }
20848 fi
20849 
20850 
20851   test -n "$ZIP" && break
20852 done
20853 
20854     else
20855       # If it succeeded, then it was overridden by the user. We will use it
20856       # for the tool.
20857 
20858       # First remove it from the list of overridden variables, so we can test
20859       # for unknown variables in the end.
20860       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20861 
20862       # Check if we try to supply an empty value
20863       if test "x$ZIP" = x; then
20864         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20865 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20867 $as_echo_n "checking for ZIP... " >&6; }
20868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20869 $as_echo "disabled" >&6; }
20870       else
20871         # Check if the provided tool contains a complete path.
20872         tool_specified="$ZIP"
20873         tool_basename="${tool_specified##*/}"
20874         if test "x$tool_basename" = "x$tool_specified"; then
20875           # A command without a complete path is provided, search $PATH.
20876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20877 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20878           # Extract the first word of "$tool_basename", so it can be a program name with args.
20879 set dummy $tool_basename; ac_word=$2
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20881 $as_echo_n "checking for $ac_word... " >&6; }
20882 if ${ac_cv_path_ZIP+:} false; then :
20883   $as_echo_n "(cached) " >&6
20884 else
20885   case $ZIP in
20886   [\\/]* | ?:[\\/]*)
20887   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20888   ;;
20889   *)
20890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20891 for as_dir in $PATH
20892 do
20893   IFS=$as_save_IFS
20894   test -z "$as_dir" && as_dir=.
20895     for ac_exec_ext in '' $ac_executable_extensions; do
20896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20897     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20899     break 2
20900   fi
20901 done
20902   done
20903 IFS=$as_save_IFS
20904 
20905   ;;
20906 esac
20907 fi
20908 ZIP=$ac_cv_path_ZIP
20909 if test -n "$ZIP"; then
20910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20911 $as_echo "$ZIP" >&6; }
20912 else
20913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20914 $as_echo "no" >&6; }
20915 fi
20916 
20917 
20918           if test "x$ZIP" = x; then
20919             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20920           fi
20921         else
20922           # Otherwise we believe it is a complete path. Use it as it is.
20923           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20924 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20925           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20926 $as_echo_n "checking for ZIP... " >&6; }
20927           if test ! -x "$tool_specified"; then
20928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20929 $as_echo "not found" >&6; }
20930             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20931           fi
20932           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20933 $as_echo "$tool_specified" >&6; }
20934         fi
20935       fi
20936     fi
20937 
20938   fi
20939 
20940 
20941 
20942   if test "x$ZIP" = x; then
20943     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20944   fi
20945 
20946 
20947 
20948   # Non-required basic tools
20949 
20950 
20951 
20952   # Publish this variable in the help.
20953 
20954 
20955   if [ -z "${LDD+x}" ]; then
20956     # The variable is not set by user, try to locate tool using the code snippet
20957     for ac_prog in ldd
20958 do
20959   # Extract the first word of "$ac_prog", so it can be a program name with args.
20960 set dummy $ac_prog; ac_word=$2
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20962 $as_echo_n "checking for $ac_word... " >&6; }
20963 if ${ac_cv_path_LDD+:} false; then :
20964   $as_echo_n "(cached) " >&6
20965 else
20966   case $LDD in
20967   [\\/]* | ?:[\\/]*)
20968   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20969   ;;
20970   *)
20971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20972 for as_dir in $PATH
20973 do
20974   IFS=$as_save_IFS
20975   test -z "$as_dir" && as_dir=.
20976     for ac_exec_ext in '' $ac_executable_extensions; do
20977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20978     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20980     break 2
20981   fi
20982 done
20983   done
20984 IFS=$as_save_IFS
20985 
20986   ;;
20987 esac
20988 fi
20989 LDD=$ac_cv_path_LDD
20990 if test -n "$LDD"; then
20991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20992 $as_echo "$LDD" >&6; }
20993 else
20994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995 $as_echo "no" >&6; }
20996 fi
20997 
20998 
20999   test -n "$LDD" && break
21000 done
21001 
21002   else
21003     # The variable is set, but is it from the command line or the environment?
21004 
21005     # Try to remove the string !LDD! from our list.
21006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21008       # If it failed, the variable was not from the command line. Ignore it,
21009       # but warn the user (except for BASH, which is always set by the calling BASH).
21010       if test "xLDD" != xBASH; then
21011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21012 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21013       fi
21014       # Try to locate tool using the code snippet
21015       for ac_prog in ldd
21016 do
21017   # Extract the first word of "$ac_prog", so it can be a program name with args.
21018 set dummy $ac_prog; ac_word=$2
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21020 $as_echo_n "checking for $ac_word... " >&6; }
21021 if ${ac_cv_path_LDD+:} false; then :
21022   $as_echo_n "(cached) " >&6
21023 else
21024   case $LDD in
21025   [\\/]* | ?:[\\/]*)
21026   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21027   ;;
21028   *)
21029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21030 for as_dir in $PATH
21031 do
21032   IFS=$as_save_IFS
21033   test -z "$as_dir" && as_dir=.
21034     for ac_exec_ext in '' $ac_executable_extensions; do
21035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21036     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21038     break 2
21039   fi
21040 done
21041   done
21042 IFS=$as_save_IFS
21043 
21044   ;;
21045 esac
21046 fi
21047 LDD=$ac_cv_path_LDD
21048 if test -n "$LDD"; then
21049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21050 $as_echo "$LDD" >&6; }
21051 else
21052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21053 $as_echo "no" >&6; }
21054 fi
21055 
21056 
21057   test -n "$LDD" && break
21058 done
21059 
21060     else
21061       # If it succeeded, then it was overridden by the user. We will use it
21062       # for the tool.
21063 
21064       # First remove it from the list of overridden variables, so we can test
21065       # for unknown variables in the end.
21066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21067 
21068       # Check if we try to supply an empty value
21069       if test "x$LDD" = x; then
21070         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21071 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21073 $as_echo_n "checking for LDD... " >&6; }
21074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21075 $as_echo "disabled" >&6; }
21076       else
21077         # Check if the provided tool contains a complete path.
21078         tool_specified="$LDD"
21079         tool_basename="${tool_specified##*/}"
21080         if test "x$tool_basename" = "x$tool_specified"; then
21081           # A command without a complete path is provided, search $PATH.
21082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21083 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21084           # Extract the first word of "$tool_basename", so it can be a program name with args.
21085 set dummy $tool_basename; ac_word=$2
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21087 $as_echo_n "checking for $ac_word... " >&6; }
21088 if ${ac_cv_path_LDD+:} false; then :
21089   $as_echo_n "(cached) " >&6
21090 else
21091   case $LDD in
21092   [\\/]* | ?:[\\/]*)
21093   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21094   ;;
21095   *)
21096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21097 for as_dir in $PATH
21098 do
21099   IFS=$as_save_IFS
21100   test -z "$as_dir" && as_dir=.
21101     for ac_exec_ext in '' $ac_executable_extensions; do
21102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21103     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21105     break 2
21106   fi
21107 done
21108   done
21109 IFS=$as_save_IFS
21110 
21111   ;;
21112 esac
21113 fi
21114 LDD=$ac_cv_path_LDD
21115 if test -n "$LDD"; then
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21117 $as_echo "$LDD" >&6; }
21118 else
21119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21120 $as_echo "no" >&6; }
21121 fi
21122 
21123 
21124           if test "x$LDD" = x; then
21125             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21126           fi
21127         else
21128           # Otherwise we believe it is a complete path. Use it as it is.
21129           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21130 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21131           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21132 $as_echo_n "checking for LDD... " >&6; }
21133           if test ! -x "$tool_specified"; then
21134             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21135 $as_echo "not found" >&6; }
21136             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21137           fi
21138           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21139 $as_echo "$tool_specified" >&6; }
21140         fi
21141       fi
21142     fi
21143 
21144   fi
21145 
21146 
21147   if test "x$LDD" = "x"; then
21148     # List shared lib dependencies is used for
21149     # debug output and checking for forbidden dependencies.
21150     # We can build without it.
21151     LDD="true"
21152   fi
21153 
21154 
21155   # Publish this variable in the help.
21156 
21157 
21158   if [ -z "${OTOOL+x}" ]; then
21159     # The variable is not set by user, try to locate tool using the code snippet
21160     for ac_prog in otool
21161 do
21162   # Extract the first word of "$ac_prog", so it can be a program name with args.
21163 set dummy $ac_prog; ac_word=$2
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21165 $as_echo_n "checking for $ac_word... " >&6; }
21166 if ${ac_cv_path_OTOOL+:} false; then :
21167   $as_echo_n "(cached) " >&6
21168 else
21169   case $OTOOL in
21170   [\\/]* | ?:[\\/]*)
21171   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21172   ;;
21173   *)
21174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21175 for as_dir in $PATH
21176 do
21177   IFS=$as_save_IFS
21178   test -z "$as_dir" && as_dir=.
21179     for ac_exec_ext in '' $ac_executable_extensions; do
21180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21181     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21183     break 2
21184   fi
21185 done
21186   done
21187 IFS=$as_save_IFS
21188 
21189   ;;
21190 esac
21191 fi
21192 OTOOL=$ac_cv_path_OTOOL
21193 if test -n "$OTOOL"; then
21194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21195 $as_echo "$OTOOL" >&6; }
21196 else
21197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21198 $as_echo "no" >&6; }
21199 fi
21200 
21201 
21202   test -n "$OTOOL" && break
21203 done
21204 
21205   else
21206     # The variable is set, but is it from the command line or the environment?
21207 
21208     # Try to remove the string !OTOOL! from our list.
21209     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21210     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21211       # If it failed, the variable was not from the command line. Ignore it,
21212       # but warn the user (except for BASH, which is always set by the calling BASH).
21213       if test "xOTOOL" != xBASH; then
21214         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21215 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21216       fi
21217       # Try to locate tool using the code snippet
21218       for ac_prog in otool
21219 do
21220   # Extract the first word of "$ac_prog", so it can be a program name with args.
21221 set dummy $ac_prog; ac_word=$2
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21223 $as_echo_n "checking for $ac_word... " >&6; }
21224 if ${ac_cv_path_OTOOL+:} false; then :
21225   $as_echo_n "(cached) " >&6
21226 else
21227   case $OTOOL in
21228   [\\/]* | ?:[\\/]*)
21229   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21230   ;;
21231   *)
21232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21233 for as_dir in $PATH
21234 do
21235   IFS=$as_save_IFS
21236   test -z "$as_dir" && as_dir=.
21237     for ac_exec_ext in '' $ac_executable_extensions; do
21238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21239     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21241     break 2
21242   fi
21243 done
21244   done
21245 IFS=$as_save_IFS
21246 
21247   ;;
21248 esac
21249 fi
21250 OTOOL=$ac_cv_path_OTOOL
21251 if test -n "$OTOOL"; then
21252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21253 $as_echo "$OTOOL" >&6; }
21254 else
21255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21256 $as_echo "no" >&6; }
21257 fi
21258 
21259 
21260   test -n "$OTOOL" && break
21261 done
21262 
21263     else
21264       # If it succeeded, then it was overridden by the user. We will use it
21265       # for the tool.
21266 
21267       # First remove it from the list of overridden variables, so we can test
21268       # for unknown variables in the end.
21269       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21270 
21271       # Check if we try to supply an empty value
21272       if test "x$OTOOL" = x; then
21273         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21274 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21276 $as_echo_n "checking for OTOOL... " >&6; }
21277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21278 $as_echo "disabled" >&6; }
21279       else
21280         # Check if the provided tool contains a complete path.
21281         tool_specified="$OTOOL"
21282         tool_basename="${tool_specified##*/}"
21283         if test "x$tool_basename" = "x$tool_specified"; then
21284           # A command without a complete path is provided, search $PATH.
21285           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21286 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21287           # Extract the first word of "$tool_basename", so it can be a program name with args.
21288 set dummy $tool_basename; ac_word=$2
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21290 $as_echo_n "checking for $ac_word... " >&6; }
21291 if ${ac_cv_path_OTOOL+:} false; then :
21292   $as_echo_n "(cached) " >&6
21293 else
21294   case $OTOOL in
21295   [\\/]* | ?:[\\/]*)
21296   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21297   ;;
21298   *)
21299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21300 for as_dir in $PATH
21301 do
21302   IFS=$as_save_IFS
21303   test -z "$as_dir" && as_dir=.
21304     for ac_exec_ext in '' $ac_executable_extensions; do
21305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21306     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21308     break 2
21309   fi
21310 done
21311   done
21312 IFS=$as_save_IFS
21313 
21314   ;;
21315 esac
21316 fi
21317 OTOOL=$ac_cv_path_OTOOL
21318 if test -n "$OTOOL"; then
21319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21320 $as_echo "$OTOOL" >&6; }
21321 else
21322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21324 fi
21325 
21326 
21327           if test "x$OTOOL" = x; then
21328             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21329           fi
21330         else
21331           # Otherwise we believe it is a complete path. Use it as it is.
21332           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21333 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21334           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21335 $as_echo_n "checking for OTOOL... " >&6; }
21336           if test ! -x "$tool_specified"; then
21337             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21338 $as_echo "not found" >&6; }
21339             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21340           fi
21341           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21342 $as_echo "$tool_specified" >&6; }
21343         fi
21344       fi
21345     fi
21346 
21347   fi
21348 
21349 
21350   if test "x$OTOOL" = "x"; then
21351     OTOOL="true"
21352   fi
21353 
21354 
21355   # Publish this variable in the help.
21356 
21357 
21358   if [ -z "${READELF+x}" ]; then
21359     # The variable is not set by user, try to locate tool using the code snippet
21360     for ac_prog in greadelf readelf
21361 do
21362   # Extract the first word of "$ac_prog", so it can be a program name with args.
21363 set dummy $ac_prog; ac_word=$2
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21365 $as_echo_n "checking for $ac_word... " >&6; }
21366 if ${ac_cv_path_READELF+:} false; then :
21367   $as_echo_n "(cached) " >&6
21368 else
21369   case $READELF in
21370   [\\/]* | ?:[\\/]*)
21371   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21372   ;;
21373   *)
21374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21375 for as_dir in $PATH
21376 do
21377   IFS=$as_save_IFS
21378   test -z "$as_dir" && as_dir=.
21379     for ac_exec_ext in '' $ac_executable_extensions; do
21380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21381     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21383     break 2
21384   fi
21385 done
21386   done
21387 IFS=$as_save_IFS
21388 
21389   ;;
21390 esac
21391 fi
21392 READELF=$ac_cv_path_READELF
21393 if test -n "$READELF"; then
21394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21395 $as_echo "$READELF" >&6; }
21396 else
21397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21398 $as_echo "no" >&6; }
21399 fi
21400 
21401 
21402   test -n "$READELF" && break
21403 done
21404 
21405   else
21406     # The variable is set, but is it from the command line or the environment?
21407 
21408     # Try to remove the string !READELF! from our list.
21409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21411       # If it failed, the variable was not from the command line. Ignore it,
21412       # but warn the user (except for BASH, which is always set by the calling BASH).
21413       if test "xREADELF" != xBASH; then
21414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21415 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21416       fi
21417       # Try to locate tool using the code snippet
21418       for ac_prog in greadelf readelf
21419 do
21420   # Extract the first word of "$ac_prog", so it can be a program name with args.
21421 set dummy $ac_prog; ac_word=$2
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21423 $as_echo_n "checking for $ac_word... " >&6; }
21424 if ${ac_cv_path_READELF+:} false; then :
21425   $as_echo_n "(cached) " >&6
21426 else
21427   case $READELF in
21428   [\\/]* | ?:[\\/]*)
21429   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21430   ;;
21431   *)
21432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21433 for as_dir in $PATH
21434 do
21435   IFS=$as_save_IFS
21436   test -z "$as_dir" && as_dir=.
21437     for ac_exec_ext in '' $ac_executable_extensions; do
21438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21439     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21441     break 2
21442   fi
21443 done
21444   done
21445 IFS=$as_save_IFS
21446 
21447   ;;
21448 esac
21449 fi
21450 READELF=$ac_cv_path_READELF
21451 if test -n "$READELF"; then
21452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21453 $as_echo "$READELF" >&6; }
21454 else
21455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456 $as_echo "no" >&6; }
21457 fi
21458 
21459 
21460   test -n "$READELF" && break
21461 done
21462 
21463     else
21464       # If it succeeded, then it was overridden by the user. We will use it
21465       # for the tool.
21466 
21467       # First remove it from the list of overridden variables, so we can test
21468       # for unknown variables in the end.
21469       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21470 
21471       # Check if we try to supply an empty value
21472       if test "x$READELF" = x; then
21473         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21474 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21475         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21476 $as_echo_n "checking for READELF... " >&6; }
21477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21478 $as_echo "disabled" >&6; }
21479       else
21480         # Check if the provided tool contains a complete path.
21481         tool_specified="$READELF"
21482         tool_basename="${tool_specified##*/}"
21483         if test "x$tool_basename" = "x$tool_specified"; then
21484           # A command without a complete path is provided, search $PATH.
21485           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21486 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21487           # Extract the first word of "$tool_basename", so it can be a program name with args.
21488 set dummy $tool_basename; ac_word=$2
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21490 $as_echo_n "checking for $ac_word... " >&6; }
21491 if ${ac_cv_path_READELF+:} false; then :
21492   $as_echo_n "(cached) " >&6
21493 else
21494   case $READELF in
21495   [\\/]* | ?:[\\/]*)
21496   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21497   ;;
21498   *)
21499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21500 for as_dir in $PATH
21501 do
21502   IFS=$as_save_IFS
21503   test -z "$as_dir" && as_dir=.
21504     for ac_exec_ext in '' $ac_executable_extensions; do
21505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21506     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21508     break 2
21509   fi
21510 done
21511   done
21512 IFS=$as_save_IFS
21513 
21514   ;;
21515 esac
21516 fi
21517 READELF=$ac_cv_path_READELF
21518 if test -n "$READELF"; then
21519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21520 $as_echo "$READELF" >&6; }
21521 else
21522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21523 $as_echo "no" >&6; }
21524 fi
21525 
21526 
21527           if test "x$READELF" = x; then
21528             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21529           fi
21530         else
21531           # Otherwise we believe it is a complete path. Use it as it is.
21532           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21533 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21534           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21535 $as_echo_n "checking for READELF... " >&6; }
21536           if test ! -x "$tool_specified"; then
21537             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21538 $as_echo "not found" >&6; }
21539             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21540           fi
21541           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21542 $as_echo "$tool_specified" >&6; }
21543         fi
21544       fi
21545     fi
21546 
21547   fi
21548 
21549 
21550 
21551 
21552   # Publish this variable in the help.
21553 
21554 
21555   if [ -z "${HG+x}" ]; then
21556     # The variable is not set by user, try to locate tool using the code snippet
21557     for ac_prog in hg
21558 do
21559   # Extract the first word of "$ac_prog", so it can be a program name with args.
21560 set dummy $ac_prog; ac_word=$2
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21562 $as_echo_n "checking for $ac_word... " >&6; }
21563 if ${ac_cv_path_HG+:} false; then :
21564   $as_echo_n "(cached) " >&6
21565 else
21566   case $HG in
21567   [\\/]* | ?:[\\/]*)
21568   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21569   ;;
21570   *)
21571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21572 for as_dir in $PATH
21573 do
21574   IFS=$as_save_IFS
21575   test -z "$as_dir" && as_dir=.
21576     for ac_exec_ext in '' $ac_executable_extensions; do
21577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21578     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21580     break 2
21581   fi
21582 done
21583   done
21584 IFS=$as_save_IFS
21585 
21586   ;;
21587 esac
21588 fi
21589 HG=$ac_cv_path_HG
21590 if test -n "$HG"; then
21591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21592 $as_echo "$HG" >&6; }
21593 else
21594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21595 $as_echo "no" >&6; }
21596 fi
21597 
21598 
21599   test -n "$HG" && break
21600 done
21601 
21602   else
21603     # The variable is set, but is it from the command line or the environment?
21604 
21605     # Try to remove the string !HG! from our list.
21606     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21607     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21608       # If it failed, the variable was not from the command line. Ignore it,
21609       # but warn the user (except for BASH, which is always set by the calling BASH).
21610       if test "xHG" != xBASH; then
21611         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21612 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21613       fi
21614       # Try to locate tool using the code snippet
21615       for ac_prog in hg
21616 do
21617   # Extract the first word of "$ac_prog", so it can be a program name with args.
21618 set dummy $ac_prog; ac_word=$2
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21620 $as_echo_n "checking for $ac_word... " >&6; }
21621 if ${ac_cv_path_HG+:} false; then :
21622   $as_echo_n "(cached) " >&6
21623 else
21624   case $HG in
21625   [\\/]* | ?:[\\/]*)
21626   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21627   ;;
21628   *)
21629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21630 for as_dir in $PATH
21631 do
21632   IFS=$as_save_IFS
21633   test -z "$as_dir" && as_dir=.
21634     for ac_exec_ext in '' $ac_executable_extensions; do
21635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21636     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21638     break 2
21639   fi
21640 done
21641   done
21642 IFS=$as_save_IFS
21643 
21644   ;;
21645 esac
21646 fi
21647 HG=$ac_cv_path_HG
21648 if test -n "$HG"; then
21649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21650 $as_echo "$HG" >&6; }
21651 else
21652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21653 $as_echo "no" >&6; }
21654 fi
21655 
21656 
21657   test -n "$HG" && break
21658 done
21659 
21660     else
21661       # If it succeeded, then it was overridden by the user. We will use it
21662       # for the tool.
21663 
21664       # First remove it from the list of overridden variables, so we can test
21665       # for unknown variables in the end.
21666       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21667 
21668       # Check if we try to supply an empty value
21669       if test "x$HG" = x; then
21670         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21671 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21672         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21673 $as_echo_n "checking for HG... " >&6; }
21674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21675 $as_echo "disabled" >&6; }
21676       else
21677         # Check if the provided tool contains a complete path.
21678         tool_specified="$HG"
21679         tool_basename="${tool_specified##*/}"
21680         if test "x$tool_basename" = "x$tool_specified"; then
21681           # A command without a complete path is provided, search $PATH.
21682           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21683 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21684           # Extract the first word of "$tool_basename", so it can be a program name with args.
21685 set dummy $tool_basename; ac_word=$2
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21687 $as_echo_n "checking for $ac_word... " >&6; }
21688 if ${ac_cv_path_HG+:} false; then :
21689   $as_echo_n "(cached) " >&6
21690 else
21691   case $HG in
21692   [\\/]* | ?:[\\/]*)
21693   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21694   ;;
21695   *)
21696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697 for as_dir in $PATH
21698 do
21699   IFS=$as_save_IFS
21700   test -z "$as_dir" && as_dir=.
21701     for ac_exec_ext in '' $ac_executable_extensions; do
21702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21703     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21705     break 2
21706   fi
21707 done
21708   done
21709 IFS=$as_save_IFS
21710 
21711   ;;
21712 esac
21713 fi
21714 HG=$ac_cv_path_HG
21715 if test -n "$HG"; then
21716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21717 $as_echo "$HG" >&6; }
21718 else
21719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21720 $as_echo "no" >&6; }
21721 fi
21722 
21723 
21724           if test "x$HG" = x; then
21725             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21726           fi
21727         else
21728           # Otherwise we believe it is a complete path. Use it as it is.
21729           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21730 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21731           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21732 $as_echo_n "checking for HG... " >&6; }
21733           if test ! -x "$tool_specified"; then
21734             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21735 $as_echo "not found" >&6; }
21736             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21737           fi
21738           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21739 $as_echo "$tool_specified" >&6; }
21740         fi
21741       fi
21742     fi
21743 
21744   fi
21745 
21746 
21747 
21748 
21749   # Publish this variable in the help.
21750 
21751 
21752   if [ -z "${STAT+x}" ]; then
21753     # The variable is not set by user, try to locate tool using the code snippet
21754     for ac_prog in stat
21755 do
21756   # Extract the first word of "$ac_prog", so it can be a program name with args.
21757 set dummy $ac_prog; ac_word=$2
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21759 $as_echo_n "checking for $ac_word... " >&6; }
21760 if ${ac_cv_path_STAT+:} false; then :
21761   $as_echo_n "(cached) " >&6
21762 else
21763   case $STAT in
21764   [\\/]* | ?:[\\/]*)
21765   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21766   ;;
21767   *)
21768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21769 for as_dir in $PATH
21770 do
21771   IFS=$as_save_IFS
21772   test -z "$as_dir" && as_dir=.
21773     for ac_exec_ext in '' $ac_executable_extensions; do
21774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21775     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21777     break 2
21778   fi
21779 done
21780   done
21781 IFS=$as_save_IFS
21782 
21783   ;;
21784 esac
21785 fi
21786 STAT=$ac_cv_path_STAT
21787 if test -n "$STAT"; then
21788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21789 $as_echo "$STAT" >&6; }
21790 else
21791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21792 $as_echo "no" >&6; }
21793 fi
21794 
21795 
21796   test -n "$STAT" && break
21797 done
21798 
21799   else
21800     # The variable is set, but is it from the command line or the environment?
21801 
21802     # Try to remove the string !STAT! from our list.
21803     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21804     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21805       # If it failed, the variable was not from the command line. Ignore it,
21806       # but warn the user (except for BASH, which is always set by the calling BASH).
21807       if test "xSTAT" != xBASH; then
21808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21809 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21810       fi
21811       # Try to locate tool using the code snippet
21812       for ac_prog in stat
21813 do
21814   # Extract the first word of "$ac_prog", so it can be a program name with args.
21815 set dummy $ac_prog; ac_word=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if ${ac_cv_path_STAT+:} false; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821   case $STAT in
21822   [\\/]* | ?:[\\/]*)
21823   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21824   ;;
21825   *)
21826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21828 do
21829   IFS=$as_save_IFS
21830   test -z "$as_dir" && as_dir=.
21831     for ac_exec_ext in '' $ac_executable_extensions; do
21832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21833     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835     break 2
21836   fi
21837 done
21838   done
21839 IFS=$as_save_IFS
21840 
21841   ;;
21842 esac
21843 fi
21844 STAT=$ac_cv_path_STAT
21845 if test -n "$STAT"; then
21846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21847 $as_echo "$STAT" >&6; }
21848 else
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851 fi
21852 
21853 
21854   test -n "$STAT" && break
21855 done
21856 
21857     else
21858       # If it succeeded, then it was overridden by the user. We will use it
21859       # for the tool.
21860 
21861       # First remove it from the list of overridden variables, so we can test
21862       # for unknown variables in the end.
21863       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21864 
21865       # Check if we try to supply an empty value
21866       if test "x$STAT" = x; then
21867         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21868 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21870 $as_echo_n "checking for STAT... " >&6; }
21871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21872 $as_echo "disabled" >&6; }
21873       else
21874         # Check if the provided tool contains a complete path.
21875         tool_specified="$STAT"
21876         tool_basename="${tool_specified##*/}"
21877         if test "x$tool_basename" = "x$tool_specified"; then
21878           # A command without a complete path is provided, search $PATH.
21879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21880 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21881           # Extract the first word of "$tool_basename", so it can be a program name with args.
21882 set dummy $tool_basename; ac_word=$2
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21884 $as_echo_n "checking for $ac_word... " >&6; }
21885 if ${ac_cv_path_STAT+:} false; then :
21886   $as_echo_n "(cached) " >&6
21887 else
21888   case $STAT in
21889   [\\/]* | ?:[\\/]*)
21890   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21891   ;;
21892   *)
21893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21894 for as_dir in $PATH
21895 do
21896   IFS=$as_save_IFS
21897   test -z "$as_dir" && as_dir=.
21898     for ac_exec_ext in '' $ac_executable_extensions; do
21899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21900     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21902     break 2
21903   fi
21904 done
21905   done
21906 IFS=$as_save_IFS
21907 
21908   ;;
21909 esac
21910 fi
21911 STAT=$ac_cv_path_STAT
21912 if test -n "$STAT"; then
21913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21914 $as_echo "$STAT" >&6; }
21915 else
21916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21917 $as_echo "no" >&6; }
21918 fi
21919 
21920 
21921           if test "x$STAT" = x; then
21922             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21923           fi
21924         else
21925           # Otherwise we believe it is a complete path. Use it as it is.
21926           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21927 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21928           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21929 $as_echo_n "checking for STAT... " >&6; }
21930           if test ! -x "$tool_specified"; then
21931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21932 $as_echo "not found" >&6; }
21933             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21934           fi
21935           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21936 $as_echo "$tool_specified" >&6; }
21937         fi
21938       fi
21939     fi
21940 
21941   fi
21942 
21943 
21944 
21945 
21946   # Publish this variable in the help.
21947 
21948 
21949   if [ -z "${TIME+x}" ]; then
21950     # The variable is not set by user, try to locate tool using the code snippet
21951     for ac_prog in time
21952 do
21953   # Extract the first word of "$ac_prog", so it can be a program name with args.
21954 set dummy $ac_prog; ac_word=$2
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21956 $as_echo_n "checking for $ac_word... " >&6; }
21957 if ${ac_cv_path_TIME+:} false; then :
21958   $as_echo_n "(cached) " >&6
21959 else
21960   case $TIME in
21961   [\\/]* | ?:[\\/]*)
21962   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21963   ;;
21964   *)
21965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21966 for as_dir in $PATH
21967 do
21968   IFS=$as_save_IFS
21969   test -z "$as_dir" && as_dir=.
21970     for ac_exec_ext in '' $ac_executable_extensions; do
21971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21972     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21974     break 2
21975   fi
21976 done
21977   done
21978 IFS=$as_save_IFS
21979 
21980   ;;
21981 esac
21982 fi
21983 TIME=$ac_cv_path_TIME
21984 if test -n "$TIME"; then
21985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21986 $as_echo "$TIME" >&6; }
21987 else
21988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21989 $as_echo "no" >&6; }
21990 fi
21991 
21992 
21993   test -n "$TIME" && break
21994 done
21995 
21996   else
21997     # The variable is set, but is it from the command line or the environment?
21998 
21999     # Try to remove the string !TIME! from our list.
22000     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22001     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22002       # If it failed, the variable was not from the command line. Ignore it,
22003       # but warn the user (except for BASH, which is always set by the calling BASH).
22004       if test "xTIME" != xBASH; then
22005         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22006 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22007       fi
22008       # Try to locate tool using the code snippet
22009       for ac_prog in time
22010 do
22011   # Extract the first word of "$ac_prog", so it can be a program name with args.
22012 set dummy $ac_prog; ac_word=$2
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22014 $as_echo_n "checking for $ac_word... " >&6; }
22015 if ${ac_cv_path_TIME+:} false; then :
22016   $as_echo_n "(cached) " >&6
22017 else
22018   case $TIME in
22019   [\\/]* | ?:[\\/]*)
22020   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22021   ;;
22022   *)
22023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22024 for as_dir in $PATH
22025 do
22026   IFS=$as_save_IFS
22027   test -z "$as_dir" && as_dir=.
22028     for ac_exec_ext in '' $ac_executable_extensions; do
22029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22030     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22032     break 2
22033   fi
22034 done
22035   done
22036 IFS=$as_save_IFS
22037 
22038   ;;
22039 esac
22040 fi
22041 TIME=$ac_cv_path_TIME
22042 if test -n "$TIME"; then
22043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22044 $as_echo "$TIME" >&6; }
22045 else
22046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22047 $as_echo "no" >&6; }
22048 fi
22049 
22050 
22051   test -n "$TIME" && break
22052 done
22053 
22054     else
22055       # If it succeeded, then it was overridden by the user. We will use it
22056       # for the tool.
22057 
22058       # First remove it from the list of overridden variables, so we can test
22059       # for unknown variables in the end.
22060       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22061 
22062       # Check if we try to supply an empty value
22063       if test "x$TIME" = x; then
22064         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22065 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22066         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22067 $as_echo_n "checking for TIME... " >&6; }
22068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22069 $as_echo "disabled" >&6; }
22070       else
22071         # Check if the provided tool contains a complete path.
22072         tool_specified="$TIME"
22073         tool_basename="${tool_specified##*/}"
22074         if test "x$tool_basename" = "x$tool_specified"; then
22075           # A command without a complete path is provided, search $PATH.
22076           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22077 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22078           # Extract the first word of "$tool_basename", so it can be a program name with args.
22079 set dummy $tool_basename; ac_word=$2
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22081 $as_echo_n "checking for $ac_word... " >&6; }
22082 if ${ac_cv_path_TIME+:} false; then :
22083   $as_echo_n "(cached) " >&6
22084 else
22085   case $TIME in
22086   [\\/]* | ?:[\\/]*)
22087   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22088   ;;
22089   *)
22090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22091 for as_dir in $PATH
22092 do
22093   IFS=$as_save_IFS
22094   test -z "$as_dir" && as_dir=.
22095     for ac_exec_ext in '' $ac_executable_extensions; do
22096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22097     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22099     break 2
22100   fi
22101 done
22102   done
22103 IFS=$as_save_IFS
22104 
22105   ;;
22106 esac
22107 fi
22108 TIME=$ac_cv_path_TIME
22109 if test -n "$TIME"; then
22110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22111 $as_echo "$TIME" >&6; }
22112 else
22113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22114 $as_echo "no" >&6; }
22115 fi
22116 
22117 
22118           if test "x$TIME" = x; then
22119             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22120           fi
22121         else
22122           # Otherwise we believe it is a complete path. Use it as it is.
22123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22124 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22125           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22126 $as_echo_n "checking for TIME... " >&6; }
22127           if test ! -x "$tool_specified"; then
22128             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22129 $as_echo "not found" >&6; }
22130             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22131           fi
22132           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22133 $as_echo "$tool_specified" >&6; }
22134         fi
22135       fi
22136     fi
22137 
22138   fi
22139 
22140 
22141 
22142 
22143   # Publish this variable in the help.
22144 
22145 
22146   if [ -z "${PATCH+x}" ]; then
22147     # The variable is not set by user, try to locate tool using the code snippet
22148     for ac_prog in gpatch patch
22149 do
22150   # Extract the first word of "$ac_prog", so it can be a program name with args.
22151 set dummy $ac_prog; ac_word=$2
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22153 $as_echo_n "checking for $ac_word... " >&6; }
22154 if ${ac_cv_path_PATCH+:} false; then :
22155   $as_echo_n "(cached) " >&6
22156 else
22157   case $PATCH in
22158   [\\/]* | ?:[\\/]*)
22159   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22160   ;;
22161   *)
22162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22163 for as_dir in $PATH
22164 do
22165   IFS=$as_save_IFS
22166   test -z "$as_dir" && as_dir=.
22167     for ac_exec_ext in '' $ac_executable_extensions; do
22168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22169     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22171     break 2
22172   fi
22173 done
22174   done
22175 IFS=$as_save_IFS
22176 
22177   ;;
22178 esac
22179 fi
22180 PATCH=$ac_cv_path_PATCH
22181 if test -n "$PATCH"; then
22182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22183 $as_echo "$PATCH" >&6; }
22184 else
22185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22186 $as_echo "no" >&6; }
22187 fi
22188 
22189 
22190   test -n "$PATCH" && break
22191 done
22192 
22193   else
22194     # The variable is set, but is it from the command line or the environment?
22195 
22196     # Try to remove the string !PATCH! from our list.
22197     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
22198     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22199       # If it failed, the variable was not from the command line. Ignore it,
22200       # but warn the user (except for BASH, which is always set by the calling BASH).
22201       if test "xPATCH" != xBASH; then
22202         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
22203 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
22204       fi
22205       # Try to locate tool using the code snippet
22206       for ac_prog in gpatch patch
22207 do
22208   # Extract the first word of "$ac_prog", so it can be a program name with args.
22209 set dummy $ac_prog; ac_word=$2
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22211 $as_echo_n "checking for $ac_word... " >&6; }
22212 if ${ac_cv_path_PATCH+:} false; then :
22213   $as_echo_n "(cached) " >&6
22214 else
22215   case $PATCH in
22216   [\\/]* | ?:[\\/]*)
22217   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22218   ;;
22219   *)
22220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22221 for as_dir in $PATH
22222 do
22223   IFS=$as_save_IFS
22224   test -z "$as_dir" && as_dir=.
22225     for ac_exec_ext in '' $ac_executable_extensions; do
22226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22227     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22229     break 2
22230   fi
22231 done
22232   done
22233 IFS=$as_save_IFS
22234 
22235   ;;
22236 esac
22237 fi
22238 PATCH=$ac_cv_path_PATCH
22239 if test -n "$PATCH"; then
22240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22241 $as_echo "$PATCH" >&6; }
22242 else
22243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 $as_echo "no" >&6; }
22245 fi
22246 
22247 
22248   test -n "$PATCH" && break
22249 done
22250 
22251     else
22252       # If it succeeded, then it was overridden by the user. We will use it
22253       # for the tool.
22254 
22255       # First remove it from the list of overridden variables, so we can test
22256       # for unknown variables in the end.
22257       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22258 
22259       # Check if we try to supply an empty value
22260       if test "x$PATCH" = x; then
22261         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
22262 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
22263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22264 $as_echo_n "checking for PATCH... " >&6; }
22265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22266 $as_echo "disabled" >&6; }
22267       else
22268         # Check if the provided tool contains a complete path.
22269         tool_specified="$PATCH"
22270         tool_basename="${tool_specified##*/}"
22271         if test "x$tool_basename" = "x$tool_specified"; then
22272           # A command without a complete path is provided, search $PATH.
22273           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
22274 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
22275           # Extract the first word of "$tool_basename", so it can be a program name with args.
22276 set dummy $tool_basename; ac_word=$2
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22278 $as_echo_n "checking for $ac_word... " >&6; }
22279 if ${ac_cv_path_PATCH+:} false; then :
22280   $as_echo_n "(cached) " >&6
22281 else
22282   case $PATCH in
22283   [\\/]* | ?:[\\/]*)
22284   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22285   ;;
22286   *)
22287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22288 for as_dir in $PATH
22289 do
22290   IFS=$as_save_IFS
22291   test -z "$as_dir" && as_dir=.
22292     for ac_exec_ext in '' $ac_executable_extensions; do
22293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22294     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22296     break 2
22297   fi
22298 done
22299   done
22300 IFS=$as_save_IFS
22301 
22302   ;;
22303 esac
22304 fi
22305 PATCH=$ac_cv_path_PATCH
22306 if test -n "$PATCH"; then
22307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22308 $as_echo "$PATCH" >&6; }
22309 else
22310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22311 $as_echo "no" >&6; }
22312 fi
22313 
22314 
22315           if test "x$PATCH" = x; then
22316             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22317           fi
22318         else
22319           # Otherwise we believe it is a complete path. Use it as it is.
22320           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
22321 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
22322           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22323 $as_echo_n "checking for PATCH... " >&6; }
22324           if test ! -x "$tool_specified"; then
22325             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22326 $as_echo "not found" >&6; }
22327             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
22328           fi
22329           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22330 $as_echo "$tool_specified" >&6; }
22331         fi
22332       fi
22333     fi
22334 
22335   fi
22336 
22337 
22338   # Check if it's GNU time
22339   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22340   if test "x$IS_GNU_TIME" != x; then
22341     IS_GNU_TIME=yes
22342   else
22343     IS_GNU_TIME=no
22344   fi
22345 
22346 
22347   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22348 
22349 
22350 
22351   # Publish this variable in the help.
22352 
22353 
22354   if [ -z "${DSYMUTIL+x}" ]; then
22355     # The variable is not set by user, try to locate tool using the code snippet
22356     for ac_prog in dsymutil
22357 do
22358   # Extract the first word of "$ac_prog", so it can be a program name with args.
22359 set dummy $ac_prog; ac_word=$2
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22361 $as_echo_n "checking for $ac_word... " >&6; }
22362 if ${ac_cv_path_DSYMUTIL+:} false; then :
22363   $as_echo_n "(cached) " >&6
22364 else
22365   case $DSYMUTIL in
22366   [\\/]* | ?:[\\/]*)
22367   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22368   ;;
22369   *)
22370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22371 for as_dir in $PATH
22372 do
22373   IFS=$as_save_IFS
22374   test -z "$as_dir" && as_dir=.
22375     for ac_exec_ext in '' $ac_executable_extensions; do
22376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22377     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22379     break 2
22380   fi
22381 done
22382   done
22383 IFS=$as_save_IFS
22384 
22385   ;;
22386 esac
22387 fi
22388 DSYMUTIL=$ac_cv_path_DSYMUTIL
22389 if test -n "$DSYMUTIL"; then
22390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22391 $as_echo "$DSYMUTIL" >&6; }
22392 else
22393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22394 $as_echo "no" >&6; }
22395 fi
22396 
22397 
22398   test -n "$DSYMUTIL" && break
22399 done
22400 
22401   else
22402     # The variable is set, but is it from the command line or the environment?
22403 
22404     # Try to remove the string !DSYMUTIL! from our list.
22405     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22406     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22407       # If it failed, the variable was not from the command line. Ignore it,
22408       # but warn the user (except for BASH, which is always set by the calling BASH).
22409       if test "xDSYMUTIL" != xBASH; then
22410         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22411 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22412       fi
22413       # Try to locate tool using the code snippet
22414       for ac_prog in dsymutil
22415 do
22416   # Extract the first word of "$ac_prog", so it can be a program name with args.
22417 set dummy $ac_prog; ac_word=$2
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22419 $as_echo_n "checking for $ac_word... " >&6; }
22420 if ${ac_cv_path_DSYMUTIL+:} false; then :
22421   $as_echo_n "(cached) " >&6
22422 else
22423   case $DSYMUTIL in
22424   [\\/]* | ?:[\\/]*)
22425   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22426   ;;
22427   *)
22428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22429 for as_dir in $PATH
22430 do
22431   IFS=$as_save_IFS
22432   test -z "$as_dir" && as_dir=.
22433     for ac_exec_ext in '' $ac_executable_extensions; do
22434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22435     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22437     break 2
22438   fi
22439 done
22440   done
22441 IFS=$as_save_IFS
22442 
22443   ;;
22444 esac
22445 fi
22446 DSYMUTIL=$ac_cv_path_DSYMUTIL
22447 if test -n "$DSYMUTIL"; then
22448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22449 $as_echo "$DSYMUTIL" >&6; }
22450 else
22451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22452 $as_echo "no" >&6; }
22453 fi
22454 
22455 
22456   test -n "$DSYMUTIL" && break
22457 done
22458 
22459     else
22460       # If it succeeded, then it was overridden by the user. We will use it
22461       # for the tool.
22462 
22463       # First remove it from the list of overridden variables, so we can test
22464       # for unknown variables in the end.
22465       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22466 
22467       # Check if we try to supply an empty value
22468       if test "x$DSYMUTIL" = x; then
22469         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22470 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22472 $as_echo_n "checking for DSYMUTIL... " >&6; }
22473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22474 $as_echo "disabled" >&6; }
22475       else
22476         # Check if the provided tool contains a complete path.
22477         tool_specified="$DSYMUTIL"
22478         tool_basename="${tool_specified##*/}"
22479         if test "x$tool_basename" = "x$tool_specified"; then
22480           # A command without a complete path is provided, search $PATH.
22481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22482 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22483           # Extract the first word of "$tool_basename", so it can be a program name with args.
22484 set dummy $tool_basename; ac_word=$2
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22486 $as_echo_n "checking for $ac_word... " >&6; }
22487 if ${ac_cv_path_DSYMUTIL+:} false; then :
22488   $as_echo_n "(cached) " >&6
22489 else
22490   case $DSYMUTIL in
22491   [\\/]* | ?:[\\/]*)
22492   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22493   ;;
22494   *)
22495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22496 for as_dir in $PATH
22497 do
22498   IFS=$as_save_IFS
22499   test -z "$as_dir" && as_dir=.
22500     for ac_exec_ext in '' $ac_executable_extensions; do
22501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22502     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22504     break 2
22505   fi
22506 done
22507   done
22508 IFS=$as_save_IFS
22509 
22510   ;;
22511 esac
22512 fi
22513 DSYMUTIL=$ac_cv_path_DSYMUTIL
22514 if test -n "$DSYMUTIL"; then
22515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22516 $as_echo "$DSYMUTIL" >&6; }
22517 else
22518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519 $as_echo "no" >&6; }
22520 fi
22521 
22522 
22523           if test "x$DSYMUTIL" = x; then
22524             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22525           fi
22526         else
22527           # Otherwise we believe it is a complete path. Use it as it is.
22528           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22529 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22530           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22531 $as_echo_n "checking for DSYMUTIL... " >&6; }
22532           if test ! -x "$tool_specified"; then
22533             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22534 $as_echo "not found" >&6; }
22535             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22536           fi
22537           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22538 $as_echo "$tool_specified" >&6; }
22539         fi
22540       fi
22541     fi
22542 
22543   fi
22544 
22545 
22546 
22547   if test "x$DSYMUTIL" = x; then
22548     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22549   fi
22550 
22551 
22552 
22553 
22554 
22555   # Publish this variable in the help.
22556 
22557 
22558   if [ -z "${XATTR+x}" ]; then
22559     # The variable is not set by user, try to locate tool using the code snippet
22560     for ac_prog in xattr
22561 do
22562   # Extract the first word of "$ac_prog", so it can be a program name with args.
22563 set dummy $ac_prog; ac_word=$2
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22565 $as_echo_n "checking for $ac_word... " >&6; }
22566 if ${ac_cv_path_XATTR+:} false; then :
22567   $as_echo_n "(cached) " >&6
22568 else
22569   case $XATTR in
22570   [\\/]* | ?:[\\/]*)
22571   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22572   ;;
22573   *)
22574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575 for as_dir in $PATH
22576 do
22577   IFS=$as_save_IFS
22578   test -z "$as_dir" && as_dir=.
22579     for ac_exec_ext in '' $ac_executable_extensions; do
22580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22581     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22583     break 2
22584   fi
22585 done
22586   done
22587 IFS=$as_save_IFS
22588 
22589   ;;
22590 esac
22591 fi
22592 XATTR=$ac_cv_path_XATTR
22593 if test -n "$XATTR"; then
22594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22595 $as_echo "$XATTR" >&6; }
22596 else
22597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22598 $as_echo "no" >&6; }
22599 fi
22600 
22601 
22602   test -n "$XATTR" && break
22603 done
22604 
22605   else
22606     # The variable is set, but is it from the command line or the environment?
22607 
22608     # Try to remove the string !XATTR! from our list.
22609     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22610     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22611       # If it failed, the variable was not from the command line. Ignore it,
22612       # but warn the user (except for BASH, which is always set by the calling BASH).
22613       if test "xXATTR" != xBASH; then
22614         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22615 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22616       fi
22617       # Try to locate tool using the code snippet
22618       for ac_prog in xattr
22619 do
22620   # Extract the first word of "$ac_prog", so it can be a program name with args.
22621 set dummy $ac_prog; ac_word=$2
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22623 $as_echo_n "checking for $ac_word... " >&6; }
22624 if ${ac_cv_path_XATTR+:} false; then :
22625   $as_echo_n "(cached) " >&6
22626 else
22627   case $XATTR in
22628   [\\/]* | ?:[\\/]*)
22629   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22630   ;;
22631   *)
22632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22633 for as_dir in $PATH
22634 do
22635   IFS=$as_save_IFS
22636   test -z "$as_dir" && as_dir=.
22637     for ac_exec_ext in '' $ac_executable_extensions; do
22638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22639     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22641     break 2
22642   fi
22643 done
22644   done
22645 IFS=$as_save_IFS
22646 
22647   ;;
22648 esac
22649 fi
22650 XATTR=$ac_cv_path_XATTR
22651 if test -n "$XATTR"; then
22652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22653 $as_echo "$XATTR" >&6; }
22654 else
22655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22656 $as_echo "no" >&6; }
22657 fi
22658 
22659 
22660   test -n "$XATTR" && break
22661 done
22662 
22663     else
22664       # If it succeeded, then it was overridden by the user. We will use it
22665       # for the tool.
22666 
22667       # First remove it from the list of overridden variables, so we can test
22668       # for unknown variables in the end.
22669       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22670 
22671       # Check if we try to supply an empty value
22672       if test "x$XATTR" = x; then
22673         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22674 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22676 $as_echo_n "checking for XATTR... " >&6; }
22677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22678 $as_echo "disabled" >&6; }
22679       else
22680         # Check if the provided tool contains a complete path.
22681         tool_specified="$XATTR"
22682         tool_basename="${tool_specified##*/}"
22683         if test "x$tool_basename" = "x$tool_specified"; then
22684           # A command without a complete path is provided, search $PATH.
22685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22686 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22687           # Extract the first word of "$tool_basename", so it can be a program name with args.
22688 set dummy $tool_basename; ac_word=$2
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22690 $as_echo_n "checking for $ac_word... " >&6; }
22691 if ${ac_cv_path_XATTR+:} false; then :
22692   $as_echo_n "(cached) " >&6
22693 else
22694   case $XATTR in
22695   [\\/]* | ?:[\\/]*)
22696   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22697   ;;
22698   *)
22699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22700 for as_dir in $PATH
22701 do
22702   IFS=$as_save_IFS
22703   test -z "$as_dir" && as_dir=.
22704     for ac_exec_ext in '' $ac_executable_extensions; do
22705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22706     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22708     break 2
22709   fi
22710 done
22711   done
22712 IFS=$as_save_IFS
22713 
22714   ;;
22715 esac
22716 fi
22717 XATTR=$ac_cv_path_XATTR
22718 if test -n "$XATTR"; then
22719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22720 $as_echo "$XATTR" >&6; }
22721 else
22722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22723 $as_echo "no" >&6; }
22724 fi
22725 
22726 
22727           if test "x$XATTR" = x; then
22728             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22729           fi
22730         else
22731           # Otherwise we believe it is a complete path. Use it as it is.
22732           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22733 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22735 $as_echo_n "checking for XATTR... " >&6; }
22736           if test ! -x "$tool_specified"; then
22737             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22738 $as_echo "not found" >&6; }
22739             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22740           fi
22741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22742 $as_echo "$tool_specified" >&6; }
22743         fi
22744       fi
22745     fi
22746 
22747   fi
22748 
22749 
22750 
22751   if test "x$XATTR" = x; then
22752     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22753   fi
22754 
22755 
22756 
22757 
22758   # Publish this variable in the help.
22759 
22760 
22761   if [ -z "${CODESIGN+x}" ]; then
22762     # The variable is not set by user, try to locate tool using the code snippet
22763     for ac_prog in codesign
22764 do
22765   # Extract the first word of "$ac_prog", so it can be a program name with args.
22766 set dummy $ac_prog; ac_word=$2
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22768 $as_echo_n "checking for $ac_word... " >&6; }
22769 if ${ac_cv_path_CODESIGN+:} false; then :
22770   $as_echo_n "(cached) " >&6
22771 else
22772   case $CODESIGN in
22773   [\\/]* | ?:[\\/]*)
22774   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22775   ;;
22776   *)
22777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22778 for as_dir in $PATH
22779 do
22780   IFS=$as_save_IFS
22781   test -z "$as_dir" && as_dir=.
22782     for ac_exec_ext in '' $ac_executable_extensions; do
22783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22784     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22786     break 2
22787   fi
22788 done
22789   done
22790 IFS=$as_save_IFS
22791 
22792   ;;
22793 esac
22794 fi
22795 CODESIGN=$ac_cv_path_CODESIGN
22796 if test -n "$CODESIGN"; then
22797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22798 $as_echo "$CODESIGN" >&6; }
22799 else
22800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22801 $as_echo "no" >&6; }
22802 fi
22803 
22804 
22805   test -n "$CODESIGN" && break
22806 done
22807 
22808   else
22809     # The variable is set, but is it from the command line or the environment?
22810 
22811     # Try to remove the string !CODESIGN! from our list.
22812     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22813     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22814       # If it failed, the variable was not from the command line. Ignore it,
22815       # but warn the user (except for BASH, which is always set by the calling BASH).
22816       if test "xCODESIGN" != xBASH; then
22817         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22818 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22819       fi
22820       # Try to locate tool using the code snippet
22821       for ac_prog in codesign
22822 do
22823   # Extract the first word of "$ac_prog", so it can be a program name with args.
22824 set dummy $ac_prog; ac_word=$2
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22826 $as_echo_n "checking for $ac_word... " >&6; }
22827 if ${ac_cv_path_CODESIGN+:} false; then :
22828   $as_echo_n "(cached) " >&6
22829 else
22830   case $CODESIGN in
22831   [\\/]* | ?:[\\/]*)
22832   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22833   ;;
22834   *)
22835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22836 for as_dir in $PATH
22837 do
22838   IFS=$as_save_IFS
22839   test -z "$as_dir" && as_dir=.
22840     for ac_exec_ext in '' $ac_executable_extensions; do
22841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22842     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22844     break 2
22845   fi
22846 done
22847   done
22848 IFS=$as_save_IFS
22849 
22850   ;;
22851 esac
22852 fi
22853 CODESIGN=$ac_cv_path_CODESIGN
22854 if test -n "$CODESIGN"; then
22855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22856 $as_echo "$CODESIGN" >&6; }
22857 else
22858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22859 $as_echo "no" >&6; }
22860 fi
22861 
22862 
22863   test -n "$CODESIGN" && break
22864 done
22865 
22866     else
22867       # If it succeeded, then it was overridden by the user. We will use it
22868       # for the tool.
22869 
22870       # First remove it from the list of overridden variables, so we can test
22871       # for unknown variables in the end.
22872       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22873 
22874       # Check if we try to supply an empty value
22875       if test "x$CODESIGN" = x; then
22876         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22877 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22879 $as_echo_n "checking for CODESIGN... " >&6; }
22880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22881 $as_echo "disabled" >&6; }
22882       else
22883         # Check if the provided tool contains a complete path.
22884         tool_specified="$CODESIGN"
22885         tool_basename="${tool_specified##*/}"
22886         if test "x$tool_basename" = "x$tool_specified"; then
22887           # A command without a complete path is provided, search $PATH.
22888           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22889 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22890           # Extract the first word of "$tool_basename", so it can be a program name with args.
22891 set dummy $tool_basename; ac_word=$2
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22893 $as_echo_n "checking for $ac_word... " >&6; }
22894 if ${ac_cv_path_CODESIGN+:} false; then :
22895   $as_echo_n "(cached) " >&6
22896 else
22897   case $CODESIGN in
22898   [\\/]* | ?:[\\/]*)
22899   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22900   ;;
22901   *)
22902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22903 for as_dir in $PATH
22904 do
22905   IFS=$as_save_IFS
22906   test -z "$as_dir" && as_dir=.
22907     for ac_exec_ext in '' $ac_executable_extensions; do
22908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22909     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22911     break 2
22912   fi
22913 done
22914   done
22915 IFS=$as_save_IFS
22916 
22917   ;;
22918 esac
22919 fi
22920 CODESIGN=$ac_cv_path_CODESIGN
22921 if test -n "$CODESIGN"; then
22922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22923 $as_echo "$CODESIGN" >&6; }
22924 else
22925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22926 $as_echo "no" >&6; }
22927 fi
22928 
22929 
22930           if test "x$CODESIGN" = x; then
22931             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22932           fi
22933         else
22934           # Otherwise we believe it is a complete path. Use it as it is.
22935           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22936 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22937           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22938 $as_echo_n "checking for CODESIGN... " >&6; }
22939           if test ! -x "$tool_specified"; then
22940             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22941 $as_echo "not found" >&6; }
22942             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22943           fi
22944           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22945 $as_echo "$tool_specified" >&6; }
22946         fi
22947       fi
22948     fi
22949 
22950   fi
22951 
22952 
22953     if test "x$CODESIGN" != "x"; then
22954       # Verify that the openjdk_codesign certificate is present
22955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22956 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22957       rm -f codesign-testfile
22958       touch codesign-testfile
22959       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22960       rm -f codesign-testfile
22961       if test "x$CODESIGN" = x; then
22962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22963 $as_echo "no" >&6; }
22964       else
22965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22966 $as_echo "yes" >&6; }
22967       fi
22968     fi
22969 
22970 
22971 
22972   # Publish this variable in the help.
22973 
22974 
22975   if [ -z "${SETFILE+x}" ]; then
22976     # The variable is not set by user, try to locate tool using the code snippet
22977     for ac_prog in SetFile
22978 do
22979   # Extract the first word of "$ac_prog", so it can be a program name with args.
22980 set dummy $ac_prog; ac_word=$2
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22982 $as_echo_n "checking for $ac_word... " >&6; }
22983 if ${ac_cv_path_SETFILE+:} false; then :
22984   $as_echo_n "(cached) " >&6
22985 else
22986   case $SETFILE in
22987   [\\/]* | ?:[\\/]*)
22988   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22989   ;;
22990   *)
22991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22992 for as_dir in $PATH
22993 do
22994   IFS=$as_save_IFS
22995   test -z "$as_dir" && as_dir=.
22996     for ac_exec_ext in '' $ac_executable_extensions; do
22997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22998     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23000     break 2
23001   fi
23002 done
23003   done
23004 IFS=$as_save_IFS
23005 
23006   ;;
23007 esac
23008 fi
23009 SETFILE=$ac_cv_path_SETFILE
23010 if test -n "$SETFILE"; then
23011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23012 $as_echo "$SETFILE" >&6; }
23013 else
23014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23015 $as_echo "no" >&6; }
23016 fi
23017 
23018 
23019   test -n "$SETFILE" && break
23020 done
23021 
23022   else
23023     # The variable is set, but is it from the command line or the environment?
23024 
23025     # Try to remove the string !SETFILE! from our list.
23026     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23027     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23028       # If it failed, the variable was not from the command line. Ignore it,
23029       # but warn the user (except for BASH, which is always set by the calling BASH).
23030       if test "xSETFILE" != xBASH; then
23031         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23032 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23033       fi
23034       # Try to locate tool using the code snippet
23035       for ac_prog in SetFile
23036 do
23037   # Extract the first word of "$ac_prog", so it can be a program name with args.
23038 set dummy $ac_prog; ac_word=$2
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23040 $as_echo_n "checking for $ac_word... " >&6; }
23041 if ${ac_cv_path_SETFILE+:} false; then :
23042   $as_echo_n "(cached) " >&6
23043 else
23044   case $SETFILE in
23045   [\\/]* | ?:[\\/]*)
23046   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23047   ;;
23048   *)
23049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23050 for as_dir in $PATH
23051 do
23052   IFS=$as_save_IFS
23053   test -z "$as_dir" && as_dir=.
23054     for ac_exec_ext in '' $ac_executable_extensions; do
23055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23056     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23058     break 2
23059   fi
23060 done
23061   done
23062 IFS=$as_save_IFS
23063 
23064   ;;
23065 esac
23066 fi
23067 SETFILE=$ac_cv_path_SETFILE
23068 if test -n "$SETFILE"; then
23069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23070 $as_echo "$SETFILE" >&6; }
23071 else
23072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23073 $as_echo "no" >&6; }
23074 fi
23075 
23076 
23077   test -n "$SETFILE" && break
23078 done
23079 
23080     else
23081       # If it succeeded, then it was overridden by the user. We will use it
23082       # for the tool.
23083 
23084       # First remove it from the list of overridden variables, so we can test
23085       # for unknown variables in the end.
23086       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23087 
23088       # Check if we try to supply an empty value
23089       if test "x$SETFILE" = x; then
23090         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23091 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23093 $as_echo_n "checking for SETFILE... " >&6; }
23094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23095 $as_echo "disabled" >&6; }
23096       else
23097         # Check if the provided tool contains a complete path.
23098         tool_specified="$SETFILE"
23099         tool_basename="${tool_specified##*/}"
23100         if test "x$tool_basename" = "x$tool_specified"; then
23101           # A command without a complete path is provided, search $PATH.
23102           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23103 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23104           # Extract the first word of "$tool_basename", so it can be a program name with args.
23105 set dummy $tool_basename; ac_word=$2
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23107 $as_echo_n "checking for $ac_word... " >&6; }
23108 if ${ac_cv_path_SETFILE+:} false; then :
23109   $as_echo_n "(cached) " >&6
23110 else
23111   case $SETFILE in
23112   [\\/]* | ?:[\\/]*)
23113   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23114   ;;
23115   *)
23116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23117 for as_dir in $PATH
23118 do
23119   IFS=$as_save_IFS
23120   test -z "$as_dir" && as_dir=.
23121     for ac_exec_ext in '' $ac_executable_extensions; do
23122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23123     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23125     break 2
23126   fi
23127 done
23128   done
23129 IFS=$as_save_IFS
23130 
23131   ;;
23132 esac
23133 fi
23134 SETFILE=$ac_cv_path_SETFILE
23135 if test -n "$SETFILE"; then
23136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23137 $as_echo "$SETFILE" >&6; }
23138 else
23139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141 fi
23142 
23143 
23144           if test "x$SETFILE" = x; then
23145             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23146           fi
23147         else
23148           # Otherwise we believe it is a complete path. Use it as it is.
23149           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
23150 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
23151           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23152 $as_echo_n "checking for SETFILE... " >&6; }
23153           if test ! -x "$tool_specified"; then
23154             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23155 $as_echo "not found" >&6; }
23156             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
23157           fi
23158           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23159 $as_echo "$tool_specified" >&6; }
23160         fi
23161       fi
23162     fi
23163 
23164   fi
23165 
23166 
23167 
23168   if test "x$SETFILE" = x; then
23169     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
23170   fi
23171 
23172 
23173   fi
23174 
23175 
23176   # Test if bash supports pipefail.
23177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
23178 $as_echo_n "checking if bash supports pipefail... " >&6; }
23179   if ${BASH} -c 'set -o pipefail'; then
23180     BASH_ARGS="$BASH_ARGS -o pipefail"
23181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23182 $as_echo "yes" >&6; }
23183   else
23184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23185 $as_echo "no" >&6; }
23186   fi
23187 
23188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
23189 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
23190   if ${BASH} -e -c 'true'; then
23191     BASH_ARGS="$BASH_ARGS -e"
23192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23193 $as_echo "yes" >&6; }
23194   else
23195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23196 $as_echo "no" >&6; }
23197   fi
23198 
23199 
23200 
23201 
23202 # Check if pkg-config is available.
23203 
23204 
23205 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23206         if test -n "$ac_tool_prefix"; then
23207   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23208 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23210 $as_echo_n "checking for $ac_word... " >&6; }
23211 if ${ac_cv_path_PKG_CONFIG+:} false; then :
23212   $as_echo_n "(cached) " >&6
23213 else
23214   case $PKG_CONFIG in
23215   [\\/]* | ?:[\\/]*)
23216   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23217   ;;
23218   *)
23219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23220 for as_dir in $PATH
23221 do
23222   IFS=$as_save_IFS
23223   test -z "$as_dir" && as_dir=.
23224     for ac_exec_ext in '' $ac_executable_extensions; do
23225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23226     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23228     break 2
23229   fi
23230 done
23231   done
23232 IFS=$as_save_IFS
23233 
23234   ;;
23235 esac
23236 fi
23237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23238 if test -n "$PKG_CONFIG"; then
23239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23240 $as_echo "$PKG_CONFIG" >&6; }
23241 else
23242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23243 $as_echo "no" >&6; }
23244 fi
23245 
23246 
23247 fi
23248 if test -z "$ac_cv_path_PKG_CONFIG"; then
23249   ac_pt_PKG_CONFIG=$PKG_CONFIG
23250   # Extract the first word of "pkg-config", so it can be a program name with args.
23251 set dummy pkg-config; ac_word=$2
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23253 $as_echo_n "checking for $ac_word... " >&6; }
23254 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
23255   $as_echo_n "(cached) " >&6
23256 else
23257   case $ac_pt_PKG_CONFIG in
23258   [\\/]* | ?:[\\/]*)
23259   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23260   ;;
23261   *)
23262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23263 for as_dir in $PATH
23264 do
23265   IFS=$as_save_IFS
23266   test -z "$as_dir" && as_dir=.
23267     for ac_exec_ext in '' $ac_executable_extensions; do
23268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23269     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23271     break 2
23272   fi
23273 done
23274   done
23275 IFS=$as_save_IFS
23276 
23277   ;;
23278 esac
23279 fi
23280 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23281 if test -n "$ac_pt_PKG_CONFIG"; then
23282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23283 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23284 else
23285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23286 $as_echo "no" >&6; }
23287 fi
23288 
23289   if test "x$ac_pt_PKG_CONFIG" = x; then
23290     PKG_CONFIG=""
23291   else
23292     case $cross_compiling:$ac_tool_warned in
23293 yes:)
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23296 ac_tool_warned=yes ;;
23297 esac
23298     PKG_CONFIG=$ac_pt_PKG_CONFIG
23299   fi
23300 else
23301   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23302 fi
23303 
23304 fi
23305 if test -n "$PKG_CONFIG"; then
23306         _pkg_min_version=0.9.0
23307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23308 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23309         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23310                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23312         else
23313                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23314 $as_echo "no" >&6; }
23315                 PKG_CONFIG=""
23316         fi
23317 
23318 fi
23319 
23320 # After basic tools have been setup, we can check build os specific details.
23321 
23322   ###############################################################################
23323 
23324   # Note that this is the build platform OS version!
23325 
23326   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
23327   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
23328   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
23329   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
23330 
23331 
23332 
23333 
23334 
23335 # Misc basic settings
23336 
23337 
23338 # Check whether --with-default-make-target was given.
23339 if test "${with_default_make_target+set}" = set; then :
23340   withval=$with_default_make_target;
23341 fi
23342 
23343   if test "x$with_default_make_target" = "x" \
23344       || test "x$with_default_make_target" = "xyes"; then
23345     DEFAULT_MAKE_TARGET="exploded-image"
23346   elif test "x$with_default_make_target" = "xno"; then
23347     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
23348   else
23349     DEFAULT_MAKE_TARGET="$with_default_make_target"
23350   fi
23351 
23352 
23353 
23354 
23355 ###############################################################################
23356 #
23357 # Determine OpenJDK variants, options and version numbers.
23358 #
23359 ###############################################################################
23360 
23361 # We need build & target for this.
23362 
23363   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23364   # We always build headless support.
23365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23366 $as_echo_n "checking headful support... " >&6; }
23367   # Check whether --enable-headful was given.
23368 if test "${enable_headful+set}" = set; then :
23369   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23370 else
23371   SUPPORT_HEADFUL=yes
23372 fi
23373 
23374 
23375   SUPPORT_HEADLESS=yes
23376   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23377 
23378   if test "x$SUPPORT_HEADFUL" = xyes; then
23379     # We are building both headful and headless.
23380     headful_msg="include support for both headful and headless"
23381   fi
23382 
23383   if test "x$SUPPORT_HEADFUL" = xno; then
23384     # Thus we are building headless only.
23385     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23386     headful_msg="headless only"
23387   fi
23388 
23389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23390 $as_echo "$headful_msg" >&6; }
23391 
23392 
23393 
23394 
23395 
23396   # Choose cacerts source file
23397 
23398 # Check whether --with-cacerts-file was given.
23399 if test "${with_cacerts_file+set}" = set; then :
23400   withval=$with_cacerts_file;
23401 fi
23402 
23403   if test "x$with_cacerts_file" != x; then
23404     CACERTS_FILE=$with_cacerts_file
23405   fi
23406 
23407 
23408   # Enable or disable unlimited crypto
23409   # Check whether --enable-unlimited-crypto was given.
23410 if test "${enable_unlimited_crypto+set}" = set; then :
23411   enableval=$enable_unlimited_crypto;
23412 else
23413   enable_unlimited_crypto=no
23414 fi
23415 
23416   if test "x$enable_unlimited_crypto" = "xyes"; then
23417     UNLIMITED_CRYPTO=true
23418   else
23419     UNLIMITED_CRYPTO=false
23420   fi
23421 
23422 
23423   # Should we build the serviceability agent (SA)?
23424   INCLUDE_SA=true
23425   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
23426     INCLUDE_SA=false
23427   fi
23428   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
23429     INCLUDE_SA=false
23430   fi
23431   if test "x$OPENJDK_TARGET_OS" = xaix ; then
23432     INCLUDE_SA=false
23433   fi
23434   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
23435     INCLUDE_SA=false
23436   fi
23437 
23438 
23439   # Compress jars
23440   COMPRESS_JARS=false
23441 
23442 
23443 
23444   # Setup default copyright year. Mostly overridden when building close to a new year.
23445 
23446 # Check whether --with-copyright-year was given.
23447 if test "${with_copyright_year+set}" = set; then :
23448   withval=$with_copyright_year;
23449 fi
23450 
23451   if test "x$with_copyright_year" = xyes; then
23452     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23453   elif test "x$with_copyright_year" != x; then
23454     COPYRIGHT_YEAR="$with_copyright_year"
23455   else
23456     COPYRIGHT_YEAR=`date +'%Y'`
23457   fi
23458 
23459 
23460 
23461   # Check whether --enable-keep-packaged-modules was given.
23462 if test "${enable_keep_packaged_modules+set}" = set; then :
23463   enableval=$enable_keep_packaged_modules;
23464 fi
23465 
23466 
23467   if test "x$enable_keep_packaged_modules" = "xyes"; then
23468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23469 $as_echo_n "checking if packaged modules are kept... " >&6; }
23470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23471 $as_echo "yes" >&6; }
23472     JLINK_KEEP_PACKAGED_MODULES=true
23473   elif test "x$enable_keep_packaged_modules" = "xno"; then
23474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23475 $as_echo_n "checking if packaged modules are kept... " >&6; }
23476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23477 $as_echo "no" >&6; }
23478     JLINK_KEEP_PACKAGED_MODULES=false
23479   elif test "x$enable_keep_packaged_modules" = "x"; then
23480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
23481 $as_echo "yes (default)" >&6; }
23482     JLINK_KEEP_PACKAGED_MODULES=true
23483   else
23484     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
23485   fi
23486 
23487 
23488 
23489 
23490   # Control wether Hotspot runs Queens test after build.
23491   # Check whether --enable-hotspot-test-in-build was given.
23492 if test "${enable_hotspot_test_in_build+set}" = set; then :
23493   enableval=$enable_hotspot_test_in_build;
23494 else
23495   enable_hotspot_test_in_build=no
23496 fi
23497 
23498   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23499     TEST_IN_BUILD=true
23500   else
23501     TEST_IN_BUILD=false
23502   fi
23503 
23504 
23505 
23506   # Warn user that old version arguments are deprecated.
23507 
23508 
23509 # Check whether --with-milestone was given.
23510 if test "${with_milestone+set}" = set; then :
23511   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
23512 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
23513 fi
23514 
23515 
23516 
23517 
23518 # Check whether --with-update-version was given.
23519 if test "${with_update_version+set}" = set; then :
23520   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
23521 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
23522 fi
23523 
23524 
23525 
23526 
23527 # Check whether --with-user-release-suffix was given.
23528 if test "${with_user_release_suffix+set}" = set; then :
23529   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
23530 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
23531 fi
23532 
23533 
23534 
23535 
23536 # Check whether --with-build-number was given.
23537 if test "${with_build_number+set}" = set; then :
23538   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
23539 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
23540 fi
23541 
23542 
23543 
23544   # Source the version numbers file
23545   . $AUTOCONF_DIR/version-numbers
23546 
23547   # Some non-version number information is set in that file
23548 
23549 
23550 
23551 
23552 
23553 
23554 
23555 
23556   # Override version from arguments
23557 
23558   # If --with-version-string is set, process it first. It is possible to
23559   # override parts with more specific flags, since these are processed later.
23560 
23561 # Check whether --with-version-string was given.
23562 if test "${with_version_string+set}" = set; then :
23563   withval=$with_version_string;
23564 fi
23565 
23566   if test "x$with_version_string" = xyes; then
23567     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
23568   elif test "x$with_version_string" != x; then
23569     # Additional [] needed to keep m4 from mangling shell constructs.
23570     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
23571       VERSION_MAJOR=${BASH_REMATCH[1]}
23572       VERSION_MINOR=${BASH_REMATCH[3]}
23573       VERSION_SECURITY=${BASH_REMATCH[5]}
23574       VERSION_PATCH=${BASH_REMATCH[7]}
23575       VERSION_PRE=${BASH_REMATCH[9]}
23576       version_plus_separator=${BASH_REMATCH[11]}
23577       VERSION_BUILD=${BASH_REMATCH[12]}
23578       VERSION_OPT=${BASH_REMATCH[14]}
23579       # Unspecified numerical fields are interpreted as 0.
23580       if test "x$VERSION_MINOR" = x; then
23581         VERSION_MINOR=0
23582       fi
23583       if test "x$VERSION_SECURITY" = x; then
23584         VERSION_SECURITY=0
23585       fi
23586       if test "x$VERSION_PATCH" = x; then
23587         VERSION_PATCH=0
23588       fi
23589       if test "x$version_plus_separator" != x \
23590           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
23591         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
23592       fi
23593       # Stop the version part process from setting default values.
23594       # We still allow them to explicitely override though.
23595       NO_DEFAULT_VERSION_PARTS=true
23596     else
23597       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
23598     fi
23599   fi
23600 
23601 
23602 # Check whether --with-version-pre was given.
23603 if test "${with_version_pre+set}" = set; then :
23604   withval=$with_version_pre; with_version_pre_present=true
23605 else
23606   with_version_pre_present=false
23607 fi
23608 
23609 
23610   if test "x$with_version_pre_present" = xtrue; then
23611     if test "x$with_version_pre" = xyes; then
23612       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
23613     elif test "x$with_version_pre" = xno; then
23614       # Interpret --without-* as empty string instead of the literal "no"
23615       VERSION_PRE=
23616     else
23617       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
23618        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
23619       if test "x$VERSION_PRE" != "x$with_version_pre"; then
23620         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
23621 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
23622       fi
23623     fi
23624   else
23625     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23626       # Default is to use "internal" as pre
23627       VERSION_PRE="internal"
23628     fi
23629   fi
23630 
23631 
23632 # Check whether --with-version-opt was given.
23633 if test "${with_version_opt+set}" = set; then :
23634   withval=$with_version_opt; with_version_opt_present=true
23635 else
23636   with_version_opt_present=false
23637 fi
23638 
23639 
23640   if test "x$with_version_opt_present" = xtrue; then
23641     if test "x$with_version_opt" = xyes; then
23642       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
23643     elif test "x$with_version_opt" = xno; then
23644       # Interpret --without-* as empty string instead of the literal "no"
23645       VERSION_OPT=
23646     else
23647       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
23648        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
23649       if test "x$VERSION_OPT" != "x$with_version_opt"; then
23650         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
23651 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
23652       fi
23653     fi
23654   else
23655     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23656       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
23657       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
23658       # Outer [ ] to quote m4.
23659        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
23660       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
23661     fi
23662   fi
23663 
23664 
23665 # Check whether --with-version-build was given.
23666 if test "${with_version_build+set}" = set; then :
23667   withval=$with_version_build; with_version_build_present=true
23668 else
23669   with_version_build_present=false
23670 fi
23671 
23672 
23673   if test "x$with_version_build_present" = xtrue; then
23674     if test "x$with_version_build" = xyes; then
23675       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
23676     elif test "x$with_version_build" = xno; then
23677       # Interpret --without-* as empty string instead of the literal "no"
23678       VERSION_BUILD=
23679     elif test "x$with_version_build" = x; then
23680       VERSION_BUILD=
23681     else
23682 
23683   # Additional [] needed to keep m4 from mangling shell constructs.
23684   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23685     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
23686   fi
23687   # Extract the version number without leading zeros.
23688   cleaned_value=${BASH_REMATCH[1]}
23689   if test "x$cleaned_value" = x; then
23690     # Special case for zero
23691     cleaned_value=${BASH_REMATCH[2]}
23692   fi
23693 
23694   if test $cleaned_value -gt 255; then
23695     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
23696   fi
23697   if test "x$cleaned_value" != "x$with_version_build"; then
23698     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
23699 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
23700   fi
23701   VERSION_BUILD=$cleaned_value
23702 
23703     fi
23704   else
23705     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23706       # Default is to not have a build number.
23707       VERSION_BUILD=""
23708       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
23709       VERSION_BUILD=0
23710     fi
23711   fi
23712 
23713 
23714 # Check whether --with-version-major was given.
23715 if test "${with_version_major+set}" = set; then :
23716   withval=$with_version_major; with_version_major_present=true
23717 else
23718   with_version_major_present=false
23719 fi
23720 
23721 
23722   if test "x$with_version_major_present" = xtrue; then
23723     if test "x$with_version_major" = xyes; then
23724       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
23725     else
23726 
23727   # Additional [] needed to keep m4 from mangling shell constructs.
23728   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23729     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
23730   fi
23731   # Extract the version number without leading zeros.
23732   cleaned_value=${BASH_REMATCH[1]}
23733   if test "x$cleaned_value" = x; then
23734     # Special case for zero
23735     cleaned_value=${BASH_REMATCH[2]}
23736   fi
23737 
23738   if test $cleaned_value -gt 255; then
23739     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
23740   fi
23741   if test "x$cleaned_value" != "x$with_version_major"; then
23742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
23743 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
23744   fi
23745   VERSION_MAJOR=$cleaned_value
23746 
23747     fi
23748   else
23749     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23750       # Default is to get value from version-numbers
23751       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
23752     fi
23753   fi
23754 
23755 
23756 # Check whether --with-version-minor was given.
23757 if test "${with_version_minor+set}" = set; then :
23758   withval=$with_version_minor; with_version_minor_present=true
23759 else
23760   with_version_minor_present=false
23761 fi
23762 
23763 
23764   if test "x$with_version_minor_present" = xtrue; then
23765     if test "x$with_version_minor" = xyes; then
23766       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
23767     elif test "x$with_version_minor" = xno; then
23768       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23769       VERSION_MINOR=0
23770     elif test "x$with_version_minor" = x; then
23771       VERSION_MINOR=0
23772     else
23773 
23774   # Additional [] needed to keep m4 from mangling shell constructs.
23775   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23776     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
23777   fi
23778   # Extract the version number without leading zeros.
23779   cleaned_value=${BASH_REMATCH[1]}
23780   if test "x$cleaned_value" = x; then
23781     # Special case for zero
23782     cleaned_value=${BASH_REMATCH[2]}
23783   fi
23784 
23785   if test $cleaned_value -gt 255; then
23786     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
23787   fi
23788   if test "x$cleaned_value" != "x$with_version_minor"; then
23789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
23790 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
23791   fi
23792   VERSION_MINOR=$cleaned_value
23793 
23794     fi
23795   else
23796     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23797       # Default is 0, if unspecified
23798       VERSION_MINOR=0
23799     fi
23800   fi
23801 
23802 
23803 # Check whether --with-version-security was given.
23804 if test "${with_version_security+set}" = set; then :
23805   withval=$with_version_security; with_version_security_present=true
23806 else
23807   with_version_security_present=false
23808 fi
23809 
23810 
23811   if test "x$with_version_security_present" = xtrue; then
23812     if test "x$with_version_security" = xyes; then
23813       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
23814     elif test "x$with_version_security" = xno; then
23815       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23816       VERSION_SECURITY=0
23817     elif test "x$with_version_security" = x; then
23818       VERSION_SECURITY=0
23819     else
23820 
23821   # Additional [] needed to keep m4 from mangling shell constructs.
23822   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23823     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
23824   fi
23825   # Extract the version number without leading zeros.
23826   cleaned_value=${BASH_REMATCH[1]}
23827   if test "x$cleaned_value" = x; then
23828     # Special case for zero
23829     cleaned_value=${BASH_REMATCH[2]}
23830   fi
23831 
23832   if test $cleaned_value -gt 255; then
23833     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
23834   fi
23835   if test "x$cleaned_value" != "x$with_version_security"; then
23836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
23837 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
23838   fi
23839   VERSION_SECURITY=$cleaned_value
23840 
23841     fi
23842   else
23843     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23844       # Default is 0, if unspecified
23845       VERSION_SECURITY=0
23846     fi
23847   fi
23848 
23849 
23850 # Check whether --with-version-patch was given.
23851 if test "${with_version_patch+set}" = set; then :
23852   withval=$with_version_patch; with_version_patch_present=true
23853 else
23854   with_version_patch_present=false
23855 fi
23856 
23857 
23858   if test "x$with_version_patch_present" = xtrue; then
23859     if test "x$with_version_patch" = xyes; then
23860       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
23861     elif test "x$with_version_patch" = xno; then
23862       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23863       VERSION_PATCH=0
23864     elif test "x$with_version_patch" = x; then
23865       VERSION_PATCH=0
23866     else
23867 
23868   # Additional [] needed to keep m4 from mangling shell constructs.
23869   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23870     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
23871   fi
23872   # Extract the version number without leading zeros.
23873   cleaned_value=${BASH_REMATCH[1]}
23874   if test "x$cleaned_value" = x; then
23875     # Special case for zero
23876     cleaned_value=${BASH_REMATCH[2]}
23877   fi
23878 
23879   if test $cleaned_value -gt 255; then
23880     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
23881   fi
23882   if test "x$cleaned_value" != "x$with_version_patch"; then
23883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
23884 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
23885   fi
23886   VERSION_PATCH=$cleaned_value
23887 
23888     fi
23889   else
23890     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23891       # Default is 0, if unspecified
23892       VERSION_PATCH=0
23893     fi
23894   fi
23895 
23896   # Calculate derived version properties
23897 
23898   # Set VERSION_IS_GA based on if VERSION_PRE has a value
23899   if test "x$VERSION_PRE" = x; then
23900     VERSION_IS_GA=true
23901   else
23902     VERSION_IS_GA=false
23903   fi
23904 
23905   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
23906   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
23907 
23908   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
23909   # Strip trailing zeroes from stripped_version_number
23910   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
23911   VERSION_NUMBER=$stripped_version_number
23912 
23913   # The complete version string, with additional build information
23914   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
23915     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23916   else
23917     # If either build or opt is set, we need a + separator
23918     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
23919   fi
23920 
23921   # The short version string, just VERSION_NUMBER and PRE, if present.
23922   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23923 
23924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
23925 $as_echo_n "checking for version string... " >&6; }
23926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
23927 $as_echo "$VERSION_STRING" >&6; }
23928 
23929 
23930 
23931 
23932 
23933 
23934 
23935 
23936 
23937 
23938 
23939 
23940 
23941 
23942 
23943 ###############################################################################
23944 #
23945 # Setup BootJDK, used to bootstrap the build.
23946 #
23947 ###############################################################################
23948 
23949 
23950   BOOT_JDK_FOUND=no
23951 
23952 # Check whether --with-boot-jdk was given.
23953 if test "${with_boot_jdk+set}" = set; then :
23954   withval=$with_boot_jdk;
23955 fi
23956 
23957 
23958   # We look for the Boot JDK through various means, going from more certain to
23959   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23960   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23961   # must check if this is indeed valid; otherwise we'll continue looking.
23962 
23963   # Test: Is bootjdk explicitely set by command line arguments?
23964 
23965   if test "x$BOOT_JDK_FOUND" = xno; then
23966     # Now execute the test
23967 
23968   if test "x$with_boot_jdk" != x; then
23969     BOOT_JDK=$with_boot_jdk
23970     BOOT_JDK_FOUND=maybe
23971     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23972 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23973   fi
23974 
23975 
23976     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23977     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23978       # Do we have a bin/java?
23979       if test ! -x "$BOOT_JDK/bin/java"; then
23980         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23981 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23982         BOOT_JDK_FOUND=no
23983       else
23984         # Do we have a bin/javac?
23985         if test ! -x "$BOOT_JDK/bin/javac"; then
23986           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23988           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23989 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23990           BOOT_JDK_FOUND=no
23991         else
23992           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23993           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23994 
23995           # Extra M4 quote needed to protect [] in grep expression.
23996           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
23997           if test "x$FOUND_CORRECT_VERSION" = x; then
23998             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23999 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24000             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24001 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24002             BOOT_JDK_FOUND=no
24003           else
24004             # We're done! :-)
24005             BOOT_JDK_FOUND=yes
24006 
24007   # Only process if variable expands to non-empty
24008 
24009   if test "x$BOOT_JDK" != x; then
24010     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24011 
24012   # Input might be given as Windows format, start by converting to
24013   # unix format.
24014   path="$BOOT_JDK"
24015   new_path=`$CYGPATH -u "$path"`
24016 
24017   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24018   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24019   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24020   # "foo.exe" is OK but "foo" is an error.
24021   #
24022   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24023   # It is also a way to make sure we got the proper file name for the real test later on.
24024   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24025   if test "x$test_shortpath" = x; then
24026     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24027 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24028     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24029   fi
24030 
24031   # Call helper function which possibly converts this using DOS-style short mode.
24032   # If so, the updated path is stored in $new_path.
24033 
24034   input_path="$new_path"
24035   # Check if we need to convert this using DOS-style short mode. If the path
24036   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24037   # take no chances and rewrite it.
24038   # Note: m4 eats our [], so we need to use [ and ] instead.
24039   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24040   if test "x$has_forbidden_chars" != x; then
24041     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24042     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24043     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24044     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24045       # Going to short mode and back again did indeed matter. Since short mode is
24046       # case insensitive, let's make it lowercase to improve readability.
24047       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24048       # Now convert it back to Unix-style (cygpath)
24049       input_path=`$CYGPATH -u "$shortmode_path"`
24050       new_path="$input_path"
24051     fi
24052   fi
24053 
24054   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24055   if test "x$test_cygdrive_prefix" = x; then
24056     # As a simple fix, exclude /usr/bin since it's not a real path.
24057     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24058       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24059       # a path prefixed by /cygdrive for fixpath to work.
24060       new_path="$CYGWIN_ROOT_PATH$input_path"
24061     fi
24062   fi
24063 
24064 
24065   if test "x$path" != "x$new_path"; then
24066     BOOT_JDK="$new_path"
24067     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24068 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24069   fi
24070 
24071     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24072 
24073   path="$BOOT_JDK"
24074   has_colon=`$ECHO $path | $GREP ^.:`
24075   new_path="$path"
24076   if test "x$has_colon" = x; then
24077     # Not in mixed or Windows style, start by that.
24078     new_path=`cmd //c echo $path`
24079   fi
24080 
24081 
24082   input_path="$new_path"
24083   # Check if we need to convert this using DOS-style short mode. If the path
24084   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24085   # take no chances and rewrite it.
24086   # Note: m4 eats our [], so we need to use [ and ] instead.
24087   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24088   if test "x$has_forbidden_chars" != x; then
24089     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24090     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24091   fi
24092 
24093 
24094   windows_path="$new_path"
24095   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24096     unix_path=`$CYGPATH -u "$windows_path"`
24097     new_path="$unix_path"
24098   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24099     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24100     new_path="$unix_path"
24101   fi
24102 
24103   if test "x$path" != "x$new_path"; then
24104     BOOT_JDK="$new_path"
24105     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24106 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24107   fi
24108 
24109   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24110   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24111 
24112     else
24113       # We're on a unix platform. Hooray! :)
24114       path="$BOOT_JDK"
24115       has_space=`$ECHO "$path" | $GREP " "`
24116       if test "x$has_space" != x; then
24117         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24118 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24119         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24120       fi
24121 
24122       # Use eval to expand a potential ~
24123       eval path="$path"
24124       if test ! -f "$path" && test ! -d "$path"; then
24125         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24126       fi
24127 
24128       if test -d "$path"; then
24129         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24130       else
24131         dir="`$DIRNAME "$path"`"
24132         base="`$BASENAME "$path"`"
24133         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24134       fi
24135     fi
24136   fi
24137 
24138             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24139 $as_echo_n "checking for Boot JDK... " >&6; }
24140             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24141 $as_echo "$BOOT_JDK" >&6; }
24142             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24143 $as_echo_n "checking Boot JDK version... " >&6; }
24144             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24145             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24146 $as_echo "$BOOT_JDK_VERSION" >&6; }
24147           fi # end check jdk version
24148         fi # end check javac
24149       fi # end check java
24150     fi # end check boot jdk found
24151   fi
24152 
24153   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
24154     # Having specified an argument which is incorrect will produce an instant failure;
24155     # we should not go on looking
24156     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
24157   fi
24158 
24159   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
24160 
24161   if test "x$BOOT_JDK_FOUND" = xno; then
24162     # Now execute the test
24163 
24164   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
24165     # First check at user selected default
24166 
24167   if test "x$BOOT_JDK_FOUND" = xno; then
24168     # Now execute the test
24169 
24170   if test -x /usr/libexec/java_home; then
24171     BOOT_JDK=`/usr/libexec/java_home `
24172     BOOT_JDK_FOUND=maybe
24173     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
24174 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
24175   fi
24176 
24177 
24178     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24179     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24180       # Do we have a bin/java?
24181       if test ! -x "$BOOT_JDK/bin/java"; then
24182         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24184         BOOT_JDK_FOUND=no
24185       else
24186         # Do we have a bin/javac?
24187         if test ! -x "$BOOT_JDK/bin/javac"; then
24188           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24189 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24190           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24191 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24192           BOOT_JDK_FOUND=no
24193         else
24194           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24195           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24196 
24197           # Extra M4 quote needed to protect [] in grep expression.
24198           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24199           if test "x$FOUND_CORRECT_VERSION" = x; then
24200             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24201 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24202             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24203 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24204             BOOT_JDK_FOUND=no
24205           else
24206             # We're done! :-)
24207             BOOT_JDK_FOUND=yes
24208 
24209   # Only process if variable expands to non-empty
24210 
24211   if test "x$BOOT_JDK" != x; then
24212     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24213 
24214   # Input might be given as Windows format, start by converting to
24215   # unix format.
24216   path="$BOOT_JDK"
24217   new_path=`$CYGPATH -u "$path"`
24218 
24219   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24220   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24221   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24222   # "foo.exe" is OK but "foo" is an error.
24223   #
24224   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24225   # It is also a way to make sure we got the proper file name for the real test later on.
24226   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24227   if test "x$test_shortpath" = x; then
24228     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24229 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24230     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24231   fi
24232 
24233   # Call helper function which possibly converts this using DOS-style short mode.
24234   # If so, the updated path is stored in $new_path.
24235 
24236   input_path="$new_path"
24237   # Check if we need to convert this using DOS-style short mode. If the path
24238   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24239   # take no chances and rewrite it.
24240   # Note: m4 eats our [], so we need to use [ and ] instead.
24241   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24242   if test "x$has_forbidden_chars" != x; then
24243     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24244     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24245     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24246     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24247       # Going to short mode and back again did indeed matter. Since short mode is
24248       # case insensitive, let's make it lowercase to improve readability.
24249       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24250       # Now convert it back to Unix-style (cygpath)
24251       input_path=`$CYGPATH -u "$shortmode_path"`
24252       new_path="$input_path"
24253     fi
24254   fi
24255 
24256   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24257   if test "x$test_cygdrive_prefix" = x; then
24258     # As a simple fix, exclude /usr/bin since it's not a real path.
24259     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24260       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24261       # a path prefixed by /cygdrive for fixpath to work.
24262       new_path="$CYGWIN_ROOT_PATH$input_path"
24263     fi
24264   fi
24265 
24266 
24267   if test "x$path" != "x$new_path"; then
24268     BOOT_JDK="$new_path"
24269     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24270 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24271   fi
24272 
24273     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24274 
24275   path="$BOOT_JDK"
24276   has_colon=`$ECHO $path | $GREP ^.:`
24277   new_path="$path"
24278   if test "x$has_colon" = x; then
24279     # Not in mixed or Windows style, start by that.
24280     new_path=`cmd //c echo $path`
24281   fi
24282 
24283 
24284   input_path="$new_path"
24285   # Check if we need to convert this using DOS-style short mode. If the path
24286   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24287   # take no chances and rewrite it.
24288   # Note: m4 eats our [], so we need to use [ and ] instead.
24289   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24290   if test "x$has_forbidden_chars" != x; then
24291     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24292     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24293   fi
24294 
24295 
24296   windows_path="$new_path"
24297   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24298     unix_path=`$CYGPATH -u "$windows_path"`
24299     new_path="$unix_path"
24300   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24301     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24302     new_path="$unix_path"
24303   fi
24304 
24305   if test "x$path" != "x$new_path"; then
24306     BOOT_JDK="$new_path"
24307     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24308 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24309   fi
24310 
24311   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24312   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24313 
24314     else
24315       # We're on a unix platform. Hooray! :)
24316       path="$BOOT_JDK"
24317       has_space=`$ECHO "$path" | $GREP " "`
24318       if test "x$has_space" != x; then
24319         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24320 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24321         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24322       fi
24323 
24324       # Use eval to expand a potential ~
24325       eval path="$path"
24326       if test ! -f "$path" && test ! -d "$path"; then
24327         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24328       fi
24329 
24330       if test -d "$path"; then
24331         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24332       else
24333         dir="`$DIRNAME "$path"`"
24334         base="`$BASENAME "$path"`"
24335         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24336       fi
24337     fi
24338   fi
24339 
24340             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24341 $as_echo_n "checking for Boot JDK... " >&6; }
24342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24343 $as_echo "$BOOT_JDK" >&6; }
24344             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24345 $as_echo_n "checking Boot JDK version... " >&6; }
24346             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24347             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24348 $as_echo "$BOOT_JDK_VERSION" >&6; }
24349           fi # end check jdk version
24350         fi # end check javac
24351       fi # end check java
24352     fi # end check boot jdk found
24353   fi
24354 
24355     # If that did not work out (e.g. too old), try explicit versions instead
24356 
24357   if test "x$BOOT_JDK_FOUND" = xno; then
24358     # Now execute the test
24359 
24360   if test -x /usr/libexec/java_home; then
24361     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
24362     BOOT_JDK_FOUND=maybe
24363     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
24364 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
24365   fi
24366 
24367 
24368     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24369     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24370       # Do we have a bin/java?
24371       if test ! -x "$BOOT_JDK/bin/java"; then
24372         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24373 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24374         BOOT_JDK_FOUND=no
24375       else
24376         # Do we have a bin/javac?
24377         if test ! -x "$BOOT_JDK/bin/javac"; then
24378           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24380           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24381 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24382           BOOT_JDK_FOUND=no
24383         else
24384           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24385           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24386 
24387           # Extra M4 quote needed to protect [] in grep expression.
24388           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24389           if test "x$FOUND_CORRECT_VERSION" = x; then
24390             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24391 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24392             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24393 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24394             BOOT_JDK_FOUND=no
24395           else
24396             # We're done! :-)
24397             BOOT_JDK_FOUND=yes
24398 
24399   # Only process if variable expands to non-empty
24400 
24401   if test "x$BOOT_JDK" != x; then
24402     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24403 
24404   # Input might be given as Windows format, start by converting to
24405   # unix format.
24406   path="$BOOT_JDK"
24407   new_path=`$CYGPATH -u "$path"`
24408 
24409   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24410   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24411   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24412   # "foo.exe" is OK but "foo" is an error.
24413   #
24414   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24415   # It is also a way to make sure we got the proper file name for the real test later on.
24416   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24417   if test "x$test_shortpath" = x; then
24418     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24419 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24420     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24421   fi
24422 
24423   # Call helper function which possibly converts this using DOS-style short mode.
24424   # If so, the updated path is stored in $new_path.
24425 
24426   input_path="$new_path"
24427   # Check if we need to convert this using DOS-style short mode. If the path
24428   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24429   # take no chances and rewrite it.
24430   # Note: m4 eats our [], so we need to use [ and ] instead.
24431   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24432   if test "x$has_forbidden_chars" != x; then
24433     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24434     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24435     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24436     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24437       # Going to short mode and back again did indeed matter. Since short mode is
24438       # case insensitive, let's make it lowercase to improve readability.
24439       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24440       # Now convert it back to Unix-style (cygpath)
24441       input_path=`$CYGPATH -u "$shortmode_path"`
24442       new_path="$input_path"
24443     fi
24444   fi
24445 
24446   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24447   if test "x$test_cygdrive_prefix" = x; then
24448     # As a simple fix, exclude /usr/bin since it's not a real path.
24449     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24450       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24451       # a path prefixed by /cygdrive for fixpath to work.
24452       new_path="$CYGWIN_ROOT_PATH$input_path"
24453     fi
24454   fi
24455 
24456 
24457   if test "x$path" != "x$new_path"; then
24458     BOOT_JDK="$new_path"
24459     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24460 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24461   fi
24462 
24463     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24464 
24465   path="$BOOT_JDK"
24466   has_colon=`$ECHO $path | $GREP ^.:`
24467   new_path="$path"
24468   if test "x$has_colon" = x; then
24469     # Not in mixed or Windows style, start by that.
24470     new_path=`cmd //c echo $path`
24471   fi
24472 
24473 
24474   input_path="$new_path"
24475   # Check if we need to convert this using DOS-style short mode. If the path
24476   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24477   # take no chances and rewrite it.
24478   # Note: m4 eats our [], so we need to use [ and ] instead.
24479   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24480   if test "x$has_forbidden_chars" != x; then
24481     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24482     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24483   fi
24484 
24485 
24486   windows_path="$new_path"
24487   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24488     unix_path=`$CYGPATH -u "$windows_path"`
24489     new_path="$unix_path"
24490   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24491     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24492     new_path="$unix_path"
24493   fi
24494 
24495   if test "x$path" != "x$new_path"; then
24496     BOOT_JDK="$new_path"
24497     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24499   fi
24500 
24501   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24502   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24503 
24504     else
24505       # We're on a unix platform. Hooray! :)
24506       path="$BOOT_JDK"
24507       has_space=`$ECHO "$path" | $GREP " "`
24508       if test "x$has_space" != x; then
24509         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24510 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24511         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24512       fi
24513 
24514       # Use eval to expand a potential ~
24515       eval path="$path"
24516       if test ! -f "$path" && test ! -d "$path"; then
24517         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24518       fi
24519 
24520       if test -d "$path"; then
24521         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24522       else
24523         dir="`$DIRNAME "$path"`"
24524         base="`$BASENAME "$path"`"
24525         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24526       fi
24527     fi
24528   fi
24529 
24530             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24531 $as_echo_n "checking for Boot JDK... " >&6; }
24532             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24533 $as_echo "$BOOT_JDK" >&6; }
24534             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24535 $as_echo_n "checking Boot JDK version... " >&6; }
24536             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24537             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24538 $as_echo "$BOOT_JDK_VERSION" >&6; }
24539           fi # end check jdk version
24540         fi # end check javac
24541       fi # end check java
24542     fi # end check boot jdk found
24543   fi
24544 
24545 
24546   if test "x$BOOT_JDK_FOUND" = xno; then
24547     # Now execute the test
24548 
24549   if test -x /usr/libexec/java_home; then
24550     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
24551     BOOT_JDK_FOUND=maybe
24552     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
24553 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
24554   fi
24555 
24556 
24557     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24558     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24559       # Do we have a bin/java?
24560       if test ! -x "$BOOT_JDK/bin/java"; then
24561         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24562 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24563         BOOT_JDK_FOUND=no
24564       else
24565         # Do we have a bin/javac?
24566         if test ! -x "$BOOT_JDK/bin/javac"; then
24567           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24568 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24569           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24570 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24571           BOOT_JDK_FOUND=no
24572         else
24573           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24574           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24575 
24576           # Extra M4 quote needed to protect [] in grep expression.
24577           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24578           if test "x$FOUND_CORRECT_VERSION" = x; then
24579             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24581             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24582 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24583             BOOT_JDK_FOUND=no
24584           else
24585             # We're done! :-)
24586             BOOT_JDK_FOUND=yes
24587 
24588   # Only process if variable expands to non-empty
24589 
24590   if test "x$BOOT_JDK" != x; then
24591     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24592 
24593   # Input might be given as Windows format, start by converting to
24594   # unix format.
24595   path="$BOOT_JDK"
24596   new_path=`$CYGPATH -u "$path"`
24597 
24598   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24599   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24600   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24601   # "foo.exe" is OK but "foo" is an error.
24602   #
24603   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24604   # It is also a way to make sure we got the proper file name for the real test later on.
24605   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24606   if test "x$test_shortpath" = x; then
24607     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24609     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24610   fi
24611 
24612   # Call helper function which possibly converts this using DOS-style short mode.
24613   # If so, the updated path is stored in $new_path.
24614 
24615   input_path="$new_path"
24616   # Check if we need to convert this using DOS-style short mode. If the path
24617   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24618   # take no chances and rewrite it.
24619   # Note: m4 eats our [], so we need to use [ and ] instead.
24620   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24621   if test "x$has_forbidden_chars" != x; then
24622     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24623     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24624     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24625     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24626       # Going to short mode and back again did indeed matter. Since short mode is
24627       # case insensitive, let's make it lowercase to improve readability.
24628       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24629       # Now convert it back to Unix-style (cygpath)
24630       input_path=`$CYGPATH -u "$shortmode_path"`
24631       new_path="$input_path"
24632     fi
24633   fi
24634 
24635   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24636   if test "x$test_cygdrive_prefix" = x; then
24637     # As a simple fix, exclude /usr/bin since it's not a real path.
24638     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24639       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24640       # a path prefixed by /cygdrive for fixpath to work.
24641       new_path="$CYGWIN_ROOT_PATH$input_path"
24642     fi
24643   fi
24644 
24645 
24646   if test "x$path" != "x$new_path"; then
24647     BOOT_JDK="$new_path"
24648     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24649 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24650   fi
24651 
24652     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24653 
24654   path="$BOOT_JDK"
24655   has_colon=`$ECHO $path | $GREP ^.:`
24656   new_path="$path"
24657   if test "x$has_colon" = x; then
24658     # Not in mixed or Windows style, start by that.
24659     new_path=`cmd //c echo $path`
24660   fi
24661 
24662 
24663   input_path="$new_path"
24664   # Check if we need to convert this using DOS-style short mode. If the path
24665   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24666   # take no chances and rewrite it.
24667   # Note: m4 eats our [], so we need to use [ and ] instead.
24668   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24669   if test "x$has_forbidden_chars" != x; then
24670     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24671     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24672   fi
24673 
24674 
24675   windows_path="$new_path"
24676   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24677     unix_path=`$CYGPATH -u "$windows_path"`
24678     new_path="$unix_path"
24679   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24680     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24681     new_path="$unix_path"
24682   fi
24683 
24684   if test "x$path" != "x$new_path"; then
24685     BOOT_JDK="$new_path"
24686     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24687 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24688   fi
24689 
24690   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24691   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24692 
24693     else
24694       # We're on a unix platform. Hooray! :)
24695       path="$BOOT_JDK"
24696       has_space=`$ECHO "$path" | $GREP " "`
24697       if test "x$has_space" != x; then
24698         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24700         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24701       fi
24702 
24703       # Use eval to expand a potential ~
24704       eval path="$path"
24705       if test ! -f "$path" && test ! -d "$path"; then
24706         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24707       fi
24708 
24709       if test -d "$path"; then
24710         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24711       else
24712         dir="`$DIRNAME "$path"`"
24713         base="`$BASENAME "$path"`"
24714         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24715       fi
24716     fi
24717   fi
24718 
24719             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24720 $as_echo_n "checking for Boot JDK... " >&6; }
24721             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24722 $as_echo "$BOOT_JDK" >&6; }
24723             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24724 $as_echo_n "checking Boot JDK version... " >&6; }
24725             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24726             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24727 $as_echo "$BOOT_JDK_VERSION" >&6; }
24728           fi # end check jdk version
24729         fi # end check javac
24730       fi # end check java
24731     fi # end check boot jdk found
24732   fi
24733 
24734 
24735   if test "x$BOOT_JDK_FOUND" = xno; then
24736     # Now execute the test
24737 
24738   if test -x /usr/libexec/java_home; then
24739     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
24740     BOOT_JDK_FOUND=maybe
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
24742 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
24743   fi
24744 
24745 
24746     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24747     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24748       # Do we have a bin/java?
24749       if test ! -x "$BOOT_JDK/bin/java"; then
24750         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24752         BOOT_JDK_FOUND=no
24753       else
24754         # Do we have a bin/javac?
24755         if test ! -x "$BOOT_JDK/bin/javac"; then
24756           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24758           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24759 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24760           BOOT_JDK_FOUND=no
24761         else
24762           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24763           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24764 
24765           # Extra M4 quote needed to protect [] in grep expression.
24766           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24767           if test "x$FOUND_CORRECT_VERSION" = x; then
24768             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24770             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24771 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24772             BOOT_JDK_FOUND=no
24773           else
24774             # We're done! :-)
24775             BOOT_JDK_FOUND=yes
24776 
24777   # Only process if variable expands to non-empty
24778 
24779   if test "x$BOOT_JDK" != x; then
24780     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24781 
24782   # Input might be given as Windows format, start by converting to
24783   # unix format.
24784   path="$BOOT_JDK"
24785   new_path=`$CYGPATH -u "$path"`
24786 
24787   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24788   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24789   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24790   # "foo.exe" is OK but "foo" is an error.
24791   #
24792   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24793   # It is also a way to make sure we got the proper file name for the real test later on.
24794   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24795   if test "x$test_shortpath" = x; then
24796     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24797 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24798     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24799   fi
24800 
24801   # Call helper function which possibly converts this using DOS-style short mode.
24802   # If so, the updated path is stored in $new_path.
24803 
24804   input_path="$new_path"
24805   # Check if we need to convert this using DOS-style short mode. If the path
24806   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24807   # take no chances and rewrite it.
24808   # Note: m4 eats our [], so we need to use [ and ] instead.
24809   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24810   if test "x$has_forbidden_chars" != x; then
24811     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24812     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24813     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24814     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24815       # Going to short mode and back again did indeed matter. Since short mode is
24816       # case insensitive, let's make it lowercase to improve readability.
24817       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24818       # Now convert it back to Unix-style (cygpath)
24819       input_path=`$CYGPATH -u "$shortmode_path"`
24820       new_path="$input_path"
24821     fi
24822   fi
24823 
24824   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24825   if test "x$test_cygdrive_prefix" = x; then
24826     # As a simple fix, exclude /usr/bin since it's not a real path.
24827     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24828       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24829       # a path prefixed by /cygdrive for fixpath to work.
24830       new_path="$CYGWIN_ROOT_PATH$input_path"
24831     fi
24832   fi
24833 
24834 
24835   if test "x$path" != "x$new_path"; then
24836     BOOT_JDK="$new_path"
24837     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24838 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24839   fi
24840 
24841     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24842 
24843   path="$BOOT_JDK"
24844   has_colon=`$ECHO $path | $GREP ^.:`
24845   new_path="$path"
24846   if test "x$has_colon" = x; then
24847     # Not in mixed or Windows style, start by that.
24848     new_path=`cmd //c echo $path`
24849   fi
24850 
24851 
24852   input_path="$new_path"
24853   # Check if we need to convert this using DOS-style short mode. If the path
24854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24855   # take no chances and rewrite it.
24856   # Note: m4 eats our [], so we need to use [ and ] instead.
24857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24858   if test "x$has_forbidden_chars" != x; then
24859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24860     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24861   fi
24862 
24863 
24864   windows_path="$new_path"
24865   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24866     unix_path=`$CYGPATH -u "$windows_path"`
24867     new_path="$unix_path"
24868   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24869     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24870     new_path="$unix_path"
24871   fi
24872 
24873   if test "x$path" != "x$new_path"; then
24874     BOOT_JDK="$new_path"
24875     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24877   fi
24878 
24879   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24880   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24881 
24882     else
24883       # We're on a unix platform. Hooray! :)
24884       path="$BOOT_JDK"
24885       has_space=`$ECHO "$path" | $GREP " "`
24886       if test "x$has_space" != x; then
24887         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24888 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24889         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24890       fi
24891 
24892       # Use eval to expand a potential ~
24893       eval path="$path"
24894       if test ! -f "$path" && test ! -d "$path"; then
24895         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24896       fi
24897 
24898       if test -d "$path"; then
24899         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24900       else
24901         dir="`$DIRNAME "$path"`"
24902         base="`$BASENAME "$path"`"
24903         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24904       fi
24905     fi
24906   fi
24907 
24908             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24909 $as_echo_n "checking for Boot JDK... " >&6; }
24910             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24911 $as_echo "$BOOT_JDK" >&6; }
24912             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24913 $as_echo_n "checking Boot JDK version... " >&6; }
24914             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24915             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24916 $as_echo "$BOOT_JDK_VERSION" >&6; }
24917           fi # end check jdk version
24918         fi # end check javac
24919       fi # end check java
24920     fi # end check boot jdk found
24921   fi
24922 
24923   fi
24924 
24925 
24926     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24927     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24928       # Do we have a bin/java?
24929       if test ! -x "$BOOT_JDK/bin/java"; then
24930         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24931 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24932         BOOT_JDK_FOUND=no
24933       else
24934         # Do we have a bin/javac?
24935         if test ! -x "$BOOT_JDK/bin/javac"; then
24936           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24938           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24939 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24940           BOOT_JDK_FOUND=no
24941         else
24942           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24943           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24944 
24945           # Extra M4 quote needed to protect [] in grep expression.
24946           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24947           if test "x$FOUND_CORRECT_VERSION" = x; then
24948             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24949 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24950             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24951 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24952             BOOT_JDK_FOUND=no
24953           else
24954             # We're done! :-)
24955             BOOT_JDK_FOUND=yes
24956 
24957   # Only process if variable expands to non-empty
24958 
24959   if test "x$BOOT_JDK" != x; then
24960     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24961 
24962   # Input might be given as Windows format, start by converting to
24963   # unix format.
24964   path="$BOOT_JDK"
24965   new_path=`$CYGPATH -u "$path"`
24966 
24967   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24968   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24969   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24970   # "foo.exe" is OK but "foo" is an error.
24971   #
24972   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24973   # It is also a way to make sure we got the proper file name for the real test later on.
24974   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24975   if test "x$test_shortpath" = x; then
24976     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24977 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24978     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24979   fi
24980 
24981   # Call helper function which possibly converts this using DOS-style short mode.
24982   # If so, the updated path is stored in $new_path.
24983 
24984   input_path="$new_path"
24985   # Check if we need to convert this using DOS-style short mode. If the path
24986   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24987   # take no chances and rewrite it.
24988   # Note: m4 eats our [], so we need to use [ and ] instead.
24989   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24990   if test "x$has_forbidden_chars" != x; then
24991     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24992     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24993     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24994     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24995       # Going to short mode and back again did indeed matter. Since short mode is
24996       # case insensitive, let's make it lowercase to improve readability.
24997       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24998       # Now convert it back to Unix-style (cygpath)
24999       input_path=`$CYGPATH -u "$shortmode_path"`
25000       new_path="$input_path"
25001     fi
25002   fi
25003 
25004   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25005   if test "x$test_cygdrive_prefix" = x; then
25006     # As a simple fix, exclude /usr/bin since it's not a real path.
25007     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25008       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25009       # a path prefixed by /cygdrive for fixpath to work.
25010       new_path="$CYGWIN_ROOT_PATH$input_path"
25011     fi
25012   fi
25013 
25014 
25015   if test "x$path" != "x$new_path"; then
25016     BOOT_JDK="$new_path"
25017     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25018 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25019   fi
25020 
25021     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25022 
25023   path="$BOOT_JDK"
25024   has_colon=`$ECHO $path | $GREP ^.:`
25025   new_path="$path"
25026   if test "x$has_colon" = x; then
25027     # Not in mixed or Windows style, start by that.
25028     new_path=`cmd //c echo $path`
25029   fi
25030 
25031 
25032   input_path="$new_path"
25033   # Check if we need to convert this using DOS-style short mode. If the path
25034   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25035   # take no chances and rewrite it.
25036   # Note: m4 eats our [], so we need to use [ and ] instead.
25037   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25038   if test "x$has_forbidden_chars" != x; then
25039     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25040     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25041   fi
25042 
25043 
25044   windows_path="$new_path"
25045   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25046     unix_path=`$CYGPATH -u "$windows_path"`
25047     new_path="$unix_path"
25048   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25049     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25050     new_path="$unix_path"
25051   fi
25052 
25053   if test "x$path" != "x$new_path"; then
25054     BOOT_JDK="$new_path"
25055     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25056 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25057   fi
25058 
25059   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25060   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25061 
25062     else
25063       # We're on a unix platform. Hooray! :)
25064       path="$BOOT_JDK"
25065       has_space=`$ECHO "$path" | $GREP " "`
25066       if test "x$has_space" != x; then
25067         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25068 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25069         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25070       fi
25071 
25072       # Use eval to expand a potential ~
25073       eval path="$path"
25074       if test ! -f "$path" && test ! -d "$path"; then
25075         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25076       fi
25077 
25078       if test -d "$path"; then
25079         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25080       else
25081         dir="`$DIRNAME "$path"`"
25082         base="`$BASENAME "$path"`"
25083         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25084       fi
25085     fi
25086   fi
25087 
25088             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25089 $as_echo_n "checking for Boot JDK... " >&6; }
25090             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25091 $as_echo "$BOOT_JDK" >&6; }
25092             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25093 $as_echo_n "checking Boot JDK version... " >&6; }
25094             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25095             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25096 $as_echo "$BOOT_JDK_VERSION" >&6; }
25097           fi # end check jdk version
25098         fi # end check javac
25099       fi # end check java
25100     fi # end check boot jdk found
25101   fi
25102 
25103 
25104   # Test: Is $JAVA_HOME set?
25105 
25106   if test "x$BOOT_JDK_FOUND" = xno; then
25107     # Now execute the test
25108 
25109   if test "x$JAVA_HOME" != x; then
25110     JAVA_HOME_PROCESSED="$JAVA_HOME"
25111 
25112   # Only process if variable expands to non-empty
25113 
25114   if test "x$JAVA_HOME_PROCESSED" != x; then
25115     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25116 
25117   # Input might be given as Windows format, start by converting to
25118   # unix format.
25119   path="$JAVA_HOME_PROCESSED"
25120   new_path=`$CYGPATH -u "$path"`
25121 
25122   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25123   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25124   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25125   # "foo.exe" is OK but "foo" is an error.
25126   #
25127   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25128   # It is also a way to make sure we got the proper file name for the real test later on.
25129   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25130   if test "x$test_shortpath" = x; then
25131     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
25132 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
25133     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
25134   fi
25135 
25136   # Call helper function which possibly converts this using DOS-style short mode.
25137   # If so, the updated path is stored in $new_path.
25138 
25139   input_path="$new_path"
25140   # Check if we need to convert this using DOS-style short mode. If the path
25141   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25142   # take no chances and rewrite it.
25143   # Note: m4 eats our [], so we need to use [ and ] instead.
25144   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25145   if test "x$has_forbidden_chars" != x; then
25146     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25147     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25148     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25149     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25150       # Going to short mode and back again did indeed matter. Since short mode is
25151       # case insensitive, let's make it lowercase to improve readability.
25152       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25153       # Now convert it back to Unix-style (cygpath)
25154       input_path=`$CYGPATH -u "$shortmode_path"`
25155       new_path="$input_path"
25156     fi
25157   fi
25158 
25159   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25160   if test "x$test_cygdrive_prefix" = x; then
25161     # As a simple fix, exclude /usr/bin since it's not a real path.
25162     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25163       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25164       # a path prefixed by /cygdrive for fixpath to work.
25165       new_path="$CYGWIN_ROOT_PATH$input_path"
25166     fi
25167   fi
25168 
25169 
25170   if test "x$path" != "x$new_path"; then
25171     JAVA_HOME_PROCESSED="$new_path"
25172     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
25173 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
25174   fi
25175 
25176     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25177 
25178   path="$JAVA_HOME_PROCESSED"
25179   has_colon=`$ECHO $path | $GREP ^.:`
25180   new_path="$path"
25181   if test "x$has_colon" = x; then
25182     # Not in mixed or Windows style, start by that.
25183     new_path=`cmd //c echo $path`
25184   fi
25185 
25186 
25187   input_path="$new_path"
25188   # Check if we need to convert this using DOS-style short mode. If the path
25189   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25190   # take no chances and rewrite it.
25191   # Note: m4 eats our [], so we need to use [ and ] in