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 ENABLE_INTREE_EC
 654 HOTSPOT_MAKE_ARGS
 655 LIBZIP_CAN_USE_MMAP
 656 LIBDL
 657 LIBM
 658 USE_EXTERNAL_LCMS
 659 LCMS_LIBS
 660 LCMS_CFLAGS
 661 USE_EXTERNAL_LIBZ
 662 USE_EXTERNAL_LIBPNG
 663 PNG_LIBS
 664 PNG_CFLAGS
 665 USE_EXTERNAL_LIBGIF
 666 USE_EXTERNAL_LIBJPEG
 667 LLVM_LIBS
 668 LLVM_LDFLAGS
 669 LLVM_CFLAGS
 670 LLVM_CONFIG
 671 LIBFFI_LIBS
 672 LIBFFI_CFLAGS
 673 ALSA_LIBS
 674 ALSA_CFLAGS
 675 FREETYPE_BUNDLE_LIB_PATH
 676 FREETYPE_LIBS
 677 FREETYPE_CFLAGS
 678 CUPS_CFLAGS
 679 X_EXTRA_LIBS
 680 X_LIBS
 681 X_PRE_LIBS
 682 X_CFLAGS
 683 XMKMF
 684 MSVCP_DLL
 685 MSVCR_DLL
 686 LIBCXX
 687 STATIC_CXX_SETTING
 688 FIXPATH_DETACH_FLAG
 689 FIXPATH
 690 GCOV_ENABLED
 691 STRIP_POLICY
 692 DEBUG_BINARIES
 693 ZIP_EXTERNAL_DEBUG_SYMBOLS
 694 COPY_DEBUG_SYMBOLS
 695 COMPILE_WITH_DEBUG_SYMBOLS
 696 CFLAGS_WARNINGS_ARE_ERRORS
 697 BUILD_CC_DISABLE_WARNING_PREFIX
 698 DISABLE_WARNING_PREFIX
 699 HOTSPOT_SET_WARNINGS_AS_ERRORS
 700 WARNINGS_AS_ERRORS
 701 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 702 ZERO_ARCHFLAG
 703 LDFLAGS_TESTEXE
 704 LDFLAGS_TESTLIB
 705 LDFLAGS_HASH_STYLE
 706 LDFLAGS_CXX_JDK
 707 JDKEXE_LIBS
 708 JDKLIB_LIBS
 709 OPENJDK_BUILD_LDFLAGS_JDKEXE
 710 OPENJDK_BUILD_LDFLAGS_JDKLIB
 711 LDFLAGS_JDKEXE
 712 LDFLAGS_JDKLIB
 713 CXXFLAGS_TESTEXE
 714 CXXFLAGS_TESTLIB
 715 CFLAGS_TESTEXE
 716 CFLAGS_TESTLIB
 717 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 718 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 719 OPENJDK_BUILD_CFLAGS_JDKEXE
 720 OPENJDK_BUILD_CFLAGS_JDKLIB
 721 CXXFLAGS_JDKEXE
 722 CXXFLAGS_JDKLIB
 723 CFLAGS_JDKEXE
 724 CFLAGS_JDKLIB
 725 MACOSX_VERSION_MIN
 726 NO_LIFETIME_DSE_CFLAG
 727 NO_NULL_POINTER_CHECK_CFLAG
 728 CXXSTD_CXXFLAG
 729 CXX_O_FLAG_NONE
 730 CXX_O_FLAG_DEBUG
 731 CXX_O_FLAG_NORM
 732 CXX_O_FLAG_HI
 733 CXX_O_FLAG_HIGHEST
 734 C_O_FLAG_NONE
 735 C_O_FLAG_DEBUG
 736 C_O_FLAG_NORM
 737 C_O_FLAG_HI
 738 C_O_FLAG_HIGHEST
 739 CXXFLAGS_DEBUG_SYMBOLS
 740 CFLAGS_DEBUG_SYMBOLS
 741 CXX_FLAG_DEPS
 742 C_FLAG_DEPS
 743 SHARED_LIBRARY_FLAGS
 744 SET_SHARED_LIBRARY_MAPFILE
 745 SET_SHARED_LIBRARY_NAME
 746 SET_SHARED_LIBRARY_ORIGIN
 747 SET_EXECUTABLE_ORIGIN
 748 CXX_FLAG_REORDER
 749 C_FLAG_REORDER
 750 RC_FLAGS
 751 AR_OUT_OPTION
 752 LD_OUT_OPTION
 753 EXE_OUT_OPTION
 754 CC_OUT_OPTION
 755 STRIPFLAGS
 756 ARFLAGS
 757 COMPILER_BINDCMD_FILE_FLAG
 758 COMPILER_COMMAND_FILE_FLAG
 759 COMPILER_TARGET_BITS_FLAG
 760 JT_HOME
 761 JTREGEXE
 762 USING_BROKEN_SUSE_LD
 763 PACKAGE_PATH
 764 USE_CLANG
 765 HOTSPOT_LD
 766 HOTSPOT_CXX
 767 HOTSPOT_RC
 768 HOTSPOT_MT
 769 BUILD_AS
 770 BUILD_LDCXX
 771 BUILD_LD
 772 BUILD_STRIP
 773 BUILD_OBJCOPY
 774 BUILD_AR
 775 BUILD_NM
 776 BUILD_CXX
 777 BUILD_CC
 778 BUILD_SYSROOT_LDFLAGS
 779 BUILD_SYSROOT_CFLAGS
 780 ac_ct_OBJDUMP
 781 OBJDUMP
 782 ac_ct_OBJCOPY
 783 OBJCOPY
 784 ac_ct_NM
 785 ac_ct_STRIP
 786 GNM
 787 NM
 788 STRIP
 789 MSBUILD
 790 DUMPBIN
 791 RC
 792 MT
 793 LIPO
 794 ac_ct_AR
 795 AR
 796 AS
 797 LDCXX
 798 LD
 799 CXXCPP
 800 CPP
 801 CXX_VERSION_NUMBER
 802 CC_VERSION_NUMBER
 803 ac_ct_CXX
 804 CXXFLAGS
 805 CXX
 806 TOOLCHAIN_PATH_CXX
 807 POTENTIAL_CXX
 808 OBJEXT
 809 EXEEXT
 810 ac_ct_CC
 811 CPPFLAGS
 812 LDFLAGS
 813 CFLAGS
 814 CC
 815 TOOLCHAIN_PATH_CC
 816 POTENTIAL_CC
 817 TOOLCHAIN_VERSION
 818 VS_LIB
 819 VS_INCLUDE
 820 VS_PATH
 821 CYGWIN_LINK
 822 SYSROOT_LDFLAGS
 823 SYSROOT_CFLAGS
 824 LEGACY_EXTRA_LDFLAGS
 825 LEGACY_EXTRA_CXXFLAGS
 826 LEGACY_EXTRA_CFLAGS
 827 EXE_SUFFIX
 828 OBJ_SUFFIX
 829 STATIC_LIBRARY
 830 SHARED_LIBRARY
 831 STATIC_LIBRARY_SUFFIX
 832 SHARED_LIBRARY_SUFFIX
 833 LIBRARY_PREFIX
 834 TOOLCHAIN_TYPE
 835 STATIC_BUILD
 836 IMPORT_MODULES_MAKE
 837 IMPORT_MODULES_SRC
 838 IMPORT_MODULES_CONF
 839 IMPORT_MODULES_LIBS
 840 IMPORT_MODULES_CMDS
 841 IMPORT_MODULES_CLASSES
 842 BUILD_HOTSPOT
 843 HOTSPOT_DIST
 844 BUILD_OUTPUT
 845 JDK_TOPDIR
 846 NASHORN_TOPDIR
 847 HOTSPOT_TOPDIR
 848 JAXWS_TOPDIR
 849 JAXP_TOPDIR
 850 CORBA_TOPDIR
 851 LANGTOOLS_TOPDIR
 852 BUILD_JDK
 853 CREATE_BUILDJDK
 854 BOOT_JDK_BITS
 855 JAVAC_FLAGS
 856 BOOT_JDK_MODULAR
 857 BOOT_JDK_SOURCETARGET
 858 JARSIGNER
 859 JAR
 860 JAVAH
 861 JAVAC
 862 JAVA
 863 BOOT_JDK
 864 JAVA_CHECK
 865 JAVAC_CHECK
 866 VERSION_IS_GA
 867 VERSION_SHORT
 868 VERSION_STRING
 869 VERSION_NUMBER_FOUR_POSITIONS
 870 VERSION_NUMBER
 871 VERSION_OPT
 872 VERSION_BUILD
 873 VERSION_PRE
 874 VERSION_PATCH
 875 VERSION_SECURITY
 876 VERSION_MINOR
 877 VERSION_MAJOR
 878 MACOSX_BUNDLE_ID_BASE
 879 MACOSX_BUNDLE_NAME_BASE
 880 COMPANY_NAME
 881 JDK_RC_PLATFORM_NAME
 882 PRODUCT_SUFFIX
 883 PRODUCT_NAME
 884 LAUNCHER_NAME
 885 TEST_IN_BUILD
 886 JLINK_KEEP_PACKAGED_MODULES
 887 COPYRIGHT_YEAR
 888 COMPRESS_JARS
 889 INCLUDE_SA
 890 UNLIMITED_CRYPTO
 891 CACERTS_FILE
 892 BUILD_HEADLESS
 893 SUPPORT_HEADFUL
 894 SUPPORT_HEADLESS
 895 DEFAULT_MAKE_TARGET
 896 OS_VERSION_MICRO
 897 OS_VERSION_MINOR
 898 OS_VERSION_MAJOR
 899 PKG_CONFIG
 900 BASH_ARGS
 901 SETFILE
 902 CODESIGN
 903 XATTR
 904 DSYMUTIL
 905 IS_GNU_TIME
 906 PATCH
 907 TIME
 908 STAT
 909 HG
 910 READELF
 911 OTOOL
 912 LDD
 913 ZIP
 914 UNZIP
 915 FIND_DELETE
 916 OUTPUT_SYNC
 917 OUTPUT_SYNC_SUPPORTED
 918 CHECK_TOOLSDIR_MAKE
 919 CHECK_TOOLSDIR_GMAKE
 920 CHECK_MAKE
 921 CHECK_GMAKE
 922 MAKE
 923 PKGHANDLER
 924 CONFIGURESUPPORT_OUTPUTDIR
 925 OUTPUT_ROOT
 926 CONF_NAME
 927 SPEC
 928 SDKROOT
 929 XCODEBUILD
 930 BUILD_VARIANT_RELEASE
 931 DEBUG_CLASSFILES
 932 FASTDEBUG
 933 VARIANT
 934 DEBUG_LEVEL
 935 MACOSX_UNIVERSAL
 936 JVM_VARIANT_CORE
 937 JVM_VARIANT_ZEROSHARK
 938 JVM_VARIANT_ZERO
 939 JVM_VARIANT_MINIMAL1
 940 JVM_VARIANT_CLIENT
 941 JVM_VARIANT_SERVER
 942 JVM_VARIANTS
 943 JVM_INTERPRETER
 944 JDK_VARIANT
 945 SET_OPENJDK
 946 USERNAME
 947 CANONICAL_TOPDIR
 948 ORIGINAL_TOPDIR
 949 TOPDIR
 950 PATH_SEP
 951 ZERO_ARCHDEF
 952 DEFINE_CROSS_COMPILE_ARCH
 953 LP64
 954 OPENJDK_TARGET_OS_EXPORT_DIR
 955 OPENJDK_BUILD_CPU_JLI_CFLAGS
 956 OPENJDK_TARGET_CPU_JLI_CFLAGS
 957 OPENJDK_TARGET_CPU_OSARCH
 958 OPENJDK_TARGET_CPU_ISADIR
 959 OPENJDK_BUILD_CPU_LIBDIR
 960 OPENJDK_BUILD_CPU_LEGACY_LIB
 961 OPENJDK_BUILD_CPU_LEGACY
 962 OPENJDK_TARGET_CPU_LIBDIR
 963 OPENJDK_TARGET_CPU_LEGACY_LIB
 964 OPENJDK_TARGET_CPU_LEGACY
 965 REQUIRED_OS_VERSION
 966 REQUIRED_OS_NAME
 967 COMPILE_TYPE
 968 OPENJDK_TARGET_CPU_ENDIAN
 969 OPENJDK_TARGET_CPU_BITS
 970 OPENJDK_TARGET_CPU_ARCH
 971 OPENJDK_TARGET_CPU
 972 OPENJDK_TARGET_OS_ENV
 973 OPENJDK_TARGET_OS_TYPE
 974 OPENJDK_TARGET_OS
 975 OPENJDK_BUILD_CPU_ENDIAN
 976 OPENJDK_BUILD_CPU_BITS
 977 OPENJDK_BUILD_CPU_ARCH
 978 OPENJDK_BUILD_CPU
 979 OPENJDK_BUILD_OS_ENV
 980 OPENJDK_BUILD_OS_TYPE
 981 OPENJDK_BUILD_OS
 982 OPENJDK_BUILD_AUTOCONF_NAME
 983 OPENJDK_TARGET_AUTOCONF_NAME
 984 target_os
 985 target_vendor
 986 target_cpu
 987 target
 988 host_os
 989 host_vendor
 990 host_cpu
 991 host
 992 build_os
 993 build_vendor
 994 build_cpu
 995 build
 996 NICE
 997 CPIO
 998 DF
 999 READLINK
1000 CYGPATH
1001 SED
1002 FGREP
1003 EGREP
1004 GREP
1005 AWK
1006 XARGS
1007 WHICH
1008 WC
1009 UNIQ
1010 UNAME
1011 TR
1012 TOUCH
1013 TEE
1014 TAR
1015 TAIL
1016 SORT
1017 SH
1018 RMDIR
1019 RM
1020 PRINTF
1021 NAWK
1022 MV
1023 MKTEMP
1024 MKDIR
1025 LS
1026 LN
1027 HEAD
1028 FIND
1029 FILE
1030 EXPR
1031 ECHO
1032 DIRNAME
1033 DIFF
1034 DATE
1035 CUT
1036 CP
1037 COMM
1038 CMP
1039 CHMOD
1040 CAT
1041 BASH
1042 BASENAME
1043 DATE_WHEN_CONFIGURED
1044 ORIGINAL_PATH
1045 CONFIGURE_COMMAND_LINE
1046 target_alias
1047 host_alias
1048 build_alias
1049 LIBS
1050 ECHO_T
1051 ECHO_N
1052 ECHO_C
1053 DEFS
1054 mandir
1055 localedir
1056 libdir
1057 psdir
1058 pdfdir
1059 dvidir
1060 htmldir
1061 infodir
1062 docdir
1063 oldincludedir
1064 includedir
1065 localstatedir
1066 sharedstatedir
1067 sysconfdir
1068 datadir
1069 datarootdir
1070 libexecdir
1071 sbindir
1072 bindir
1073 program_transform_name
1074 prefix
1075 exec_prefix
1076 PACKAGE_URL
1077 PACKAGE_BUGREPORT
1078 PACKAGE_STRING
1079 PACKAGE_VERSION
1080 PACKAGE_TARNAME
1081 PACKAGE_NAME
1082 PATH_SEPARATOR
1083 SHELL'
1084 ac_subst_files=''
1085 ac_user_opts='
1086 enable_option_checking
1087 with_target_bits
1088 enable_openjdk_only
1089 with_custom_make_dir
1090 with_jdk_variant
1091 with_jvm_interpreter
1092 with_jvm_variants
1093 enable_debug
1094 with_debug_level
1095 with_devkit
1096 with_sys_root
1097 with_sysroot
1098 with_tools_dir
1099 with_toolchain_path
1100 with_extra_path
1101 with_sdk_name
1102 with_conf_name
1103 with_output_sync
1104 with_default_make_target
1105 enable_headful
1106 with_cacerts_file
1107 enable_unlimited_crypto
1108 with_copyright_year
1109 enable_keep_packaged_modules
1110 enable_hotspot_test_in_build
1111 with_milestone
1112 with_update_version
1113 with_user_release_suffix
1114 with_build_number
1115 with_version_string
1116 with_version_pre
1117 with_version_opt
1118 with_version_build
1119 with_version_major
1120 with_version_minor
1121 with_version_security
1122 with_version_patch
1123 with_boot_jdk
1124 with_build_jdk
1125 with_add_source_root
1126 with_override_source_root
1127 with_adds_and_overrides
1128 with_override_langtools
1129 with_override_corba
1130 with_override_jaxp
1131 with_override_jaxws
1132 with_override_hotspot
1133 with_override_nashorn
1134 with_override_jdk
1135 with_import_hotspot
1136 with_import_modules
1137 enable_static_build
1138 with_toolchain_type
1139 with_extra_cflags
1140 with_extra_cxxflags
1141 with_extra_ldflags
1142 with_toolchain_version
1143 with_build_devkit
1144 with_jtreg
1145 enable_warnings_as_errors
1146 with_native_debug_symbols
1147 enable_debug_symbols
1148 enable_zip_debug_info
1149 enable_native_coverage
1150 with_stdc__lib
1151 with_msvcr_dll
1152 with_msvcp_dll
1153 with_x
1154 with_cups
1155 with_cups_include
1156 with_freetype
1157 with_freetype_include
1158 with_freetype_lib
1159 with_freetype_src
1160 enable_freetype_bundling
1161 with_alsa
1162 with_alsa_include
1163 with_alsa_lib
1164 with_libffi
1165 with_libffi_include
1166 with_libffi_lib
1167 with_libjpeg
1168 with_giflib
1169 with_libpng
1170 with_zlib
1171 with_lcms
1172 with_dxsdk
1173 with_dxsdk_lib
1174 with_dxsdk_include
1175 with_num_cores
1176 with_memory_size
1177 with_jobs
1178 with_test_jobs
1179 with_boot_jdk_jvmargs
1180 with_sjavac_server_java
1181 enable_sjavac
1182 enable_javac_server
1183 enable_icecc
1184 enable_precompiled_headers
1185 enable_ccache
1186 with_ccache_dir
1187 '
1188       ac_precious_vars='build_alias
1189 host_alias
1190 target_alias
1191 BASENAME
1192 BASH
1193 CAT
1194 CHMOD
1195 CMP
1196 COMM
1197 CP
1198 CUT
1199 DATE
1200 DIFF
1201 DIRNAME
1202 ECHO
1203 EXPR
1204 FILE
1205 FIND
1206 HEAD
1207 LN
1208 LS
1209 MKDIR
1210 MKTEMP
1211 MV
1212 NAWK
1213 PRINTF
1214 RM
1215 RMDIR
1216 SH
1217 SORT
1218 TAIL
1219 TAR
1220 TEE
1221 TOUCH
1222 TR
1223 UNAME
1224 UNIQ
1225 WC
1226 WHICH
1227 XARGS
1228 AWK
1229 GREP
1230 EGREP
1231 FGREP
1232 SED
1233 CYGPATH
1234 READLINK
1235 DF
1236 CPIO
1237 NICE
1238 MAKE
1239 UNZIP
1240 ZIP
1241 LDD
1242 OTOOL
1243 READELF
1244 HG
1245 STAT
1246 TIME
1247 PATCH
1248 DSYMUTIL
1249 XATTR
1250 CODESIGN
1251 SETFILE
1252 PKG_CONFIG
1253 JAVA
1254 JAVAC
1255 JAVAH
1256 JAR
1257 JARSIGNER
1258 CC
1259 CFLAGS
1260 LDFLAGS
1261 LIBS
1262 CPPFLAGS
1263 CXX
1264 CXXFLAGS
1265 CCC
1266 CPP
1267 CXXCPP
1268 AS
1269 AR
1270 LIPO
1271 STRIP
1272 NM
1273 GNM
1274 OBJCOPY
1275 OBJDUMP
1276 BUILD_CC
1277 BUILD_CXX
1278 BUILD_NM
1279 BUILD_AR
1280 BUILD_OBJCOPY
1281 BUILD_STRIP
1282 JTREGEXE
1283 XMKMF
1284 FREETYPE_CFLAGS
1285 FREETYPE_LIBS
1286 ALSA_CFLAGS
1287 ALSA_LIBS
1288 LIBFFI_CFLAGS
1289 LIBFFI_LIBS
1290 PNG_CFLAGS
1291 PNG_LIBS
1292 LCMS_CFLAGS
1293 LCMS_LIBS
1294 ICECC_CMD
1295 ICECC_CREATE_ENV
1296 ICECC_WRAPPER
1297 CCACHE'
1298 
1299 
1300 # Initialize some variables set by options.
1301 ac_init_help=
1302 ac_init_version=false
1303 ac_unrecognized_opts=
1304 ac_unrecognized_sep=
1305 # The variables have the same names as the options, with
1306 # dashes changed to underlines.
1307 cache_file=/dev/null
1308 exec_prefix=NONE
1309 no_create=
1310 no_recursion=
1311 prefix=NONE
1312 program_prefix=NONE
1313 program_suffix=NONE
1314 program_transform_name=s,x,x,
1315 silent=
1316 site=
1317 srcdir=
1318 verbose=
1319 x_includes=NONE
1320 x_libraries=NONE
1321 
1322 # Installation directory options.
1323 # These are left unexpanded so users can "make install exec_prefix=/foo"
1324 # and all the variables that are supposed to be based on exec_prefix
1325 # by default will actually change.
1326 # Use braces instead of parens because sh, perl, etc. also accept them.
1327 # (The list follows the same order as the GNU Coding Standards.)
1328 bindir='${exec_prefix}/bin'
1329 sbindir='${exec_prefix}/sbin'
1330 libexecdir='${exec_prefix}/libexec'
1331 datarootdir='${prefix}/share'
1332 datadir='${datarootdir}'
1333 sysconfdir='${prefix}/etc'
1334 sharedstatedir='${prefix}/com'
1335 localstatedir='${prefix}/var'
1336 includedir='${prefix}/include'
1337 oldincludedir='/usr/include'
1338 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1339 infodir='${datarootdir}/info'
1340 htmldir='${docdir}'
1341 dvidir='${docdir}'
1342 pdfdir='${docdir}'
1343 psdir='${docdir}'
1344 libdir='${exec_prefix}/lib'
1345 localedir='${datarootdir}/locale'
1346 mandir='${datarootdir}/man'
1347 
1348 ac_prev=
1349 ac_dashdash=
1350 for ac_option
1351 do
1352   # If the previous option needs an argument, assign it.
1353   if test -n "$ac_prev"; then
1354     eval $ac_prev=\$ac_option
1355     ac_prev=
1356     continue
1357   fi
1358 
1359   case $ac_option in
1360   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1361   *=)   ac_optarg= ;;
1362   *)    ac_optarg=yes ;;
1363   esac
1364 
1365   # Accept the important Cygnus configure options, so we can diagnose typos.
1366 
1367   case $ac_dashdash$ac_option in
1368   --)
1369     ac_dashdash=yes ;;
1370 
1371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1372     ac_prev=bindir ;;
1373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1374     bindir=$ac_optarg ;;
1375 
1376   -build | --build | --buil | --bui | --bu)
1377     ac_prev=build_alias ;;
1378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1379     build_alias=$ac_optarg ;;
1380 
1381   -cache-file | --cache-file | --cache-fil | --cache-fi \
1382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1383     ac_prev=cache_file ;;
1384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1386     cache_file=$ac_optarg ;;
1387 
1388   --config-cache | -C)
1389     cache_file=config.cache ;;
1390 
1391   -datadir | --datadir | --datadi | --datad)
1392     ac_prev=datadir ;;
1393   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1394     datadir=$ac_optarg ;;
1395 
1396   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1397   | --dataroo | --dataro | --datar)
1398     ac_prev=datarootdir ;;
1399   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1400   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1401     datarootdir=$ac_optarg ;;
1402 
1403   -disable-* | --disable-*)
1404     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1405     # Reject names that are not valid shell variable names.
1406     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1407       as_fn_error $? "invalid feature name: $ac_useropt"
1408     ac_useropt_orig=$ac_useropt
1409     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410     case $ac_user_opts in
1411       *"
1412 "enable_$ac_useropt"
1413 "*) ;;
1414       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1415          ac_unrecognized_sep=', ';;
1416     esac
1417     eval enable_$ac_useropt=no ;;
1418 
1419   -docdir | --docdir | --docdi | --doc | --do)
1420     ac_prev=docdir ;;
1421   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1422     docdir=$ac_optarg ;;
1423 
1424   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1425     ac_prev=dvidir ;;
1426   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1427     dvidir=$ac_optarg ;;
1428 
1429   -enable-* | --enable-*)
1430     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1431     # Reject names that are not valid shell variable names.
1432     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1433       as_fn_error $? "invalid feature name: $ac_useropt"
1434     ac_useropt_orig=$ac_useropt
1435     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1436     case $ac_user_opts in
1437       *"
1438 "enable_$ac_useropt"
1439 "*) ;;
1440       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1441          ac_unrecognized_sep=', ';;
1442     esac
1443     eval enable_$ac_useropt=\$ac_optarg ;;
1444 
1445   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1446   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1447   | --exec | --exe | --ex)
1448     ac_prev=exec_prefix ;;
1449   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1450   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1451   | --exec=* | --exe=* | --ex=*)
1452     exec_prefix=$ac_optarg ;;
1453 
1454   -gas | --gas | --ga | --g)
1455     # Obsolete; use --with-gas.
1456     with_gas=yes ;;
1457 
1458   -help | --help | --hel | --he | -h)
1459     ac_init_help=long ;;
1460   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1461     ac_init_help=recursive ;;
1462   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1463     ac_init_help=short ;;
1464 
1465   -host | --host | --hos | --ho)
1466     ac_prev=host_alias ;;
1467   -host=* | --host=* | --hos=* | --ho=*)
1468     host_alias=$ac_optarg ;;
1469 
1470   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1471     ac_prev=htmldir ;;
1472   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1473   | --ht=*)
1474     htmldir=$ac_optarg ;;
1475 
1476   -includedir | --includedir | --includedi | --included | --include \
1477   | --includ | --inclu | --incl | --inc)
1478     ac_prev=includedir ;;
1479   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1480   | --includ=* | --inclu=* | --incl=* | --inc=*)
1481     includedir=$ac_optarg ;;
1482 
1483   -infodir | --infodir | --infodi | --infod | --info | --inf)
1484     ac_prev=infodir ;;
1485   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1486     infodir=$ac_optarg ;;
1487 
1488   -libdir | --libdir | --libdi | --libd)
1489     ac_prev=libdir ;;
1490   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1491     libdir=$ac_optarg ;;
1492 
1493   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1494   | --libexe | --libex | --libe)
1495     ac_prev=libexecdir ;;
1496   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1497   | --libexe=* | --libex=* | --libe=*)
1498     libexecdir=$ac_optarg ;;
1499 
1500   -localedir | --localedir | --localedi | --localed | --locale)
1501     ac_prev=localedir ;;
1502   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1503     localedir=$ac_optarg ;;
1504 
1505   -localstatedir | --localstatedir | --localstatedi | --localstated \
1506   | --localstate | --localstat | --localsta | --localst | --locals)
1507     ac_prev=localstatedir ;;
1508   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1509   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1510     localstatedir=$ac_optarg ;;
1511 
1512   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1513     ac_prev=mandir ;;
1514   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1515     mandir=$ac_optarg ;;
1516 
1517   -nfp | --nfp | --nf)
1518     # Obsolete; use --without-fp.
1519     with_fp=no ;;
1520 
1521   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1522   | --no-cr | --no-c | -n)
1523     no_create=yes ;;
1524 
1525   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1526   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1527     no_recursion=yes ;;
1528 
1529   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1530   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1531   | --oldin | --oldi | --old | --ol | --o)
1532     ac_prev=oldincludedir ;;
1533   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1534   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1535   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1536     oldincludedir=$ac_optarg ;;
1537 
1538   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1539     ac_prev=prefix ;;
1540   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1541     prefix=$ac_optarg ;;
1542 
1543   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1544   | --program-pre | --program-pr | --program-p)
1545     ac_prev=program_prefix ;;
1546   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1547   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1548     program_prefix=$ac_optarg ;;
1549 
1550   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1551   | --program-suf | --program-su | --program-s)
1552     ac_prev=program_suffix ;;
1553   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1554   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1555     program_suffix=$ac_optarg ;;
1556 
1557   -program-transform-name | --program-transform-name \
1558   | --program-transform-nam | --program-transform-na \
1559   | --program-transform-n | --program-transform- \
1560   | --program-transform | --program-transfor \
1561   | --program-transfo | --program-transf \
1562   | --program-trans | --program-tran \
1563   | --progr-tra | --program-tr | --program-t)
1564     ac_prev=program_transform_name ;;
1565   -program-transform-name=* | --program-transform-name=* \
1566   | --program-transform-nam=* | --program-transform-na=* \
1567   | --program-transform-n=* | --program-transform-=* \
1568   | --program-transform=* | --program-transfor=* \
1569   | --program-transfo=* | --program-transf=* \
1570   | --program-trans=* | --program-tran=* \
1571   | --progr-tra=* | --program-tr=* | --program-t=*)
1572     program_transform_name=$ac_optarg ;;
1573 
1574   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1575     ac_prev=pdfdir ;;
1576   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1577     pdfdir=$ac_optarg ;;
1578 
1579   -psdir | --psdir | --psdi | --psd | --ps)
1580     ac_prev=psdir ;;
1581   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1582     psdir=$ac_optarg ;;
1583 
1584   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1585   | -silent | --silent | --silen | --sile | --sil)
1586     silent=yes ;;
1587 
1588   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1589     ac_prev=sbindir ;;
1590   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1591   | --sbi=* | --sb=*)
1592     sbindir=$ac_optarg ;;
1593 
1594   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1595   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1596   | --sharedst | --shareds | --shared | --share | --shar \
1597   | --sha | --sh)
1598     ac_prev=sharedstatedir ;;
1599   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1600   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1601   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1602   | --sha=* | --sh=*)
1603     sharedstatedir=$ac_optarg ;;
1604 
1605   -site | --site | --sit)
1606     ac_prev=site ;;
1607   -site=* | --site=* | --sit=*)
1608     site=$ac_optarg ;;
1609 
1610   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1611     ac_prev=srcdir ;;
1612   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1613     srcdir=$ac_optarg ;;
1614 
1615   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1616   | --syscon | --sysco | --sysc | --sys | --sy)
1617     ac_prev=sysconfdir ;;
1618   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1619   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1620     sysconfdir=$ac_optarg ;;
1621 
1622   -target | --target | --targe | --targ | --tar | --ta | --t)
1623     ac_prev=target_alias ;;
1624   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1625     target_alias=$ac_optarg ;;
1626 
1627   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1628     verbose=yes ;;
1629 
1630   -version | --version | --versio | --versi | --vers | -V)
1631     ac_init_version=: ;;
1632 
1633   -with-* | --with-*)
1634     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1635     # Reject names that are not valid shell variable names.
1636     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1637       as_fn_error $? "invalid package name: $ac_useropt"
1638     ac_useropt_orig=$ac_useropt
1639     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1640     case $ac_user_opts in
1641       *"
1642 "with_$ac_useropt"
1643 "*) ;;
1644       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1645          ac_unrecognized_sep=', ';;
1646     esac
1647     eval with_$ac_useropt=\$ac_optarg ;;
1648 
1649   -without-* | --without-*)
1650     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1651     # Reject names that are not valid shell variable names.
1652     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1653       as_fn_error $? "invalid package name: $ac_useropt"
1654     ac_useropt_orig=$ac_useropt
1655     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1656     case $ac_user_opts in
1657       *"
1658 "with_$ac_useropt"
1659 "*) ;;
1660       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1661          ac_unrecognized_sep=', ';;
1662     esac
1663     eval with_$ac_useropt=no ;;
1664 
1665   --x)
1666     # Obsolete; use --with-x.
1667     with_x=yes ;;
1668 
1669   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1670   | --x-incl | --x-inc | --x-in | --x-i)
1671     ac_prev=x_includes ;;
1672   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1673   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1674     x_includes=$ac_optarg ;;
1675 
1676   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1677   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1678     ac_prev=x_libraries ;;
1679   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1680   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1681     x_libraries=$ac_optarg ;;
1682 
1683   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1684 Try \`$0 --help' for more information"
1685     ;;
1686 
1687   *=*)
1688     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1689     # Reject names that are not valid shell variable names.
1690     case $ac_envvar in #(
1691       '' | [0-9]* | *[!_$as_cr_alnum]* )
1692       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1693     esac
1694     eval $ac_envvar=\$ac_optarg
1695     export $ac_envvar ;;
1696 
1697   *)
1698     # FIXME: should be removed in autoconf 3.0.
1699     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1700     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1701       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1702     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1703     ;;
1704 
1705   esac
1706 done
1707 
1708 if test -n "$ac_prev"; then
1709   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1710   as_fn_error $? "missing argument to $ac_option"
1711 fi
1712 
1713 if test -n "$ac_unrecognized_opts"; then
1714   case $enable_option_checking in
1715     no) ;;
1716     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1717     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1718   esac
1719 fi
1720 
1721 # Check all directory arguments for consistency.
1722 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1723                 datadir sysconfdir sharedstatedir localstatedir includedir \
1724                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1725                 libdir localedir mandir
1726 do
1727   eval ac_val=\$$ac_var
1728   # Remove trailing slashes.
1729   case $ac_val in
1730     */ )
1731       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1732       eval $ac_var=\$ac_val;;
1733   esac
1734   # Be sure to have absolute directory names.
1735   case $ac_val in
1736     [\\/$]* | ?:[\\/]* )  continue;;
1737     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1738   esac
1739   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1740 done
1741 
1742 # There might be people who depend on the old broken behavior: `$host'
1743 # used to hold the argument of --host etc.
1744 # FIXME: To remove some day.
1745 build=$build_alias
1746 host=$host_alias
1747 target=$target_alias
1748 
1749 # FIXME: To remove some day.
1750 if test "x$host_alias" != x; then
1751   if test "x$build_alias" = x; then
1752     cross_compiling=maybe
1753   elif test "x$build_alias" != "x$host_alias"; then
1754     cross_compiling=yes
1755   fi
1756 fi
1757 
1758 ac_tool_prefix=
1759 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1760 
1761 test "$silent" = yes && exec 6>/dev/null
1762 
1763 
1764 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1765 ac_ls_di=`ls -di .` &&
1766 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1767   as_fn_error $? "working directory cannot be determined"
1768 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1769   as_fn_error $? "pwd does not report name of working directory"
1770 
1771 
1772 # Find the source files, if location was not specified.
1773 if test -z "$srcdir"; then
1774   ac_srcdir_defaulted=yes
1775   # Try the directory containing this script, then the parent directory.
1776   ac_confdir=`$as_dirname -- "$as_myself" ||
1777 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1778          X"$as_myself" : 'X\(//\)[^/]' \| \
1779          X"$as_myself" : 'X\(//\)$' \| \
1780          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1781 $as_echo X"$as_myself" |
1782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1783             s//\1/
1784             q
1785           }
1786           /^X\(\/\/\)[^/].*/{
1787             s//\1/
1788             q
1789           }
1790           /^X\(\/\/\)$/{
1791             s//\1/
1792             q
1793           }
1794           /^X\(\/\).*/{
1795             s//\1/
1796             q
1797           }
1798           s/.*/./; q'`
1799   srcdir=$ac_confdir
1800   if test ! -r "$srcdir/$ac_unique_file"; then
1801     srcdir=..
1802   fi
1803 else
1804   ac_srcdir_defaulted=no
1805 fi
1806 if test ! -r "$srcdir/$ac_unique_file"; then
1807   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1808   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1809 fi
1810 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1811 ac_abs_confdir=`(
1812         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1813         pwd)`
1814 # When building in place, set srcdir=.
1815 if test "$ac_abs_confdir" = "$ac_pwd"; then
1816   srcdir=.
1817 fi
1818 # Remove unnecessary trailing slashes from srcdir.
1819 # Double slashes in file names in object file debugging info
1820 # mess up M-x gdb in Emacs.
1821 case $srcdir in
1822 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1823 esac
1824 for ac_var in $ac_precious_vars; do
1825   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1826   eval ac_env_${ac_var}_value=\$${ac_var}
1827   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1828   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1829 done
1830 
1831 #
1832 # Report the --help message.
1833 #
1834 if test "$ac_init_help" = "long"; then
1835   # Omit some internal or obsolete options to make the list less imposing.
1836   # This message is too long to be a string in the A/UX 3.1 sh.
1837   cat <<_ACEOF
1838 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1839 
1840 Usage: $0 [OPTION]... [VAR=VALUE]...
1841 
1842 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1843 VAR=VALUE.  See below for descriptions of some of the useful variables.
1844 
1845 Defaults for the options are specified in brackets.
1846 
1847 Configuration:
1848   -h, --help              display this help and exit
1849       --help=short        display options specific to this package
1850       --help=recursive    display the short help of all the included packages
1851   -V, --version           display version information and exit
1852   -q, --quiet, --silent   do not print \`checking ...' messages
1853       --cache-file=FILE   cache test results in FILE [disabled]
1854   -C, --config-cache      alias for \`--cache-file=config.cache'
1855   -n, --no-create         do not create output files
1856       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1857 
1858 Installation directories:
1859   --prefix=PREFIX         install architecture-independent files in PREFIX
1860                           [$ac_default_prefix]
1861   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1862                           [PREFIX]
1863 
1864 By default, \`make install' will install all the files in
1865 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1866 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1867 for instance \`--prefix=\$HOME'.
1868 
1869 For better control, use the options below.
1870 
1871 Fine tuning of the installation directories:
1872   --bindir=DIR            user executables [EPREFIX/bin]
1873   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1874   --libexecdir=DIR        program executables [EPREFIX/libexec]
1875   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1876   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1877   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1878   --libdir=DIR            object code libraries [EPREFIX/lib]
1879   --includedir=DIR        C header files [PREFIX/include]
1880   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1881   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1882   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1883   --infodir=DIR           info documentation [DATAROOTDIR/info]
1884   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1885   --mandir=DIR            man documentation [DATAROOTDIR/man]
1886   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1887   --htmldir=DIR           html documentation [DOCDIR]
1888   --dvidir=DIR            dvi documentation [DOCDIR]
1889   --pdfdir=DIR            pdf documentation [DOCDIR]
1890   --psdir=DIR             ps documentation [DOCDIR]
1891 _ACEOF
1892 
1893   cat <<\_ACEOF
1894 
1895 X features:
1896   --x-includes=DIR    X include files are in DIR
1897   --x-libraries=DIR   X library files are in DIR
1898 
1899 System types:
1900   --build=BUILD     configure for building on BUILD [guessed]
1901   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1902   --target=TARGET   configure for building compilers for TARGET [HOST]
1903 _ACEOF
1904 fi
1905 
1906 if test -n "$ac_init_help"; then
1907   case $ac_init_help in
1908      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1909    esac
1910   cat <<\_ACEOF
1911 
1912 Optional Features:
1913   --disable-option-checking  ignore unrecognized --enable/--with options
1914   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1915   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1916   --enable-openjdk-only   suppress building custom source even if present
1917                           [disabled]
1918   --enable-debug          set the debug level to fastdebug (shorthand for
1919                           --with-debug-level=fastdebug) [disabled]
1920   --disable-headful       disable building headful support (graphical UI
1921                           support) [enabled]
1922   --enable-unlimited-crypto
1923                           Enable unlimited crypto policy [disabled]
1924   --disable-keep-packaged-modules
1925                           Do not keep packaged modules in jdk image [enable]
1926   --enable-hotspot-test-in-build
1927                           run the Queens test after Hotspot build [disabled]
1928   --enable-static-build   enable static library build [disabled]
1929   --disable-warnings-as-errors
1930                           do not consider native warnings to be an error
1931                           [enabled]
1932   --enable-debug-symbols  Deprecated. Option is kept for backwards
1933                           compatibility and is ignored
1934   --enable-zip-debug-info Deprecated. Option is kept for backwards
1935                           compatibility and is ignored
1936   --enable-native-coverage
1937                           enable native compilation with code coverage
1938                           data[disabled]
1939   --disable-freetype-bundling
1940                           disable bundling of the freetype library with the
1941                           build result [enabled on Windows or when using
1942                           --with-freetype, disabled otherwise]
1943   --enable-sjavac         use sjavac to do fast incremental compiles
1944                           [disabled]
1945   --disable-javac-server  disable javac server [enabled]
1946   --enable-icecc          enable distribted compilation of native code using
1947                           icecc/icecream [disabled]
1948   --disable-precompiled-headers
1949                           disable using precompiled headers when compiling C++
1950                           [enabled]
1951   --enable-ccache         enable using ccache to speed up recompilations
1952                           [disabled]
1953 
1954 Optional Packages:
1955   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1956   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1957   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1958                           support it), e.g. --with-target-bits=32 [guessed]
1959   --with-custom-make-dir  Deprecated. Option is kept for backwards
1960                           compatibility and is ignored
1961   --with-jdk-variant      JDK variant to build (normal) [normal]
1962   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1963   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1964                           client, minimal1, zero, zeroshark, core) [server]
1965   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1966                           optimized) [release]
1967   --with-devkit           use this devkit for compilers, tools and resources
1968   --with-sys-root         alias for --with-sysroot for backwards compatability
1969   --with-sysroot          use this directory as sysroot
1970   --with-tools-dir        alias for --with-toolchain-path for backwards
1971                           compatibility
1972   --with-toolchain-path   prepend these directories when searching for
1973                           toolchain binaries (compilers etc)
1974   --with-extra-path       prepend these directories to the default path
1975   --with-sdk-name         use the platform SDK of the given name. [macosx]
1976   --with-conf-name        use this as the name of the configuration [generated
1977                           from important configuration options]
1978   --with-output-sync      set make output sync type if supported by make.
1979                           [recurse]
1980   --with-default-make-target
1981                           set the default make target [exploded-image]
1982   --with-cacerts-file     specify alternative cacerts file
1983   --with-copyright-year   Set copyright year value for build [current year]
1984   --with-milestone        Deprecated. Option is kept for backwards
1985                           compatibility and is ignored
1986   --with-update-version   Deprecated. Option is kept for backwards
1987                           compatibility and is ignored
1988   --with-user-release-suffix
1989                           Deprecated. Option is kept for backwards
1990                           compatibility and is ignored
1991   --with-build-number     Deprecated. Option is kept for backwards
1992                           compatibility and is ignored
1993   --with-version-string   Set version string [calculated]
1994   --with-version-pre      Set the base part of the version 'PRE' field
1995                           (pre-release identifier) ['internal']
1996   --with-version-opt      Set version 'OPT' field (build metadata)
1997                           [<timestamp>.<user>.<dirname>]
1998   --with-version-build    Set version 'BUILD' field (build number) [not
1999                           specified]
2000   --with-version-major    Set version 'MAJOR' field (first number) [current
2001                           source value]
2002   --with-version-minor    Set version 'MINOR' field (second number) [current
2003                           source value]
2004   --with-version-security Set version 'SECURITY' field (third number) [current
2005                           source value]
2006   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2007                           specified]
2008   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2009   --with-build-jdk        path to JDK of same version as is being built[the
2010                           newly built JDK]
2011   --with-add-source-root  Deprecated. Option is kept for backwards
2012                           compatibility and is ignored
2013   --with-override-source-root
2014                           Deprecated. Option is kept for backwards
2015                           compatibility and is ignored
2016   --with-adds-and-overrides
2017                           Deprecated. Option is kept for backwards
2018                           compatibility and is ignored
2019   --with-override-langtools
2020                           Deprecated. Option is kept for backwards
2021                           compatibility and is ignored
2022   --with-override-corba   Deprecated. Option is kept for backwards
2023                           compatibility and is ignored
2024   --with-override-jaxp    Deprecated. Option is kept for backwards
2025                           compatibility and is ignored
2026   --with-override-jaxws   Deprecated. Option is kept for backwards
2027                           compatibility and is ignored
2028   --with-override-hotspot Deprecated. Option is kept for backwards
2029                           compatibility and is ignored
2030   --with-override-nashorn Deprecated. Option is kept for backwards
2031                           compatibility and is ignored
2032   --with-override-jdk     Deprecated. Option is kept for backwards
2033                           compatibility and is ignored
2034   --with-import-hotspot   import hotspot binaries from this jdk image or
2035                           hotspot build dist dir instead of building from
2036                           source
2037   --with-import-modules   import a set of prebuilt modules either as a zip
2038                           file or an exploded directory
2039   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2040                           to show possible values [platform dependent]
2041   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2042   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2043   --with-extra-ldflags    extra flags to be used when linking jdk
2044   --with-toolchain-version
2045                           the version of the toolchain to look for, use
2046                           '--help' to show possible values [platform
2047                           dependent]
2048   --with-build-devkit     Devkit to use for the build platform toolchain
2049   --with-jtreg            Regression Test Harness [probed]
2050   --with-native-debug-symbols
2051                           set the native debug symbol configuration (none,
2052                           internal, external, zipped) [varying]
2053   --with-stdc++lib=<static>,<dynamic>,<default>
2054                           force linking of the C++ runtime on Linux to either
2055                           static or dynamic, default is static with dynamic as
2056                           fallback
2057   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2058                           (Windows only) [probed]
2059   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2060                           (Windows only) [probed]
2061   --with-x                use the X Window System
2062   --with-cups             specify prefix directory for the cups package
2063                           (expecting the headers under PATH/include)
2064   --with-cups-include     specify directory for the cups include files
2065   --with-freetype         specify prefix directory for the freetype package
2066                           (expecting the libraries under PATH/lib and the
2067                           headers under PATH/include)
2068   --with-freetype-include specify directory for the freetype include files
2069   --with-freetype-lib     specify directory for the freetype library
2070   --with-freetype-src     specify directory with freetype sources to
2071                           automatically build the library (experimental,
2072                           Windows-only)
2073   --with-alsa             specify prefix directory for the alsa package
2074                           (expecting the libraries under PATH/lib and the
2075                           headers under PATH/include)
2076   --with-alsa-include     specify directory for the alsa include files
2077   --with-alsa-lib         specify directory for the alsa library
2078   --with-libffi           specify prefix directory for the libffi package
2079                           (expecting the libraries under PATH/lib and the
2080                           headers under PATH/include)
2081   --with-libffi-include   specify directory for the libffi include files
2082   --with-libffi-lib       specify directory for the libffi library
2083   --with-libjpeg          use libjpeg from build system or OpenJDK source
2084                           (system, bundled) [bundled]
2085   --with-giflib           use giflib from build system or OpenJDK source
2086                           (system, bundled) [bundled]
2087   --with-libpng           use libpng from build system or OpenJDK source
2088                           (system, bundled) [bundled]
2089   --with-zlib             use zlib from build system or OpenJDK source
2090                           (system, bundled) [bundled]
2091   --with-lcms             use lcms2 from build system or OpenJDK source
2092                           (system, bundled) [bundled]
2093   --with-dxsdk            Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2096                           compatibility and is ignored
2097   --with-dxsdk-include    Deprecated. Option is kept for backwards
2098                           compatibility and is ignored
2099   --with-num-cores        number of cores in the build system, e.g.
2100                           --with-num-cores=8 [probed]
2101   --with-memory-size      memory (in MB) available in the build system, e.g.
2102                           --with-memory-size=1024 [probed]
2103   --with-jobs             number of parallel jobs to let make run [calculated
2104                           based on cores and memory]
2105   --with-test-jobs        number of parallel tests jobs to run [based on build
2106                           jobs]
2107   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2108                           invocations of boot JDK, overriding the default
2109                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2110                           -enableassertions"
2111   --with-sjavac-server-java
2112                           use this java binary for running the sjavac
2113                           background server [Boot JDK java]
2114   --with-ccache-dir       where to store ccache files [~/.ccache]
2115 
2116 Some influential environment variables:
2117   BASENAME    Override default value for BASENAME
2118   BASH        Override default value for BASH
2119   CAT         Override default value for CAT
2120   CHMOD       Override default value for CHMOD
2121   CMP         Override default value for CMP
2122   COMM        Override default value for COMM
2123   CP          Override default value for CP
2124   CUT         Override default value for CUT
2125   DATE        Override default value for DATE
2126   DIFF        Override default value for DIFF
2127   DIRNAME     Override default value for DIRNAME
2128   ECHO        Override default value for ECHO
2129   EXPR        Override default value for EXPR
2130   FILE        Override default value for FILE
2131   FIND        Override default value for FIND
2132   HEAD        Override default value for HEAD
2133   LN          Override default value for LN
2134   LS          Override default value for LS
2135   MKDIR       Override default value for MKDIR
2136   MKTEMP      Override default value for MKTEMP
2137   MV          Override default value for MV
2138   NAWK        Override default value for NAWK
2139   PRINTF      Override default value for PRINTF
2140   RM          Override default value for RM
2141   RMDIR       Override default value for RMDIR
2142   SH          Override default value for SH
2143   SORT        Override default value for SORT
2144   TAIL        Override default value for TAIL
2145   TAR         Override default value for TAR
2146   TEE         Override default value for TEE
2147   TOUCH       Override default value for TOUCH
2148   TR          Override default value for TR
2149   UNAME       Override default value for UNAME
2150   UNIQ        Override default value for UNIQ
2151   WC          Override default value for WC
2152   WHICH       Override default value for WHICH
2153   XARGS       Override default value for XARGS
2154   AWK         Override default value for AWK
2155   GREP        Override default value for GREP
2156   EGREP       Override default value for EGREP
2157   FGREP       Override default value for FGREP
2158   SED         Override default value for SED
2159   CYGPATH     Override default value for CYGPATH
2160   READLINK    Override default value for READLINK
2161   DF          Override default value for DF
2162   CPIO        Override default value for CPIO
2163   NICE        Override default value for NICE
2164   MAKE        Override default value for MAKE
2165   UNZIP       Override default value for UNZIP
2166   ZIP         Override default value for ZIP
2167   LDD         Override default value for LDD
2168   OTOOL       Override default value for OTOOL
2169   READELF     Override default value for READELF
2170   HG          Override default value for HG
2171   STAT        Override default value for STAT
2172   TIME        Override default value for TIME
2173   PATCH       Override default value for PATCH
2174   DSYMUTIL    Override default value for DSYMUTIL
2175   XATTR       Override default value for XATTR
2176   CODESIGN    Override default value for CODESIGN
2177   SETFILE     Override default value for SETFILE
2178   PKG_CONFIG  path to pkg-config utility
2179   JAVA        Override default value for JAVA
2180   JAVAC       Override default value for JAVAC
2181   JAVAH       Override default value for JAVAH
2182   JAR         Override default value for JAR
2183   JARSIGNER   Override default value for JARSIGNER
2184   CC          C compiler command
2185   CFLAGS      C compiler flags
2186   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2187               nonstandard directory <lib dir>
2188   LIBS        libraries to pass to the linker, e.g. -l<library>
2189   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2190               you have headers in a nonstandard directory <include dir>
2191   CXX         C++ compiler command
2192   CXXFLAGS    C++ compiler flags
2193   CPP         C preprocessor
2194   CXXCPP      C++ preprocessor
2195   AS          Override default value for AS
2196   AR          Override default value for AR
2197   LIPO        Override default value for LIPO
2198   STRIP       Override default value for STRIP
2199   NM          Override default value for NM
2200   GNM         Override default value for GNM
2201   OBJCOPY     Override default value for OBJCOPY
2202   OBJDUMP     Override default value for OBJDUMP
2203   BUILD_CC    Override default value for BUILD_CC
2204   BUILD_CXX   Override default value for BUILD_CXX
2205   BUILD_NM    Override default value for BUILD_NM
2206   BUILD_AR    Override default value for BUILD_AR
2207   BUILD_OBJCOPY
2208               Override default value for BUILD_OBJCOPY
2209   BUILD_STRIP Override default value for BUILD_STRIP
2210   JTREGEXE    Override default value for JTREGEXE
2211   XMKMF       Path to xmkmf, Makefile generator for X Window System
2212   FREETYPE_CFLAGS
2213               C compiler flags for FREETYPE, overriding pkg-config
2214   FREETYPE_LIBS
2215               linker flags for FREETYPE, overriding pkg-config
2216   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2217   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2218   LIBFFI_CFLAGS
2219               C compiler flags for LIBFFI, overriding pkg-config
2220   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2221   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2222   PNG_LIBS    linker flags for PNG, overriding pkg-config
2223   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2224   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2225   ICECC_CMD   Override default value for ICECC_CMD
2226   ICECC_CREATE_ENV
2227               Override default value for ICECC_CREATE_ENV
2228   ICECC_WRAPPER
2229               Override default value for ICECC_WRAPPER
2230   CCACHE      Override default value for CCACHE
2231 
2232 Use these variables to override the choices made by `configure' or to help
2233 it to find libraries and programs with nonstandard names/locations.
2234 
2235 Report bugs to <build-dev@openjdk.java.net>.
2236 OpenJDK home page: <http://openjdk.java.net>.
2237 _ACEOF
2238 ac_status=$?
2239 fi
2240 
2241 if test "$ac_init_help" = "recursive"; then
2242   # If there are subdirs, report their specific --help.
2243   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2244     test -d "$ac_dir" ||
2245       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2246       continue
2247     ac_builddir=.
2248 
2249 case "$ac_dir" in
2250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2251 *)
2252   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2253   # A ".." for each directory in $ac_dir_suffix.
2254   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2255   case $ac_top_builddir_sub in
2256   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2257   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2258   esac ;;
2259 esac
2260 ac_abs_top_builddir=$ac_pwd
2261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2262 # for backward compatibility:
2263 ac_top_builddir=$ac_top_build_prefix
2264 
2265 case $srcdir in
2266   .)  # We are building in place.
2267     ac_srcdir=.
2268     ac_top_srcdir=$ac_top_builddir_sub
2269     ac_abs_top_srcdir=$ac_pwd ;;
2270   [\\/]* | ?:[\\/]* )  # Absolute name.
2271     ac_srcdir=$srcdir$ac_dir_suffix;
2272     ac_top_srcdir=$srcdir
2273     ac_abs_top_srcdir=$srcdir ;;
2274   *) # Relative name.
2275     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2276     ac_top_srcdir=$ac_top_build_prefix$srcdir
2277     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2278 esac
2279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2280 
2281     cd "$ac_dir" || { ac_status=$?; continue; }
2282     # Check for guested configure.
2283     if test -f "$ac_srcdir/configure.gnu"; then
2284       echo &&
2285       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2286     elif test -f "$ac_srcdir/configure"; then
2287       echo &&
2288       $SHELL "$ac_srcdir/configure" --help=recursive
2289     else
2290       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2291     fi || ac_status=$?
2292     cd "$ac_pwd" || { ac_status=$?; break; }
2293   done
2294 fi
2295 
2296 test -n "$ac_init_help" && exit $ac_status
2297 if $ac_init_version; then
2298   cat <<\_ACEOF
2299 OpenJDK configure jdk9
2300 generated by GNU Autoconf 2.69
2301 
2302 Copyright (C) 2012 Free Software Foundation, Inc.
2303 This configure script is free software; the Free Software Foundation
2304 gives unlimited permission to copy, distribute and modify it.
2305 _ACEOF
2306   exit
2307 fi
2308 
2309 ## ------------------------ ##
2310 ## Autoconf initialization. ##
2311 ## ------------------------ ##
2312 
2313 # ac_fn_c_try_compile LINENO
2314 # --------------------------
2315 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2316 ac_fn_c_try_compile ()
2317 {
2318   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319   rm -f conftest.$ac_objext
2320   if { { ac_try="$ac_compile"
2321 case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2326 $as_echo "$ac_try_echo"; } >&5
2327   (eval "$ac_compile") 2>conftest.err
2328   ac_status=$?
2329   if test -s conftest.err; then
2330     grep -v '^ *+' conftest.err >conftest.er1
2331     cat conftest.er1 >&5
2332     mv -f conftest.er1 conftest.err
2333   fi
2334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335   test $ac_status = 0; } && {
2336          test -z "$ac_c_werror_flag" ||
2337          test ! -s conftest.err
2338        } && test -s conftest.$ac_objext; then :
2339   ac_retval=0
2340 else
2341   $as_echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2343 
2344         ac_retval=1
2345 fi
2346   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347   as_fn_set_status $ac_retval
2348 
2349 } # ac_fn_c_try_compile
2350 
2351 # ac_fn_cxx_try_compile LINENO
2352 # ----------------------------
2353 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2354 ac_fn_cxx_try_compile ()
2355 {
2356   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357   rm -f conftest.$ac_objext
2358   if { { ac_try="$ac_compile"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365   (eval "$ac_compile") 2>conftest.err
2366   ac_status=$?
2367   if test -s conftest.err; then
2368     grep -v '^ *+' conftest.err >conftest.er1
2369     cat conftest.er1 >&5
2370     mv -f conftest.er1 conftest.err
2371   fi
2372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373   test $ac_status = 0; } && {
2374          test -z "$ac_cxx_werror_flag" ||
2375          test ! -s conftest.err
2376        } && test -s conftest.$ac_objext; then :
2377   ac_retval=0
2378 else
2379   $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381 
2382         ac_retval=1
2383 fi
2384   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385   as_fn_set_status $ac_retval
2386 
2387 } # ac_fn_cxx_try_compile
2388 
2389 # ac_fn_c_try_cpp LINENO
2390 # ----------------------
2391 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2392 ac_fn_c_try_cpp ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   if { { ac_try="$ac_cpp conftest.$ac_ext"
2396 case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2401 $as_echo "$ac_try_echo"; } >&5
2402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2403   ac_status=$?
2404   if test -s conftest.err; then
2405     grep -v '^ *+' conftest.err >conftest.er1
2406     cat conftest.er1 >&5
2407     mv -f conftest.er1 conftest.err
2408   fi
2409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410   test $ac_status = 0; } > conftest.i && {
2411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2412          test ! -s conftest.err
2413        }; then :
2414   ac_retval=0
2415 else
2416   $as_echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418 
2419     ac_retval=1
2420 fi
2421   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422   as_fn_set_status $ac_retval
2423 
2424 } # ac_fn_c_try_cpp
2425 
2426 # ac_fn_cxx_try_cpp LINENO
2427 # ------------------------
2428 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2429 ac_fn_cxx_try_cpp ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if { { ac_try="$ac_cpp conftest.$ac_ext"
2433 case "(($ac_try" in
2434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435   *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2440   ac_status=$?
2441   if test -s conftest.err; then
2442     grep -v '^ *+' conftest.err >conftest.er1
2443     cat conftest.er1 >&5
2444     mv -f conftest.er1 conftest.err
2445   fi
2446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447   test $ac_status = 0; } > conftest.i && {
2448          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2449          test ! -s conftest.err
2450        }; then :
2451   ac_retval=0
2452 else
2453   $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455 
2456     ac_retval=1
2457 fi
2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459   as_fn_set_status $ac_retval
2460 
2461 } # ac_fn_cxx_try_cpp
2462 
2463 # ac_fn_c_try_link LINENO
2464 # -----------------------
2465 # Try to link conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_c_try_link ()
2467 {
2468   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469   rm -f conftest.$ac_objext conftest$ac_exeext
2470   if { { ac_try="$ac_link"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476 $as_echo "$ac_try_echo"; } >&5
2477   (eval "$ac_link") 2>conftest.err
2478   ac_status=$?
2479   if test -s conftest.err; then
2480     grep -v '^ *+' conftest.err >conftest.er1
2481     cat conftest.er1 >&5
2482     mv -f conftest.er1 conftest.err
2483   fi
2484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485   test $ac_status = 0; } && {
2486          test -z "$ac_c_werror_flag" ||
2487          test ! -s conftest.err
2488        } && test -s conftest$ac_exeext && {
2489          test "$cross_compiling" = yes ||
2490          test -x conftest$ac_exeext
2491        }; then :
2492   ac_retval=0
2493 else
2494   $as_echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496 
2497         ac_retval=1
2498 fi
2499   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2500   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2501   # interfere with the next link command; also delete a directory that is
2502   # left behind by Apple's compiler.  We do this before executing the actions.
2503   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2504   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2505   as_fn_set_status $ac_retval
2506 
2507 } # ac_fn_c_try_link
2508 
2509 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2510 # ---------------------------------------------------------
2511 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2512 # the include files in INCLUDES and setting the cache variable VAR
2513 # accordingly.
2514 ac_fn_cxx_check_header_mongrel ()
2515 {
2516   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517   if eval \${$3+:} false; then :
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if eval \${$3+:} false; then :
2521   $as_echo_n "(cached) " >&6
2522 fi
2523 eval ac_res=\$$3
2524                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 else
2527   # Is the header compilable?
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2529 $as_echo_n "checking $2 usability... " >&6; }
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h.  */
2532 $4
2533 #include <$2>
2534 _ACEOF
2535 if ac_fn_cxx_try_compile "$LINENO"; then :
2536   ac_header_compiler=yes
2537 else
2538   ac_header_compiler=no
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2542 $as_echo "$ac_header_compiler" >&6; }
2543 
2544 # Is the header present?
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2546 $as_echo_n "checking $2 presence... " >&6; }
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 #include <$2>
2550 _ACEOF
2551 if ac_fn_cxx_try_cpp "$LINENO"; then :
2552   ac_header_preproc=yes
2553 else
2554   ac_header_preproc=no
2555 fi
2556 rm -f conftest.err conftest.i conftest.$ac_ext
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2558 $as_echo "$ac_header_preproc" >&6; }
2559 
2560 # So?  What about this header?
2561 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2562   yes:no: )
2563     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2564 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2565     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2566 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2567     ;;
2568   no:yes:* )
2569     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2570 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2571     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2572 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2573     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2574 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2575     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2576 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2577     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2578 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2579 ( $as_echo "## ----------------------------------------- ##
2580 ## Report this to build-dev@openjdk.java.net ##
2581 ## ----------------------------------------- ##"
2582      ) | sed "s/^/$as_me: WARNING:     /" >&2
2583     ;;
2584 esac
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2586 $as_echo_n "checking for $2... " >&6; }
2587 if eval \${$3+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   eval "$3=\$ac_header_compiler"
2591 fi
2592 eval ac_res=\$$3
2593                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 fi
2596   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 
2598 } # ac_fn_cxx_check_header_mongrel
2599 
2600 # ac_fn_cxx_try_run LINENO
2601 # ------------------------
2602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2603 # that executables *can* be run.
2604 ac_fn_cxx_try_run ()
2605 {
2606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607   if { { ac_try="$ac_link"
2608 case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614   (eval "$ac_link") 2>&5
2615   ac_status=$?
2616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2617   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2618   { { case "(($ac_try" in
2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620   *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624   (eval "$ac_try") 2>&5
2625   ac_status=$?
2626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627   test $ac_status = 0; }; }; then :
2628   ac_retval=0
2629 else
2630   $as_echo "$as_me: program exited with status $ac_status" >&5
2631        $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633 
2634        ac_retval=$ac_status
2635 fi
2636   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2637   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638   as_fn_set_status $ac_retval
2639 
2640 } # ac_fn_cxx_try_run
2641 
2642 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2643 # ---------------------------------------------------------
2644 # Tests whether HEADER exists and can be compiled using the include files in
2645 # INCLUDES, setting the cache variable VAR accordingly.
2646 ac_fn_cxx_check_header_compile ()
2647 {
2648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2650 $as_echo_n "checking for $2... " >&6; }
2651 if eval \${$3+:} false; then :
2652   $as_echo_n "(cached) " >&6
2653 else
2654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h.  */
2656 $4
2657 #include <$2>
2658 _ACEOF
2659 if ac_fn_cxx_try_compile "$LINENO"; then :
2660   eval "$3=yes"
2661 else
2662   eval "$3=no"
2663 fi
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 fi
2666 eval ac_res=\$$3
2667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 
2671 } # ac_fn_cxx_check_header_compile
2672 
2673 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2674 # ----------------------------------------------
2675 # Tries to find the compile-time value of EXPR in a program that includes
2676 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2677 # computed
2678 ac_fn_cxx_compute_int ()
2679 {
2680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681   if test "$cross_compiling" = yes; then
2682     # Depending upon the size, compute the lo and hi bounds.
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h.  */
2685 $4
2686 int
2687 main ()
2688 {
2689 static int test_array [1 - 2 * !(($2) >= 0)];
2690 test_array [0] = 0;
2691 return test_array [0];
2692 
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 if ac_fn_cxx_try_compile "$LINENO"; then :
2698   ac_lo=0 ac_mid=0
2699   while :; do
2700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h.  */
2702 $4
2703 int
2704 main ()
2705 {
2706 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2707 test_array [0] = 0;
2708 return test_array [0];
2709 
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_cxx_try_compile "$LINENO"; then :
2715   ac_hi=$ac_mid; break
2716 else
2717   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2718                         if test $ac_lo -le $ac_mid; then
2719                           ac_lo= ac_hi=
2720                           break
2721                         fi
2722                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2723 fi
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725   done
2726 else
2727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h.  */
2729 $4
2730 int
2731 main ()
2732 {
2733 static int test_array [1 - 2 * !(($2) < 0)];
2734 test_array [0] = 0;
2735 return test_array [0];
2736 
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 if ac_fn_cxx_try_compile "$LINENO"; then :
2742   ac_hi=-1 ac_mid=-1
2743   while :; do
2744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 $4
2747 int
2748 main ()
2749 {
2750 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2751 test_array [0] = 0;
2752 return test_array [0];
2753 
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 if ac_fn_cxx_try_compile "$LINENO"; then :
2759   ac_lo=$ac_mid; break
2760 else
2761   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2762                         if test $ac_mid -le $ac_hi; then
2763                           ac_lo= ac_hi=
2764                           break
2765                         fi
2766                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2767 fi
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769   done
2770 else
2771   ac_lo= ac_hi=
2772 fi
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 fi
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 # Binary search between lo and hi bounds.
2777 while test "x$ac_lo" != "x$ac_hi"; do
2778   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h.  */
2781 $4
2782 int
2783 main ()
2784 {
2785 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2786 test_array [0] = 0;
2787 return test_array [0];
2788 
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 if ac_fn_cxx_try_compile "$LINENO"; then :
2794   ac_hi=$ac_mid
2795 else
2796   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 done
2800 case $ac_lo in #((
2801 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2802 '') ac_retval=1 ;;
2803 esac
2804   else
2805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 static long int longval () { return $2; }
2809 static unsigned long int ulongval () { return $2; }
2810 #include <stdio.h>
2811 #include <stdlib.h>
2812 int
2813 main ()
2814 {
2815 
2816   FILE *f = fopen ("conftest.val", "w");
2817   if (! f)
2818     return 1;
2819   if (($2) < 0)
2820     {
2821       long int i = longval ();
2822       if (i != ($2))
2823         return 1;
2824       fprintf (f, "%ld", i);
2825     }
2826   else
2827     {
2828       unsigned long int i = ulongval ();
2829       if (i != ($2))
2830         return 1;
2831       fprintf (f, "%lu", i);
2832     }
2833   /* Do not output a trailing newline, as this causes \r\n confusion
2834      on some platforms.  */
2835   return ferror (f) || fclose (f) != 0;
2836 
2837   ;
2838   return 0;
2839 }
2840 _ACEOF
2841 if ac_fn_cxx_try_run "$LINENO"; then :
2842   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2843 else
2844   ac_retval=1
2845 fi
2846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2847   conftest.$ac_objext conftest.beam conftest.$ac_ext
2848 rm -f conftest.val
2849 
2850   fi
2851   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2852   as_fn_set_status $ac_retval
2853 
2854 } # ac_fn_cxx_compute_int
2855 
2856 # ac_fn_cxx_try_link LINENO
2857 # -------------------------
2858 # Try to link conftest.$ac_ext, and return whether this succeeded.
2859 ac_fn_cxx_try_link ()
2860 {
2861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2862   rm -f conftest.$ac_objext conftest$ac_exeext
2863   if { { ac_try="$ac_link"
2864 case "(($ac_try" in
2865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866   *) ac_try_echo=$ac_try;;
2867 esac
2868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869 $as_echo "$ac_try_echo"; } >&5
2870   (eval "$ac_link") 2>conftest.err
2871   ac_status=$?
2872   if test -s conftest.err; then
2873     grep -v '^ *+' conftest.err >conftest.er1
2874     cat conftest.er1 >&5
2875     mv -f conftest.er1 conftest.err
2876   fi
2877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878   test $ac_status = 0; } && {
2879          test -z "$ac_cxx_werror_flag" ||
2880          test ! -s conftest.err
2881        } && test -s conftest$ac_exeext && {
2882          test "$cross_compiling" = yes ||
2883          test -x conftest$ac_exeext
2884        }; then :
2885   ac_retval=0
2886 else
2887   $as_echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2889 
2890         ac_retval=1
2891 fi
2892   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2893   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2894   # interfere with the next link command; also delete a directory that is
2895   # left behind by Apple's compiler.  We do this before executing the actions.
2896   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2898   as_fn_set_status $ac_retval
2899 
2900 } # ac_fn_cxx_try_link
2901 
2902 # ac_fn_cxx_check_func LINENO FUNC VAR
2903 # ------------------------------------
2904 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2905 ac_fn_cxx_check_func ()
2906 {
2907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval \${$3+:} false; then :
2911   $as_echo_n "(cached) " >&6
2912 else
2913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h.  */
2915 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2917 #define $2 innocuous_$2
2918 
2919 /* System header to define __stub macros and hopefully few prototypes,
2920     which can conflict with char $2 (); below.
2921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922     <limits.h> exists even on freestanding compilers.  */
2923 
2924 #ifdef __STDC__
2925 # include <limits.h>
2926 #else
2927 # include <assert.h>
2928 #endif
2929 
2930 #undef $2
2931 
2932 /* Override any GCC internal prototype to avoid an error.
2933    Use char because int might match the return type of a GCC
2934    builtin and then its argument prototype would still apply.  */
2935 #ifdef __cplusplus
2936 extern "C"
2937 #endif
2938 char $2 ();
2939 /* The GNU C library defines this for functions which it implements
2940     to always fail with ENOSYS.  Some functions are actually named
2941     something starting with __ and the normal name is an alias.  */
2942 #if defined __stub_$2 || defined __stub___$2
2943 choke me
2944 #endif
2945 
2946 int
2947 main ()
2948 {
2949 return $2 ();
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 if ac_fn_cxx_try_link "$LINENO"; then :
2955   eval "$3=yes"
2956 else
2957   eval "$3=no"
2958 fi
2959 rm -f core conftest.err conftest.$ac_objext \
2960     conftest$ac_exeext conftest.$ac_ext
2961 fi
2962 eval ac_res=\$$3
2963                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2964 $as_echo "$ac_res" >&6; }
2965   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2966 
2967 } # ac_fn_cxx_check_func
2968 
2969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2970 # -------------------------------------------------------
2971 # Tests whether HEADER exists and can be compiled using the include files in
2972 # INCLUDES, setting the cache variable VAR accordingly.
2973 ac_fn_c_check_header_compile ()
2974 {
2975   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2977 $as_echo_n "checking for $2... " >&6; }
2978 if eval \${$3+:} false; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h.  */
2983 $4
2984 #include <$2>
2985 _ACEOF
2986 if ac_fn_c_try_compile "$LINENO"; then :
2987   eval "$3=yes"
2988 else
2989   eval "$3=no"
2990 fi
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 fi
2993 eval ac_res=\$$3
2994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2995 $as_echo "$ac_res" >&6; }
2996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2997 
2998 } # ac_fn_c_check_header_compile
2999 cat >config.log <<_ACEOF
3000 This file contains any messages produced by compilers while
3001 running configure, to aid debugging if configure makes a mistake.
3002 
3003 It was created by OpenJDK $as_me jdk9, which was
3004 generated by GNU Autoconf 2.69.  Invocation command line was
3005 
3006   $ $0 $@
3007 
3008 _ACEOF
3009 exec 5>>config.log
3010 {
3011 cat <<_ASUNAME
3012 ## --------- ##
3013 ## Platform. ##
3014 ## --------- ##
3015 
3016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3021 
3022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3024 
3025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3028 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3032 
3033 _ASUNAME
3034 
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     $as_echo "PATH: $as_dir"
3041   done
3042 IFS=$as_save_IFS
3043 
3044 } >&5
3045 
3046 cat >&5 <<_ACEOF
3047 
3048 
3049 ## ----------- ##
3050 ## Core tests. ##
3051 ## ----------- ##
3052 
3053 _ACEOF
3054 
3055 
3056 # Keep a trace of the command line.
3057 # Strip out --no-create and --no-recursion so they do not pile up.
3058 # Strip out --silent because we don't want to record it for future runs.
3059 # Also quote any args containing shell meta-characters.
3060 # Make two passes to allow for proper duplicate-argument suppression.
3061 ac_configure_args=
3062 ac_configure_args0=
3063 ac_configure_args1=
3064 ac_must_keep_next=false
3065 for ac_pass in 1 2
3066 do
3067   for ac_arg
3068   do
3069     case $ac_arg in
3070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3072     | -silent | --silent | --silen | --sile | --sil)
3073       continue ;;
3074     *\'*)
3075       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3076     esac
3077     case $ac_pass in
3078     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3079     2)
3080       as_fn_append ac_configure_args1 " '$ac_arg'"
3081       if test $ac_must_keep_next = true; then
3082         ac_must_keep_next=false # Got value, back to normal.
3083       else
3084         case $ac_arg in
3085           *=* | --config-cache | -C | -disable-* | --disable-* \
3086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3088           | -with-* | --with-* | -without-* | --without-* | --x)
3089             case "$ac_configure_args0 " in
3090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3091             esac
3092             ;;
3093           -* ) ac_must_keep_next=true ;;
3094         esac
3095       fi
3096       as_fn_append ac_configure_args " '$ac_arg'"
3097       ;;
3098     esac
3099   done
3100 done
3101 { ac_configure_args0=; unset ac_configure_args0;}
3102 { ac_configure_args1=; unset ac_configure_args1;}
3103 
3104 # When interrupted or exit'd, cleanup temporary files, and complete
3105 # config.log.  We remove comments because anyway the quotes in there
3106 # would cause problems or look ugly.
3107 # WARNING: Use '\'' to represent an apostrophe within the trap.
3108 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3109 trap 'exit_status=$?
3110   # Save into config.log some information that might help in debugging.
3111   {
3112     echo
3113 
3114     $as_echo "## ---------------- ##
3115 ## Cache variables. ##
3116 ## ---------------- ##"
3117     echo
3118     # The following way of writing the cache mishandles newlines in values,
3119 (
3120   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3121     eval ac_val=\$$ac_var
3122     case $ac_val in #(
3123     *${as_nl}*)
3124       case $ac_var in #(
3125       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3127       esac
3128       case $ac_var in #(
3129       _ | IFS | as_nl) ;; #(
3130       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3131       *) { eval $ac_var=; unset $ac_var;} ;;
3132       esac ;;
3133     esac
3134   done
3135   (set) 2>&1 |
3136     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3137     *${as_nl}ac_space=\ *)
3138       sed -n \
3139         "s/'\''/'\''\\\\'\'''\''/g;
3140           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3141       ;; #(
3142     *)
3143       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3144       ;;
3145     esac |
3146     sort
3147 )
3148     echo
3149 
3150     $as_echo "## ----------------- ##
3151 ## Output variables. ##
3152 ## ----------------- ##"
3153     echo
3154     for ac_var in $ac_subst_vars
3155     do
3156       eval ac_val=\$$ac_var
3157       case $ac_val in
3158       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3159       esac
3160       $as_echo "$ac_var='\''$ac_val'\''"
3161     done | sort
3162     echo
3163 
3164     if test -n "$ac_subst_files"; then
3165       $as_echo "## ------------------- ##
3166 ## File substitutions. ##
3167 ## ------------------- ##"
3168       echo
3169       for ac_var in $ac_subst_files
3170       do
3171         eval ac_val=\$$ac_var
3172         case $ac_val in
3173         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3174         esac
3175         $as_echo "$ac_var='\''$ac_val'\''"
3176       done | sort
3177       echo
3178     fi
3179 
3180     if test -s confdefs.h; then
3181       $as_echo "## ----------- ##
3182 ## confdefs.h. ##
3183 ## ----------- ##"
3184       echo
3185       cat confdefs.h
3186       echo
3187     fi
3188     test "$ac_signal" != 0 &&
3189       $as_echo "$as_me: caught signal $ac_signal"
3190     $as_echo "$as_me: exit $exit_status"
3191   } >&5
3192   rm -f core *.core core.conftest.* &&
3193     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3194     exit $exit_status
3195 ' 0
3196 for ac_signal in 1 2 13 15; do
3197   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3198 done
3199 ac_signal=0
3200 
3201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3202 rm -f -r conftest* confdefs.h
3203 
3204 $as_echo "/* confdefs.h */" > confdefs.h
3205 
3206 # Predefined preprocessor variables.
3207 
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE_NAME "$PACKAGE_NAME"
3210 _ACEOF
3211 
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3214 _ACEOF
3215 
3216 cat >>confdefs.h <<_ACEOF
3217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3218 _ACEOF
3219 
3220 cat >>confdefs.h <<_ACEOF
3221 #define PACKAGE_STRING "$PACKAGE_STRING"
3222 _ACEOF
3223 
3224 cat >>confdefs.h <<_ACEOF
3225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3226 _ACEOF
3227 
3228 cat >>confdefs.h <<_ACEOF
3229 #define PACKAGE_URL "$PACKAGE_URL"
3230 _ACEOF
3231 
3232 
3233 # Let the site file select an alternate cache file if it wants to.
3234 # Prefer an explicitly selected file to automatically selected ones.
3235 ac_site_file1=NONE
3236 ac_site_file2=NONE
3237 if test -n "$CONFIG_SITE"; then
3238   # We do not want a PATH search for config.site.
3239   case $CONFIG_SITE in #((
3240     -*)  ac_site_file1=./$CONFIG_SITE;;
3241     */*) ac_site_file1=$CONFIG_SITE;;
3242     *)   ac_site_file1=./$CONFIG_SITE;;
3243   esac
3244 elif test "x$prefix" != xNONE; then
3245   ac_site_file1=$prefix/share/config.site
3246   ac_site_file2=$prefix/etc/config.site
3247 else
3248   ac_site_file1=$ac_default_prefix/share/config.site
3249   ac_site_file2=$ac_default_prefix/etc/config.site
3250 fi
3251 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3252 do
3253   test "x$ac_site_file" = xNONE && continue
3254   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3255     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3257     sed 's/^/| /' "$ac_site_file" >&5
3258     . "$ac_site_file" \
3259       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "failed to load site script $ac_site_file
3262 See \`config.log' for more details" "$LINENO" 5; }
3263   fi
3264 done
3265 
3266 if test -r "$cache_file"; then
3267   # Some versions of bash will fail to source /dev/null (special files
3268   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3269   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3270     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3271 $as_echo "$as_me: loading cache $cache_file" >&6;}
3272     case $cache_file in
3273       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3274       *)                      . "./$cache_file";;
3275     esac
3276   fi
3277 else
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3279 $as_echo "$as_me: creating cache $cache_file" >&6;}
3280   >$cache_file
3281 fi
3282 
3283 # Check that the precious variables saved in the cache have kept the same
3284 # value.
3285 ac_cache_corrupted=false
3286 for ac_var in $ac_precious_vars; do
3287   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3288   eval ac_new_set=\$ac_env_${ac_var}_set
3289   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3290   eval ac_new_val=\$ac_env_${ac_var}_value
3291   case $ac_old_set,$ac_new_set in
3292     set,)
3293       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3294 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3295       ac_cache_corrupted=: ;;
3296     ,set)
3297       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3298 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3299       ac_cache_corrupted=: ;;
3300     ,);;
3301     *)
3302       if test "x$ac_old_val" != "x$ac_new_val"; then
3303         # differences in whitespace do not lead to failure.
3304         ac_old_val_w=`echo x $ac_old_val`
3305         ac_new_val_w=`echo x $ac_new_val`
3306         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3307           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3308 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3309           ac_cache_corrupted=:
3310         else
3311           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3312 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3313           eval $ac_var=\$ac_old_val
3314         fi
3315         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3316 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3317         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3318 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3319       fi;;
3320   esac
3321   # Pass precious variables to config.status.
3322   if test "$ac_new_set" = set; then
3323     case $ac_new_val in
3324     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3325     *) ac_arg=$ac_var=$ac_new_val ;;
3326     esac
3327     case " $ac_configure_args " in
3328       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3329       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3330     esac
3331   fi
3332 done
3333 if $ac_cache_corrupted; then
3334   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3337 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3338   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3339 fi
3340 ## -------------------- ##
3341 ## Main body of script. ##
3342 ## -------------------- ##
3343 
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 
3350 
3351 
3352 ac_aux_dir=
3353 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3354   if test -f "$ac_dir/install-sh"; then
3355     ac_aux_dir=$ac_dir
3356     ac_install_sh="$ac_aux_dir/install-sh -c"
3357     break
3358   elif test -f "$ac_dir/install.sh"; then
3359     ac_aux_dir=$ac_dir
3360     ac_install_sh="$ac_aux_dir/install.sh -c"
3361     break
3362   elif test -f "$ac_dir/shtool"; then
3363     ac_aux_dir=$ac_dir
3364     ac_install_sh="$ac_aux_dir/shtool install -c"
3365     break
3366   fi
3367 done
3368 if test -z "$ac_aux_dir"; then
3369   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
3370 fi
3371 
3372 # These three variables are undocumented and unsupported,
3373 # and are intended to be withdrawn in a future Autoconf release.
3374 # They can cause serious problems if a builder's source tree is in a directory
3375 # whose full name contains unusual characters.
3376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3378 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3379 
3380 
3381 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3382 
3383 #
3384 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3385 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3386 #
3387 # This code is free software; you can redistribute it and/or modify it
3388 # under the terms of the GNU General Public License version 2 only, as
3389 # published by the Free Software Foundation.  Oracle designates this
3390 # particular file as subject to the "Classpath" exception as provided
3391 # by Oracle in the LICENSE file that accompanied this code.
3392 #
3393 # This code is distributed in the hope that it will be useful, but WITHOUT
3394 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3395 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3396 # version 2 for more details (a copy is included in the LICENSE file that
3397 # accompanied this code).
3398 #
3399 # You should have received a copy of the GNU General Public License version
3400 # 2 along with this work; if not, write to the Free Software Foundation,
3401 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3402 #
3403 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3404 # or visit www.oracle.com if you need additional information or have any
3405 # questions.
3406 #
3407 
3408 #
3409 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3410 #
3411 # This program is free software; you can redistribute it and/or modify
3412 # it under the terms of the GNU General Public License as published by
3413 # the Free Software Foundation; either version 2 of the License, or
3414 # (at your option) any later version.
3415 #
3416 # This program is distributed in the hope that it will be useful, but
3417 # WITHOUT ANY WARRANTY; without even the implied warranty of
3418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3419 # General Public License for more details.
3420 #
3421 # You should have received a copy of the GNU General Public License
3422 # along with this program; if not, write to the Free Software
3423 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3424 #
3425 # As a special exception to the GNU General Public License, if you
3426 # distribute this file as part of a program that contains a
3427 # configuration script generated by Autoconf, you may include it under
3428 # the same distribution terms that you use for the rest of that program.
3429 
3430 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3431 # ----------------------------------
3432 # PKG_PROG_PKG_CONFIG
3433 
3434 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3435 #
3436 # Check to see whether a particular set of modules exists.  Similar
3437 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3438 #
3439 #
3440 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3441 # this or PKG_CHECK_MODULES is called, or make sure to call
3442 # PKG_CHECK_EXISTS manually
3443 # --------------------------------------------------------------
3444 
3445 
3446 
3447 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3448 # ---------------------------------------------
3449 # _PKG_CONFIG
3450 
3451 # _PKG_SHORT_ERRORS_SUPPORTED
3452 # -----------------------------
3453 # _PKG_SHORT_ERRORS_SUPPORTED
3454 
3455 
3456 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3457 # [ACTION-IF-NOT-FOUND])
3458 #
3459 #
3460 # Note that if there is a possibility the first call to
3461 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3462 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3463 #
3464 #
3465 # --------------------------------------------------------------
3466 # PKG_CHECK_MODULES
3467 
3468 
3469 # Include these first...
3470 #
3471 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3472 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3473 #
3474 # This code is free software; you can redistribute it and/or modify it
3475 # under the terms of the GNU General Public License version 2 only, as
3476 # published by the Free Software Foundation.  Oracle designates this
3477 # particular file as subject to the "Classpath" exception as provided
3478 # by Oracle in the LICENSE file that accompanied this code.
3479 #
3480 # This code is distributed in the hope that it will be useful, but WITHOUT
3481 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3482 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3483 # version 2 for more details (a copy is included in the LICENSE file that
3484 # accompanied this code).
3485 #
3486 # You should have received a copy of the GNU General Public License version
3487 # 2 along with this work; if not, write to the Free Software Foundation,
3488 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3489 #
3490 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3491 # or visit www.oracle.com if you need additional information or have any
3492 # questions.
3493 #
3494 
3495 # Create a function/macro that takes a series of named arguments. The call is
3496 # similar to AC_DEFUN, but the setup of the function looks like this:
3497 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3498 # ... do something
3499 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3500 # ])
3501 # A star (*) in front of a named argument means that it is required and it's
3502 # presence will be verified. To pass e.g. the first value as a normal indexed
3503 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3504 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3505 # "ARG_FOO".
3506 #
3507 # The generated function can be called like this:
3508 # MYFUNC(FOO: [foo-val],
3509 #     BAR: [
3510 #         $ECHO hello world
3511 #     ])
3512 # Note that the argument value must start on the same line as the argument name.
3513 #
3514 # Argument 1: Name of the function to define
3515 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3516 # Argument 3: Argument array to treat as named, typically $@
3517 # Argument 4: The main function body
3518 
3519 
3520 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3521 # If so, then append $1 to $2 \
3522 # Also set JVM_ARG_OK to true/false depending on outcome.
3523 
3524 
3525 # Appends a string to a path variable, only adding the : when needed.
3526 
3527 
3528 # Prepends a string to a path variable, only adding the : when needed.
3529 
3530 
3531 # This will make sure the given variable points to a full and proper
3532 # path. This means:
3533 # 1) There will be no spaces in the path. On unix platforms,
3534 #    spaces in the path will result in an error. On Windows,
3535 #    the path will be rewritten using short-style to be space-free.
3536 # 2) The path will be absolute, and it will be in unix-style (on
3537 #     cygwin).
3538 # $1: The name of the variable to fix
3539 
3540 
3541 # This will make sure the given variable points to a executable
3542 # with a full and proper path. This means:
3543 # 1) There will be no spaces in the path. On unix platforms,
3544 #    spaces in the path will result in an error. On Windows,
3545 #    the path will be rewritten using short-style to be space-free.
3546 # 2) The path will be absolute, and it will be in unix-style (on
3547 #     cygwin).
3548 # Any arguments given to the executable is preserved.
3549 # If the input variable does not have a directory specification, then
3550 # it need to be in the PATH.
3551 # $1: The name of the variable to fix
3552 
3553 
3554 
3555 
3556 # Register a --with argument but mark it as deprecated
3557 # $1: The name of the with argument to deprecate, not including --with-
3558 
3559 
3560 # Register a --enable argument but mark it as deprecated
3561 # $1: The name of the with argument to deprecate, not including --enable-
3562 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3563 # $3: Messages to user.
3564 
3565 
3566 
3567 
3568 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3569 # $1: variable to check
3570 
3571 
3572 # Check that there are no unprocessed overridden variables left.
3573 # If so, they are an incorrect argument and we will exit with an error.
3574 
3575 
3576 # Setup a tool for the given variable. If correctly specified by the user,
3577 # use that value, otherwise search for the tool using the supplied code snippet.
3578 # $1: variable to set
3579 # $2: code snippet to call to look for the tool
3580 # $3: code snippet to call if variable was used to find tool
3581 
3582 
3583 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3584 # $1: variable to set
3585 # $2: executable name (or list of names) to look for
3586 
3587 
3588 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3589 # $1: variable to set
3590 # $2: executable name (or list of names) to look for
3591 
3592 
3593 # Like BASIC_PATH_PROGS but fails if no tool was found.
3594 # $1: variable to set
3595 # $2: executable name (or list of names) to look for
3596 
3597 
3598 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3599 # $1: variable to set
3600 # $2: autoconf macro to call to look for the special tool
3601 
3602 
3603 # Setup the most fundamental tools that relies on not much else to set up,
3604 # but is used by much of the early bootstrap code.
3605 
3606 
3607 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3608 
3609 
3610 # Evaluates platform specific overrides for devkit variables.
3611 # $1: Name of variable
3612 
3613 
3614 
3615 
3616 
3617 
3618 #%%% Simple tools %%%
3619 
3620 # Check if we have found a usable version of make
3621 # $1: the path to a potential make binary (or empty)
3622 # $2: the description on how we found this
3623 
3624 
3625 
3626 
3627 # Goes looking for a usable version of GNU make.
3628 
3629 
3630 
3631 
3632 
3633 
3634 # Check if build directory is on local disk. If not possible to determine,
3635 # we prefer to claim it's local.
3636 # Argument 1: directory to test
3637 # Argument 2: what to do if it is on local disk
3638 # Argument 3: what to do otherwise (remote disk or failure)
3639 
3640 
3641 # Check that source files have basic read permissions set. This might
3642 # not be the case in cygwin in certain conditions.
3643 
3644 
3645 
3646 
3647 # Check for support for specific options in bash
3648 
3649 
3650 ################################################################################
3651 #
3652 # Default make target
3653 #
3654 
3655 
3656 # Code to run after AC_OUTPUT
3657 
3658 
3659 #
3660 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3661 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3662 #
3663 # This code is free software; you can redistribute it and/or modify it
3664 # under the terms of the GNU General Public License version 2 only, as
3665 # published by the Free Software Foundation.  Oracle designates this
3666 # particular file as subject to the "Classpath" exception as provided
3667 # by Oracle in the LICENSE file that accompanied this code.
3668 #
3669 # This code is distributed in the hope that it will be useful, but WITHOUT
3670 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3671 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3672 # version 2 for more details (a copy is included in the LICENSE file that
3673 # accompanied this code).
3674 #
3675 # You should have received a copy of the GNU General Public License version
3676 # 2 along with this work; if not, write to the Free Software Foundation,
3677 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3678 #
3679 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3680 # or visit www.oracle.com if you need additional information or have any
3681 # questions.
3682 #
3683 
3684 
3685 
3686 
3687 
3688 # Helper function which possibly converts a path using DOS-style short mode.
3689 # If so, the updated path is stored in $new_path.
3690 # $1: The path to check
3691 
3692 
3693 # Helper function which possibly converts a path using DOS-style short mode.
3694 # If so, the updated path is stored in $new_path.
3695 # $1: The path to check
3696 
3697 
3698 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3699 # and could probably be heavily simplified. However, all changes in this
3700 # area tend to need lot of testing in different scenarios, and in lack of
3701 # proper unit testing, cleaning this up has not been deemed worth the effort
3702 # at the moment.
3703 
3704 
3705 
3706 
3707 
3708 
3709 
3710 
3711 
3712 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3713 
3714 
3715 
3716 
3717 # ... then the rest
3718 #
3719 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3720 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3721 #
3722 # This code is free software; you can redistribute it and/or modify it
3723 # under the terms of the GNU General Public License version 2 only, as
3724 # published by the Free Software Foundation.  Oracle designates this
3725 # particular file as subject to the "Classpath" exception as provided
3726 # by Oracle in the LICENSE file that accompanied this code.
3727 #
3728 # This code is distributed in the hope that it will be useful, but WITHOUT
3729 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3730 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3731 # version 2 for more details (a copy is included in the LICENSE file that
3732 # accompanied this code).
3733 #
3734 # You should have received a copy of the GNU General Public License version
3735 # 2 along with this work; if not, write to the Free Software Foundation,
3736 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3737 #
3738 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3739 # or visit www.oracle.com if you need additional information or have any
3740 # questions.
3741 #
3742 
3743 ########################################################################
3744 # This file handles detection of the Boot JDK. The Boot JDK detection
3745 # process has been developed as a response to solve a complex real-world
3746 # problem. Initially, it was simple, but it has grown as platform after
3747 # platform, idiosyncracy after idiosyncracy has been supported.
3748 #
3749 # The basic idea is this:
3750 # 1) You need an acceptable *) JDK to use as a Boot JDK
3751 # 2) There are several ways to locate a JDK, that are mostly platform
3752 #    dependent **)
3753 # 3) You can have multiple JDKs installed
3754 # 4) If possible, configure should try to dig out an acceptable JDK
3755 #    automatically, without having to resort to command-line options
3756 #
3757 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3758 #     javac) and not a JRE, etc.
3759 #
3760 # **) On Windows we typically use a well-known path.
3761 #     On MacOSX we typically use the tool java_home.
3762 #     On Linux we typically find javac in the $PATH, and then follow a
3763 #     chain of symlinks that often ends up in a real JDK.
3764 #
3765 # This leads to the code where we check in different ways to locate a
3766 # JDK, and if one is found, check if it is acceptable. If not, we print
3767 # our reasons for rejecting it (useful when debugging non-working
3768 # configure situations) and continue checking the next one.
3769 ########################################################################
3770 
3771 # Execute the check given as argument, and verify the result
3772 # If the Boot JDK was previously found, do nothing
3773 # $1 A command line (typically autoconf macro) to execute
3774 
3775 
3776 # Test: Is bootjdk explicitely set by command line arguments?
3777 
3778 
3779 # Test: Is $JAVA_HOME set?
3780 
3781 
3782 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3783 
3784 
3785 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3786 # $1: Argument to the java_home binary (optional)
3787 
3788 
3789 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3790 
3791 
3792 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3793 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3794 # $1 = Path to directory containing jdk installations.
3795 # $2 = String to append to the found JDK directory to get the proper JDK home
3796 
3797 
3798 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3799 # environmental variable as base for where to look.
3800 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3801 
3802 
3803 # Test: Is there a JDK installed in default, well-known locations?
3804 
3805 
3806 # Check that a command-line tool in the Boot JDK is correct
3807 # $1 = name of variable to assign
3808 # $2 = name of binary
3809 
3810 
3811 ###############################################################################
3812 #
3813 # We need a Boot JDK to bootstrap the build.
3814 #
3815 
3816 
3817 
3818 
3819 
3820 # BUILD_JDK: the location of the latest JDK that can run
3821 #   on the host system and supports the target class file version
3822 #   generated in this JDK build.  This variable should only be
3823 #   used after the launchers are built.
3824 #
3825 
3826 # Execute the check given as argument, and verify the result.
3827 # If the JDK was previously found, do nothing.
3828 # $1 A command line (typically autoconf macro) to execute
3829 
3830 
3831 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3832 # is different than the host system doing the build (e.g. cross-compilation),
3833 # a special BUILD_JDK is built as part of the build process.  An external
3834 # prebuilt BUILD_JDK can also be supplied.
3835 
3836 
3837 #
3838 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3839 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3840 #
3841 # This code is free software; you can redistribute it and/or modify it
3842 # under the terms of the GNU General Public License version 2 only, as
3843 # published by the Free Software Foundation.  Oracle designates this
3844 # particular file as subject to the "Classpath" exception as provided
3845 # by Oracle in the LICENSE file that accompanied this code.
3846 #
3847 # This code is distributed in the hope that it will be useful, but WITHOUT
3848 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3849 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3850 # version 2 for more details (a copy is included in the LICENSE file that
3851 # accompanied this code).
3852 #
3853 # You should have received a copy of the GNU General Public License version
3854 # 2 along with this work; if not, write to the Free Software Foundation,
3855 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3856 #
3857 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3858 # or visit www.oracle.com if you need additional information or have any
3859 # questions.
3860 #
3861 
3862 
3863 
3864 
3865 
3866 
3867 
3868 
3869 
3870 
3871 
3872 
3873 
3874 
3875 
3876 
3877 
3878 ################################################################################
3879 #
3880 # Runs icecc-create-env once and prints the error if it fails
3881 #
3882 # $1: arguments to icecc-create-env
3883 # $2: log file
3884 #
3885 
3886 
3887 ################################################################################
3888 #
3889 # Optionally enable distributed compilation of native code using icecc/icecream
3890 #
3891 
3892 
3893 
3894 
3895 
3896 
3897 
3898 #
3899 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3900 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3901 #
3902 # This code is free software; you can redistribute it and/or modify it
3903 # under the terms of the GNU General Public License version 2 only, as
3904 # published by the Free Software Foundation.  Oracle designates this
3905 # particular file as subject to the "Classpath" exception as provided
3906 # by Oracle in the LICENSE file that accompanied this code.
3907 #
3908 # This code is distributed in the hope that it will be useful, but WITHOUT
3909 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3910 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3911 # version 2 for more details (a copy is included in the LICENSE file that
3912 # accompanied this code).
3913 #
3914 # You should have received a copy of the GNU General Public License version
3915 # 2 along with this work; if not, write to the Free Software Foundation,
3916 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3917 #
3918 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3919 # or visit www.oracle.com if you need additional information or have any
3920 # questions.
3921 #
3922 
3923 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3924 # corresponding configure arguments instead
3925 
3926 
3927 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3928 # that configure can use them while detecting compilers.
3929 # TOOLCHAIN_TYPE is available here.
3930 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3931 
3932 
3933 
3934 
3935 
3936 
3937 # Documentation on common flags used for solstudio in HIGHEST.
3938 #
3939 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3940 #          done with care, there are some assumptions below that need to
3941 #          be understood about the use of pointers, and IEEE behavior.
3942 #
3943 # -fns: Use non-standard floating point mode (not IEEE 754)
3944 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3945 # -fsingle: Use single precision floating point with 'float'
3946 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3947 #   (Source with excessing pointer casting and data access with mixed
3948 #    pointer types are not recommended)
3949 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3950 #   (If you expect perfect errno behavior, do not use this)
3951 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3952 # -xrestrict: Pointer parameters to functions do not overlap
3953 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3954 #    If you pass in multiple pointers to the same data, do not use this)
3955 # -xlibmil: Inline some library routines
3956 #   (If you expect perfect errno behavior, do not use this)
3957 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3958 #   (If you expect perfect errno behavior, do not use this)
3959 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3960 
3961     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3962     # Bug?
3963     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3964     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3965     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3966     #fi
3967 
3968 
3969 
3970 
3971 
3972 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
3973 #                                  IF_FALSE: [RUN-IF-FALSE])
3974 # ------------------------------------------------------------
3975 # Check that the C compiler supports an argument
3976 
3977 
3978 
3979 
3980 # FLAGS_CXX_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_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
3989 #                                IF_FALSE: [RUN-IF-FALSE])
3990 # ------------------------------------------------------------
3991 # Check that the C and C++ compilers support an argument
3992 
3993 
3994 
3995 
3996 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
3997 #                                   IF_FALSE: [RUN-IF-FALSE])
3998 # ------------------------------------------------------------
3999 # Check that the linker support an argument
4000 
4001 
4002 
4003 
4004 
4005 
4006 
4007 
4008 #
4009 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4010 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4011 #
4012 # This code is free software; you can redistribute it and/or modify it
4013 # under the terms of the GNU General Public License version 2 only, as
4014 # published by the Free Software Foundation.  Oracle designates this
4015 # particular file as subject to the "Classpath" exception as provided
4016 # by Oracle in the LICENSE file that accompanied this code.
4017 #
4018 # This code is distributed in the hope that it will be useful, but WITHOUT
4019 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4020 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4021 # version 2 for more details (a copy is included in the LICENSE file that
4022 # accompanied this code).
4023 #
4024 # You should have received a copy of the GNU General Public License version
4025 # 2 along with this work; if not, write to the Free Software Foundation,
4026 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4027 #
4028 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4029 # or visit www.oracle.com if you need additional information or have any
4030 # questions.
4031 #
4032 
4033 
4034 
4035 
4036 
4037 cygwin_help() {
4038   case $1 in
4039     unzip)
4040       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4041       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4042       ;;
4043     zip)
4044       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4045       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4046       ;;
4047     make)
4048       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4049       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4050       ;;
4051     freetype)
4052       HELP_MSG="
4053 The freetype library can now be build during the configure process.
4054 Download the freetype sources and unpack them into an arbitrary directory:
4055 
4056 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4057 tar -xzf freetype-2.5.3.tar.gz
4058 
4059 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4060 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4061 builds or into '<freetype_src>/lib32' for 32-bit builds.
4062 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4063 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4064 
4065 Alternatively you can unpack the sources like this to use the default directory:
4066 
4067 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4068       ;;
4069   esac
4070 }
4071 
4072 msys_help() {
4073   PKGHANDLER_COMMAND=""
4074 }
4075 
4076 apt_help() {
4077   case $1 in
4078     reduced)
4079       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4080     devkit)
4081       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4082     openjdk)
4083       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4084     alsa)
4085       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4086     cups)
4087       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4088     freetype)
4089       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4090     ffi)
4091       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4092     x11)
4093       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4094     ccache)
4095       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4096   esac
4097 }
4098 
4099 yum_help() {
4100   case $1 in
4101     devkit)
4102       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4103     openjdk)
4104       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4105     alsa)
4106       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4107     cups)
4108       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4109     freetype)
4110       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4111     x11)
4112       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4113     ccache)
4114       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4115   esac
4116 }
4117 
4118 port_help() {
4119   PKGHANDLER_COMMAND=""
4120 }
4121 
4122 pkgutil_help() {
4123   PKGHANDLER_COMMAND=""
4124 }
4125 
4126 pkgadd_help() {
4127   PKGHANDLER_COMMAND=""
4128 }
4129 
4130 # This function will check if we're called from the "configure" wrapper while
4131 # printing --help. If so, we will print out additional information that can
4132 # only be extracted within the autoconf script, and then exit. This must be
4133 # called at the very beginning in configure.ac.
4134 
4135 
4136 
4137 
4138 
4139 
4140 #
4141 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4142 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4143 #
4144 # This code is free software; you can redistribute it and/or modify it
4145 # under the terms of the GNU General Public License version 2 only, as
4146 # published by the Free Software Foundation.  Oracle designates this
4147 # particular file as subject to the "Classpath" exception as provided
4148 # by Oracle in the LICENSE file that accompanied this code.
4149 #
4150 # This code is distributed in the hope that it will be useful, but WITHOUT
4151 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4152 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4153 # version 2 for more details (a copy is included in the LICENSE file that
4154 # accompanied this code).
4155 #
4156 # You should have received a copy of the GNU General Public License version
4157 # 2 along with this work; if not, write to the Free Software Foundation,
4158 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4159 #
4160 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4161 # or visit www.oracle.com if you need additional information or have any
4162 # questions.
4163 #
4164 
4165 ###############################################################################
4166 # Check which interpreter of the JVM we want to build.
4167 # Currently we have:
4168 #    template: Template interpreter (the default)
4169 #    cpp     : C++ interpreter
4170 
4171 
4172 ###############################################################################
4173 # Check which variants of the JVM that we want to build.
4174 # Currently we have:
4175 #    server: normal interpreter and a C2 or tiered C1/C2 compiler
4176 #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
4177 #    minimal1: reduced form of client with optional VM services and features stripped out
4178 #    zero: no machine code interpreter, no compiler
4179 #    zeroshark: zero interpreter and shark/llvm compiler backend
4180 #    core: interpreter only, no compiler (only works on some platforms)
4181 
4182 
4183 
4184 ###############################################################################
4185 # Setup legacy vars/targets and new vars to deal with different debug levels.
4186 #
4187 #    release: no debug information, all optimizations, no asserts.
4188 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4189 #    fastdebug: debug information (-g), all optimizations, all asserts
4190 #    slowdebug: debug information (-g), no optimizations, all asserts
4191 #
4192 
4193 
4194 
4195 
4196 
4197 
4198 #
4199 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4200 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4201 #
4202 # This code is free software; you can redistribute it and/or modify it
4203 # under the terms of the GNU General Public License version 2 only, as
4204 # published by the Free Software Foundation.  Oracle designates this
4205 # particular file as subject to the "Classpath" exception as provided
4206 # by Oracle in the LICENSE file that accompanied this code.
4207 #
4208 # This code is distributed in the hope that it will be useful, but WITHOUT
4209 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4210 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4211 # version 2 for more details (a copy is included in the LICENSE file that
4212 # accompanied this code).
4213 #
4214 # You should have received a copy of the GNU General Public License version
4215 # 2 along with this work; if not, write to the Free Software Foundation,
4216 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4217 #
4218 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4219 # or visit www.oracle.com if you need additional information or have any
4220 # questions.
4221 #
4222 
4223 ###############################################################################
4224 # Check which variant of the JDK that we want to build.
4225 # Currently we have:
4226 #    normal:   standard edition
4227 # but the custom make system may add other variants
4228 #
4229 # Effectively the JDK variant gives a name to a specific set of
4230 # modules to compile into the JDK.
4231 
4232 
4233 ###############################################################################
4234 # Set the debug level
4235 #    release: no debug information, all optimizations, no asserts.
4236 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4237 #    fastdebug: debug information (-g), all optimizations, all asserts
4238 #    slowdebug: debug information (-g), no optimizations, all asserts
4239 
4240 
4241 ###############################################################################
4242 #
4243 # Should we build only OpenJDK even if closed sources are present?
4244 #
4245 
4246 
4247 
4248 
4249 ###############################################################################
4250 #
4251 # Enable or disable the elliptic curve crypto implementation
4252 #
4253 
4254 
4255 
4256 
4257 ################################################################################
4258 #
4259 # Gcov coverage data for hotspot
4260 #
4261 
4262 
4263 ################################################################################
4264 #
4265 # Static build support.  When enabled will generate static
4266 # libraries instead of shared libraries for all JDK libs.
4267 #
4268 
4269 
4270 ################################################################################
4271 #
4272 # jlink options.
4273 # We always keep packaged modules in JDK image.
4274 #
4275 
4276 
4277 #
4278 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4279 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4280 #
4281 # This code is free software; you can redistribute it and/or modify it
4282 # under the terms of the GNU General Public License version 2 only, as
4283 # published by the Free Software Foundation.  Oracle designates this
4284 # particular file as subject to the "Classpath" exception as provided
4285 # by Oracle in the LICENSE file that accompanied this code.
4286 #
4287 # This code is distributed in the hope that it will be useful, but WITHOUT
4288 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4289 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4290 # version 2 for more details (a copy is included in the LICENSE file that
4291 # accompanied this code).
4292 #
4293 # You should have received a copy of the GNU General Public License version
4294 # 2 along with this work; if not, write to the Free Software Foundation,
4295 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4296 #
4297 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4298 # or visit www.oracle.com if you need additional information or have any
4299 # questions.
4300 #
4301 
4302 ###############################################################################
4303 #
4304 # Setup version numbers
4305 #
4306 
4307 # Verify that a given string represents a valid version number, and assign it
4308 # to a variable.
4309 
4310 # Argument 1: the variable to assign to
4311 # Argument 2: the value given by the user
4312 
4313 
4314 
4315 
4316 #
4317 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4318 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4319 #
4320 # This code is free software; you can redistribute it and/or modify it
4321 # under the terms of the GNU General Public License version 2 only, as
4322 # published by the Free Software Foundation.  Oracle designates this
4323 # particular file as subject to the "Classpath" exception as provided
4324 # by Oracle in the LICENSE file that accompanied this code.
4325 #
4326 # This code is distributed in the hope that it will be useful, but WITHOUT
4327 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4328 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4329 # version 2 for more details (a copy is included in the LICENSE file that
4330 # accompanied this code).
4331 #
4332 # You should have received a copy of the GNU General Public License version
4333 # 2 along with this work; if not, write to the Free Software Foundation,
4334 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4335 #
4336 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4337 # or visit www.oracle.com if you need additional information or have any
4338 # questions.
4339 #
4340 
4341 # Major library component reside in separate files.
4342 #
4343 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4344 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4345 #
4346 # This code is free software; you can redistribute it and/or modify it
4347 # under the terms of the GNU General Public License version 2 only, as
4348 # published by the Free Software Foundation.  Oracle designates this
4349 # particular file as subject to the "Classpath" exception as provided
4350 # by Oracle in the LICENSE file that accompanied this code.
4351 #
4352 # This code is distributed in the hope that it will be useful, but WITHOUT
4353 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4354 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4355 # version 2 for more details (a copy is included in the LICENSE file that
4356 # accompanied this code).
4357 #
4358 # You should have received a copy of the GNU General Public License version
4359 # 2 along with this work; if not, write to the Free Software Foundation,
4360 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4361 #
4362 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4363 # or visit www.oracle.com if you need additional information or have any
4364 # questions.
4365 #
4366 
4367 ################################################################################
4368 # Setup alsa (Advanced Linux Sound Architecture)
4369 ################################################################################
4370 
4371 
4372 #
4373 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4374 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4375 #
4376 # This code is free software; you can redistribute it and/or modify it
4377 # under the terms of the GNU General Public License version 2 only, as
4378 # published by the Free Software Foundation.  Oracle designates this
4379 # particular file as subject to the "Classpath" exception as provided
4380 # by Oracle in the LICENSE file that accompanied this code.
4381 #
4382 # This code is distributed in the hope that it will be useful, but WITHOUT
4383 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4384 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4385 # version 2 for more details (a copy is included in the LICENSE file that
4386 # accompanied this code).
4387 #
4388 # You should have received a copy of the GNU General Public License version
4389 # 2 along with this work; if not, write to the Free Software Foundation,
4390 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4391 #
4392 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4393 # or visit www.oracle.com if you need additional information or have any
4394 # questions.
4395 #
4396 
4397 ################################################################################
4398 # Setup bundled libraries.
4399 #
4400 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4401 # OpenJDK repository. Default is to use these libraries as bundled, but they
4402 # might be replaced by en external version by the user.
4403 ################################################################################
4404 
4405 
4406 ################################################################################
4407 # Setup libjpeg
4408 ################################################################################
4409 
4410 
4411 ################################################################################
4412 # Setup giflib
4413 ################################################################################
4414 
4415 
4416 ################################################################################
4417 # Setup libpng
4418 ################################################################################
4419 
4420 
4421 ################################################################################
4422 # Setup zlib
4423 ################################################################################
4424 
4425 
4426 ################################################################################
4427 # Setup lcms (Little CMS)
4428 ################################################################################
4429 
4430 
4431 #
4432 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4433 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4434 #
4435 # This code is free software; you can redistribute it and/or modify it
4436 # under the terms of the GNU General Public License version 2 only, as
4437 # published by the Free Software Foundation.  Oracle designates this
4438 # particular file as subject to the "Classpath" exception as provided
4439 # by Oracle in the LICENSE file that accompanied this code.
4440 #
4441 # This code is distributed in the hope that it will be useful, but WITHOUT
4442 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4443 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4444 # version 2 for more details (a copy is included in the LICENSE file that
4445 # accompanied this code).
4446 #
4447 # You should have received a copy of the GNU General Public License version
4448 # 2 along with this work; if not, write to the Free Software Foundation,
4449 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4450 #
4451 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4452 # or visit www.oracle.com if you need additional information or have any
4453 # questions.
4454 #
4455 
4456 ################################################################################
4457 # Setup cups (Common Unix Printing System)
4458 ################################################################################
4459 
4460 
4461 #
4462 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4463 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4464 #
4465 # This code is free software; you can redistribute it and/or modify it
4466 # under the terms of the GNU General Public License version 2 only, as
4467 # published by the Free Software Foundation.  Oracle designates this
4468 # particular file as subject to the "Classpath" exception as provided
4469 # by Oracle in the LICENSE file that accompanied this code.
4470 #
4471 # This code is distributed in the hope that it will be useful, but WITHOUT
4472 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4473 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4474 # version 2 for more details (a copy is included in the LICENSE file that
4475 # accompanied this code).
4476 #
4477 # You should have received a copy of the GNU General Public License version
4478 # 2 along with this work; if not, write to the Free Software Foundation,
4479 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4480 #
4481 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4482 # or visit www.oracle.com if you need additional information or have any
4483 # questions.
4484 #
4485 
4486 ################################################################################
4487 # Setup libffi (Foreign Function Interface)
4488 ################################################################################
4489 
4490 
4491 #
4492 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4493 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4494 #
4495 # This code is free software; you can redistribute it and/or modify it
4496 # under the terms of the GNU General Public License version 2 only, as
4497 # published by the Free Software Foundation.  Oracle designates this
4498 # particular file as subject to the "Classpath" exception as provided
4499 # by Oracle in the LICENSE file that accompanied this code.
4500 #
4501 # This code is distributed in the hope that it will be useful, but WITHOUT
4502 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4503 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4504 # version 2 for more details (a copy is included in the LICENSE file that
4505 # accompanied this code).
4506 #
4507 # You should have received a copy of the GNU General Public License version
4508 # 2 along with this work; if not, write to the Free Software Foundation,
4509 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4510 #
4511 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4512 # or visit www.oracle.com if you need additional information or have any
4513 # questions.
4514 #
4515 
4516 ################################################################################
4517 # Build the freetype lib from source
4518 ################################################################################
4519 
4520 
4521 ################################################################################
4522 # Check if a potential freeype library match is correct and usable
4523 ################################################################################
4524 
4525 
4526 ################################################################################
4527 # Setup freetype (The FreeType2 font rendering library)
4528 ################################################################################
4529 
4530 
4531 #
4532 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4533 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4534 #
4535 # This code is free software; you can redistribute it and/or modify it
4536 # under the terms of the GNU General Public License version 2 only, as
4537 # published by the Free Software Foundation.  Oracle designates this
4538 # particular file as subject to the "Classpath" exception as provided
4539 # by Oracle in the LICENSE file that accompanied this code.
4540 #
4541 # This code is distributed in the hope that it will be useful, but WITHOUT
4542 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4543 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4544 # version 2 for more details (a copy is included in the LICENSE file that
4545 # accompanied this code).
4546 #
4547 # You should have received a copy of the GNU General Public License version
4548 # 2 along with this work; if not, write to the Free Software Foundation,
4549 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4550 #
4551 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4552 # or visit www.oracle.com if you need additional information or have any
4553 # questions.
4554 #
4555 
4556 ################################################################################
4557 # Setup the standard C/C++ runtime libraries.
4558 #
4559 # Most importantly, determine if stdc++ should be linked statically or
4560 # dynamically.
4561 ################################################################################
4562 
4563 
4564 #
4565 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4566 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4567 #
4568 # This code is free software; you can redistribute it and/or modify it
4569 # under the terms of the GNU General Public License version 2 only, as
4570 # published by the Free Software Foundation.  Oracle designates this
4571 # particular file as subject to the "Classpath" exception as provided
4572 # by Oracle in the LICENSE file that accompanied this code.
4573 #
4574 # This code is distributed in the hope that it will be useful, but WITHOUT
4575 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4576 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4577 # version 2 for more details (a copy is included in the LICENSE file that
4578 # accompanied this code).
4579 #
4580 # You should have received a copy of the GNU General Public License version
4581 # 2 along with this work; if not, write to the Free Software Foundation,
4582 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4583 #
4584 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4585 # or visit www.oracle.com if you need additional information or have any
4586 # questions.
4587 #
4588 
4589 ################################################################################
4590 # Setup X11 Windows system
4591 ################################################################################
4592 
4593 
4594 
4595 ################################################################################
4596 # Determine which libraries are needed for this configuration
4597 ################################################################################
4598 
4599 
4600 ################################################################################
4601 # Parse library options, and setup needed libraries
4602 ################################################################################
4603 
4604 
4605 ################################################################################
4606 # Setup llvm (Low-Level VM)
4607 ################################################################################
4608 
4609 
4610 ################################################################################
4611 # Setup various libraries, typically small system libraries
4612 ################################################################################
4613 
4614 
4615 #
4616 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4617 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4618 #
4619 # This code is free software; you can redistribute it and/or modify it
4620 # under the terms of the GNU General Public License version 2 only, as
4621 # published by the Free Software Foundation.  Oracle designates this
4622 # particular file as subject to the "Classpath" exception as provided
4623 # by Oracle in the LICENSE file that accompanied this code.
4624 #
4625 # This code is distributed in the hope that it will be useful, but WITHOUT
4626 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4627 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4628 # version 2 for more details (a copy is included in the LICENSE file that
4629 # accompanied this code).
4630 #
4631 # You should have received a copy of the GNU General Public License version
4632 # 2 along with this work; if not, write to the Free Software Foundation,
4633 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4634 #
4635 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4636 # or visit www.oracle.com if you need additional information or have any
4637 # questions.
4638 #
4639 
4640 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4641 # Converts autoconf style CPU name to OpenJDK style, into
4642 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4643 
4644 
4645 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4646 # Converts autoconf style OS name to OpenJDK style, into
4647 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4648 
4649 
4650 # Expects $host_os $host_cpu $build_os and $build_cpu
4651 # and $with_target_bits to have been setup!
4652 #
4653 # Translate the standard triplet(quadruplet) definition
4654 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4655 # OPENJDK_BUILD_OS, etc.
4656 
4657 
4658 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4659 # accordingly. Must be done after setting up build and target system, but before
4660 # doing anything else with these values.
4661 
4662 
4663 # Setup the legacy variables, for controlling the old makefiles.
4664 #
4665 
4666 
4667 
4668 
4669 #%%% Build and target systems %%%
4670 
4671 
4672 
4673 
4674 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4675 # Add -mX to various FLAGS variables.
4676 
4677 
4678 
4679 
4680 
4681 
4682 #
4683 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4684 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4685 #
4686 # This code is free software; you can redistribute it and/or modify it
4687 # under the terms of the GNU General Public License version 2 only, as
4688 # published by the Free Software Foundation.  Oracle designates this
4689 # particular file as subject to the "Classpath" exception as provided
4690 # by Oracle in the LICENSE file that accompanied this code.
4691 #
4692 # This code is distributed in the hope that it will be useful, but WITHOUT
4693 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4694 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4695 # version 2 for more details (a copy is included in the LICENSE file that
4696 # accompanied this code).
4697 #
4698 # You should have received a copy of the GNU General Public License version
4699 # 2 along with this work; if not, write to the Free Software Foundation,
4700 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4701 #
4702 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4703 # or visit www.oracle.com if you need additional information or have any
4704 # questions.
4705 #
4706 
4707 
4708 
4709 
4710 
4711 
4712 
4713 ################################################################################
4714 # Define a mechanism for importing extra prebuilt modules
4715 #
4716 
4717 
4718 
4719 #
4720 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4721 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4722 #
4723 # This code is free software; you can redistribute it and/or modify it
4724 # under the terms of the GNU General Public License version 2 only, as
4725 # published by the Free Software Foundation.  Oracle designates this
4726 # particular file as subject to the "Classpath" exception as provided
4727 # by Oracle in the LICENSE file that accompanied this code.
4728 #
4729 # This code is distributed in the hope that it will be useful, but WITHOUT
4730 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4731 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4732 # version 2 for more details (a copy is included in the LICENSE file that
4733 # accompanied this code).
4734 #
4735 # You should have received a copy of the GNU General Public License version
4736 # 2 along with this work; if not, write to the Free Software Foundation,
4737 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4738 #
4739 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4740 # or visit www.oracle.com if you need additional information or have any
4741 # questions.
4742 #
4743 
4744 ########################################################################
4745 # This file is responsible for detecting, verifying and setting up the
4746 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4747 # proper paths to the binaries, but it will not setup any flags.
4748 #
4749 # The binaries used is determined by the toolchain type, which is the family of
4750 # compilers and related tools that are used.
4751 ########################################################################
4752 
4753 
4754 # All valid toolchains, regardless of platform (used by help.m4)
4755 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4756 
4757 # These toolchains are valid on different platforms
4758 VALID_TOOLCHAINS_linux="gcc clang"
4759 VALID_TOOLCHAINS_solaris="solstudio"
4760 VALID_TOOLCHAINS_macosx="gcc clang"
4761 VALID_TOOLCHAINS_aix="xlc"
4762 VALID_TOOLCHAINS_windows="microsoft"
4763 
4764 # Toolchain descriptions
4765 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4766 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4767 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4768 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4769 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4770 
4771 # Minimum supported versions, empty means unspecified
4772 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4773 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4774 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4775 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12"
4776 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4777 
4778 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4779 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4780 
4781 
4782 # Check if the configured compiler (C and C++) is of a specific version or
4783 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4784 #
4785 # Arguments:
4786 #   VERSION:   The version string to check against the found version
4787 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4788 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4789 
4790 
4791 
4792 
4793 # Setup a number of variables describing how native output files are
4794 # named on this platform/toolchain.
4795 
4796 
4797 # Determine which toolchain type to use, and make sure it is valid for this
4798 # platform. Setup various information about the selected toolchain.
4799 
4800 
4801 # Before we start detecting the toolchain executables, we might need some
4802 # special setup, e.g. additional paths etc.
4803 
4804 
4805 # Restore path, etc
4806 
4807 
4808 # Check if a compiler is of the toolchain type we expect, and save the version
4809 # information from it. If the compiler does not match the expected type,
4810 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4811 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4812 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4813 #
4814 # $1 = compiler to test (CC or CXX)
4815 # $2 = human readable name of compiler (C or C++)
4816 
4817 
4818 # Try to locate the given C or C++ compiler in the path, or otherwise.
4819 #
4820 # $1 = compiler to test (CC or CXX)
4821 # $2 = human readable name of compiler (C or C++)
4822 # $3 = list of compiler names to search for
4823 
4824 
4825 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4826 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4827 # archiver (AR). Verify that the compilers are correct according to the
4828 # toolchain type.
4829 
4830 
4831 # Setup additional tools that is considered a part of the toolchain, but not the
4832 # core part. Many of these are highly platform-specific and do not exist,
4833 # and/or are not needed on all platforms.
4834 
4835 
4836 # Setup the build tools (i.e, the compiler and linker used to build programs
4837 # that should be run on the build platform, not the target platform, as a build
4838 # helper). Since the non-cross-compile case uses the normal, target compilers
4839 # for this, we can only do this after these have been setup.
4840 
4841 
4842 # Setup legacy variables that are still needed as alternative ways to refer to
4843 # parts of the toolchain.
4844 
4845 
4846 # Do some additional checks on the detected tools.
4847 
4848 
4849 # Setup the JTReg Regression Test Harness.
4850 
4851 
4852 #
4853 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4854 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4855 #
4856 # This code is free software; you can redistribute it and/or modify it
4857 # under the terms of the GNU General Public License version 2 only, as
4858 # published by the Free Software Foundation.  Oracle designates this
4859 # particular file as subject to the "Classpath" exception as provided
4860 # by Oracle in the LICENSE file that accompanied this code.
4861 #
4862 # This code is distributed in the hope that it will be useful, but WITHOUT
4863 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4864 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4865 # version 2 for more details (a copy is included in the LICENSE file that
4866 # accompanied this code).
4867 #
4868 # You should have received a copy of the GNU General Public License version
4869 # 2 along with this work; if not, write to the Free Software Foundation,
4870 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4871 #
4872 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4873 # or visit www.oracle.com if you need additional information or have any
4874 # questions.
4875 #
4876 
4877 ################################################################################
4878 # The order of these defines the priority by which we try to find them.
4879 VALID_VS_VERSIONS="2013 2012 2010"
4880 
4881 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4882 VS_VERSION_INTERNAL_2010=100
4883 VS_MSVCR_2010=msvcr100.dll
4884 # We don't use msvcp on Visual Studio 2010
4885 #VS_MSVCP_2010=msvcp100.dll
4886 VS_ENVVAR_2010="VS100COMNTOOLS"
4887 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4888 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4889 VS_VS_PLATFORM_NAME_2010="v100"
4890 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4891 
4892 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4893 VS_VERSION_INTERNAL_2012=110
4894 VS_MSVCR_2012=msvcr110.dll
4895 VS_MSVCP_2012=msvcp110.dll
4896 VS_ENVVAR_2012="VS110COMNTOOLS"
4897 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4898 VS_SDK_INSTALLDIR_2012=
4899 VS_VS_PLATFORM_NAME_2012="v110"
4900 VS_SDK_PLATFORM_NAME_2012=
4901 
4902 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4903 VS_VERSION_INTERNAL_2013=120
4904 VS_MSVCR_2013=msvcr120.dll
4905 VS_MSVCP_2013=msvcp120.dll
4906 VS_ENVVAR_2013="VS120COMNTOOLS"
4907 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4908 VS_SDK_INSTALLDIR_2013=
4909 VS_VS_PLATFORM_NAME_2013="v120"
4910 VS_SDK_PLATFORM_NAME_2013=
4911 
4912 ################################################################################
4913 
4914 
4915 
4916 ################################################################################
4917 
4918 
4919 
4920 ################################################################################
4921 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4922 # build environment and assigns it to VS_ENV_CMD
4923 
4924 
4925 ################################################################################
4926 
4927 
4928 
4929 ################################################################################
4930 # Check if the VS env variables were setup prior to running configure.
4931 # If not, then find vcvarsall.bat and run it automatically, and integrate
4932 # the set env variables into the spec file.
4933 
4934 
4935 
4936 
4937 
4938 
4939 
4940 
4941 
4942 
4943 
4944 
4945 
4946 
4947 # This line needs to be here, verbatim, after all includes and the dummy hook
4948 # definitions. It is replaced with custom functionality when building
4949 # custom sources.
4950 #CUSTOM_AUTOCONF_INCLUDE
4951 
4952 # Do not change or remove the following line, it is needed for consistency checks:
4953 DATE_WHEN_GENERATED=1460464859
4954 
4955 ###############################################################################
4956 #
4957 # Initialization / Boot-strapping
4958 #
4959 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4960 # thus it jumps back and forth, each time gaining something needed later on.
4961 #
4962 ###############################################################################
4963 
4964 # If we are requested to print additional help, do that and then exit.
4965 # This must be the very first call.
4966 
4967   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
4968 
4969     # Print available toolchains
4970     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4971     $PRINTF "Which are valid to use depends on the build platform.\n"
4972     for toolchain in $VALID_TOOLCHAINS_all; do
4973       # Use indirect variable referencing
4974       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4975       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4976       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4977     done
4978 
4979     # And now exit directly
4980     exit 0
4981   fi
4982 
4983 
4984 # Basic initialization that must happen first of all in the normal process.
4985 
4986   # Save the original command line. This is passed to us by the wrapper configure script.
4987 
4988   # Save the path variable before it gets changed
4989   ORIGINAL_PATH="$PATH"
4990 
4991   DATE_WHEN_CONFIGURED=`LANG=C date`
4992 
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4994 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4996 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4997 
4998 
4999   # Start with tools that do not need have cross compilation support
5000   # and can be expected to be found in the default PATH. These tools are
5001   # used by configure.
5002 
5003   # First are all the simple required tools.
5004 
5005 
5006 
5007   # Publish this variable in the help.
5008 
5009 
5010   if [ -z "${BASENAME+x}" ]; then
5011     # The variable is not set by user, try to locate tool using the code snippet
5012     for ac_prog in basename
5013 do
5014   # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_path_BASENAME+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   case $BASENAME in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031     for ac_exec_ext in '' $ac_executable_extensions; do
5032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038   done
5039 IFS=$as_save_IFS
5040 
5041   ;;
5042 esac
5043 fi
5044 BASENAME=$ac_cv_path_BASENAME
5045 if test -n "$BASENAME"; then
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5047 $as_echo "$BASENAME" >&6; }
5048 else
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052 
5053 
5054   test -n "$BASENAME" && break
5055 done
5056 
5057   else
5058     # The variable is set, but is it from the command line or the environment?
5059 
5060     # Try to remove the string !BASENAME! from our list.
5061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5063       # If it failed, the variable was not from the command line. Ignore it,
5064       # but warn the user (except for BASH, which is always set by the calling BASH).
5065       if test "xBASENAME" != xBASH; then
5066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5067 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5068       fi
5069       # Try to locate tool using the code snippet
5070       for ac_prog in basename
5071 do
5072   # Extract the first word of "$ac_prog", so it can be a program name with args.
5073 set dummy $ac_prog; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_path_BASENAME+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   case $BASENAME in
5080   [\\/]* | ?:[\\/]*)
5081   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5082   ;;
5083   *)
5084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096   done
5097 IFS=$as_save_IFS
5098 
5099   ;;
5100 esac
5101 fi
5102 BASENAME=$ac_cv_path_BASENAME
5103 if test -n "$BASENAME"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5105 $as_echo "$BASENAME" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110 
5111 
5112   test -n "$BASENAME" && break
5113 done
5114 
5115     else
5116       # If it succeeded, then it was overridden by the user. We will use it
5117       # for the tool.
5118 
5119       # First remove it from the list of overridden variables, so we can test
5120       # for unknown variables in the end.
5121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5122 
5123       # Check if we try to supply an empty value
5124       if test "x$BASENAME" = x; then
5125         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5126 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5128 $as_echo_n "checking for BASENAME... " >&6; }
5129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5130 $as_echo "disabled" >&6; }
5131       else
5132         # Check if the provided tool contains a complete path.
5133         tool_specified="$BASENAME"
5134         tool_basename="${tool_specified##*/}"
5135         if test "x$tool_basename" = "x$tool_specified"; then
5136           # A command without a complete path is provided, search $PATH.
5137           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5138 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5139           # Extract the first word of "$tool_basename", so it can be a program name with args.
5140 set dummy $tool_basename; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_path_BASENAME+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   case $BASENAME in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165 
5166   ;;
5167 esac
5168 fi
5169 BASENAME=$ac_cv_path_BASENAME
5170 if test -n "$BASENAME"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5172 $as_echo "$BASENAME" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177 
5178 
5179           if test "x$BASENAME" = x; then
5180             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5181           fi
5182         else
5183           # Otherwise we believe it is a complete path. Use it as it is.
5184           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5185 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5186           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5187 $as_echo_n "checking for BASENAME... " >&6; }
5188           if test ! -x "$tool_specified"; then
5189             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5190 $as_echo "not found" >&6; }
5191             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5192           fi
5193           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5194 $as_echo "$tool_specified" >&6; }
5195         fi
5196       fi
5197     fi
5198 
5199   fi
5200 
5201 
5202 
5203   if test "x$BASENAME" = x; then
5204     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5205   fi
5206 
5207 
5208 
5209 
5210 
5211   # Publish this variable in the help.
5212 
5213 
5214   if [ -z "${BASH+x}" ]; then
5215     # The variable is not set by user, try to locate tool using the code snippet
5216     for ac_prog in bash
5217 do
5218   # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_path_BASH+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   case $BASH in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242   done
5243 IFS=$as_save_IFS
5244 
5245   ;;
5246 esac
5247 fi
5248 BASH=$ac_cv_path_BASH
5249 if test -n "$BASH"; then
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5251 $as_echo "$BASH" >&6; }
5252 else
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256 
5257 
5258   test -n "$BASH" && break
5259 done
5260 
5261   else
5262     # The variable is set, but is it from the command line or the environment?
5263 
5264     # Try to remove the string !BASH! from our list.
5265     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5266     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5267       # If it failed, the variable was not from the command line. Ignore it,
5268       # but warn the user (except for BASH, which is always set by the calling BASH).
5269       if test "xBASH" != xBASH; then
5270         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5271 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5272       fi
5273       # Try to locate tool using the code snippet
5274       for ac_prog in bash
5275 do
5276   # Extract the first word of "$ac_prog", so it can be a program name with args.
5277 set dummy $ac_prog; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_path_BASH+:} false; then :
5281   $as_echo_n "(cached) " >&6
5282 else
5283   case $BASH in
5284   [\\/]* | ?:[\\/]*)
5285   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5286   ;;
5287   *)
5288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293     for ac_exec_ext in '' $ac_executable_extensions; do
5294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300   done
5301 IFS=$as_save_IFS
5302 
5303   ;;
5304 esac
5305 fi
5306 BASH=$ac_cv_path_BASH
5307 if test -n "$BASH"; then
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5309 $as_echo "$BASH" >&6; }
5310 else
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314 
5315 
5316   test -n "$BASH" && break
5317 done
5318 
5319     else
5320       # If it succeeded, then it was overridden by the user. We will use it
5321       # for the tool.
5322 
5323       # First remove it from the list of overridden variables, so we can test
5324       # for unknown variables in the end.
5325       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5326 
5327       # Check if we try to supply an empty value
5328       if test "x$BASH" = x; then
5329         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5330 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5332 $as_echo_n "checking for BASH... " >&6; }
5333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5334 $as_echo "disabled" >&6; }
5335       else
5336         # Check if the provided tool contains a complete path.
5337         tool_specified="$BASH"
5338         tool_basename="${tool_specified##*/}"
5339         if test "x$tool_basename" = "x$tool_specified"; then
5340           # A command without a complete path is provided, search $PATH.
5341           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5342 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5343           # Extract the first word of "$tool_basename", so it can be a program name with args.
5344 set dummy $tool_basename; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_BASH+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   case $BASH in
5351   [\\/]* | ?:[\\/]*)
5352   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5353   ;;
5354   *)
5355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369 
5370   ;;
5371 esac
5372 fi
5373 BASH=$ac_cv_path_BASH
5374 if test -n "$BASH"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5376 $as_echo "$BASH" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381 
5382 
5383           if test "x$BASH" = x; then
5384             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5385           fi
5386         else
5387           # Otherwise we believe it is a complete path. Use it as it is.
5388           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5389 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5390           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5391 $as_echo_n "checking for BASH... " >&6; }
5392           if test ! -x "$tool_specified"; then
5393             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5394 $as_echo "not found" >&6; }
5395             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5396           fi
5397           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5398 $as_echo "$tool_specified" >&6; }
5399         fi
5400       fi
5401     fi
5402 
5403   fi
5404 
5405 
5406 
5407   if test "x$BASH" = x; then
5408     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5409   fi
5410 
5411 
5412 
5413 
5414 
5415   # Publish this variable in the help.
5416 
5417 
5418   if [ -z "${CAT+x}" ]; then
5419     # The variable is not set by user, try to locate tool using the code snippet
5420     for ac_prog in cat
5421 do
5422   # Extract the first word of "$ac_prog", so it can be a program name with args.
5423 set dummy $ac_prog; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_path_CAT+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   case $CAT in
5430   [\\/]* | ?:[\\/]*)
5431   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5432   ;;
5433   *)
5434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439     for ac_exec_ext in '' $ac_executable_extensions; do
5440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446   done
5447 IFS=$as_save_IFS
5448 
5449   ;;
5450 esac
5451 fi
5452 CAT=$ac_cv_path_CAT
5453 if test -n "$CAT"; then
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5455 $as_echo "$CAT" >&6; }
5456 else
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460 
5461 
5462   test -n "$CAT" && break
5463 done
5464 
5465   else
5466     # The variable is set, but is it from the command line or the environment?
5467 
5468     # Try to remove the string !CAT! from our list.
5469     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5470     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5471       # If it failed, the variable was not from the command line. Ignore it,
5472       # but warn the user (except for BASH, which is always set by the calling BASH).
5473       if test "xCAT" != xBASH; then
5474         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5475 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5476       fi
5477       # Try to locate tool using the code snippet
5478       for ac_prog in cat
5479 do
5480   # Extract the first word of "$ac_prog", so it can be a program name with args.
5481 set dummy $ac_prog; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_CAT+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   case $CAT in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506 
5507   ;;
5508 esac
5509 fi
5510 CAT=$ac_cv_path_CAT
5511 if test -n "$CAT"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5513 $as_echo "$CAT" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518 
5519 
5520   test -n "$CAT" && break
5521 done
5522 
5523     else
5524       # If it succeeded, then it was overridden by the user. We will use it
5525       # for the tool.
5526 
5527       # First remove it from the list of overridden variables, so we can test
5528       # for unknown variables in the end.
5529       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5530 
5531       # Check if we try to supply an empty value
5532       if test "x$CAT" = x; then
5533         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5534 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5536 $as_echo_n "checking for CAT... " >&6; }
5537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5538 $as_echo "disabled" >&6; }
5539       else
5540         # Check if the provided tool contains a complete path.
5541         tool_specified="$CAT"
5542         tool_basename="${tool_specified##*/}"
5543         if test "x$tool_basename" = "x$tool_specified"; then
5544           # A command without a complete path is provided, search $PATH.
5545           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5546 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5547           # Extract the first word of "$tool_basename", so it can be a program name with args.
5548 set dummy $tool_basename; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_path_CAT+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   case $CAT in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564     for ac_exec_ext in '' $ac_executable_extensions; do
5565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571   done
5572 IFS=$as_save_IFS
5573 
5574   ;;
5575 esac
5576 fi
5577 CAT=$ac_cv_path_CAT
5578 if test -n "$CAT"; then
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5580 $as_echo "$CAT" >&6; }
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585 
5586 
5587           if test "x$CAT" = x; then
5588             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5589           fi
5590         else
5591           # Otherwise we believe it is a complete path. Use it as it is.
5592           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5593 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5594           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5595 $as_echo_n "checking for CAT... " >&6; }
5596           if test ! -x "$tool_specified"; then
5597             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5598 $as_echo "not found" >&6; }
5599             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5600           fi
5601           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5602 $as_echo "$tool_specified" >&6; }
5603         fi
5604       fi
5605     fi
5606 
5607   fi
5608 
5609 
5610 
5611   if test "x$CAT" = x; then
5612     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5613   fi
5614 
5615 
5616 
5617 
5618 
5619   # Publish this variable in the help.
5620 
5621 
5622   if [ -z "${CHMOD+x}" ]; then
5623     # The variable is not set by user, try to locate tool using the code snippet
5624     for ac_prog in chmod
5625 do
5626   # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_path_CHMOD+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   case $CHMOD in
5634   [\\/]* | ?:[\\/]*)
5635   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5636   ;;
5637   *)
5638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643     for ac_exec_ext in '' $ac_executable_extensions; do
5644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650   done
5651 IFS=$as_save_IFS
5652 
5653   ;;
5654 esac
5655 fi
5656 CHMOD=$ac_cv_path_CHMOD
5657 if test -n "$CHMOD"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5659 $as_echo "$CHMOD" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664 
5665 
5666   test -n "$CHMOD" && break
5667 done
5668 
5669   else
5670     # The variable is set, but is it from the command line or the environment?
5671 
5672     # Try to remove the string !CHMOD! from our list.
5673     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5674     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5675       # If it failed, the variable was not from the command line. Ignore it,
5676       # but warn the user (except for BASH, which is always set by the calling BASH).
5677       if test "xCHMOD" != xBASH; then
5678         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5679 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5680       fi
5681       # Try to locate tool using the code snippet
5682       for ac_prog in chmod
5683 do
5684   # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_path_CHMOD+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   case $CHMOD in
5692   [\\/]* | ?:[\\/]*)
5693   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5694   ;;
5695   *)
5696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708   done
5709 IFS=$as_save_IFS
5710 
5711   ;;
5712 esac
5713 fi
5714 CHMOD=$ac_cv_path_CHMOD
5715 if test -n "$CHMOD"; then
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5717 $as_echo "$CHMOD" >&6; }
5718 else
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722 
5723 
5724   test -n "$CHMOD" && break
5725 done
5726 
5727     else
5728       # If it succeeded, then it was overridden by the user. We will use it
5729       # for the tool.
5730 
5731       # First remove it from the list of overridden variables, so we can test
5732       # for unknown variables in the end.
5733       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5734 
5735       # Check if we try to supply an empty value
5736       if test "x$CHMOD" = x; then
5737         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5738 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5739         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5740 $as_echo_n "checking for CHMOD... " >&6; }
5741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5742 $as_echo "disabled" >&6; }
5743       else
5744         # Check if the provided tool contains a complete path.
5745         tool_specified="$CHMOD"
5746         tool_basename="${tool_specified##*/}"
5747         if test "x$tool_basename" = "x$tool_specified"; then
5748           # A command without a complete path is provided, search $PATH.
5749           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5750 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5751           # Extract the first word of "$tool_basename", so it can be a program name with args.
5752 set dummy $tool_basename; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_path_CHMOD+:} false; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   case $CHMOD in
5759   [\\/]* | ?:[\\/]*)
5760   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5761   ;;
5762   *)
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_exec_ext in '' $ac_executable_extensions; do
5769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775   done
5776 IFS=$as_save_IFS
5777 
5778   ;;
5779 esac
5780 fi
5781 CHMOD=$ac_cv_path_CHMOD
5782 if test -n "$CHMOD"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5784 $as_echo "$CHMOD" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789 
5790 
5791           if test "x$CHMOD" = x; then
5792             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5793           fi
5794         else
5795           # Otherwise we believe it is a complete path. Use it as it is.
5796           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5797 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5798           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5799 $as_echo_n "checking for CHMOD... " >&6; }
5800           if test ! -x "$tool_specified"; then
5801             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5802 $as_echo "not found" >&6; }
5803             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5804           fi
5805           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5806 $as_echo "$tool_specified" >&6; }
5807         fi
5808       fi
5809     fi
5810 
5811   fi
5812 
5813 
5814 
5815   if test "x$CHMOD" = x; then
5816     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5817   fi
5818 
5819 
5820 
5821 
5822 
5823   # Publish this variable in the help.
5824 
5825 
5826   if [ -z "${CMP+x}" ]; then
5827     # The variable is not set by user, try to locate tool using the code snippet
5828     for ac_prog in cmp
5829 do
5830   # Extract the first word of "$ac_prog", so it can be a program name with args.
5831 set dummy $ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_path_CMP+:} false; then :
5835   $as_echo_n "(cached) " >&6
5836 else
5837   case $CMP in
5838   [\\/]* | ?:[\\/]*)
5839   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5840   ;;
5841   *)
5842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854   done
5855 IFS=$as_save_IFS
5856 
5857   ;;
5858 esac
5859 fi
5860 CMP=$ac_cv_path_CMP
5861 if test -n "$CMP"; then
5862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5863 $as_echo "$CMP" >&6; }
5864 else
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868 
5869 
5870   test -n "$CMP" && break
5871 done
5872 
5873   else
5874     # The variable is set, but is it from the command line or the environment?
5875 
5876     # Try to remove the string !CMP! from our list.
5877     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5878     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5879       # If it failed, the variable was not from the command line. Ignore it,
5880       # but warn the user (except for BASH, which is always set by the calling BASH).
5881       if test "xCMP" != xBASH; then
5882         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5883 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5884       fi
5885       # Try to locate tool using the code snippet
5886       for ac_prog in cmp
5887 do
5888   # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy $ac_prog; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_path_CMP+:} false; then :
5893   $as_echo_n "(cached) " >&6
5894 else
5895   case $CMP in
5896   [\\/]* | ?:[\\/]*)
5897   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5898   ;;
5899   *)
5900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905     for ac_exec_ext in '' $ac_executable_extensions; do
5906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912   done
5913 IFS=$as_save_IFS
5914 
5915   ;;
5916 esac
5917 fi
5918 CMP=$ac_cv_path_CMP
5919 if test -n "$CMP"; then
5920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5921 $as_echo "$CMP" >&6; }
5922 else
5923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5925 fi
5926 
5927 
5928   test -n "$CMP" && break
5929 done
5930 
5931     else
5932       # If it succeeded, then it was overridden by the user. We will use it
5933       # for the tool.
5934 
5935       # First remove it from the list of overridden variables, so we can test
5936       # for unknown variables in the end.
5937       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5938 
5939       # Check if we try to supply an empty value
5940       if test "x$CMP" = x; then
5941         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5942 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5944 $as_echo_n "checking for CMP... " >&6; }
5945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5946 $as_echo "disabled" >&6; }
5947       else
5948         # Check if the provided tool contains a complete path.
5949         tool_specified="$CMP"
5950         tool_basename="${tool_specified##*/}"
5951         if test "x$tool_basename" = "x$tool_specified"; then
5952           # A command without a complete path is provided, search $PATH.
5953           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5954 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5955           # Extract the first word of "$tool_basename", so it can be a program name with args.
5956 set dummy $tool_basename; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_path_CMP+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   case $CMP in
5963   [\\/]* | ?:[\\/]*)
5964   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5965   ;;
5966   *)
5967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972     for ac_exec_ext in '' $ac_executable_extensions; do
5973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979   done
5980 IFS=$as_save_IFS
5981 
5982   ;;
5983 esac
5984 fi
5985 CMP=$ac_cv_path_CMP
5986 if test -n "$CMP"; then
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5988 $as_echo "$CMP" >&6; }
5989 else
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993 
5994 
5995           if test "x$CMP" = x; then
5996             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5997           fi
5998         else
5999           # Otherwise we believe it is a complete path. Use it as it is.
6000           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6001 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6002           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6003 $as_echo_n "checking for CMP... " >&6; }
6004           if test ! -x "$tool_specified"; then
6005             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6006 $as_echo "not found" >&6; }
6007             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6008           fi
6009           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6010 $as_echo "$tool_specified" >&6; }
6011         fi
6012       fi
6013     fi
6014 
6015   fi
6016 
6017 
6018 
6019   if test "x$CMP" = x; then
6020     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6021   fi
6022 
6023 
6024 
6025 
6026 
6027   # Publish this variable in the help.
6028 
6029 
6030   if [ -z "${COMM+x}" ]; then
6031     # The variable is not set by user, try to locate tool using the code snippet
6032     for ac_prog in comm
6033 do
6034   # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_path_COMM+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   case $COMM in
6042   [\\/]* | ?:[\\/]*)
6043   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6044   ;;
6045   *)
6046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051     for ac_exec_ext in '' $ac_executable_extensions; do
6052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058   done
6059 IFS=$as_save_IFS
6060 
6061   ;;
6062 esac
6063 fi
6064 COMM=$ac_cv_path_COMM
6065 if test -n "$COMM"; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6067 $as_echo "$COMM" >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 fi
6072 
6073 
6074   test -n "$COMM" && break
6075 done
6076 
6077   else
6078     # The variable is set, but is it from the command line or the environment?
6079 
6080     # Try to remove the string !COMM! from our list.
6081     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6082     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6083       # If it failed, the variable was not from the command line. Ignore it,
6084       # but warn the user (except for BASH, which is always set by the calling BASH).
6085       if test "xCOMM" != xBASH; then
6086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6087 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6088       fi
6089       # Try to locate tool using the code snippet
6090       for ac_prog in comm
6091 do
6092   # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if ${ac_cv_path_COMM+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   case $COMM in
6100   [\\/]* | ?:[\\/]*)
6101   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6102   ;;
6103   *)
6104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113     break 2
6114   fi
6115 done
6116   done
6117 IFS=$as_save_IFS
6118 
6119   ;;
6120 esac
6121 fi
6122 COMM=$ac_cv_path_COMM
6123 if test -n "$COMM"; then
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6125 $as_echo "$COMM" >&6; }
6126 else
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129 fi
6130 
6131 
6132   test -n "$COMM" && break
6133 done
6134 
6135     else
6136       # If it succeeded, then it was overridden by the user. We will use it
6137       # for the tool.
6138 
6139       # First remove it from the list of overridden variables, so we can test
6140       # for unknown variables in the end.
6141       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6142 
6143       # Check if we try to supply an empty value
6144       if test "x$COMM" = x; then
6145         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6146 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6148 $as_echo_n "checking for COMM... " >&6; }
6149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6150 $as_echo "disabled" >&6; }
6151       else
6152         # Check if the provided tool contains a complete path.
6153         tool_specified="$COMM"
6154         tool_basename="${tool_specified##*/}"
6155         if test "x$tool_basename" = "x$tool_specified"; then
6156           # A command without a complete path is provided, search $PATH.
6157           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6158 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6159           # Extract the first word of "$tool_basename", so it can be a program name with args.
6160 set dummy $tool_basename; ac_word=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if ${ac_cv_path_COMM+:} false; then :
6164   $as_echo_n "(cached) " >&6
6165 else
6166   case $COMM in
6167   [\\/]* | ?:[\\/]*)
6168   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6169   ;;
6170   *)
6171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185 
6186   ;;
6187 esac
6188 fi
6189 COMM=$ac_cv_path_COMM
6190 if test -n "$COMM"; then
6191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6192 $as_echo "$COMM" >&6; }
6193 else
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197 
6198 
6199           if test "x$COMM" = x; then
6200             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6201           fi
6202         else
6203           # Otherwise we believe it is a complete path. Use it as it is.
6204           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6205 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6206           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6207 $as_echo_n "checking for COMM... " >&6; }
6208           if test ! -x "$tool_specified"; then
6209             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6210 $as_echo "not found" >&6; }
6211             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6212           fi
6213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6214 $as_echo "$tool_specified" >&6; }
6215         fi
6216       fi
6217     fi
6218 
6219   fi
6220 
6221 
6222 
6223   if test "x$COMM" = x; then
6224     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6225   fi
6226 
6227 
6228 
6229 
6230 
6231   # Publish this variable in the help.
6232 
6233 
6234   if [ -z "${CP+x}" ]; then
6235     # The variable is not set by user, try to locate tool using the code snippet
6236     for ac_prog in cp
6237 do
6238   # Extract the first word of "$ac_prog", so it can be a program name with args.
6239 set dummy $ac_prog; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_path_CP+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   case $CP in
6246   [\\/]* | ?:[\\/]*)
6247   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6248   ;;
6249   *)
6250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255     for ac_exec_ext in '' $ac_executable_extensions; do
6256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262   done
6263 IFS=$as_save_IFS
6264 
6265   ;;
6266 esac
6267 fi
6268 CP=$ac_cv_path_CP
6269 if test -n "$CP"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6271 $as_echo "$CP" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276 
6277 
6278   test -n "$CP" && break
6279 done
6280 
6281   else
6282     # The variable is set, but is it from the command line or the environment?
6283 
6284     # Try to remove the string !CP! from our list.
6285     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6286     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6287       # If it failed, the variable was not from the command line. Ignore it,
6288       # but warn the user (except for BASH, which is always set by the calling BASH).
6289       if test "xCP" != xBASH; then
6290         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6291 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6292       fi
6293       # Try to locate tool using the code snippet
6294       for ac_prog in cp
6295 do
6296   # Extract the first word of "$ac_prog", so it can be a program name with args.
6297 set dummy $ac_prog; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_path_CP+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   case $CP in
6304   [\\/]* | ?:[\\/]*)
6305   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6306   ;;
6307   *)
6308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313     for ac_exec_ext in '' $ac_executable_extensions; do
6314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320   done
6321 IFS=$as_save_IFS
6322 
6323   ;;
6324 esac
6325 fi
6326 CP=$ac_cv_path_CP
6327 if test -n "$CP"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6329 $as_echo "$CP" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334 
6335 
6336   test -n "$CP" && break
6337 done
6338 
6339     else
6340       # If it succeeded, then it was overridden by the user. We will use it
6341       # for the tool.
6342 
6343       # First remove it from the list of overridden variables, so we can test
6344       # for unknown variables in the end.
6345       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6346 
6347       # Check if we try to supply an empty value
6348       if test "x$CP" = x; then
6349         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6350 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6352 $as_echo_n "checking for CP... " >&6; }
6353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6354 $as_echo "disabled" >&6; }
6355       else
6356         # Check if the provided tool contains a complete path.
6357         tool_specified="$CP"
6358         tool_basename="${tool_specified##*/}"
6359         if test "x$tool_basename" = "x$tool_specified"; then
6360           # A command without a complete path is provided, search $PATH.
6361           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6362 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6363           # Extract the first word of "$tool_basename", so it can be a program name with args.
6364 set dummy $tool_basename; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_path_CP+:} false; then :
6368   $as_echo_n "(cached) " >&6
6369 else
6370   case $CP in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380     for ac_exec_ext in '' $ac_executable_extensions; do
6381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387   done
6388 IFS=$as_save_IFS
6389 
6390   ;;
6391 esac
6392 fi
6393 CP=$ac_cv_path_CP
6394 if test -n "$CP"; then
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6396 $as_echo "$CP" >&6; }
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6400 fi
6401 
6402 
6403           if test "x$CP" = x; then
6404             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6405           fi
6406         else
6407           # Otherwise we believe it is a complete path. Use it as it is.
6408           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6409 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6410           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6411 $as_echo_n "checking for CP... " >&6; }
6412           if test ! -x "$tool_specified"; then
6413             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6414 $as_echo "not found" >&6; }
6415             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6416           fi
6417           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6418 $as_echo "$tool_specified" >&6; }
6419         fi
6420       fi
6421     fi
6422 
6423   fi
6424 
6425 
6426 
6427   if test "x$CP" = x; then
6428     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6429   fi
6430 
6431 
6432 
6433 
6434 
6435   # Publish this variable in the help.
6436 
6437 
6438   if [ -z "${CUT+x}" ]; then
6439     # The variable is not set by user, try to locate tool using the code snippet
6440     for ac_prog in cut
6441 do
6442   # Extract the first word of "$ac_prog", so it can be a program name with args.
6443 set dummy $ac_prog; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_path_CUT+:} false; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   case $CUT in
6450   [\\/]* | ?:[\\/]*)
6451   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6452   ;;
6453   *)
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466   done
6467 IFS=$as_save_IFS
6468 
6469   ;;
6470 esac
6471 fi
6472 CUT=$ac_cv_path_CUT
6473 if test -n "$CUT"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6475 $as_echo "$CUT" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480 
6481 
6482   test -n "$CUT" && break
6483 done
6484 
6485   else
6486     # The variable is set, but is it from the command line or the environment?
6487 
6488     # Try to remove the string !CUT! from our list.
6489     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6490     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6491       # If it failed, the variable was not from the command line. Ignore it,
6492       # but warn the user (except for BASH, which is always set by the calling BASH).
6493       if test "xCUT" != xBASH; then
6494         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6495 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6496       fi
6497       # Try to locate tool using the code snippet
6498       for ac_prog in cut
6499 do
6500   # Extract the first word of "$ac_prog", so it can be a program name with args.
6501 set dummy $ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_path_CUT+:} false; then :
6505   $as_echo_n "(cached) " >&6
6506 else
6507   case $CUT in
6508   [\\/]* | ?:[\\/]*)
6509   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6510   ;;
6511   *)
6512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526 
6527   ;;
6528 esac
6529 fi
6530 CUT=$ac_cv_path_CUT
6531 if test -n "$CUT"; then
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6533 $as_echo "$CUT" >&6; }
6534 else
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538 
6539 
6540   test -n "$CUT" && break
6541 done
6542 
6543     else
6544       # If it succeeded, then it was overridden by the user. We will use it
6545       # for the tool.
6546 
6547       # First remove it from the list of overridden variables, so we can test
6548       # for unknown variables in the end.
6549       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6550 
6551       # Check if we try to supply an empty value
6552       if test "x$CUT" = x; then
6553         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6554 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6556 $as_echo_n "checking for CUT... " >&6; }
6557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6558 $as_echo "disabled" >&6; }
6559       else
6560         # Check if the provided tool contains a complete path.
6561         tool_specified="$CUT"
6562         tool_basename="${tool_specified##*/}"
6563         if test "x$tool_basename" = "x$tool_specified"; then
6564           # A command without a complete path is provided, search $PATH.
6565           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6566 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6567           # Extract the first word of "$tool_basename", so it can be a program name with args.
6568 set dummy $tool_basename; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_path_CUT+:} false; then :
6572   $as_echo_n "(cached) " >&6
6573 else
6574   case $CUT in
6575   [\\/]* | ?:[\\/]*)
6576   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6577   ;;
6578   *)
6579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593 
6594   ;;
6595 esac
6596 fi
6597 CUT=$ac_cv_path_CUT
6598 if test -n "$CUT"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6600 $as_echo "$CUT" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605 
6606 
6607           if test "x$CUT" = x; then
6608             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6609           fi
6610         else
6611           # Otherwise we believe it is a complete path. Use it as it is.
6612           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6613 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6614           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6615 $as_echo_n "checking for CUT... " >&6; }
6616           if test ! -x "$tool_specified"; then
6617             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6618 $as_echo "not found" >&6; }
6619             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6620           fi
6621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6622 $as_echo "$tool_specified" >&6; }
6623         fi
6624       fi
6625     fi
6626 
6627   fi
6628 
6629 
6630 
6631   if test "x$CUT" = x; then
6632     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6633   fi
6634 
6635 
6636 
6637 
6638 
6639   # Publish this variable in the help.
6640 
6641 
6642   if [ -z "${DATE+x}" ]; then
6643     # The variable is not set by user, try to locate tool using the code snippet
6644     for ac_prog in date
6645 do
6646   # Extract the first word of "$ac_prog", so it can be a program name with args.
6647 set dummy $ac_prog; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_path_DATE+:} false; then :
6651   $as_echo_n "(cached) " >&6
6652 else
6653   case $DATE in
6654   [\\/]* | ?:[\\/]*)
6655   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6656   ;;
6657   *)
6658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663     for ac_exec_ext in '' $ac_executable_extensions; do
6664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670   done
6671 IFS=$as_save_IFS
6672 
6673   ;;
6674 esac
6675 fi
6676 DATE=$ac_cv_path_DATE
6677 if test -n "$DATE"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6679 $as_echo "$DATE" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684 
6685 
6686   test -n "$DATE" && break
6687 done
6688 
6689   else
6690     # The variable is set, but is it from the command line or the environment?
6691 
6692     # Try to remove the string !DATE! from our list.
6693     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6694     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6695       # If it failed, the variable was not from the command line. Ignore it,
6696       # but warn the user (except for BASH, which is always set by the calling BASH).
6697       if test "xDATE" != xBASH; then
6698         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6699 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6700       fi
6701       # Try to locate tool using the code snippet
6702       for ac_prog in date
6703 do
6704   # Extract the first word of "$ac_prog", so it can be a program name with args.
6705 set dummy $ac_prog; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_path_DATE+:} false; then :
6709   $as_echo_n "(cached) " >&6
6710 else
6711   case $DATE in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730 
6731   ;;
6732 esac
6733 fi
6734 DATE=$ac_cv_path_DATE
6735 if test -n "$DATE"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6737 $as_echo "$DATE" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742 
6743 
6744   test -n "$DATE" && break
6745 done
6746 
6747     else
6748       # If it succeeded, then it was overridden by the user. We will use it
6749       # for the tool.
6750 
6751       # First remove it from the list of overridden variables, so we can test
6752       # for unknown variables in the end.
6753       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6754 
6755       # Check if we try to supply an empty value
6756       if test "x$DATE" = x; then
6757         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6758 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6760 $as_echo_n "checking for DATE... " >&6; }
6761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6762 $as_echo "disabled" >&6; }
6763       else
6764         # Check if the provided tool contains a complete path.
6765         tool_specified="$DATE"
6766         tool_basename="${tool_specified##*/}"
6767         if test "x$tool_basename" = "x$tool_specified"; then
6768           # A command without a complete path is provided, search $PATH.
6769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6770 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6771           # Extract the first word of "$tool_basename", so it can be a program name with args.
6772 set dummy $tool_basename; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_path_DATE+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   case $DATE in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797 
6798   ;;
6799 esac
6800 fi
6801 DATE=$ac_cv_path_DATE
6802 if test -n "$DATE"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6804 $as_echo "$DATE" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809 
6810 
6811           if test "x$DATE" = x; then
6812             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6813           fi
6814         else
6815           # Otherwise we believe it is a complete path. Use it as it is.
6816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6817 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6819 $as_echo_n "checking for DATE... " >&6; }
6820           if test ! -x "$tool_specified"; then
6821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6822 $as_echo "not found" >&6; }
6823             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6824           fi
6825           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6826 $as_echo "$tool_specified" >&6; }
6827         fi
6828       fi
6829     fi
6830 
6831   fi
6832 
6833 
6834 
6835   if test "x$DATE" = x; then
6836     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6837   fi
6838 
6839 
6840 
6841 
6842 
6843   # Publish this variable in the help.
6844 
6845 
6846   if [ -z "${DIFF+x}" ]; then
6847     # The variable is not set by user, try to locate tool using the code snippet
6848     for ac_prog in gdiff diff
6849 do
6850   # Extract the first word of "$ac_prog", so it can be a program name with args.
6851 set dummy $ac_prog; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_path_DIFF+:} false; then :
6855   $as_echo_n "(cached) " >&6
6856 else
6857   case $DIFF in
6858   [\\/]* | ?:[\\/]*)
6859   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6860   ;;
6861   *)
6862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     for ac_exec_ext in '' $ac_executable_extensions; do
6868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874   done
6875 IFS=$as_save_IFS
6876 
6877   ;;
6878 esac
6879 fi
6880 DIFF=$ac_cv_path_DIFF
6881 if test -n "$DIFF"; then
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6883 $as_echo "$DIFF" >&6; }
6884 else
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888 
6889 
6890   test -n "$DIFF" && break
6891 done
6892 
6893   else
6894     # The variable is set, but is it from the command line or the environment?
6895 
6896     # Try to remove the string !DIFF! from our list.
6897     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6898     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6899       # If it failed, the variable was not from the command line. Ignore it,
6900       # but warn the user (except for BASH, which is always set by the calling BASH).
6901       if test "xDIFF" != xBASH; then
6902         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6903 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6904       fi
6905       # Try to locate tool using the code snippet
6906       for ac_prog in gdiff diff
6907 do
6908   # Extract the first word of "$ac_prog", so it can be a program name with args.
6909 set dummy $ac_prog; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_path_DIFF+:} false; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   case $DIFF in
6916   [\\/]* | ?:[\\/]*)
6917   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6918   ;;
6919   *)
6920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925     for ac_exec_ext in '' $ac_executable_extensions; do
6926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932   done
6933 IFS=$as_save_IFS
6934 
6935   ;;
6936 esac
6937 fi
6938 DIFF=$ac_cv_path_DIFF
6939 if test -n "$DIFF"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6941 $as_echo "$DIFF" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946 
6947 
6948   test -n "$DIFF" && break
6949 done
6950 
6951     else
6952       # If it succeeded, then it was overridden by the user. We will use it
6953       # for the tool.
6954 
6955       # First remove it from the list of overridden variables, so we can test
6956       # for unknown variables in the end.
6957       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6958 
6959       # Check if we try to supply an empty value
6960       if test "x$DIFF" = x; then
6961         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6962 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6964 $as_echo_n "checking for DIFF... " >&6; }
6965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6966 $as_echo "disabled" >&6; }
6967       else
6968         # Check if the provided tool contains a complete path.
6969         tool_specified="$DIFF"
6970         tool_basename="${tool_specified##*/}"
6971         if test "x$tool_basename" = "x$tool_specified"; then
6972           # A command without a complete path is provided, search $PATH.
6973           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6974 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6975           # Extract the first word of "$tool_basename", so it can be a program name with args.
6976 set dummy $tool_basename; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_path_DIFF+:} false; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   case $DIFF in
6983   [\\/]* | ?:[\\/]*)
6984   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6985   ;;
6986   *)
6987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992     for ac_exec_ext in '' $ac_executable_extensions; do
6993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999   done
7000 IFS=$as_save_IFS
7001 
7002   ;;
7003 esac
7004 fi
7005 DIFF=$ac_cv_path_DIFF
7006 if test -n "$DIFF"; then
7007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7008 $as_echo "$DIFF" >&6; }
7009 else
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013 
7014 
7015           if test "x$DIFF" = x; then
7016             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7017           fi
7018         else
7019           # Otherwise we believe it is a complete path. Use it as it is.
7020           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7021 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7022           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7023 $as_echo_n "checking for DIFF... " >&6; }
7024           if test ! -x "$tool_specified"; then
7025             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7026 $as_echo "not found" >&6; }
7027             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7028           fi
7029           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7030 $as_echo "$tool_specified" >&6; }
7031         fi
7032       fi
7033     fi
7034 
7035   fi
7036 
7037 
7038 
7039   if test "x$DIFF" = x; then
7040     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7041   fi
7042 
7043 
7044 
7045 
7046 
7047   # Publish this variable in the help.
7048 
7049 
7050   if [ -z "${DIRNAME+x}" ]; then
7051     # The variable is not set by user, try to locate tool using the code snippet
7052     for ac_prog in dirname
7053 do
7054   # Extract the first word of "$ac_prog", so it can be a program name with args.
7055 set dummy $ac_prog; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_path_DIRNAME+:} false; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   case $DIRNAME in
7062   [\\/]* | ?:[\\/]*)
7063   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7064   ;;
7065   *)
7066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071     for ac_exec_ext in '' $ac_executable_extensions; do
7072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078   done
7079 IFS=$as_save_IFS
7080 
7081   ;;
7082 esac
7083 fi
7084 DIRNAME=$ac_cv_path_DIRNAME
7085 if test -n "$DIRNAME"; then
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7087 $as_echo "$DIRNAME" >&6; }
7088 else
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092 
7093 
7094   test -n "$DIRNAME" && break
7095 done
7096 
7097   else
7098     # The variable is set, but is it from the command line or the environment?
7099 
7100     # Try to remove the string !DIRNAME! from our list.
7101     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7102     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7103       # If it failed, the variable was not from the command line. Ignore it,
7104       # but warn the user (except for BASH, which is always set by the calling BASH).
7105       if test "xDIRNAME" != xBASH; then
7106         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7107 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7108       fi
7109       # Try to locate tool using the code snippet
7110       for ac_prog in dirname
7111 do
7112   # Extract the first word of "$ac_prog", so it can be a program name with args.
7113 set dummy $ac_prog; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_path_DIRNAME+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   case $DIRNAME in
7120   [\\/]* | ?:[\\/]*)
7121   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7122   ;;
7123   *)
7124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127   IFS=$as_save_IFS
7128   test -z "$as_dir" && as_dir=.
7129     for ac_exec_ext in '' $ac_executable_extensions; do
7130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133     break 2
7134   fi
7135 done
7136   done
7137 IFS=$as_save_IFS
7138 
7139   ;;
7140 esac
7141 fi
7142 DIRNAME=$ac_cv_path_DIRNAME
7143 if test -n "$DIRNAME"; then
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7145 $as_echo "$DIRNAME" >&6; }
7146 else
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150 
7151 
7152   test -n "$DIRNAME" && break
7153 done
7154 
7155     else
7156       # If it succeeded, then it was overridden by the user. We will use it
7157       # for the tool.
7158 
7159       # First remove it from the list of overridden variables, so we can test
7160       # for unknown variables in the end.
7161       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7162 
7163       # Check if we try to supply an empty value
7164       if test "x$DIRNAME" = x; then
7165         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7166 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7168 $as_echo_n "checking for DIRNAME... " >&6; }
7169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7170 $as_echo "disabled" >&6; }
7171       else
7172         # Check if the provided tool contains a complete path.
7173         tool_specified="$DIRNAME"
7174         tool_basename="${tool_specified##*/}"
7175         if test "x$tool_basename" = "x$tool_specified"; then
7176           # A command without a complete path is provided, search $PATH.
7177           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7178 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7179           # Extract the first word of "$tool_basename", so it can be a program name with args.
7180 set dummy $tool_basename; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_path_DIRNAME+:} false; then :
7184   $as_echo_n "(cached) " >&6
7185 else
7186   case $DIRNAME in
7187   [\\/]* | ?:[\\/]*)
7188   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7189   ;;
7190   *)
7191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196     for ac_exec_ext in '' $ac_executable_extensions; do
7197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203   done
7204 IFS=$as_save_IFS
7205 
7206   ;;
7207 esac
7208 fi
7209 DIRNAME=$ac_cv_path_DIRNAME
7210 if test -n "$DIRNAME"; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7212 $as_echo "$DIRNAME" >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217 
7218 
7219           if test "x$DIRNAME" = x; then
7220             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7221           fi
7222         else
7223           # Otherwise we believe it is a complete path. Use it as it is.
7224           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7225 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7226           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7227 $as_echo_n "checking for DIRNAME... " >&6; }
7228           if test ! -x "$tool_specified"; then
7229             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7230 $as_echo "not found" >&6; }
7231             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7232           fi
7233           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7234 $as_echo "$tool_specified" >&6; }
7235         fi
7236       fi
7237     fi
7238 
7239   fi
7240 
7241 
7242 
7243   if test "x$DIRNAME" = x; then
7244     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7245   fi
7246 
7247 
7248 
7249 
7250 
7251   # Publish this variable in the help.
7252 
7253 
7254   if [ -z "${ECHO+x}" ]; then
7255     # The variable is not set by user, try to locate tool using the code snippet
7256     for ac_prog in echo
7257 do
7258   # Extract the first word of "$ac_prog", so it can be a program name with args.
7259 set dummy $ac_prog; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_path_ECHO+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   case $ECHO in
7266   [\\/]* | ?:[\\/]*)
7267   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7268   ;;
7269   *)
7270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275     for ac_exec_ext in '' $ac_executable_extensions; do
7276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282   done
7283 IFS=$as_save_IFS
7284 
7285   ;;
7286 esac
7287 fi
7288 ECHO=$ac_cv_path_ECHO
7289 if test -n "$ECHO"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7291 $as_echo "$ECHO" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296 
7297 
7298   test -n "$ECHO" && break
7299 done
7300 
7301   else
7302     # The variable is set, but is it from the command line or the environment?
7303 
7304     # Try to remove the string !ECHO! from our list.
7305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7307       # If it failed, the variable was not from the command line. Ignore it,
7308       # but warn the user (except for BASH, which is always set by the calling BASH).
7309       if test "xECHO" != xBASH; then
7310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7311 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7312       fi
7313       # Try to locate tool using the code snippet
7314       for ac_prog in echo
7315 do
7316   # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_path_ECHO+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   case $ECHO in
7324   [\\/]* | ?:[\\/]*)
7325   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7326   ;;
7327   *)
7328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342 
7343   ;;
7344 esac
7345 fi
7346 ECHO=$ac_cv_path_ECHO
7347 if test -n "$ECHO"; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7349 $as_echo "$ECHO" >&6; }
7350 else
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354 
7355 
7356   test -n "$ECHO" && break
7357 done
7358 
7359     else
7360       # If it succeeded, then it was overridden by the user. We will use it
7361       # for the tool.
7362 
7363       # First remove it from the list of overridden variables, so we can test
7364       # for unknown variables in the end.
7365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7366 
7367       # Check if we try to supply an empty value
7368       if test "x$ECHO" = x; then
7369         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7370 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7372 $as_echo_n "checking for ECHO... " >&6; }
7373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7374 $as_echo "disabled" >&6; }
7375       else
7376         # Check if the provided tool contains a complete path.
7377         tool_specified="$ECHO"
7378         tool_basename="${tool_specified##*/}"
7379         if test "x$tool_basename" = "x$tool_specified"; then
7380           # A command without a complete path is provided, search $PATH.
7381           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7382 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7383           # Extract the first word of "$tool_basename", so it can be a program name with args.
7384 set dummy $tool_basename; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_path_ECHO+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   case $ECHO in
7391   [\\/]* | ?:[\\/]*)
7392   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7393   ;;
7394   *)
7395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400     for ac_exec_ext in '' $ac_executable_extensions; do
7401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407   done
7408 IFS=$as_save_IFS
7409 
7410   ;;
7411 esac
7412 fi
7413 ECHO=$ac_cv_path_ECHO
7414 if test -n "$ECHO"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7416 $as_echo "$ECHO" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421 
7422 
7423           if test "x$ECHO" = x; then
7424             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7425           fi
7426         else
7427           # Otherwise we believe it is a complete path. Use it as it is.
7428           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7429 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7430           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7431 $as_echo_n "checking for ECHO... " >&6; }
7432           if test ! -x "$tool_specified"; then
7433             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7434 $as_echo "not found" >&6; }
7435             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7436           fi
7437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7438 $as_echo "$tool_specified" >&6; }
7439         fi
7440       fi
7441     fi
7442 
7443   fi
7444 
7445 
7446 
7447   if test "x$ECHO" = x; then
7448     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7449   fi
7450 
7451 
7452 
7453 
7454 
7455   # Publish this variable in the help.
7456 
7457 
7458   if [ -z "${EXPR+x}" ]; then
7459     # The variable is not set by user, try to locate tool using the code snippet
7460     for ac_prog in expr
7461 do
7462   # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_path_EXPR+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   case $EXPR in
7470   [\\/]* | ?:[\\/]*)
7471   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7472   ;;
7473   *)
7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479     for ac_exec_ext in '' $ac_executable_extensions; do
7480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486   done
7487 IFS=$as_save_IFS
7488 
7489   ;;
7490 esac
7491 fi
7492 EXPR=$ac_cv_path_EXPR
7493 if test -n "$EXPR"; then
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7495 $as_echo "$EXPR" >&6; }
7496 else
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500 
7501 
7502   test -n "$EXPR" && break
7503 done
7504 
7505   else
7506     # The variable is set, but is it from the command line or the environment?
7507 
7508     # Try to remove the string !EXPR! from our list.
7509     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7510     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7511       # If it failed, the variable was not from the command line. Ignore it,
7512       # but warn the user (except for BASH, which is always set by the calling BASH).
7513       if test "xEXPR" != xBASH; then
7514         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7515 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7516       fi
7517       # Try to locate tool using the code snippet
7518       for ac_prog in expr
7519 do
7520   # Extract the first word of "$ac_prog", so it can be a program name with args.
7521 set dummy $ac_prog; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_path_EXPR+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   case $EXPR in
7528   [\\/]* | ?:[\\/]*)
7529   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7530   ;;
7531   *)
7532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537     for ac_exec_ext in '' $ac_executable_extensions; do
7538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544   done
7545 IFS=$as_save_IFS
7546 
7547   ;;
7548 esac
7549 fi
7550 EXPR=$ac_cv_path_EXPR
7551 if test -n "$EXPR"; then
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7553 $as_echo "$EXPR" >&6; }
7554 else
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558 
7559 
7560   test -n "$EXPR" && break
7561 done
7562 
7563     else
7564       # If it succeeded, then it was overridden by the user. We will use it
7565       # for the tool.
7566 
7567       # First remove it from the list of overridden variables, so we can test
7568       # for unknown variables in the end.
7569       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7570 
7571       # Check if we try to supply an empty value
7572       if test "x$EXPR" = x; then
7573         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7574 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7576 $as_echo_n "checking for EXPR... " >&6; }
7577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7578 $as_echo "disabled" >&6; }
7579       else
7580         # Check if the provided tool contains a complete path.
7581         tool_specified="$EXPR"
7582         tool_basename="${tool_specified##*/}"
7583         if test "x$tool_basename" = "x$tool_specified"; then
7584           # A command without a complete path is provided, search $PATH.
7585           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7586 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7587           # Extract the first word of "$tool_basename", so it can be a program name with args.
7588 set dummy $tool_basename; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_path_EXPR+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   case $EXPR in
7595   [\\/]* | ?:[\\/]*)
7596   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7597   ;;
7598   *)
7599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604     for ac_exec_ext in '' $ac_executable_extensions; do
7605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611   done
7612 IFS=$as_save_IFS
7613 
7614   ;;
7615 esac
7616 fi
7617 EXPR=$ac_cv_path_EXPR
7618 if test -n "$EXPR"; then
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7620 $as_echo "$EXPR" >&6; }
7621 else
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7624 fi
7625 
7626 
7627           if test "x$EXPR" = x; then
7628             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7629           fi
7630         else
7631           # Otherwise we believe it is a complete path. Use it as it is.
7632           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7633 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7634           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7635 $as_echo_n "checking for EXPR... " >&6; }
7636           if test ! -x "$tool_specified"; then
7637             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7638 $as_echo "not found" >&6; }
7639             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7640           fi
7641           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7642 $as_echo "$tool_specified" >&6; }
7643         fi
7644       fi
7645     fi
7646 
7647   fi
7648 
7649 
7650 
7651   if test "x$EXPR" = x; then
7652     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7653   fi
7654 
7655 
7656 
7657 
7658 
7659   # Publish this variable in the help.
7660 
7661 
7662   if [ -z "${FILE+x}" ]; then
7663     # The variable is not set by user, try to locate tool using the code snippet
7664     for ac_prog in file
7665 do
7666   # Extract the first word of "$ac_prog", so it can be a program name with args.
7667 set dummy $ac_prog; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_path_FILE+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   case $FILE in
7674   [\\/]* | ?:[\\/]*)
7675   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7676   ;;
7677   *)
7678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692 
7693   ;;
7694 esac
7695 fi
7696 FILE=$ac_cv_path_FILE
7697 if test -n "$FILE"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7699 $as_echo "$FILE" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704 
7705 
7706   test -n "$FILE" && break
7707 done
7708 
7709   else
7710     # The variable is set, but is it from the command line or the environment?
7711 
7712     # Try to remove the string !FILE! from our list.
7713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7715       # If it failed, the variable was not from the command line. Ignore it,
7716       # but warn the user (except for BASH, which is always set by the calling BASH).
7717       if test "xFILE" != xBASH; then
7718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7719 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7720       fi
7721       # Try to locate tool using the code snippet
7722       for ac_prog in file
7723 do
7724   # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_path_FILE+:} false; then :
7729   $as_echo_n "(cached) " >&6
7730 else
7731   case $FILE in
7732   [\\/]* | ?:[\\/]*)
7733   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7734   ;;
7735   *)
7736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748   done
7749 IFS=$as_save_IFS
7750 
7751   ;;
7752 esac
7753 fi
7754 FILE=$ac_cv_path_FILE
7755 if test -n "$FILE"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7757 $as_echo "$FILE" >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762 
7763 
7764   test -n "$FILE" && break
7765 done
7766 
7767     else
7768       # If it succeeded, then it was overridden by the user. We will use it
7769       # for the tool.
7770 
7771       # First remove it from the list of overridden variables, so we can test
7772       # for unknown variables in the end.
7773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7774 
7775       # Check if we try to supply an empty value
7776       if test "x$FILE" = x; then
7777         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7778 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7780 $as_echo_n "checking for FILE... " >&6; }
7781         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7782 $as_echo "disabled" >&6; }
7783       else
7784         # Check if the provided tool contains a complete path.
7785         tool_specified="$FILE"
7786         tool_basename="${tool_specified##*/}"
7787         if test "x$tool_basename" = "x$tool_specified"; then
7788           # A command without a complete path is provided, search $PATH.
7789           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7790 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7791           # Extract the first word of "$tool_basename", so it can be a program name with args.
7792 set dummy $tool_basename; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if ${ac_cv_path_FILE+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798   case $FILE in
7799   [\\/]* | ?:[\\/]*)
7800   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7801   ;;
7802   *)
7803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7805 do
7806   IFS=$as_save_IFS
7807   test -z "$as_dir" && as_dir=.
7808     for ac_exec_ext in '' $ac_executable_extensions; do
7809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812     break 2
7813   fi
7814 done
7815   done
7816 IFS=$as_save_IFS
7817 
7818   ;;
7819 esac
7820 fi
7821 FILE=$ac_cv_path_FILE
7822 if test -n "$FILE"; then
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7824 $as_echo "$FILE" >&6; }
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829 
7830 
7831           if test "x$FILE" = x; then
7832             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7833           fi
7834         else
7835           # Otherwise we believe it is a complete path. Use it as it is.
7836           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7837 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7838           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7839 $as_echo_n "checking for FILE... " >&6; }
7840           if test ! -x "$tool_specified"; then
7841             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7842 $as_echo "not found" >&6; }
7843             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7844           fi
7845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7846 $as_echo "$tool_specified" >&6; }
7847         fi
7848       fi
7849     fi
7850 
7851   fi
7852 
7853 
7854 
7855   if test "x$FILE" = x; then
7856     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7857   fi
7858 
7859 
7860 
7861 
7862 
7863   # Publish this variable in the help.
7864 
7865 
7866   if [ -z "${FIND+x}" ]; then
7867     # The variable is not set by user, try to locate tool using the code snippet
7868     for ac_prog in find
7869 do
7870   # Extract the first word of "$ac_prog", so it can be a program name with args.
7871 set dummy $ac_prog; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_path_FIND+:} false; then :
7875   $as_echo_n "(cached) " >&6
7876 else
7877   case $FIND in
7878   [\\/]* | ?:[\\/]*)
7879   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7880   ;;
7881   *)
7882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896 
7897   ;;
7898 esac
7899 fi
7900 FIND=$ac_cv_path_FIND
7901 if test -n "$FIND"; then
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7903 $as_echo "$FIND" >&6; }
7904 else
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7907 fi
7908 
7909 
7910   test -n "$FIND" && break
7911 done
7912 
7913   else
7914     # The variable is set, but is it from the command line or the environment?
7915 
7916     # Try to remove the string !FIND! from our list.
7917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7919       # If it failed, the variable was not from the command line. Ignore it,
7920       # but warn the user (except for BASH, which is always set by the calling BASH).
7921       if test "xFIND" != xBASH; then
7922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7923 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7924       fi
7925       # Try to locate tool using the code snippet
7926       for ac_prog in find
7927 do
7928   # Extract the first word of "$ac_prog", so it can be a program name with args.
7929 set dummy $ac_prog; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_path_FIND+:} false; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   case $FIND in
7936   [\\/]* | ?:[\\/]*)
7937   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7938   ;;
7939   *)
7940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945     for ac_exec_ext in '' $ac_executable_extensions; do
7946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952   done
7953 IFS=$as_save_IFS
7954 
7955   ;;
7956 esac
7957 fi
7958 FIND=$ac_cv_path_FIND
7959 if test -n "$FIND"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7961 $as_echo "$FIND" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966 
7967 
7968   test -n "$FIND" && break
7969 done
7970 
7971     else
7972       # If it succeeded, then it was overridden by the user. We will use it
7973       # for the tool.
7974 
7975       # First remove it from the list of overridden variables, so we can test
7976       # for unknown variables in the end.
7977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7978 
7979       # Check if we try to supply an empty value
7980       if test "x$FIND" = x; then
7981         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7982 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7984 $as_echo_n "checking for FIND... " >&6; }
7985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7986 $as_echo "disabled" >&6; }
7987       else
7988         # Check if the provided tool contains a complete path.
7989         tool_specified="$FIND"
7990         tool_basename="${tool_specified##*/}"
7991         if test "x$tool_basename" = "x$tool_specified"; then
7992           # A command without a complete path is provided, search $PATH.
7993           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7994 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7995           # Extract the first word of "$tool_basename", so it can be a program name with args.
7996 set dummy $tool_basename; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_path_FIND+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   case $FIND in
8003   [\\/]* | ?:[\\/]*)
8004   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8005   ;;
8006   *)
8007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010   IFS=$as_save_IFS
8011   test -z "$as_dir" && as_dir=.
8012     for ac_exec_ext in '' $ac_executable_extensions; do
8013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016     break 2
8017   fi
8018 done
8019   done
8020 IFS=$as_save_IFS
8021 
8022   ;;
8023 esac
8024 fi
8025 FIND=$ac_cv_path_FIND
8026 if test -n "$FIND"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8028 $as_echo "$FIND" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033 
8034 
8035           if test "x$FIND" = x; then
8036             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8037           fi
8038         else
8039           # Otherwise we believe it is a complete path. Use it as it is.
8040           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8041 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8042           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8043 $as_echo_n "checking for FIND... " >&6; }
8044           if test ! -x "$tool_specified"; then
8045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8046 $as_echo "not found" >&6; }
8047             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8048           fi
8049           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8050 $as_echo "$tool_specified" >&6; }
8051         fi
8052       fi
8053     fi
8054 
8055   fi
8056 
8057 
8058 
8059   if test "x$FIND" = x; then
8060     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8061   fi
8062 
8063 
8064 
8065 
8066 
8067   # Publish this variable in the help.
8068 
8069 
8070   if [ -z "${HEAD+x}" ]; then
8071     # The variable is not set by user, try to locate tool using the code snippet
8072     for ac_prog in head
8073 do
8074   # Extract the first word of "$ac_prog", so it can be a program name with args.
8075 set dummy $ac_prog; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if ${ac_cv_path_HEAD+:} false; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   case $HEAD in
8082   [\\/]* | ?:[\\/]*)
8083   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8084   ;;
8085   *)
8086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089   IFS=$as_save_IFS
8090   test -z "$as_dir" && as_dir=.
8091     for ac_exec_ext in '' $ac_executable_extensions; do
8092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095     break 2
8096   fi
8097 done
8098   done
8099 IFS=$as_save_IFS
8100 
8101   ;;
8102 esac
8103 fi
8104 HEAD=$ac_cv_path_HEAD
8105 if test -n "$HEAD"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8107 $as_echo "$HEAD" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112 
8113 
8114   test -n "$HEAD" && break
8115 done
8116 
8117   else
8118     # The variable is set, but is it from the command line or the environment?
8119 
8120     # Try to remove the string !HEAD! from our list.
8121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8123       # If it failed, the variable was not from the command line. Ignore it,
8124       # but warn the user (except for BASH, which is always set by the calling BASH).
8125       if test "xHEAD" != xBASH; then
8126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8127 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8128       fi
8129       # Try to locate tool using the code snippet
8130       for ac_prog in head
8131 do
8132   # Extract the first word of "$ac_prog", so it can be a program name with args.
8133 set dummy $ac_prog; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_path_HEAD+:} false; then :
8137   $as_echo_n "(cached) " >&6
8138 else
8139   case $HEAD in
8140   [\\/]* | ?:[\\/]*)
8141   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8142   ;;
8143   *)
8144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149     for ac_exec_ext in '' $ac_executable_extensions; do
8150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153     break 2
8154   fi
8155 done
8156   done
8157 IFS=$as_save_IFS
8158 
8159   ;;
8160 esac
8161 fi
8162 HEAD=$ac_cv_path_HEAD
8163 if test -n "$HEAD"; then
8164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8165 $as_echo "$HEAD" >&6; }
8166 else
8167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8169 fi
8170 
8171 
8172   test -n "$HEAD" && break
8173 done
8174 
8175     else
8176       # If it succeeded, then it was overridden by the user. We will use it
8177       # for the tool.
8178 
8179       # First remove it from the list of overridden variables, so we can test
8180       # for unknown variables in the end.
8181       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8182 
8183       # Check if we try to supply an empty value
8184       if test "x$HEAD" = x; then
8185         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8186 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8188 $as_echo_n "checking for HEAD... " >&6; }
8189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8190 $as_echo "disabled" >&6; }
8191       else
8192         # Check if the provided tool contains a complete path.
8193         tool_specified="$HEAD"
8194         tool_basename="${tool_specified##*/}"
8195         if test "x$tool_basename" = "x$tool_specified"; then
8196           # A command without a complete path is provided, search $PATH.
8197           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8198 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8199           # Extract the first word of "$tool_basename", so it can be a program name with args.
8200 set dummy $tool_basename; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if ${ac_cv_path_HEAD+:} false; then :
8204   $as_echo_n "(cached) " >&6
8205 else
8206   case $HEAD in
8207   [\\/]* | ?:[\\/]*)
8208   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8209   ;;
8210   *)
8211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   test -z "$as_dir" && as_dir=.
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225 
8226   ;;
8227 esac
8228 fi
8229 HEAD=$ac_cv_path_HEAD
8230 if test -n "$HEAD"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8232 $as_echo "$HEAD" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237 
8238 
8239           if test "x$HEAD" = x; then
8240             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8241           fi
8242         else
8243           # Otherwise we believe it is a complete path. Use it as it is.
8244           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8245 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8246           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8247 $as_echo_n "checking for HEAD... " >&6; }
8248           if test ! -x "$tool_specified"; then
8249             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8250 $as_echo "not found" >&6; }
8251             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8252           fi
8253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8254 $as_echo "$tool_specified" >&6; }
8255         fi
8256       fi
8257     fi
8258 
8259   fi
8260 
8261 
8262 
8263   if test "x$HEAD" = x; then
8264     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8265   fi
8266 
8267 
8268 
8269 
8270 
8271   # Publish this variable in the help.
8272 
8273 
8274   if [ -z "${LN+x}" ]; then
8275     # The variable is not set by user, try to locate tool using the code snippet
8276     for ac_prog in ln
8277 do
8278   # Extract the first word of "$ac_prog", so it can be a program name with args.
8279 set dummy $ac_prog; ac_word=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if ${ac_cv_path_LN+:} false; then :
8283   $as_echo_n "(cached) " >&6
8284 else
8285   case $LN in
8286   [\\/]* | ?:[\\/]*)
8287   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8288   ;;
8289   *)
8290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295     for ac_exec_ext in '' $ac_executable_extensions; do
8296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302   done
8303 IFS=$as_save_IFS
8304 
8305   ;;
8306 esac
8307 fi
8308 LN=$ac_cv_path_LN
8309 if test -n "$LN"; then
8310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8311 $as_echo "$LN" >&6; }
8312 else
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8315 fi
8316 
8317 
8318   test -n "$LN" && break
8319 done
8320 
8321   else
8322     # The variable is set, but is it from the command line or the environment?
8323 
8324     # Try to remove the string !LN! from our list.
8325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8327       # If it failed, the variable was not from the command line. Ignore it,
8328       # but warn the user (except for BASH, which is always set by the calling BASH).
8329       if test "xLN" != xBASH; then
8330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8331 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8332       fi
8333       # Try to locate tool using the code snippet
8334       for ac_prog in ln
8335 do
8336   # Extract the first word of "$ac_prog", so it can be a program name with args.
8337 set dummy $ac_prog; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_path_LN+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   case $LN in
8344   [\\/]* | ?:[\\/]*)
8345   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8346   ;;
8347   *)
8348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351   IFS=$as_save_IFS
8352   test -z "$as_dir" && as_dir=.
8353     for ac_exec_ext in '' $ac_executable_extensions; do
8354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357     break 2
8358   fi
8359 done
8360   done
8361 IFS=$as_save_IFS
8362 
8363   ;;
8364 esac
8365 fi
8366 LN=$ac_cv_path_LN
8367 if test -n "$LN"; then
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8369 $as_echo "$LN" >&6; }
8370 else
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374 
8375 
8376   test -n "$LN" && break
8377 done
8378 
8379     else
8380       # If it succeeded, then it was overridden by the user. We will use it
8381       # for the tool.
8382 
8383       # First remove it from the list of overridden variables, so we can test
8384       # for unknown variables in the end.
8385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8386 
8387       # Check if we try to supply an empty value
8388       if test "x$LN" = x; then
8389         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8390 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8392 $as_echo_n "checking for LN... " >&6; }
8393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8394 $as_echo "disabled" >&6; }
8395       else
8396         # Check if the provided tool contains a complete path.
8397         tool_specified="$LN"
8398         tool_basename="${tool_specified##*/}"
8399         if test "x$tool_basename" = "x$tool_specified"; then
8400           # A command without a complete path is provided, search $PATH.
8401           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8402 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8403           # Extract the first word of "$tool_basename", so it can be a program name with args.
8404 set dummy $tool_basename; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if ${ac_cv_path_LN+:} false; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   case $LN in
8411   [\\/]* | ?:[\\/]*)
8412   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8413   ;;
8414   *)
8415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420     for ac_exec_ext in '' $ac_executable_extensions; do
8421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427   done
8428 IFS=$as_save_IFS
8429 
8430   ;;
8431 esac
8432 fi
8433 LN=$ac_cv_path_LN
8434 if test -n "$LN"; then
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8436 $as_echo "$LN" >&6; }
8437 else
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441 
8442 
8443           if test "x$LN" = x; then
8444             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8445           fi
8446         else
8447           # Otherwise we believe it is a complete path. Use it as it is.
8448           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8449 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8450           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8451 $as_echo_n "checking for LN... " >&6; }
8452           if test ! -x "$tool_specified"; then
8453             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8454 $as_echo "not found" >&6; }
8455             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8456           fi
8457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8458 $as_echo "$tool_specified" >&6; }
8459         fi
8460       fi
8461     fi
8462 
8463   fi
8464 
8465 
8466 
8467   if test "x$LN" = x; then
8468     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8469   fi
8470 
8471 
8472 
8473 
8474 
8475   # Publish this variable in the help.
8476 
8477 
8478   if [ -z "${LS+x}" ]; then
8479     # The variable is not set by user, try to locate tool using the code snippet
8480     for ac_prog in ls
8481 do
8482   # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if ${ac_cv_path_LS+:} false; then :
8487   $as_echo_n "(cached) " >&6
8488 else
8489   case $LS in
8490   [\\/]* | ?:[\\/]*)
8491   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8492   ;;
8493   *)
8494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497   IFS=$as_save_IFS
8498   test -z "$as_dir" && as_dir=.
8499     for ac_exec_ext in '' $ac_executable_extensions; do
8500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503     break 2
8504   fi
8505 done
8506   done
8507 IFS=$as_save_IFS
8508 
8509   ;;
8510 esac
8511 fi
8512 LS=$ac_cv_path_LS
8513 if test -n "$LS"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8515 $as_echo "$LS" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520 
8521 
8522   test -n "$LS" && break
8523 done
8524 
8525   else
8526     # The variable is set, but is it from the command line or the environment?
8527 
8528     # Try to remove the string !LS! from our list.
8529     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8530     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8531       # If it failed, the variable was not from the command line. Ignore it,
8532       # but warn the user (except for BASH, which is always set by the calling BASH).
8533       if test "xLS" != xBASH; then
8534         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8535 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8536       fi
8537       # Try to locate tool using the code snippet
8538       for ac_prog in ls
8539 do
8540   # Extract the first word of "$ac_prog", so it can be a program name with args.
8541 set dummy $ac_prog; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_path_LS+:} false; then :
8545   $as_echo_n "(cached) " >&6
8546 else
8547   case $LS in
8548   [\\/]* | ?:[\\/]*)
8549   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8550   ;;
8551   *)
8552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557     for ac_exec_ext in '' $ac_executable_extensions; do
8558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564   done
8565 IFS=$as_save_IFS
8566 
8567   ;;
8568 esac
8569 fi
8570 LS=$ac_cv_path_LS
8571 if test -n "$LS"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8573 $as_echo "$LS" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578 
8579 
8580   test -n "$LS" && break
8581 done
8582 
8583     else
8584       # If it succeeded, then it was overridden by the user. We will use it
8585       # for the tool.
8586 
8587       # First remove it from the list of overridden variables, so we can test
8588       # for unknown variables in the end.
8589       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8590 
8591       # Check if we try to supply an empty value
8592       if test "x$LS" = x; then
8593         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8594 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8596 $as_echo_n "checking for LS... " >&6; }
8597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8598 $as_echo "disabled" >&6; }
8599       else
8600         # Check if the provided tool contains a complete path.
8601         tool_specified="$LS"
8602         tool_basename="${tool_specified##*/}"
8603         if test "x$tool_basename" = "x$tool_specified"; then
8604           # A command without a complete path is provided, search $PATH.
8605           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8606 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8607           # Extract the first word of "$tool_basename", so it can be a program name with args.
8608 set dummy $tool_basename; ac_word=$2
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 $as_echo_n "checking for $ac_word... " >&6; }
8611 if ${ac_cv_path_LS+:} false; then :
8612   $as_echo_n "(cached) " >&6
8613 else
8614   case $LS in
8615   [\\/]* | ?:[\\/]*)
8616   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8617   ;;
8618   *)
8619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620 for as_dir in $PATH
8621 do
8622   IFS=$as_save_IFS
8623   test -z "$as_dir" && as_dir=.
8624     for ac_exec_ext in '' $ac_executable_extensions; do
8625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628     break 2
8629   fi
8630 done
8631   done
8632 IFS=$as_save_IFS
8633 
8634   ;;
8635 esac
8636 fi
8637 LS=$ac_cv_path_LS
8638 if test -n "$LS"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8640 $as_echo "$LS" >&6; }
8641 else
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645 
8646 
8647           if test "x$LS" = x; then
8648             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8649           fi
8650         else
8651           # Otherwise we believe it is a complete path. Use it as it is.
8652           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8653 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8654           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8655 $as_echo_n "checking for LS... " >&6; }
8656           if test ! -x "$tool_specified"; then
8657             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8658 $as_echo "not found" >&6; }
8659             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8660           fi
8661           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8662 $as_echo "$tool_specified" >&6; }
8663         fi
8664       fi
8665     fi
8666 
8667   fi
8668 
8669 
8670 
8671   if test "x$LS" = x; then
8672     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8673   fi
8674 
8675 
8676 
8677 
8678 
8679   # Publish this variable in the help.
8680 
8681 
8682   if [ -z "${MKDIR+x}" ]; then
8683     # The variable is not set by user, try to locate tool using the code snippet
8684     for ac_prog in mkdir
8685 do
8686   # Extract the first word of "$ac_prog", so it can be a program name with args.
8687 set dummy $ac_prog; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_path_MKDIR+:} false; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   case $MKDIR in
8694   [\\/]* | ?:[\\/]*)
8695   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8696   ;;
8697   *)
8698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712 
8713   ;;
8714 esac
8715 fi
8716 MKDIR=$ac_cv_path_MKDIR
8717 if test -n "$MKDIR"; then
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8719 $as_echo "$MKDIR" >&6; }
8720 else
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724 
8725 
8726   test -n "$MKDIR" && break
8727 done
8728 
8729   else
8730     # The variable is set, but is it from the command line or the environment?
8731 
8732     # Try to remove the string !MKDIR! from our list.
8733     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8734     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8735       # If it failed, the variable was not from the command line. Ignore it,
8736       # but warn the user (except for BASH, which is always set by the calling BASH).
8737       if test "xMKDIR" != xBASH; then
8738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8739 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8740       fi
8741       # Try to locate tool using the code snippet
8742       for ac_prog in mkdir
8743 do
8744   # Extract the first word of "$ac_prog", so it can be a program name with args.
8745 set dummy $ac_prog; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_path_MKDIR+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   case $MKDIR in
8752   [\\/]* | ?:[\\/]*)
8753   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8754   ;;
8755   *)
8756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759   IFS=$as_save_IFS
8760   test -z "$as_dir" && as_dir=.
8761     for ac_exec_ext in '' $ac_executable_extensions; do
8762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765     break 2
8766   fi
8767 done
8768   done
8769 IFS=$as_save_IFS
8770 
8771   ;;
8772 esac
8773 fi
8774 MKDIR=$ac_cv_path_MKDIR
8775 if test -n "$MKDIR"; then
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8777 $as_echo "$MKDIR" >&6; }
8778 else
8779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782 
8783 
8784   test -n "$MKDIR" && break
8785 done
8786 
8787     else
8788       # If it succeeded, then it was overridden by the user. We will use it
8789       # for the tool.
8790 
8791       # First remove it from the list of overridden variables, so we can test
8792       # for unknown variables in the end.
8793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8794 
8795       # Check if we try to supply an empty value
8796       if test "x$MKDIR" = x; then
8797         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8798 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8800 $as_echo_n "checking for MKDIR... " >&6; }
8801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8802 $as_echo "disabled" >&6; }
8803       else
8804         # Check if the provided tool contains a complete path.
8805         tool_specified="$MKDIR"
8806         tool_basename="${tool_specified##*/}"
8807         if test "x$tool_basename" = "x$tool_specified"; then
8808           # A command without a complete path is provided, search $PATH.
8809           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8810 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8811           # Extract the first word of "$tool_basename", so it can be a program name with args.
8812 set dummy $tool_basename; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_MKDIR+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   case $MKDIR in
8819   [\\/]* | ?:[\\/]*)
8820   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8821   ;;
8822   *)
8823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826   IFS=$as_save_IFS
8827   test -z "$as_dir" && as_dir=.
8828     for ac_exec_ext in '' $ac_executable_extensions; do
8829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832     break 2
8833   fi
8834 done
8835   done
8836 IFS=$as_save_IFS
8837 
8838   ;;
8839 esac
8840 fi
8841 MKDIR=$ac_cv_path_MKDIR
8842 if test -n "$MKDIR"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8844 $as_echo "$MKDIR" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849 
8850 
8851           if test "x$MKDIR" = x; then
8852             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8853           fi
8854         else
8855           # Otherwise we believe it is a complete path. Use it as it is.
8856           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8857 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8859 $as_echo_n "checking for MKDIR... " >&6; }
8860           if test ! -x "$tool_specified"; then
8861             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8862 $as_echo "not found" >&6; }
8863             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8864           fi
8865           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8866 $as_echo "$tool_specified" >&6; }
8867         fi
8868       fi
8869     fi
8870 
8871   fi
8872 
8873 
8874 
8875   if test "x$MKDIR" = x; then
8876     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8877   fi
8878 
8879 
8880 
8881 
8882 
8883   # Publish this variable in the help.
8884 
8885 
8886   if [ -z "${MKTEMP+x}" ]; then
8887     # The variable is not set by user, try to locate tool using the code snippet
8888     for ac_prog in mktemp
8889 do
8890   # Extract the first word of "$ac_prog", so it can be a program name with args.
8891 set dummy $ac_prog; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_path_MKTEMP+:} false; then :
8895   $as_echo_n "(cached) " >&6
8896 else
8897   case $MKTEMP in
8898   [\\/]* | ?:[\\/]*)
8899   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8900   ;;
8901   *)
8902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8904 do
8905   IFS=$as_save_IFS
8906   test -z "$as_dir" && as_dir=.
8907     for ac_exec_ext in '' $ac_executable_extensions; do
8908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8909     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911     break 2
8912   fi
8913 done
8914   done
8915 IFS=$as_save_IFS
8916 
8917   ;;
8918 esac
8919 fi
8920 MKTEMP=$ac_cv_path_MKTEMP
8921 if test -n "$MKTEMP"; then
8922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8923 $as_echo "$MKTEMP" >&6; }
8924 else
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 fi
8928 
8929 
8930   test -n "$MKTEMP" && break
8931 done
8932 
8933   else
8934     # The variable is set, but is it from the command line or the environment?
8935 
8936     # Try to remove the string !MKTEMP! from our list.
8937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8939       # If it failed, the variable was not from the command line. Ignore it,
8940       # but warn the user (except for BASH, which is always set by the calling BASH).
8941       if test "xMKTEMP" != xBASH; then
8942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8943 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8944       fi
8945       # Try to locate tool using the code snippet
8946       for ac_prog in mktemp
8947 do
8948   # Extract the first word of "$ac_prog", so it can be a program name with args.
8949 set dummy $ac_prog; ac_word=$2
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8951 $as_echo_n "checking for $ac_word... " >&6; }
8952 if ${ac_cv_path_MKTEMP+:} false; then :
8953   $as_echo_n "(cached) " >&6
8954 else
8955   case $MKTEMP in
8956   [\\/]* | ?:[\\/]*)
8957   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8958   ;;
8959   *)
8960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965     for ac_exec_ext in '' $ac_executable_extensions; do
8966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8969     break 2
8970   fi
8971 done
8972   done
8973 IFS=$as_save_IFS
8974 
8975   ;;
8976 esac
8977 fi
8978 MKTEMP=$ac_cv_path_MKTEMP
8979 if test -n "$MKTEMP"; then
8980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8981 $as_echo "$MKTEMP" >&6; }
8982 else
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8985 fi
8986 
8987 
8988   test -n "$MKTEMP" && break
8989 done
8990 
8991     else
8992       # If it succeeded, then it was overridden by the user. We will use it
8993       # for the tool.
8994 
8995       # First remove it from the list of overridden variables, so we can test
8996       # for unknown variables in the end.
8997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8998 
8999       # Check if we try to supply an empty value
9000       if test "x$MKTEMP" = x; then
9001         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9002 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9004 $as_echo_n "checking for MKTEMP... " >&6; }
9005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9006 $as_echo "disabled" >&6; }
9007       else
9008         # Check if the provided tool contains a complete path.
9009         tool_specified="$MKTEMP"
9010         tool_basename="${tool_specified##*/}"
9011         if test "x$tool_basename" = "x$tool_specified"; then
9012           # A command without a complete path is provided, search $PATH.
9013           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9014 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9015           # Extract the first word of "$tool_basename", so it can be a program name with args.
9016 set dummy $tool_basename; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if ${ac_cv_path_MKTEMP+:} false; then :
9020   $as_echo_n "(cached) " >&6
9021 else
9022   case $MKTEMP in
9023   [\\/]* | ?:[\\/]*)
9024   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9025   ;;
9026   *)
9027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 for as_dir in $PATH
9029 do
9030   IFS=$as_save_IFS
9031   test -z "$as_dir" && as_dir=.
9032     for ac_exec_ext in '' $ac_executable_extensions; do
9033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9036     break 2
9037   fi
9038 done
9039   done
9040 IFS=$as_save_IFS
9041 
9042   ;;
9043 esac
9044 fi
9045 MKTEMP=$ac_cv_path_MKTEMP
9046 if test -n "$MKTEMP"; then
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9048 $as_echo "$MKTEMP" >&6; }
9049 else
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 fi
9053 
9054 
9055           if test "x$MKTEMP" = x; then
9056             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9057           fi
9058         else
9059           # Otherwise we believe it is a complete path. Use it as it is.
9060           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9061 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9062           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9063 $as_echo_n "checking for MKTEMP... " >&6; }
9064           if test ! -x "$tool_specified"; then
9065             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9066 $as_echo "not found" >&6; }
9067             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9068           fi
9069           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9070 $as_echo "$tool_specified" >&6; }
9071         fi
9072       fi
9073     fi
9074 
9075   fi
9076 
9077 
9078 
9079   if test "x$MKTEMP" = x; then
9080     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9081   fi
9082 
9083 
9084 
9085 
9086 
9087   # Publish this variable in the help.
9088 
9089 
9090   if [ -z "${MV+x}" ]; then
9091     # The variable is not set by user, try to locate tool using the code snippet
9092     for ac_prog in mv
9093 do
9094   # Extract the first word of "$ac_prog", so it can be a program name with args.
9095 set dummy $ac_prog; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_path_MV+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   case $MV in
9102   [\\/]* | ?:[\\/]*)
9103   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9104   ;;
9105   *)
9106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109   IFS=$as_save_IFS
9110   test -z "$as_dir" && as_dir=.
9111     for ac_exec_ext in '' $ac_executable_extensions; do
9112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115     break 2
9116   fi
9117 done
9118   done
9119 IFS=$as_save_IFS
9120 
9121   ;;
9122 esac
9123 fi
9124 MV=$ac_cv_path_MV
9125 if test -n "$MV"; then
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9127 $as_echo "$MV" >&6; }
9128 else
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9131 fi
9132 
9133 
9134   test -n "$MV" && break
9135 done
9136 
9137   else
9138     # The variable is set, but is it from the command line or the environment?
9139 
9140     # Try to remove the string !MV! from our list.
9141     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9142     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9143       # If it failed, the variable was not from the command line. Ignore it,
9144       # but warn the user (except for BASH, which is always set by the calling BASH).
9145       if test "xMV" != xBASH; then
9146         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9147 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9148       fi
9149       # Try to locate tool using the code snippet
9150       for ac_prog in mv
9151 do
9152   # Extract the first word of "$ac_prog", so it can be a program name with args.
9153 set dummy $ac_prog; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_MV+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   case $MV in
9160   [\\/]* | ?:[\\/]*)
9161   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9162   ;;
9163   *)
9164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167   IFS=$as_save_IFS
9168   test -z "$as_dir" && as_dir=.
9169     for ac_exec_ext in '' $ac_executable_extensions; do
9170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173     break 2
9174   fi
9175 done
9176   done
9177 IFS=$as_save_IFS
9178 
9179   ;;
9180 esac
9181 fi
9182 MV=$ac_cv_path_MV
9183 if test -n "$MV"; then
9184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9185 $as_echo "$MV" >&6; }
9186 else
9187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 fi
9190 
9191 
9192   test -n "$MV" && break
9193 done
9194 
9195     else
9196       # If it succeeded, then it was overridden by the user. We will use it
9197       # for the tool.
9198 
9199       # First remove it from the list of overridden variables, so we can test
9200       # for unknown variables in the end.
9201       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9202 
9203       # Check if we try to supply an empty value
9204       if test "x$MV" = x; then
9205         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9206 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9208 $as_echo_n "checking for MV... " >&6; }
9209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9210 $as_echo "disabled" >&6; }
9211       else
9212         # Check if the provided tool contains a complete path.
9213         tool_specified="$MV"
9214         tool_basename="${tool_specified##*/}"
9215         if test "x$tool_basename" = "x$tool_specified"; then
9216           # A command without a complete path is provided, search $PATH.
9217           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9218 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9219           # Extract the first word of "$tool_basename", so it can be a program name with args.
9220 set dummy $tool_basename; ac_word=$2
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222 $as_echo_n "checking for $ac_word... " >&6; }
9223 if ${ac_cv_path_MV+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   case $MV in
9227   [\\/]* | ?:[\\/]*)
9228   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9229   ;;
9230   *)
9231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232 for as_dir in $PATH
9233 do
9234   IFS=$as_save_IFS
9235   test -z "$as_dir" && as_dir=.
9236     for ac_exec_ext in '' $ac_executable_extensions; do
9237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9240     break 2
9241   fi
9242 done
9243   done
9244 IFS=$as_save_IFS
9245 
9246   ;;
9247 esac
9248 fi
9249 MV=$ac_cv_path_MV
9250 if test -n "$MV"; then
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9252 $as_echo "$MV" >&6; }
9253 else
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9256 fi
9257 
9258 
9259           if test "x$MV" = x; then
9260             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9261           fi
9262         else
9263           # Otherwise we believe it is a complete path. Use it as it is.
9264           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9265 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9266           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9267 $as_echo_n "checking for MV... " >&6; }
9268           if test ! -x "$tool_specified"; then
9269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9270 $as_echo "not found" >&6; }
9271             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9272           fi
9273           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9274 $as_echo "$tool_specified" >&6; }
9275         fi
9276       fi
9277     fi
9278 
9279   fi
9280 
9281 
9282 
9283   if test "x$MV" = x; then
9284     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9285   fi
9286 
9287 
9288 
9289 
9290 
9291   # Publish this variable in the help.
9292 
9293 
9294   if [ -z "${NAWK+x}" ]; then
9295     # The variable is not set by user, try to locate tool using the code snippet
9296     for ac_prog in nawk gawk awk
9297 do
9298   # Extract the first word of "$ac_prog", so it can be a program name with args.
9299 set dummy $ac_prog; ac_word=$2
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301 $as_echo_n "checking for $ac_word... " >&6; }
9302 if ${ac_cv_path_NAWK+:} false; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   case $NAWK in
9306   [\\/]* | ?:[\\/]*)
9307   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9308   ;;
9309   *)
9310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9312 do
9313   IFS=$as_save_IFS
9314   test -z "$as_dir" && as_dir=.
9315     for ac_exec_ext in '' $ac_executable_extensions; do
9316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319     break 2
9320   fi
9321 done
9322   done
9323 IFS=$as_save_IFS
9324 
9325   ;;
9326 esac
9327 fi
9328 NAWK=$ac_cv_path_NAWK
9329 if test -n "$NAWK"; then
9330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9331 $as_echo "$NAWK" >&6; }
9332 else
9333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9335 fi
9336 
9337 
9338   test -n "$NAWK" && break
9339 done
9340 
9341   else
9342     # The variable is set, but is it from the command line or the environment?
9343 
9344     # Try to remove the string !NAWK! from our list.
9345     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9346     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9347       # If it failed, the variable was not from the command line. Ignore it,
9348       # but warn the user (except for BASH, which is always set by the calling BASH).
9349       if test "xNAWK" != xBASH; then
9350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9351 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9352       fi
9353       # Try to locate tool using the code snippet
9354       for ac_prog in nawk gawk awk
9355 do
9356   # Extract the first word of "$ac_prog", so it can be a program name with args.
9357 set dummy $ac_prog; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if ${ac_cv_path_NAWK+:} false; then :
9361   $as_echo_n "(cached) " >&6
9362 else
9363   case $NAWK in
9364   [\\/]* | ?:[\\/]*)
9365   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9366   ;;
9367   *)
9368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371   IFS=$as_save_IFS
9372   test -z "$as_dir" && as_dir=.
9373     for ac_exec_ext in '' $ac_executable_extensions; do
9374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377     break 2
9378   fi
9379 done
9380   done
9381 IFS=$as_save_IFS
9382 
9383   ;;
9384 esac
9385 fi
9386 NAWK=$ac_cv_path_NAWK
9387 if test -n "$NAWK"; then
9388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9389 $as_echo "$NAWK" >&6; }
9390 else
9391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9393 fi
9394 
9395 
9396   test -n "$NAWK" && break
9397 done
9398 
9399     else
9400       # If it succeeded, then it was overridden by the user. We will use it
9401       # for the tool.
9402 
9403       # First remove it from the list of overridden variables, so we can test
9404       # for unknown variables in the end.
9405       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9406 
9407       # Check if we try to supply an empty value
9408       if test "x$NAWK" = x; then
9409         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9410 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9412 $as_echo_n "checking for NAWK... " >&6; }
9413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9414 $as_echo "disabled" >&6; }
9415       else
9416         # Check if the provided tool contains a complete path.
9417         tool_specified="$NAWK"
9418         tool_basename="${tool_specified##*/}"
9419         if test "x$tool_basename" = "x$tool_specified"; then
9420           # A command without a complete path is provided, search $PATH.
9421           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9422 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9423           # Extract the first word of "$tool_basename", so it can be a program name with args.
9424 set dummy $tool_basename; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_path_NAWK+:} false; then :
9428   $as_echo_n "(cached) " >&6
9429 else
9430   case $NAWK in
9431   [\\/]* | ?:[\\/]*)
9432   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9433   ;;
9434   *)
9435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 for as_dir in $PATH
9437 do
9438   IFS=$as_save_IFS
9439   test -z "$as_dir" && as_dir=.
9440     for ac_exec_ext in '' $ac_executable_extensions; do
9441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444     break 2
9445   fi
9446 done
9447   done
9448 IFS=$as_save_IFS
9449 
9450   ;;
9451 esac
9452 fi
9453 NAWK=$ac_cv_path_NAWK
9454 if test -n "$NAWK"; then
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9456 $as_echo "$NAWK" >&6; }
9457 else
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9460 fi
9461 
9462 
9463           if test "x$NAWK" = x; then
9464             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9465           fi
9466         else
9467           # Otherwise we believe it is a complete path. Use it as it is.
9468           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9469 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9470           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9471 $as_echo_n "checking for NAWK... " >&6; }
9472           if test ! -x "$tool_specified"; then
9473             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9474 $as_echo "not found" >&6; }
9475             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9476           fi
9477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9478 $as_echo "$tool_specified" >&6; }
9479         fi
9480       fi
9481     fi
9482 
9483   fi
9484 
9485 
9486 
9487   if test "x$NAWK" = x; then
9488     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9489   fi
9490 
9491 
9492 
9493 
9494 
9495   # Publish this variable in the help.
9496 
9497 
9498   if [ -z "${PRINTF+x}" ]; then
9499     # The variable is not set by user, try to locate tool using the code snippet
9500     for ac_prog in printf
9501 do
9502   # Extract the first word of "$ac_prog", so it can be a program name with args.
9503 set dummy $ac_prog; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_path_PRINTF+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   case $PRINTF in
9510   [\\/]* | ?:[\\/]*)
9511   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9512   ;;
9513   *)
9514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9516 do
9517   IFS=$as_save_IFS
9518   test -z "$as_dir" && as_dir=.
9519     for ac_exec_ext in '' $ac_executable_extensions; do
9520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523     break 2
9524   fi
9525 done
9526   done
9527 IFS=$as_save_IFS
9528 
9529   ;;
9530 esac
9531 fi
9532 PRINTF=$ac_cv_path_PRINTF
9533 if test -n "$PRINTF"; then
9534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9535 $as_echo "$PRINTF" >&6; }
9536 else
9537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539 fi
9540 
9541 
9542   test -n "$PRINTF" && break
9543 done
9544 
9545   else
9546     # The variable is set, but is it from the command line or the environment?
9547 
9548     # Try to remove the string !PRINTF! from our list.
9549     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9550     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9551       # If it failed, the variable was not from the command line. Ignore it,
9552       # but warn the user (except for BASH, which is always set by the calling BASH).
9553       if test "xPRINTF" != xBASH; then
9554         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9555 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9556       fi
9557       # Try to locate tool using the code snippet
9558       for ac_prog in printf
9559 do
9560   # Extract the first word of "$ac_prog", so it can be a program name with args.
9561 set dummy $ac_prog; ac_word=$2
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563 $as_echo_n "checking for $ac_word... " >&6; }
9564 if ${ac_cv_path_PRINTF+:} false; then :
9565   $as_echo_n "(cached) " >&6
9566 else
9567   case $PRINTF in
9568   [\\/]* | ?:[\\/]*)
9569   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9570   ;;
9571   *)
9572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 for as_dir in $PATH
9574 do
9575   IFS=$as_save_IFS
9576   test -z "$as_dir" && as_dir=.
9577     for ac_exec_ext in '' $ac_executable_extensions; do
9578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9579     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581     break 2
9582   fi
9583 done
9584   done
9585 IFS=$as_save_IFS
9586 
9587   ;;
9588 esac
9589 fi
9590 PRINTF=$ac_cv_path_PRINTF
9591 if test -n "$PRINTF"; then
9592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9593 $as_echo "$PRINTF" >&6; }
9594 else
9595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9597 fi
9598 
9599 
9600   test -n "$PRINTF" && break
9601 done
9602 
9603     else
9604       # If it succeeded, then it was overridden by the user. We will use it
9605       # for the tool.
9606 
9607       # First remove it from the list of overridden variables, so we can test
9608       # for unknown variables in the end.
9609       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9610 
9611       # Check if we try to supply an empty value
9612       if test "x$PRINTF" = x; then
9613         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9614 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9615         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9616 $as_echo_n "checking for PRINTF... " >&6; }
9617         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9618 $as_echo "disabled" >&6; }
9619       else
9620         # Check if the provided tool contains a complete path.
9621         tool_specified="$PRINTF"
9622         tool_basename="${tool_specified##*/}"
9623         if test "x$tool_basename" = "x$tool_specified"; then
9624           # A command without a complete path is provided, search $PATH.
9625           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9626 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9627           # Extract the first word of "$tool_basename", so it can be a program name with args.
9628 set dummy $tool_basename; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if ${ac_cv_path_PRINTF+:} false; then :
9632   $as_echo_n "(cached) " >&6
9633 else
9634   case $PRINTF in
9635   [\\/]* | ?:[\\/]*)
9636   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9637   ;;
9638   *)
9639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in $PATH
9641 do
9642   IFS=$as_save_IFS
9643   test -z "$as_dir" && as_dir=.
9644     for ac_exec_ext in '' $ac_executable_extensions; do
9645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9646     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648     break 2
9649   fi
9650 done
9651   done
9652 IFS=$as_save_IFS
9653 
9654   ;;
9655 esac
9656 fi
9657 PRINTF=$ac_cv_path_PRINTF
9658 if test -n "$PRINTF"; then
9659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9660 $as_echo "$PRINTF" >&6; }
9661 else
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665 
9666 
9667           if test "x$PRINTF" = x; then
9668             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9669           fi
9670         else
9671           # Otherwise we believe it is a complete path. Use it as it is.
9672           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9673 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9674           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9675 $as_echo_n "checking for PRINTF... " >&6; }
9676           if test ! -x "$tool_specified"; then
9677             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9678 $as_echo "not found" >&6; }
9679             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9680           fi
9681           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9682 $as_echo "$tool_specified" >&6; }
9683         fi
9684       fi
9685     fi
9686 
9687   fi
9688 
9689 
9690 
9691   if test "x$PRINTF" = x; then
9692     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9693   fi
9694 
9695 
9696 
9697 
9698 
9699   # Publish this variable in the help.
9700 
9701 
9702   if [ -z "${RM+x}" ]; then
9703     # The variable is not set by user, try to locate tool using the code snippet
9704     for ac_prog in rm
9705 do
9706   # Extract the first word of "$ac_prog", so it can be a program name with args.
9707 set dummy $ac_prog; ac_word=$2
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9709 $as_echo_n "checking for $ac_word... " >&6; }
9710 if ${ac_cv_path_RM+:} false; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   case $RM in
9714   [\\/]* | ?:[\\/]*)
9715   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9716   ;;
9717   *)
9718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721   IFS=$as_save_IFS
9722   test -z "$as_dir" && as_dir=.
9723     for ac_exec_ext in '' $ac_executable_extensions; do
9724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727     break 2
9728   fi
9729 done
9730   done
9731 IFS=$as_save_IFS
9732 
9733   ;;
9734 esac
9735 fi
9736 RM=$ac_cv_path_RM
9737 if test -n "$RM"; then
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9739 $as_echo "$RM" >&6; }
9740 else
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 $as_echo "no" >&6; }
9743 fi
9744 
9745 
9746   test -n "$RM" && break
9747 done
9748 
9749   else
9750     # The variable is set, but is it from the command line or the environment?
9751 
9752     # Try to remove the string !RM! from our list.
9753     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9754     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9755       # If it failed, the variable was not from the command line. Ignore it,
9756       # but warn the user (except for BASH, which is always set by the calling BASH).
9757       if test "xRM" != xBASH; then
9758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9759 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9760       fi
9761       # Try to locate tool using the code snippet
9762       for ac_prog in rm
9763 do
9764   # Extract the first word of "$ac_prog", so it can be a program name with args.
9765 set dummy $ac_prog; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if ${ac_cv_path_RM+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   case $RM in
9772   [\\/]* | ?:[\\/]*)
9773   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9774   ;;
9775   *)
9776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 for as_dir in $PATH
9778 do
9779   IFS=$as_save_IFS
9780   test -z "$as_dir" && as_dir=.
9781     for ac_exec_ext in '' $ac_executable_extensions; do
9782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785     break 2
9786   fi
9787 done
9788   done
9789 IFS=$as_save_IFS
9790 
9791   ;;
9792 esac
9793 fi
9794 RM=$ac_cv_path_RM
9795 if test -n "$RM"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9797 $as_echo "$RM" >&6; }
9798 else
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802 
9803 
9804   test -n "$RM" && break
9805 done
9806 
9807     else
9808       # If it succeeded, then it was overridden by the user. We will use it
9809       # for the tool.
9810 
9811       # First remove it from the list of overridden variables, so we can test
9812       # for unknown variables in the end.
9813       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9814 
9815       # Check if we try to supply an empty value
9816       if test "x$RM" = x; then
9817         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9818 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9820 $as_echo_n "checking for RM... " >&6; }
9821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9822 $as_echo "disabled" >&6; }
9823       else
9824         # Check if the provided tool contains a complete path.
9825         tool_specified="$RM"
9826         tool_basename="${tool_specified##*/}"
9827         if test "x$tool_basename" = "x$tool_specified"; then
9828           # A command without a complete path is provided, search $PATH.
9829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9830 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9831           # Extract the first word of "$tool_basename", so it can be a program name with args.
9832 set dummy $tool_basename; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_path_RM+:} false; then :
9836   $as_echo_n "(cached) " >&6
9837 else
9838   case $RM in
9839   [\\/]* | ?:[\\/]*)
9840   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9841   ;;
9842   *)
9843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9845 do
9846   IFS=$as_save_IFS
9847   test -z "$as_dir" && as_dir=.
9848     for ac_exec_ext in '' $ac_executable_extensions; do
9849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852     break 2
9853   fi
9854 done
9855   done
9856 IFS=$as_save_IFS
9857 
9858   ;;
9859 esac
9860 fi
9861 RM=$ac_cv_path_RM
9862 if test -n "$RM"; then
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9864 $as_echo "$RM" >&6; }
9865 else
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 fi
9869 
9870 
9871           if test "x$RM" = x; then
9872             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9873           fi
9874         else
9875           # Otherwise we believe it is a complete path. Use it as it is.
9876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9877 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9878           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9879 $as_echo_n "checking for RM... " >&6; }
9880           if test ! -x "$tool_specified"; then
9881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9882 $as_echo "not found" >&6; }
9883             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9884           fi
9885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9886 $as_echo "$tool_specified" >&6; }
9887         fi
9888       fi
9889     fi
9890 
9891   fi
9892 
9893 
9894 
9895   if test "x$RM" = x; then
9896     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9897   fi
9898 
9899 
9900 
9901 
9902 
9903   # Publish this variable in the help.
9904 
9905 
9906   if [ -z "${RMDIR+x}" ]; then
9907     # The variable is not set by user, try to locate tool using the code snippet
9908     for ac_prog in rmdir
9909 do
9910   # Extract the first word of "$ac_prog", so it can be a program name with args.
9911 set dummy $ac_prog; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_path_RMDIR+:} false; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   case $RMDIR in
9918   [\\/]* | ?:[\\/]*)
9919   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9920   ;;
9921   *)
9922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9924 do
9925   IFS=$as_save_IFS
9926   test -z "$as_dir" && as_dir=.
9927     for ac_exec_ext in '' $ac_executable_extensions; do
9928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931     break 2
9932   fi
9933 done
9934   done
9935 IFS=$as_save_IFS
9936 
9937   ;;
9938 esac
9939 fi
9940 RMDIR=$ac_cv_path_RMDIR
9941 if test -n "$RMDIR"; then
9942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9943 $as_echo "$RMDIR" >&6; }
9944 else
9945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9947 fi
9948 
9949 
9950   test -n "$RMDIR" && break
9951 done
9952 
9953   else
9954     # The variable is set, but is it from the command line or the environment?
9955 
9956     # Try to remove the string !RMDIR! from our list.
9957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9959       # If it failed, the variable was not from the command line. Ignore it,
9960       # but warn the user (except for BASH, which is always set by the calling BASH).
9961       if test "xRMDIR" != xBASH; then
9962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9963 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9964       fi
9965       # Try to locate tool using the code snippet
9966       for ac_prog in rmdir
9967 do
9968   # Extract the first word of "$ac_prog", so it can be a program name with args.
9969 set dummy $ac_prog; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if ${ac_cv_path_RMDIR+:} false; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   case $RMDIR in
9976   [\\/]* | ?:[\\/]*)
9977   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9978   ;;
9979   *)
9980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9982 do
9983   IFS=$as_save_IFS
9984   test -z "$as_dir" && as_dir=.
9985     for ac_exec_ext in '' $ac_executable_extensions; do
9986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989     break 2
9990   fi
9991 done
9992   done
9993 IFS=$as_save_IFS
9994 
9995   ;;
9996 esac
9997 fi
9998 RMDIR=$ac_cv_path_RMDIR
9999 if test -n "$RMDIR"; then
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10001 $as_echo "$RMDIR" >&6; }
10002 else
10003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10005 fi
10006 
10007 
10008   test -n "$RMDIR" && break
10009 done
10010 
10011     else
10012       # If it succeeded, then it was overridden by the user. We will use it
10013       # for the tool.
10014 
10015       # First remove it from the list of overridden variables, so we can test
10016       # for unknown variables in the end.
10017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10018 
10019       # Check if we try to supply an empty value
10020       if test "x$RMDIR" = x; then
10021         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10022 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10024 $as_echo_n "checking for RMDIR... " >&6; }
10025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10026 $as_echo "disabled" >&6; }
10027       else
10028         # Check if the provided tool contains a complete path.
10029         tool_specified="$RMDIR"
10030         tool_basename="${tool_specified##*/}"
10031         if test "x$tool_basename" = "x$tool_specified"; then
10032           # A command without a complete path is provided, search $PATH.
10033           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10034 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10035           # Extract the first word of "$tool_basename", so it can be a program name with args.
10036 set dummy $tool_basename; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if ${ac_cv_path_RMDIR+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   case $RMDIR in
10043   [\\/]* | ?:[\\/]*)
10044   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10045   ;;
10046   *)
10047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10049 do
10050   IFS=$as_save_IFS
10051   test -z "$as_dir" && as_dir=.
10052     for ac_exec_ext in '' $ac_executable_extensions; do
10053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10054     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056     break 2
10057   fi
10058 done
10059   done
10060 IFS=$as_save_IFS
10061 
10062   ;;
10063 esac
10064 fi
10065 RMDIR=$ac_cv_path_RMDIR
10066 if test -n "$RMDIR"; then
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10068 $as_echo "$RMDIR" >&6; }
10069 else
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10072 fi
10073 
10074 
10075           if test "x$RMDIR" = x; then
10076             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10077           fi
10078         else
10079           # Otherwise we believe it is a complete path. Use it as it is.
10080           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10081 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10082           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10083 $as_echo_n "checking for RMDIR... " >&6; }
10084           if test ! -x "$tool_specified"; then
10085             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10086 $as_echo "not found" >&6; }
10087             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10088           fi
10089           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10090 $as_echo "$tool_specified" >&6; }
10091         fi
10092       fi
10093     fi
10094 
10095   fi
10096 
10097 
10098 
10099   if test "x$RMDIR" = x; then
10100     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10101   fi
10102 
10103 
10104 
10105 
10106 
10107   # Publish this variable in the help.
10108 
10109 
10110   if [ -z "${SH+x}" ]; then
10111     # The variable is not set by user, try to locate tool using the code snippet
10112     for ac_prog in sh
10113 do
10114   # Extract the first word of "$ac_prog", so it can be a program name with args.
10115 set dummy $ac_prog; ac_word=$2
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117 $as_echo_n "checking for $ac_word... " >&6; }
10118 if ${ac_cv_path_SH+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   case $SH in
10122   [\\/]* | ?:[\\/]*)
10123   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10124   ;;
10125   *)
10126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129   IFS=$as_save_IFS
10130   test -z "$as_dir" && as_dir=.
10131     for ac_exec_ext in '' $ac_executable_extensions; do
10132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10135     break 2
10136   fi
10137 done
10138   done
10139 IFS=$as_save_IFS
10140 
10141   ;;
10142 esac
10143 fi
10144 SH=$ac_cv_path_SH
10145 if test -n "$SH"; then
10146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10147 $as_echo "$SH" >&6; }
10148 else
10149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10151 fi
10152 
10153 
10154   test -n "$SH" && break
10155 done
10156 
10157   else
10158     # The variable is set, but is it from the command line or the environment?
10159 
10160     # Try to remove the string !SH! from our list.
10161     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10162     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10163       # If it failed, the variable was not from the command line. Ignore it,
10164       # but warn the user (except for BASH, which is always set by the calling BASH).
10165       if test "xSH" != xBASH; then
10166         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10167 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10168       fi
10169       # Try to locate tool using the code snippet
10170       for ac_prog in sh
10171 do
10172   # Extract the first word of "$ac_prog", so it can be a program name with args.
10173 set dummy $ac_prog; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if ${ac_cv_path_SH+:} false; then :
10177   $as_echo_n "(cached) " >&6
10178 else
10179   case $SH in
10180   [\\/]* | ?:[\\/]*)
10181   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10182   ;;
10183   *)
10184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187   IFS=$as_save_IFS
10188   test -z "$as_dir" && as_dir=.
10189     for ac_exec_ext in '' $ac_executable_extensions; do
10190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193     break 2
10194   fi
10195 done
10196   done
10197 IFS=$as_save_IFS
10198 
10199   ;;
10200 esac
10201 fi
10202 SH=$ac_cv_path_SH
10203 if test -n "$SH"; then
10204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10205 $as_echo "$SH" >&6; }
10206 else
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10209 fi
10210 
10211 
10212   test -n "$SH" && break
10213 done
10214 
10215     else
10216       # If it succeeded, then it was overridden by the user. We will use it
10217       # for the tool.
10218 
10219       # First remove it from the list of overridden variables, so we can test
10220       # for unknown variables in the end.
10221       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10222 
10223       # Check if we try to supply an empty value
10224       if test "x$SH" = x; then
10225         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10226 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10228 $as_echo_n "checking for SH... " >&6; }
10229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10230 $as_echo "disabled" >&6; }
10231       else
10232         # Check if the provided tool contains a complete path.
10233         tool_specified="$SH"
10234         tool_basename="${tool_specified##*/}"
10235         if test "x$tool_basename" = "x$tool_specified"; then
10236           # A command without a complete path is provided, search $PATH.
10237           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10238 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10239           # Extract the first word of "$tool_basename", so it can be a program name with args.
10240 set dummy $tool_basename; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if ${ac_cv_path_SH+:} false; then :
10244   $as_echo_n "(cached) " >&6
10245 else
10246   case $SH in
10247   [\\/]* | ?:[\\/]*)
10248   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10249   ;;
10250   *)
10251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254   IFS=$as_save_IFS
10255   test -z "$as_dir" && as_dir=.
10256     for ac_exec_ext in '' $ac_executable_extensions; do
10257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10258     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260     break 2
10261   fi
10262 done
10263   done
10264 IFS=$as_save_IFS
10265 
10266   ;;
10267 esac
10268 fi
10269 SH=$ac_cv_path_SH
10270 if test -n "$SH"; then
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10272 $as_echo "$SH" >&6; }
10273 else
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277 
10278 
10279           if test "x$SH" = x; then
10280             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10281           fi
10282         else
10283           # Otherwise we believe it is a complete path. Use it as it is.
10284           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10285 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10286           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10287 $as_echo_n "checking for SH... " >&6; }
10288           if test ! -x "$tool_specified"; then
10289             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10290 $as_echo "not found" >&6; }
10291             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10292           fi
10293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10294 $as_echo "$tool_specified" >&6; }
10295         fi
10296       fi
10297     fi
10298 
10299   fi
10300 
10301 
10302 
10303   if test "x$SH" = x; then
10304     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10305   fi
10306 
10307 
10308 
10309 
10310 
10311   # Publish this variable in the help.
10312 
10313 
10314   if [ -z "${SORT+x}" ]; then
10315     # The variable is not set by user, try to locate tool using the code snippet
10316     for ac_prog in sort
10317 do
10318   # Extract the first word of "$ac_prog", so it can be a program name with args.
10319 set dummy $ac_prog; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_path_SORT+:} false; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   case $SORT in
10326   [\\/]* | ?:[\\/]*)
10327   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10328   ;;
10329   *)
10330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10332 do
10333   IFS=$as_save_IFS
10334   test -z "$as_dir" && as_dir=.
10335     for ac_exec_ext in '' $ac_executable_extensions; do
10336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339     break 2
10340   fi
10341 done
10342   done
10343 IFS=$as_save_IFS
10344 
10345   ;;
10346 esac
10347 fi
10348 SORT=$ac_cv_path_SORT
10349 if test -n "$SORT"; then
10350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10351 $as_echo "$SORT" >&6; }
10352 else
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10355 fi
10356 
10357 
10358   test -n "$SORT" && break
10359 done
10360 
10361   else
10362     # The variable is set, but is it from the command line or the environment?
10363 
10364     # Try to remove the string !SORT! from our list.
10365     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10366     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10367       # If it failed, the variable was not from the command line. Ignore it,
10368       # but warn the user (except for BASH, which is always set by the calling BASH).
10369       if test "xSORT" != xBASH; then
10370         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10371 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10372       fi
10373       # Try to locate tool using the code snippet
10374       for ac_prog in sort
10375 do
10376   # Extract the first word of "$ac_prog", so it can be a program name with args.
10377 set dummy $ac_prog; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_path_SORT+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   case $SORT in
10384   [\\/]* | ?:[\\/]*)
10385   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10386   ;;
10387   *)
10388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391   IFS=$as_save_IFS
10392   test -z "$as_dir" && as_dir=.
10393     for ac_exec_ext in '' $ac_executable_extensions; do
10394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397     break 2
10398   fi
10399 done
10400   done
10401 IFS=$as_save_IFS
10402 
10403   ;;
10404 esac
10405 fi
10406 SORT=$ac_cv_path_SORT
10407 if test -n "$SORT"; then
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10409 $as_echo "$SORT" >&6; }
10410 else
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414 
10415 
10416   test -n "$SORT" && break
10417 done
10418 
10419     else
10420       # If it succeeded, then it was overridden by the user. We will use it
10421       # for the tool.
10422 
10423       # First remove it from the list of overridden variables, so we can test
10424       # for unknown variables in the end.
10425       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10426 
10427       # Check if we try to supply an empty value
10428       if test "x$SORT" = x; then
10429         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10430 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10432 $as_echo_n "checking for SORT... " >&6; }
10433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10434 $as_echo "disabled" >&6; }
10435       else
10436         # Check if the provided tool contains a complete path.
10437         tool_specified="$SORT"
10438         tool_basename="${tool_specified##*/}"
10439         if test "x$tool_basename" = "x$tool_specified"; then
10440           # A command without a complete path is provided, search $PATH.
10441           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10442 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10443           # Extract the first word of "$tool_basename", so it can be a program name with args.
10444 set dummy $tool_basename; ac_word=$2
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446 $as_echo_n "checking for $ac_word... " >&6; }
10447 if ${ac_cv_path_SORT+:} false; then :
10448   $as_echo_n "(cached) " >&6
10449 else
10450   case $SORT in
10451   [\\/]* | ?:[\\/]*)
10452   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10453   ;;
10454   *)
10455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10457 do
10458   IFS=$as_save_IFS
10459   test -z "$as_dir" && as_dir=.
10460     for ac_exec_ext in '' $ac_executable_extensions; do
10461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464     break 2
10465   fi
10466 done
10467   done
10468 IFS=$as_save_IFS
10469 
10470   ;;
10471 esac
10472 fi
10473 SORT=$ac_cv_path_SORT
10474 if test -n "$SORT"; then
10475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10476 $as_echo "$SORT" >&6; }
10477 else
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10480 fi
10481 
10482 
10483           if test "x$SORT" = x; then
10484             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10485           fi
10486         else
10487           # Otherwise we believe it is a complete path. Use it as it is.
10488           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10489 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10490           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10491 $as_echo_n "checking for SORT... " >&6; }
10492           if test ! -x "$tool_specified"; then
10493             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10494 $as_echo "not found" >&6; }
10495             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10496           fi
10497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10498 $as_echo "$tool_specified" >&6; }
10499         fi
10500       fi
10501     fi
10502 
10503   fi
10504 
10505 
10506 
10507   if test "x$SORT" = x; then
10508     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10509   fi
10510 
10511 
10512 
10513 
10514 
10515   # Publish this variable in the help.
10516 
10517 
10518   if [ -z "${TAIL+x}" ]; then
10519     # The variable is not set by user, try to locate tool using the code snippet
10520     for ac_prog in tail
10521 do
10522   # Extract the first word of "$ac_prog", so it can be a program name with args.
10523 set dummy $ac_prog; ac_word=$2
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525 $as_echo_n "checking for $ac_word... " >&6; }
10526 if ${ac_cv_path_TAIL+:} false; then :
10527   $as_echo_n "(cached) " >&6
10528 else
10529   case $TAIL in
10530   [\\/]* | ?:[\\/]*)
10531   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10532   ;;
10533   *)
10534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10536 do
10537   IFS=$as_save_IFS
10538   test -z "$as_dir" && as_dir=.
10539     for ac_exec_ext in '' $ac_executable_extensions; do
10540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543     break 2
10544   fi
10545 done
10546   done
10547 IFS=$as_save_IFS
10548 
10549   ;;
10550 esac
10551 fi
10552 TAIL=$ac_cv_path_TAIL
10553 if test -n "$TAIL"; then
10554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10555 $as_echo "$TAIL" >&6; }
10556 else
10557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10559 fi
10560 
10561 
10562   test -n "$TAIL" && break
10563 done
10564 
10565   else
10566     # The variable is set, but is it from the command line or the environment?
10567 
10568     # Try to remove the string !TAIL! from our list.
10569     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10570     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10571       # If it failed, the variable was not from the command line. Ignore it,
10572       # but warn the user (except for BASH, which is always set by the calling BASH).
10573       if test "xTAIL" != xBASH; then
10574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10575 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10576       fi
10577       # Try to locate tool using the code snippet
10578       for ac_prog in tail
10579 do
10580   # Extract the first word of "$ac_prog", so it can be a program name with args.
10581 set dummy $ac_prog; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_path_TAIL+:} false; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587   case $TAIL in
10588   [\\/]* | ?:[\\/]*)
10589   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10590   ;;
10591   *)
10592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10594 do
10595   IFS=$as_save_IFS
10596   test -z "$as_dir" && as_dir=.
10597     for ac_exec_ext in '' $ac_executable_extensions; do
10598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601     break 2
10602   fi
10603 done
10604   done
10605 IFS=$as_save_IFS
10606 
10607   ;;
10608 esac
10609 fi
10610 TAIL=$ac_cv_path_TAIL
10611 if test -n "$TAIL"; then
10612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10613 $as_echo "$TAIL" >&6; }
10614 else
10615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10617 fi
10618 
10619 
10620   test -n "$TAIL" && break
10621 done
10622 
10623     else
10624       # If it succeeded, then it was overridden by the user. We will use it
10625       # for the tool.
10626 
10627       # First remove it from the list of overridden variables, so we can test
10628       # for unknown variables in the end.
10629       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10630 
10631       # Check if we try to supply an empty value
10632       if test "x$TAIL" = x; then
10633         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10634 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10636 $as_echo_n "checking for TAIL... " >&6; }
10637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10638 $as_echo "disabled" >&6; }
10639       else
10640         # Check if the provided tool contains a complete path.
10641         tool_specified="$TAIL"
10642         tool_basename="${tool_specified##*/}"
10643         if test "x$tool_basename" = "x$tool_specified"; then
10644           # A command without a complete path is provided, search $PATH.
10645           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10646 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10647           # Extract the first word of "$tool_basename", so it can be a program name with args.
10648 set dummy $tool_basename; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_path_TAIL+:} false; then :
10652   $as_echo_n "(cached) " >&6
10653 else
10654   case $TAIL in
10655   [\\/]* | ?:[\\/]*)
10656   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10657   ;;
10658   *)
10659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10661 do
10662   IFS=$as_save_IFS
10663   test -z "$as_dir" && as_dir=.
10664     for ac_exec_ext in '' $ac_executable_extensions; do
10665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10666     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668     break 2
10669   fi
10670 done
10671   done
10672 IFS=$as_save_IFS
10673 
10674   ;;
10675 esac
10676 fi
10677 TAIL=$ac_cv_path_TAIL
10678 if test -n "$TAIL"; then
10679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10680 $as_echo "$TAIL" >&6; }
10681 else
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10684 fi
10685 
10686 
10687           if test "x$TAIL" = x; then
10688             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10689           fi
10690         else
10691           # Otherwise we believe it is a complete path. Use it as it is.
10692           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10693 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10694           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10695 $as_echo_n "checking for TAIL... " >&6; }
10696           if test ! -x "$tool_specified"; then
10697             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10698 $as_echo "not found" >&6; }
10699             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10700           fi
10701           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10702 $as_echo "$tool_specified" >&6; }
10703         fi
10704       fi
10705     fi
10706 
10707   fi
10708 
10709 
10710 
10711   if test "x$TAIL" = x; then
10712     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10713   fi
10714 
10715 
10716 
10717 
10718 
10719   # Publish this variable in the help.
10720 
10721 
10722   if [ -z "${TAR+x}" ]; then
10723     # The variable is not set by user, try to locate tool using the code snippet
10724     for ac_prog in tar
10725 do
10726   # Extract the first word of "$ac_prog", so it can be a program name with args.
10727 set dummy $ac_prog; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if ${ac_cv_path_TAR+:} false; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   case $TAR in
10734   [\\/]* | ?:[\\/]*)
10735   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10736   ;;
10737   *)
10738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739 for as_dir in $PATH
10740 do
10741   IFS=$as_save_IFS
10742   test -z "$as_dir" && as_dir=.
10743     for ac_exec_ext in '' $ac_executable_extensions; do
10744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10745     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10747     break 2
10748   fi
10749 done
10750   done
10751 IFS=$as_save_IFS
10752 
10753   ;;
10754 esac
10755 fi
10756 TAR=$ac_cv_path_TAR
10757 if test -n "$TAR"; then
10758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10759 $as_echo "$TAR" >&6; }
10760 else
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762 $as_echo "no" >&6; }
10763 fi
10764 
10765 
10766   test -n "$TAR" && break
10767 done
10768 
10769   else
10770     # The variable is set, but is it from the command line or the environment?
10771 
10772     # Try to remove the string !TAR! from our list.
10773     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10774     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10775       # If it failed, the variable was not from the command line. Ignore it,
10776       # but warn the user (except for BASH, which is always set by the calling BASH).
10777       if test "xTAR" != xBASH; then
10778         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10779 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10780       fi
10781       # Try to locate tool using the code snippet
10782       for ac_prog in tar
10783 do
10784   # Extract the first word of "$ac_prog", so it can be a program name with args.
10785 set dummy $ac_prog; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_path_TAR+:} false; then :
10789   $as_echo_n "(cached) " >&6
10790 else
10791   case $TAR in
10792   [\\/]* | ?:[\\/]*)
10793   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10794   ;;
10795   *)
10796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797 for as_dir in $PATH
10798 do
10799   IFS=$as_save_IFS
10800   test -z "$as_dir" && as_dir=.
10801     for ac_exec_ext in '' $ac_executable_extensions; do
10802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805     break 2
10806   fi
10807 done
10808   done
10809 IFS=$as_save_IFS
10810 
10811   ;;
10812 esac
10813 fi
10814 TAR=$ac_cv_path_TAR
10815 if test -n "$TAR"; then
10816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10817 $as_echo "$TAR" >&6; }
10818 else
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821 fi
10822 
10823 
10824   test -n "$TAR" && break
10825 done
10826 
10827     else
10828       # If it succeeded, then it was overridden by the user. We will use it
10829       # for the tool.
10830 
10831       # First remove it from the list of overridden variables, so we can test
10832       # for unknown variables in the end.
10833       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10834 
10835       # Check if we try to supply an empty value
10836       if test "x$TAR" = x; then
10837         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10838 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10840 $as_echo_n "checking for TAR... " >&6; }
10841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10842 $as_echo "disabled" >&6; }
10843       else
10844         # Check if the provided tool contains a complete path.
10845         tool_specified="$TAR"
10846         tool_basename="${tool_specified##*/}"
10847         if test "x$tool_basename" = "x$tool_specified"; then
10848           # A command without a complete path is provided, search $PATH.
10849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10850 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10851           # Extract the first word of "$tool_basename", so it can be a program name with args.
10852 set dummy $tool_basename; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if ${ac_cv_path_TAR+:} false; then :
10856   $as_echo_n "(cached) " >&6
10857 else
10858   case $TAR in
10859   [\\/]* | ?:[\\/]*)
10860   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10861   ;;
10862   *)
10863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10865 do
10866   IFS=$as_save_IFS
10867   test -z "$as_dir" && as_dir=.
10868     for ac_exec_ext in '' $ac_executable_extensions; do
10869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872     break 2
10873   fi
10874 done
10875   done
10876 IFS=$as_save_IFS
10877 
10878   ;;
10879 esac
10880 fi
10881 TAR=$ac_cv_path_TAR
10882 if test -n "$TAR"; then
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10884 $as_echo "$TAR" >&6; }
10885 else
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10888 fi
10889 
10890 
10891           if test "x$TAR" = x; then
10892             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10893           fi
10894         else
10895           # Otherwise we believe it is a complete path. Use it as it is.
10896           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10897 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10898           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10899 $as_echo_n "checking for TAR... " >&6; }
10900           if test ! -x "$tool_specified"; then
10901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10902 $as_echo "not found" >&6; }
10903             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10904           fi
10905           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10906 $as_echo "$tool_specified" >&6; }
10907         fi
10908       fi
10909     fi
10910 
10911   fi
10912 
10913 
10914 
10915   if test "x$TAR" = x; then
10916     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10917   fi
10918 
10919 
10920 
10921 
10922 
10923   # Publish this variable in the help.
10924 
10925 
10926   if [ -z "${TEE+x}" ]; then
10927     # The variable is not set by user, try to locate tool using the code snippet
10928     for ac_prog in tee
10929 do
10930   # Extract the first word of "$ac_prog", so it can be a program name with args.
10931 set dummy $ac_prog; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_path_TEE+:} false; then :
10935   $as_echo_n "(cached) " >&6
10936 else
10937   case $TEE in
10938   [\\/]* | ?:[\\/]*)
10939   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10940   ;;
10941   *)
10942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945   IFS=$as_save_IFS
10946   test -z "$as_dir" && as_dir=.
10947     for ac_exec_ext in '' $ac_executable_extensions; do
10948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951     break 2
10952   fi
10953 done
10954   done
10955 IFS=$as_save_IFS
10956 
10957   ;;
10958 esac
10959 fi
10960 TEE=$ac_cv_path_TEE
10961 if test -n "$TEE"; then
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10963 $as_echo "$TEE" >&6; }
10964 else
10965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968 
10969 
10970   test -n "$TEE" && break
10971 done
10972 
10973   else
10974     # The variable is set, but is it from the command line or the environment?
10975 
10976     # Try to remove the string !TEE! from our list.
10977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10979       # If it failed, the variable was not from the command line. Ignore it,
10980       # but warn the user (except for BASH, which is always set by the calling BASH).
10981       if test "xTEE" != xBASH; then
10982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10983 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10984       fi
10985       # Try to locate tool using the code snippet
10986       for ac_prog in tee
10987 do
10988   # Extract the first word of "$ac_prog", so it can be a program name with args.
10989 set dummy $ac_prog; ac_word=$2
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991 $as_echo_n "checking for $ac_word... " >&6; }
10992 if ${ac_cv_path_TEE+:} false; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   case $TEE in
10996   [\\/]* | ?:[\\/]*)
10997   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10998   ;;
10999   *)
11000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003   IFS=$as_save_IFS
11004   test -z "$as_dir" && as_dir=.
11005     for ac_exec_ext in '' $ac_executable_extensions; do
11006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009     break 2
11010   fi
11011 done
11012   done
11013 IFS=$as_save_IFS
11014 
11015   ;;
11016 esac
11017 fi
11018 TEE=$ac_cv_path_TEE
11019 if test -n "$TEE"; then
11020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11021 $as_echo "$TEE" >&6; }
11022 else
11023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11025 fi
11026 
11027 
11028   test -n "$TEE" && break
11029 done
11030 
11031     else
11032       # If it succeeded, then it was overridden by the user. We will use it
11033       # for the tool.
11034 
11035       # First remove it from the list of overridden variables, so we can test
11036       # for unknown variables in the end.
11037       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11038 
11039       # Check if we try to supply an empty value
11040       if test "x$TEE" = x; then
11041         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11042 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11043         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11044 $as_echo_n "checking for TEE... " >&6; }
11045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11046 $as_echo "disabled" >&6; }
11047       else
11048         # Check if the provided tool contains a complete path.
11049         tool_specified="$TEE"
11050         tool_basename="${tool_specified##*/}"
11051         if test "x$tool_basename" = "x$tool_specified"; then
11052           # A command without a complete path is provided, search $PATH.
11053           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11054 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11055           # Extract the first word of "$tool_basename", so it can be a program name with args.
11056 set dummy $tool_basename; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058 $as_echo_n "checking for $ac_word... " >&6; }
11059 if ${ac_cv_path_TEE+:} false; then :
11060   $as_echo_n "(cached) " >&6
11061 else
11062   case $TEE in
11063   [\\/]* | ?:[\\/]*)
11064   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11065   ;;
11066   *)
11067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11069 do
11070   IFS=$as_save_IFS
11071   test -z "$as_dir" && as_dir=.
11072     for ac_exec_ext in '' $ac_executable_extensions; do
11073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076     break 2
11077   fi
11078 done
11079   done
11080 IFS=$as_save_IFS
11081 
11082   ;;
11083 esac
11084 fi
11085 TEE=$ac_cv_path_TEE
11086 if test -n "$TEE"; then
11087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11088 $as_echo "$TEE" >&6; }
11089 else
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11092 fi
11093 
11094 
11095           if test "x$TEE" = x; then
11096             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11097           fi
11098         else
11099           # Otherwise we believe it is a complete path. Use it as it is.
11100           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11101 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11102           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11103 $as_echo_n "checking for TEE... " >&6; }
11104           if test ! -x "$tool_specified"; then
11105             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11106 $as_echo "not found" >&6; }
11107             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11108           fi
11109           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11110 $as_echo "$tool_specified" >&6; }
11111         fi
11112       fi
11113     fi
11114 
11115   fi
11116 
11117 
11118 
11119   if test "x$TEE" = x; then
11120     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11121   fi
11122 
11123 
11124 
11125 
11126 
11127   # Publish this variable in the help.
11128 
11129 
11130   if [ -z "${TOUCH+x}" ]; then
11131     # The variable is not set by user, try to locate tool using the code snippet
11132     for ac_prog in touch
11133 do
11134   # Extract the first word of "$ac_prog", so it can be a program name with args.
11135 set dummy $ac_prog; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if ${ac_cv_path_TOUCH+:} false; then :
11139   $as_echo_n "(cached) " >&6
11140 else
11141   case $TOUCH in
11142   [\\/]* | ?:[\\/]*)
11143   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11144   ;;
11145   *)
11146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11148 do
11149   IFS=$as_save_IFS
11150   test -z "$as_dir" && as_dir=.
11151     for ac_exec_ext in '' $ac_executable_extensions; do
11152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11153     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155     break 2
11156   fi
11157 done
11158   done
11159 IFS=$as_save_IFS
11160 
11161   ;;
11162 esac
11163 fi
11164 TOUCH=$ac_cv_path_TOUCH
11165 if test -n "$TOUCH"; then
11166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11167 $as_echo "$TOUCH" >&6; }
11168 else
11169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11171 fi
11172 
11173 
11174   test -n "$TOUCH" && break
11175 done
11176 
11177   else
11178     # The variable is set, but is it from the command line or the environment?
11179 
11180     # Try to remove the string !TOUCH! from our list.
11181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11183       # If it failed, the variable was not from the command line. Ignore it,
11184       # but warn the user (except for BASH, which is always set by the calling BASH).
11185       if test "xTOUCH" != xBASH; then
11186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11187 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11188       fi
11189       # Try to locate tool using the code snippet
11190       for ac_prog in touch
11191 do
11192   # Extract the first word of "$ac_prog", so it can be a program name with args.
11193 set dummy $ac_prog; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_path_TOUCH+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   case $TOUCH in
11200   [\\/]* | ?:[\\/]*)
11201   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11202   ;;
11203   *)
11204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11206 do
11207   IFS=$as_save_IFS
11208   test -z "$as_dir" && as_dir=.
11209     for ac_exec_ext in '' $ac_executable_extensions; do
11210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11211     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213     break 2
11214   fi
11215 done
11216   done
11217 IFS=$as_save_IFS
11218 
11219   ;;
11220 esac
11221 fi
11222 TOUCH=$ac_cv_path_TOUCH
11223 if test -n "$TOUCH"; then
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11225 $as_echo "$TOUCH" >&6; }
11226 else
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230 
11231 
11232   test -n "$TOUCH" && break
11233 done
11234 
11235     else
11236       # If it succeeded, then it was overridden by the user. We will use it
11237       # for the tool.
11238 
11239       # First remove it from the list of overridden variables, so we can test
11240       # for unknown variables in the end.
11241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11242 
11243       # Check if we try to supply an empty value
11244       if test "x$TOUCH" = x; then
11245         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11246 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11248 $as_echo_n "checking for TOUCH... " >&6; }
11249         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11250 $as_echo "disabled" >&6; }
11251       else
11252         # Check if the provided tool contains a complete path.
11253         tool_specified="$TOUCH"
11254         tool_basename="${tool_specified##*/}"
11255         if test "x$tool_basename" = "x$tool_specified"; then
11256           # A command without a complete path is provided, search $PATH.
11257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11258 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11259           # Extract the first word of "$tool_basename", so it can be a program name with args.
11260 set dummy $tool_basename; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_path_TOUCH+:} false; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   case $TOUCH in
11267   [\\/]* | ?:[\\/]*)
11268   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11269   ;;
11270   *)
11271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11273 do
11274   IFS=$as_save_IFS
11275   test -z "$as_dir" && as_dir=.
11276     for ac_exec_ext in '' $ac_executable_extensions; do
11277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280     break 2
11281   fi
11282 done
11283   done
11284 IFS=$as_save_IFS
11285 
11286   ;;
11287 esac
11288 fi
11289 TOUCH=$ac_cv_path_TOUCH
11290 if test -n "$TOUCH"; then
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11292 $as_echo "$TOUCH" >&6; }
11293 else
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11296 fi
11297 
11298 
11299           if test "x$TOUCH" = x; then
11300             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11301           fi
11302         else
11303           # Otherwise we believe it is a complete path. Use it as it is.
11304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11305 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11306           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11307 $as_echo_n "checking for TOUCH... " >&6; }
11308           if test ! -x "$tool_specified"; then
11309             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11310 $as_echo "not found" >&6; }
11311             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11312           fi
11313           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11314 $as_echo "$tool_specified" >&6; }
11315         fi
11316       fi
11317     fi
11318 
11319   fi
11320 
11321 
11322 
11323   if test "x$TOUCH" = x; then
11324     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11325   fi
11326 
11327 
11328 
11329 
11330 
11331   # Publish this variable in the help.
11332 
11333 
11334   if [ -z "${TR+x}" ]; then
11335     # The variable is not set by user, try to locate tool using the code snippet
11336     for ac_prog in tr
11337 do
11338   # Extract the first word of "$ac_prog", so it can be a program name with args.
11339 set dummy $ac_prog; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_path_TR+:} false; then :
11343   $as_echo_n "(cached) " >&6
11344 else
11345   case $TR in
11346   [\\/]* | ?:[\\/]*)
11347   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11348   ;;
11349   *)
11350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353   IFS=$as_save_IFS
11354   test -z "$as_dir" && as_dir=.
11355     for ac_exec_ext in '' $ac_executable_extensions; do
11356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359     break 2
11360   fi
11361 done
11362   done
11363 IFS=$as_save_IFS
11364 
11365   ;;
11366 esac
11367 fi
11368 TR=$ac_cv_path_TR
11369 if test -n "$TR"; then
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11371 $as_echo "$TR" >&6; }
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376 
11377 
11378   test -n "$TR" && break
11379 done
11380 
11381   else
11382     # The variable is set, but is it from the command line or the environment?
11383 
11384     # Try to remove the string !TR! from our list.
11385     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11386     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11387       # If it failed, the variable was not from the command line. Ignore it,
11388       # but warn the user (except for BASH, which is always set by the calling BASH).
11389       if test "xTR" != xBASH; then
11390         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11391 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11392       fi
11393       # Try to locate tool using the code snippet
11394       for ac_prog in tr
11395 do
11396   # Extract the first word of "$ac_prog", so it can be a program name with args.
11397 set dummy $ac_prog; ac_word=$2
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if ${ac_cv_path_TR+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   case $TR in
11404   [\\/]* | ?:[\\/]*)
11405   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11406   ;;
11407   *)
11408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411   IFS=$as_save_IFS
11412   test -z "$as_dir" && as_dir=.
11413     for ac_exec_ext in '' $ac_executable_extensions; do
11414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417     break 2
11418   fi
11419 done
11420   done
11421 IFS=$as_save_IFS
11422 
11423   ;;
11424 esac
11425 fi
11426 TR=$ac_cv_path_TR
11427 if test -n "$TR"; then
11428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11429 $as_echo "$TR" >&6; }
11430 else
11431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 fi
11434 
11435 
11436   test -n "$TR" && break
11437 done
11438 
11439     else
11440       # If it succeeded, then it was overridden by the user. We will use it
11441       # for the tool.
11442 
11443       # First remove it from the list of overridden variables, so we can test
11444       # for unknown variables in the end.
11445       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11446 
11447       # Check if we try to supply an empty value
11448       if test "x$TR" = x; then
11449         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11450 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11452 $as_echo_n "checking for TR... " >&6; }
11453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11454 $as_echo "disabled" >&6; }
11455       else
11456         # Check if the provided tool contains a complete path.
11457         tool_specified="$TR"
11458         tool_basename="${tool_specified##*/}"
11459         if test "x$tool_basename" = "x$tool_specified"; then
11460           # A command without a complete path is provided, search $PATH.
11461           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11462 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11463           # Extract the first word of "$tool_basename", so it can be a program name with args.
11464 set dummy $tool_basename; ac_word=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if ${ac_cv_path_TR+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   case $TR in
11471   [\\/]* | ?:[\\/]*)
11472   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11473   ;;
11474   *)
11475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11477 do
11478   IFS=$as_save_IFS
11479   test -z "$as_dir" && as_dir=.
11480     for ac_exec_ext in '' $ac_executable_extensions; do
11481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484     break 2
11485   fi
11486 done
11487   done
11488 IFS=$as_save_IFS
11489 
11490   ;;
11491 esac
11492 fi
11493 TR=$ac_cv_path_TR
11494 if test -n "$TR"; then
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11496 $as_echo "$TR" >&6; }
11497 else
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11500 fi
11501 
11502 
11503           if test "x$TR" = x; then
11504             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11505           fi
11506         else
11507           # Otherwise we believe it is a complete path. Use it as it is.
11508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11509 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11510           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11511 $as_echo_n "checking for TR... " >&6; }
11512           if test ! -x "$tool_specified"; then
11513             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11514 $as_echo "not found" >&6; }
11515             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11516           fi
11517           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11518 $as_echo "$tool_specified" >&6; }
11519         fi
11520       fi
11521     fi
11522 
11523   fi
11524 
11525 
11526 
11527   if test "x$TR" = x; then
11528     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11529   fi
11530 
11531 
11532 
11533 
11534 
11535   # Publish this variable in the help.
11536 
11537 
11538   if [ -z "${UNAME+x}" ]; then
11539     # The variable is not set by user, try to locate tool using the code snippet
11540     for ac_prog in uname
11541 do
11542   # Extract the first word of "$ac_prog", so it can be a program name with args.
11543 set dummy $ac_prog; ac_word=$2
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545 $as_echo_n "checking for $ac_word... " >&6; }
11546 if ${ac_cv_path_UNAME+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   case $UNAME in
11550   [\\/]* | ?:[\\/]*)
11551   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11552   ;;
11553   *)
11554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11556 do
11557   IFS=$as_save_IFS
11558   test -z "$as_dir" && as_dir=.
11559     for ac_exec_ext in '' $ac_executable_extensions; do
11560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563     break 2
11564   fi
11565 done
11566   done
11567 IFS=$as_save_IFS
11568 
11569   ;;
11570 esac
11571 fi
11572 UNAME=$ac_cv_path_UNAME
11573 if test -n "$UNAME"; then
11574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11575 $as_echo "$UNAME" >&6; }
11576 else
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 fi
11580 
11581 
11582   test -n "$UNAME" && break
11583 done
11584 
11585   else
11586     # The variable is set, but is it from the command line or the environment?
11587 
11588     # Try to remove the string !UNAME! from our list.
11589     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11590     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11591       # If it failed, the variable was not from the command line. Ignore it,
11592       # but warn the user (except for BASH, which is always set by the calling BASH).
11593       if test "xUNAME" != xBASH; then
11594         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11595 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11596       fi
11597       # Try to locate tool using the code snippet
11598       for ac_prog in uname
11599 do
11600   # Extract the first word of "$ac_prog", so it can be a program name with args.
11601 set dummy $ac_prog; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_path_UNAME+:} false; then :
11605   $as_echo_n "(cached) " >&6
11606 else
11607   case $UNAME in
11608   [\\/]* | ?:[\\/]*)
11609   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11610   ;;
11611   *)
11612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $PATH
11614 do
11615   IFS=$as_save_IFS
11616   test -z "$as_dir" && as_dir=.
11617     for ac_exec_ext in '' $ac_executable_extensions; do
11618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11621     break 2
11622   fi
11623 done
11624   done
11625 IFS=$as_save_IFS
11626 
11627   ;;
11628 esac
11629 fi
11630 UNAME=$ac_cv_path_UNAME
11631 if test -n "$UNAME"; then
11632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11633 $as_echo "$UNAME" >&6; }
11634 else
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 fi
11638 
11639 
11640   test -n "$UNAME" && break
11641 done
11642 
11643     else
11644       # If it succeeded, then it was overridden by the user. We will use it
11645       # for the tool.
11646 
11647       # First remove it from the list of overridden variables, so we can test
11648       # for unknown variables in the end.
11649       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11650 
11651       # Check if we try to supply an empty value
11652       if test "x$UNAME" = x; then
11653         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11654 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11656 $as_echo_n "checking for UNAME... " >&6; }
11657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11658 $as_echo "disabled" >&6; }
11659       else
11660         # Check if the provided tool contains a complete path.
11661         tool_specified="$UNAME"
11662         tool_basename="${tool_specified##*/}"
11663         if test "x$tool_basename" = "x$tool_specified"; then
11664           # A command without a complete path is provided, search $PATH.
11665           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11666 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11667           # Extract the first word of "$tool_basename", so it can be a program name with args.
11668 set dummy $tool_basename; ac_word=$2
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670 $as_echo_n "checking for $ac_word... " >&6; }
11671 if ${ac_cv_path_UNAME+:} false; then :
11672   $as_echo_n "(cached) " >&6
11673 else
11674   case $UNAME in
11675   [\\/]* | ?:[\\/]*)
11676   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11677   ;;
11678   *)
11679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11681 do
11682   IFS=$as_save_IFS
11683   test -z "$as_dir" && as_dir=.
11684     for ac_exec_ext in '' $ac_executable_extensions; do
11685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11686     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688     break 2
11689   fi
11690 done
11691   done
11692 IFS=$as_save_IFS
11693 
11694   ;;
11695 esac
11696 fi
11697 UNAME=$ac_cv_path_UNAME
11698 if test -n "$UNAME"; then
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11700 $as_echo "$UNAME" >&6; }
11701 else
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11704 fi
11705 
11706 
11707           if test "x$UNAME" = x; then
11708             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11709           fi
11710         else
11711           # Otherwise we believe it is a complete path. Use it as it is.
11712           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11713 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11714           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11715 $as_echo_n "checking for UNAME... " >&6; }
11716           if test ! -x "$tool_specified"; then
11717             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11718 $as_echo "not found" >&6; }
11719             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11720           fi
11721           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11722 $as_echo "$tool_specified" >&6; }
11723         fi
11724       fi
11725     fi
11726 
11727   fi
11728 
11729 
11730 
11731   if test "x$UNAME" = x; then
11732     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11733   fi
11734 
11735 
11736 
11737 
11738 
11739   # Publish this variable in the help.
11740 
11741 
11742   if [ -z "${UNIQ+x}" ]; then
11743     # The variable is not set by user, try to locate tool using the code snippet
11744     for ac_prog in uniq
11745 do
11746   # Extract the first word of "$ac_prog", so it can be a program name with args.
11747 set dummy $ac_prog; ac_word=$2
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11749 $as_echo_n "checking for $ac_word... " >&6; }
11750 if ${ac_cv_path_UNIQ+:} false; then :
11751   $as_echo_n "(cached) " >&6
11752 else
11753   case $UNIQ in
11754   [\\/]* | ?:[\\/]*)
11755   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11756   ;;
11757   *)
11758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11760 do
11761   IFS=$as_save_IFS
11762   test -z "$as_dir" && as_dir=.
11763     for ac_exec_ext in '' $ac_executable_extensions; do
11764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11765     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11767     break 2
11768   fi
11769 done
11770   done
11771 IFS=$as_save_IFS
11772 
11773   ;;
11774 esac
11775 fi
11776 UNIQ=$ac_cv_path_UNIQ
11777 if test -n "$UNIQ"; then
11778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11779 $as_echo "$UNIQ" >&6; }
11780 else
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 fi
11784 
11785 
11786   test -n "$UNIQ" && break
11787 done
11788 
11789   else
11790     # The variable is set, but is it from the command line or the environment?
11791 
11792     # Try to remove the string !UNIQ! from our list.
11793     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11794     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11795       # If it failed, the variable was not from the command line. Ignore it,
11796       # but warn the user (except for BASH, which is always set by the calling BASH).
11797       if test "xUNIQ" != xBASH; then
11798         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11799 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11800       fi
11801       # Try to locate tool using the code snippet
11802       for ac_prog in uniq
11803 do
11804   # Extract the first word of "$ac_prog", so it can be a program name with args.
11805 set dummy $ac_prog; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_path_UNIQ+:} false; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   case $UNIQ in
11812   [\\/]* | ?:[\\/]*)
11813   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11814   ;;
11815   *)
11816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11818 do
11819   IFS=$as_save_IFS
11820   test -z "$as_dir" && as_dir=.
11821     for ac_exec_ext in '' $ac_executable_extensions; do
11822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11823     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825     break 2
11826   fi
11827 done
11828   done
11829 IFS=$as_save_IFS
11830 
11831   ;;
11832 esac
11833 fi
11834 UNIQ=$ac_cv_path_UNIQ
11835 if test -n "$UNIQ"; then
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11837 $as_echo "$UNIQ" >&6; }
11838 else
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 fi
11842 
11843 
11844   test -n "$UNIQ" && break
11845 done
11846 
11847     else
11848       # If it succeeded, then it was overridden by the user. We will use it
11849       # for the tool.
11850 
11851       # First remove it from the list of overridden variables, so we can test
11852       # for unknown variables in the end.
11853       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11854 
11855       # Check if we try to supply an empty value
11856       if test "x$UNIQ" = x; then
11857         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11858 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11860 $as_echo_n "checking for UNIQ... " >&6; }
11861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11862 $as_echo "disabled" >&6; }
11863       else
11864         # Check if the provided tool contains a complete path.
11865         tool_specified="$UNIQ"
11866         tool_basename="${tool_specified##*/}"
11867         if test "x$tool_basename" = "x$tool_specified"; then
11868           # A command without a complete path is provided, search $PATH.
11869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11870 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11871           # Extract the first word of "$tool_basename", so it can be a program name with args.
11872 set dummy $tool_basename; ac_word=$2
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874 $as_echo_n "checking for $ac_word... " >&6; }
11875 if ${ac_cv_path_UNIQ+:} false; then :
11876   $as_echo_n "(cached) " >&6
11877 else
11878   case $UNIQ in
11879   [\\/]* | ?:[\\/]*)
11880   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11881   ;;
11882   *)
11883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884 for as_dir in $PATH
11885 do
11886   IFS=$as_save_IFS
11887   test -z "$as_dir" && as_dir=.
11888     for ac_exec_ext in '' $ac_executable_extensions; do
11889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11890     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11892     break 2
11893   fi
11894 done
11895   done
11896 IFS=$as_save_IFS
11897 
11898   ;;
11899 esac
11900 fi
11901 UNIQ=$ac_cv_path_UNIQ
11902 if test -n "$UNIQ"; then
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11904 $as_echo "$UNIQ" >&6; }
11905 else
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 fi
11909 
11910 
11911           if test "x$UNIQ" = x; then
11912             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11913           fi
11914         else
11915           # Otherwise we believe it is a complete path. Use it as it is.
11916           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11917 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11918           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11919 $as_echo_n "checking for UNIQ... " >&6; }
11920           if test ! -x "$tool_specified"; then
11921             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11922 $as_echo "not found" >&6; }
11923             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11924           fi
11925           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11926 $as_echo "$tool_specified" >&6; }
11927         fi
11928       fi
11929     fi
11930 
11931   fi
11932 
11933 
11934 
11935   if test "x$UNIQ" = x; then
11936     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11937   fi
11938 
11939 
11940 
11941 
11942 
11943   # Publish this variable in the help.
11944 
11945 
11946   if [ -z "${WC+x}" ]; then
11947     # The variable is not set by user, try to locate tool using the code snippet
11948     for ac_prog in wc
11949 do
11950   # Extract the first word of "$ac_prog", so it can be a program name with args.
11951 set dummy $ac_prog; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_path_WC+:} false; then :
11955   $as_echo_n "(cached) " >&6
11956 else
11957   case $WC in
11958   [\\/]* | ?:[\\/]*)
11959   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11960   ;;
11961   *)
11962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965   IFS=$as_save_IFS
11966   test -z "$as_dir" && as_dir=.
11967     for ac_exec_ext in '' $ac_executable_extensions; do
11968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971     break 2
11972   fi
11973 done
11974   done
11975 IFS=$as_save_IFS
11976 
11977   ;;
11978 esac
11979 fi
11980 WC=$ac_cv_path_WC
11981 if test -n "$WC"; then
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11983 $as_echo "$WC" >&6; }
11984 else
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988 
11989 
11990   test -n "$WC" && break
11991 done
11992 
11993   else
11994     # The variable is set, but is it from the command line or the environment?
11995 
11996     # Try to remove the string !WC! from our list.
11997     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11998     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11999       # If it failed, the variable was not from the command line. Ignore it,
12000       # but warn the user (except for BASH, which is always set by the calling BASH).
12001       if test "xWC" != xBASH; then
12002         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12003 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12004       fi
12005       # Try to locate tool using the code snippet
12006       for ac_prog in wc
12007 do
12008   # Extract the first word of "$ac_prog", so it can be a program name with args.
12009 set dummy $ac_prog; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if ${ac_cv_path_WC+:} false; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015   case $WC in
12016   [\\/]* | ?:[\\/]*)
12017   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12018   ;;
12019   *)
12020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12022 do
12023   IFS=$as_save_IFS
12024   test -z "$as_dir" && as_dir=.
12025     for ac_exec_ext in '' $ac_executable_extensions; do
12026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029     break 2
12030   fi
12031 done
12032   done
12033 IFS=$as_save_IFS
12034 
12035   ;;
12036 esac
12037 fi
12038 WC=$ac_cv_path_WC
12039 if test -n "$WC"; then
12040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12041 $as_echo "$WC" >&6; }
12042 else
12043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 fi
12046 
12047 
12048   test -n "$WC" && break
12049 done
12050 
12051     else
12052       # If it succeeded, then it was overridden by the user. We will use it
12053       # for the tool.
12054 
12055       # First remove it from the list of overridden variables, so we can test
12056       # for unknown variables in the end.
12057       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12058 
12059       # Check if we try to supply an empty value
12060       if test "x$WC" = x; then
12061         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12062 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12064 $as_echo_n "checking for WC... " >&6; }
12065         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12066 $as_echo "disabled" >&6; }
12067       else
12068         # Check if the provided tool contains a complete path.
12069         tool_specified="$WC"
12070         tool_basename="${tool_specified##*/}"
12071         if test "x$tool_basename" = "x$tool_specified"; then
12072           # A command without a complete path is provided, search $PATH.
12073           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12074 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12075           # Extract the first word of "$tool_basename", so it can be a program name with args.
12076 set dummy $tool_basename; ac_word=$2
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078 $as_echo_n "checking for $ac_word... " >&6; }
12079 if ${ac_cv_path_WC+:} false; then :
12080   $as_echo_n "(cached) " >&6
12081 else
12082   case $WC in
12083   [\\/]* | ?:[\\/]*)
12084   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12085   ;;
12086   *)
12087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12089 do
12090   IFS=$as_save_IFS
12091   test -z "$as_dir" && as_dir=.
12092     for ac_exec_ext in '' $ac_executable_extensions; do
12093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096     break 2
12097   fi
12098 done
12099   done
12100 IFS=$as_save_IFS
12101 
12102   ;;
12103 esac
12104 fi
12105 WC=$ac_cv_path_WC
12106 if test -n "$WC"; then
12107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12108 $as_echo "$WC" >&6; }
12109 else
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12112 fi
12113 
12114 
12115           if test "x$WC" = x; then
12116             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12117           fi
12118         else
12119           # Otherwise we believe it is a complete path. Use it as it is.
12120           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12121 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12122           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12123 $as_echo_n "checking for WC... " >&6; }
12124           if test ! -x "$tool_specified"; then
12125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12126 $as_echo "not found" >&6; }
12127             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12128           fi
12129           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12130 $as_echo "$tool_specified" >&6; }
12131         fi
12132       fi
12133     fi
12134 
12135   fi
12136 
12137 
12138 
12139   if test "x$WC" = x; then
12140     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12141   fi
12142 
12143 
12144 
12145 
12146 
12147   # Publish this variable in the help.
12148 
12149 
12150   if [ -z "${WHICH+x}" ]; then
12151     # The variable is not set by user, try to locate tool using the code snippet
12152     for ac_prog in which
12153 do
12154   # Extract the first word of "$ac_prog", so it can be a program name with args.
12155 set dummy $ac_prog; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_path_WHICH+:} false; then :
12159   $as_echo_n "(cached) " >&6
12160 else
12161   case $WHICH in
12162   [\\/]* | ?:[\\/]*)
12163   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12164   ;;
12165   *)
12166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12168 do
12169   IFS=$as_save_IFS
12170   test -z "$as_dir" && as_dir=.
12171     for ac_exec_ext in '' $ac_executable_extensions; do
12172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175     break 2
12176   fi
12177 done
12178   done
12179 IFS=$as_save_IFS
12180 
12181   ;;
12182 esac
12183 fi
12184 WHICH=$ac_cv_path_WHICH
12185 if test -n "$WHICH"; then
12186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12187 $as_echo "$WHICH" >&6; }
12188 else
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192 
12193 
12194   test -n "$WHICH" && break
12195 done
12196 
12197   else
12198     # The variable is set, but is it from the command line or the environment?
12199 
12200     # Try to remove the string !WHICH! from our list.
12201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12203       # If it failed, the variable was not from the command line. Ignore it,
12204       # but warn the user (except for BASH, which is always set by the calling BASH).
12205       if test "xWHICH" != xBASH; then
12206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12207 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12208       fi
12209       # Try to locate tool using the code snippet
12210       for ac_prog in which
12211 do
12212   # Extract the first word of "$ac_prog", so it can be a program name with args.
12213 set dummy $ac_prog; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if ${ac_cv_path_WHICH+:} false; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   case $WHICH in
12220   [\\/]* | ?:[\\/]*)
12221   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12222   ;;
12223   *)
12224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227   IFS=$as_save_IFS
12228   test -z "$as_dir" && as_dir=.
12229     for ac_exec_ext in '' $ac_executable_extensions; do
12230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233     break 2
12234   fi
12235 done
12236   done
12237 IFS=$as_save_IFS
12238 
12239   ;;
12240 esac
12241 fi
12242 WHICH=$ac_cv_path_WHICH
12243 if test -n "$WHICH"; then
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12245 $as_echo "$WHICH" >&6; }
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12249 fi
12250 
12251 
12252   test -n "$WHICH" && break
12253 done
12254 
12255     else
12256       # If it succeeded, then it was overridden by the user. We will use it
12257       # for the tool.
12258 
12259       # First remove it from the list of overridden variables, so we can test
12260       # for unknown variables in the end.
12261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12262 
12263       # Check if we try to supply an empty value
12264       if test "x$WHICH" = x; then
12265         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12266 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12268 $as_echo_n "checking for WHICH... " >&6; }
12269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12270 $as_echo "disabled" >&6; }
12271       else
12272         # Check if the provided tool contains a complete path.
12273         tool_specified="$WHICH"
12274         tool_basename="${tool_specified##*/}"
12275         if test "x$tool_basename" = "x$tool_specified"; then
12276           # A command without a complete path is provided, search $PATH.
12277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12278 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12279           # Extract the first word of "$tool_basename", so it can be a program name with args.
12280 set dummy $tool_basename; ac_word=$2
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282 $as_echo_n "checking for $ac_word... " >&6; }
12283 if ${ac_cv_path_WHICH+:} false; then :
12284   $as_echo_n "(cached) " >&6
12285 else
12286   case $WHICH in
12287   [\\/]* | ?:[\\/]*)
12288   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12289   ;;
12290   *)
12291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294   IFS=$as_save_IFS
12295   test -z "$as_dir" && as_dir=.
12296     for ac_exec_ext in '' $ac_executable_extensions; do
12297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300     break 2
12301   fi
12302 done
12303   done
12304 IFS=$as_save_IFS
12305 
12306   ;;
12307 esac
12308 fi
12309 WHICH=$ac_cv_path_WHICH
12310 if test -n "$WHICH"; then
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12312 $as_echo "$WHICH" >&6; }
12313 else
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 fi
12317 
12318 
12319           if test "x$WHICH" = x; then
12320             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12321           fi
12322         else
12323           # Otherwise we believe it is a complete path. Use it as it is.
12324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12325 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12327 $as_echo_n "checking for WHICH... " >&6; }
12328           if test ! -x "$tool_specified"; then
12329             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12330 $as_echo "not found" >&6; }
12331             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12332           fi
12333           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12334 $as_echo "$tool_specified" >&6; }
12335         fi
12336       fi
12337     fi
12338 
12339   fi
12340 
12341 
12342 
12343   if test "x$WHICH" = x; then
12344     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12345   fi
12346 
12347 
12348 
12349 
12350 
12351   # Publish this variable in the help.
12352 
12353 
12354   if [ -z "${XARGS+x}" ]; then
12355     # The variable is not set by user, try to locate tool using the code snippet
12356     for ac_prog in xargs
12357 do
12358   # Extract the first word of "$ac_prog", so it can be a program name with args.
12359 set dummy $ac_prog; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_path_XARGS+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   case $XARGS in
12366   [\\/]* | ?:[\\/]*)
12367   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12368   ;;
12369   *)
12370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373   IFS=$as_save_IFS
12374   test -z "$as_dir" && as_dir=.
12375     for ac_exec_ext in '' $ac_executable_extensions; do
12376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12377     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379     break 2
12380   fi
12381 done
12382   done
12383 IFS=$as_save_IFS
12384 
12385   ;;
12386 esac
12387 fi
12388 XARGS=$ac_cv_path_XARGS
12389 if test -n "$XARGS"; then
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12391 $as_echo "$XARGS" >&6; }
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396 
12397 
12398   test -n "$XARGS" && break
12399 done
12400 
12401   else
12402     # The variable is set, but is it from the command line or the environment?
12403 
12404     # Try to remove the string !XARGS! from our list.
12405     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12406     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12407       # If it failed, the variable was not from the command line. Ignore it,
12408       # but warn the user (except for BASH, which is always set by the calling BASH).
12409       if test "xXARGS" != xBASH; then
12410         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12411 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12412       fi
12413       # Try to locate tool using the code snippet
12414       for ac_prog in xargs
12415 do
12416   # Extract the first word of "$ac_prog", so it can be a program name with args.
12417 set dummy $ac_prog; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if ${ac_cv_path_XARGS+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   case $XARGS in
12424   [\\/]* | ?:[\\/]*)
12425   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12426   ;;
12427   *)
12428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431   IFS=$as_save_IFS
12432   test -z "$as_dir" && as_dir=.
12433     for ac_exec_ext in '' $ac_executable_extensions; do
12434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437     break 2
12438   fi
12439 done
12440   done
12441 IFS=$as_save_IFS
12442 
12443   ;;
12444 esac
12445 fi
12446 XARGS=$ac_cv_path_XARGS
12447 if test -n "$XARGS"; then
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12449 $as_echo "$XARGS" >&6; }
12450 else
12451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454 
12455 
12456   test -n "$XARGS" && break
12457 done
12458 
12459     else
12460       # If it succeeded, then it was overridden by the user. We will use it
12461       # for the tool.
12462 
12463       # First remove it from the list of overridden variables, so we can test
12464       # for unknown variables in the end.
12465       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12466 
12467       # Check if we try to supply an empty value
12468       if test "x$XARGS" = x; then
12469         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12470 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12472 $as_echo_n "checking for XARGS... " >&6; }
12473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12474 $as_echo "disabled" >&6; }
12475       else
12476         # Check if the provided tool contains a complete path.
12477         tool_specified="$XARGS"
12478         tool_basename="${tool_specified##*/}"
12479         if test "x$tool_basename" = "x$tool_specified"; then
12480           # A command without a complete path is provided, search $PATH.
12481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12482 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12483           # Extract the first word of "$tool_basename", so it can be a program name with args.
12484 set dummy $tool_basename; ac_word=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if ${ac_cv_path_XARGS+:} false; then :
12488   $as_echo_n "(cached) " >&6
12489 else
12490   case $XARGS in
12491   [\\/]* | ?:[\\/]*)
12492   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12493   ;;
12494   *)
12495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498   IFS=$as_save_IFS
12499   test -z "$as_dir" && as_dir=.
12500     for ac_exec_ext in '' $ac_executable_extensions; do
12501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504     break 2
12505   fi
12506 done
12507   done
12508 IFS=$as_save_IFS
12509 
12510   ;;
12511 esac
12512 fi
12513 XARGS=$ac_cv_path_XARGS
12514 if test -n "$XARGS"; then
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12516 $as_echo "$XARGS" >&6; }
12517 else
12518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519 $as_echo "no" >&6; }
12520 fi
12521 
12522 
12523           if test "x$XARGS" = x; then
12524             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12525           fi
12526         else
12527           # Otherwise we believe it is a complete path. Use it as it is.
12528           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12529 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12530           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12531 $as_echo_n "checking for XARGS... " >&6; }
12532           if test ! -x "$tool_specified"; then
12533             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12534 $as_echo "not found" >&6; }
12535             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12536           fi
12537           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12538 $as_echo "$tool_specified" >&6; }
12539         fi
12540       fi
12541     fi
12542 
12543   fi
12544 
12545 
12546 
12547   if test "x$XARGS" = x; then
12548     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12549   fi
12550 
12551 
12552 
12553   # Then required tools that require some special treatment.
12554 
12555 
12556   # Publish this variable in the help.
12557 
12558 
12559   if [ -z "${AWK+x}" ]; then
12560     # The variable is not set by user, try to locate tool using the code snippet
12561     for ac_prog in gawk mawk nawk awk
12562 do
12563   # Extract the first word of "$ac_prog", so it can be a program name with args.
12564 set dummy $ac_prog; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if ${ac_cv_prog_AWK+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570   if test -n "$AWK"; then
12571   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12572 else
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576   IFS=$as_save_IFS
12577   test -z "$as_dir" && as_dir=.
12578     for ac_exec_ext in '' $ac_executable_extensions; do
12579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580     ac_cv_prog_AWK="$ac_prog"
12581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582     break 2
12583   fi
12584 done
12585   done
12586 IFS=$as_save_IFS
12587 
12588 fi
12589 fi
12590 AWK=$ac_cv_prog_AWK
12591 if test -n "$AWK"; then
12592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12593 $as_echo "$AWK" >&6; }
12594 else
12595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598 
12599 
12600   test -n "$AWK" && break
12601 done
12602 
12603   else
12604     # The variable is set, but is it from the command line or the environment?
12605 
12606     # Try to remove the string !AWK! from our list.
12607     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12608     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12609       # If it failed, the variable was not from the command line. Ignore it,
12610       # but warn the user (except for BASH, which is always set by the calling BASH).
12611       if test "xAWK" != xBASH; then
12612         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12613 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12614       fi
12615       # Try to locate tool using the code snippet
12616       for ac_prog in gawk mawk nawk awk
12617 do
12618   # Extract the first word of "$ac_prog", so it can be a program name with args.
12619 set dummy $ac_prog; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_prog_AWK+:} false; then :
12623   $as_echo_n "(cached) " >&6
12624 else
12625   if test -n "$AWK"; then
12626   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12627 else
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633     for ac_exec_ext in '' $ac_executable_extensions; do
12634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635     ac_cv_prog_AWK="$ac_prog"
12636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637     break 2
12638   fi
12639 done
12640   done
12641 IFS=$as_save_IFS
12642 
12643 fi
12644 fi
12645 AWK=$ac_cv_prog_AWK
12646 if test -n "$AWK"; then
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12648 $as_echo "$AWK" >&6; }
12649 else
12650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 fi
12653 
12654 
12655   test -n "$AWK" && break
12656 done
12657 
12658     else
12659       # If it succeeded, then it was overridden by the user. We will use it
12660       # for the tool.
12661 
12662       # First remove it from the list of overridden variables, so we can test
12663       # for unknown variables in the end.
12664       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12665 
12666       # Check if we try to supply an empty value
12667       if test "x$AWK" = x; then
12668         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12669 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12671 $as_echo_n "checking for AWK... " >&6; }
12672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12673 $as_echo "disabled" >&6; }
12674       else
12675         # Check if the provided tool contains a complete path.
12676         tool_specified="$AWK"
12677         tool_basename="${tool_specified##*/}"
12678         if test "x$tool_basename" = "x$tool_specified"; then
12679           # A command without a complete path is provided, search $PATH.
12680           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12681 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12682           # Extract the first word of "$tool_basename", so it can be a program name with args.
12683 set dummy $tool_basename; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if ${ac_cv_path_AWK+:} false; then :
12687   $as_echo_n "(cached) " >&6
12688 else
12689   case $AWK in
12690   [\\/]* | ?:[\\/]*)
12691   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12692   ;;
12693   *)
12694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697   IFS=$as_save_IFS
12698   test -z "$as_dir" && as_dir=.
12699     for ac_exec_ext in '' $ac_executable_extensions; do
12700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703     break 2
12704   fi
12705 done
12706   done
12707 IFS=$as_save_IFS
12708 
12709   ;;
12710 esac
12711 fi
12712 AWK=$ac_cv_path_AWK
12713 if test -n "$AWK"; then
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12715 $as_echo "$AWK" >&6; }
12716 else
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719 fi
12720 
12721 
12722           if test "x$AWK" = x; then
12723             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12724           fi
12725         else
12726           # Otherwise we believe it is a complete path. Use it as it is.
12727           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12728 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12729           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12730 $as_echo_n "checking for AWK... " >&6; }
12731           if test ! -x "$tool_specified"; then
12732             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12733 $as_echo "not found" >&6; }
12734             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12735           fi
12736           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12737 $as_echo "$tool_specified" >&6; }
12738         fi
12739       fi
12740     fi
12741 
12742   fi
12743 
12744 
12745   if test "x$AWK" = x; then
12746     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12747   fi
12748 
12749 
12750 
12751 
12752   # Publish this variable in the help.
12753 
12754 
12755   if [ -z "${GREP+x}" ]; then
12756     # The variable is not set by user, try to locate tool using the code snippet
12757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12758 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12759 if ${ac_cv_path_GREP+:} false; then :
12760   $as_echo_n "(cached) " >&6
12761 else
12762   if test -z "$GREP"; then
12763   ac_path_GREP_found=false
12764   # Loop through the user's path and test for each of PROGNAME-LIST
12765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12767 do
12768   IFS=$as_save_IFS
12769   test -z "$as_dir" && as_dir=.
12770     for ac_prog in grep ggrep; do
12771     for ac_exec_ext in '' $ac_executable_extensions; do
12772       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12773       as_fn_executable_p "$ac_path_GREP" || continue
12774 # Check for GNU ac_path_GREP and select it if it is found.
12775   # Check for GNU $ac_path_GREP
12776 case `"$ac_path_GREP" --version 2>&1` in
12777 *GNU*)
12778   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12779 *)
12780   ac_count=0
12781   $as_echo_n 0123456789 >"conftest.in"
12782   while :
12783   do
12784     cat "conftest.in" "conftest.in" >"conftest.tmp"
12785     mv "conftest.tmp" "conftest.in"
12786     cp "conftest.in" "conftest.nl"
12787     $as_echo 'GREP' >> "conftest.nl"
12788     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12789     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12790     as_fn_arith $ac_count + 1 && ac_count=$as_val
12791     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12792       # Best one so far, save it but keep looking for a better one
12793       ac_cv_path_GREP="$ac_path_GREP"
12794       ac_path_GREP_max=$ac_count
12795     fi
12796     # 10*(2^10) chars as input seems more than enough
12797     test $ac_count -gt 10 && break
12798   done
12799   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12800 esac
12801 
12802       $ac_path_GREP_found && break 3
12803     done
12804   done
12805   done
12806 IFS=$as_save_IFS
12807   if test -z "$ac_cv_path_GREP"; then
12808     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12809   fi
12810 else
12811   ac_cv_path_GREP=$GREP
12812 fi
12813 
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12816 $as_echo "$ac_cv_path_GREP" >&6; }
12817  GREP="$ac_cv_path_GREP"
12818 
12819 
12820   else
12821     # The variable is set, but is it from the command line or the environment?
12822 
12823     # Try to remove the string !GREP! from our list.
12824     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12825     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12826       # If it failed, the variable was not from the command line. Ignore it,
12827       # but warn the user (except for BASH, which is always set by the calling BASH).
12828       if test "xGREP" != xBASH; then
12829         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12830 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12831       fi
12832       # Try to locate tool using the code snippet
12833       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12834 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12835 if ${ac_cv_path_GREP+:} false; then :
12836   $as_echo_n "(cached) " >&6
12837 else
12838   if test -z "$GREP"; then
12839   ac_path_GREP_found=false
12840   # Loop through the user's path and test for each of PROGNAME-LIST
12841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12843 do
12844   IFS=$as_save_IFS
12845   test -z "$as_dir" && as_dir=.
12846     for ac_prog in grep ggrep; do
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12849       as_fn_executable_p "$ac_path_GREP" || continue
12850 # Check for GNU ac_path_GREP and select it if it is found.
12851   # Check for GNU $ac_path_GREP
12852 case `"$ac_path_GREP" --version 2>&1` in
12853 *GNU*)
12854   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12855 *)
12856   ac_count=0
12857   $as_echo_n 0123456789 >"conftest.in"
12858   while :
12859   do
12860     cat "conftest.in" "conftest.in" >"conftest.tmp"
12861     mv "conftest.tmp" "conftest.in"
12862     cp "conftest.in" "conftest.nl"
12863     $as_echo 'GREP' >> "conftest.nl"
12864     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12865     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12866     as_fn_arith $ac_count + 1 && ac_count=$as_val
12867     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12868       # Best one so far, save it but keep looking for a better one
12869       ac_cv_path_GREP="$ac_path_GREP"
12870       ac_path_GREP_max=$ac_count
12871     fi
12872     # 10*(2^10) chars as input seems more than enough
12873     test $ac_count -gt 10 && break
12874   done
12875   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12876 esac
12877 
12878       $ac_path_GREP_found && break 3
12879     done
12880   done
12881   done
12882 IFS=$as_save_IFS
12883   if test -z "$ac_cv_path_GREP"; then
12884     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12885   fi
12886 else
12887   ac_cv_path_GREP=$GREP
12888 fi
12889 
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12892 $as_echo "$ac_cv_path_GREP" >&6; }
12893  GREP="$ac_cv_path_GREP"
12894 
12895 
12896     else
12897       # If it succeeded, then it was overridden by the user. We will use it
12898       # for the tool.
12899 
12900       # First remove it from the list of overridden variables, so we can test
12901       # for unknown variables in the end.
12902       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12903 
12904       # Check if we try to supply an empty value
12905       if test "x$GREP" = x; then
12906         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12907 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12909 $as_echo_n "checking for GREP... " >&6; }
12910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12911 $as_echo "disabled" >&6; }
12912       else
12913         # Check if the provided tool contains a complete path.
12914         tool_specified="$GREP"
12915         tool_basename="${tool_specified##*/}"
12916         if test "x$tool_basename" = "x$tool_specified"; then
12917           # A command without a complete path is provided, search $PATH.
12918           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12919 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12920           # Extract the first word of "$tool_basename", so it can be a program name with args.
12921 set dummy $tool_basename; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if ${ac_cv_path_GREP+:} false; then :
12925   $as_echo_n "(cached) " >&6
12926 else
12927   case $GREP in
12928   [\\/]* | ?:[\\/]*)
12929   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12930   ;;
12931   *)
12932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12934 do
12935   IFS=$as_save_IFS
12936   test -z "$as_dir" && as_dir=.
12937     for ac_exec_ext in '' $ac_executable_extensions; do
12938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941     break 2
12942   fi
12943 done
12944   done
12945 IFS=$as_save_IFS
12946 
12947   ;;
12948 esac
12949 fi
12950 GREP=$ac_cv_path_GREP
12951 if test -n "$GREP"; then
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12953 $as_echo "$GREP" >&6; }
12954 else
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958 
12959 
12960           if test "x$GREP" = x; then
12961             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12962           fi
12963         else
12964           # Otherwise we believe it is a complete path. Use it as it is.
12965           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12966 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12967           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12968 $as_echo_n "checking for GREP... " >&6; }
12969           if test ! -x "$tool_specified"; then
12970             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12971 $as_echo "not found" >&6; }
12972             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12973           fi
12974           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12975 $as_echo "$tool_specified" >&6; }
12976         fi
12977       fi
12978     fi
12979 
12980   fi
12981 
12982 
12983   if test "x$GREP" = x; then
12984     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12985   fi
12986 
12987 
12988 
12989 
12990   # Publish this variable in the help.
12991 
12992 
12993   if [ -z "${EGREP+x}" ]; then
12994     # The variable is not set by user, try to locate tool using the code snippet
12995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12996 $as_echo_n "checking for egrep... " >&6; }
12997 if ${ac_cv_path_EGREP+:} false; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13001    then ac_cv_path_EGREP="$GREP -E"
13002    else
13003      if test -z "$EGREP"; then
13004   ac_path_EGREP_found=false
13005   # Loop through the user's path and test for each of PROGNAME-LIST
13006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13008 do
13009   IFS=$as_save_IFS
13010   test -z "$as_dir" && as_dir=.
13011     for ac_prog in egrep; do
13012     for ac_exec_ext in '' $ac_executable_extensions; do
13013       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13014       as_fn_executable_p "$ac_path_EGREP" || continue
13015 # Check for GNU ac_path_EGREP and select it if it is found.
13016   # Check for GNU $ac_path_EGREP
13017 case `"$ac_path_EGREP" --version 2>&1` in
13018 *GNU*)
13019   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13020 *)
13021   ac_count=0
13022   $as_echo_n 0123456789 >"conftest.in"
13023   while :
13024   do
13025     cat "conftest.in" "conftest.in" >"conftest.tmp"
13026     mv "conftest.tmp" "conftest.in"
13027     cp "conftest.in" "conftest.nl"
13028     $as_echo 'EGREP' >> "conftest.nl"
13029     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13030     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13031     as_fn_arith $ac_count + 1 && ac_count=$as_val
13032     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13033       # Best one so far, save it but keep looking for a better one
13034       ac_cv_path_EGREP="$ac_path_EGREP"
13035       ac_path_EGREP_max=$ac_count
13036     fi
13037     # 10*(2^10) chars as input seems more than enough
13038     test $ac_count -gt 10 && break
13039   done
13040   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13041 esac
13042 
13043       $ac_path_EGREP_found && break 3
13044     done
13045   done
13046   done
13047 IFS=$as_save_IFS
13048   if test -z "$ac_cv_path_EGREP"; then
13049     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13050   fi
13051 else
13052   ac_cv_path_EGREP=$EGREP
13053 fi
13054 
13055    fi
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13058 $as_echo "$ac_cv_path_EGREP" >&6; }
13059  EGREP="$ac_cv_path_EGREP"
13060 
13061 
13062   else
13063     # The variable is set, but is it from the command line or the environment?
13064 
13065     # Try to remove the string !EGREP! from our list.
13066     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13067     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13068       # If it failed, the variable was not from the command line. Ignore it,
13069       # but warn the user (except for BASH, which is always set by the calling BASH).
13070       if test "xEGREP" != xBASH; then
13071         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13072 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13073       fi
13074       # Try to locate tool using the code snippet
13075       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13076 $as_echo_n "checking for egrep... " >&6; }
13077 if ${ac_cv_path_EGREP+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13081    then ac_cv_path_EGREP="$GREP -E"
13082    else
13083      if test -z "$EGREP"; then
13084   ac_path_EGREP_found=false
13085   # Loop through the user's path and test for each of PROGNAME-LIST
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091     for ac_prog in egrep; do
13092     for ac_exec_ext in '' $ac_executable_extensions; do
13093       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13094       as_fn_executable_p "$ac_path_EGREP" || continue
13095 # Check for GNU ac_path_EGREP and select it if it is found.
13096   # Check for GNU $ac_path_EGREP
13097 case `"$ac_path_EGREP" --version 2>&1` in
13098 *GNU*)
13099   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13100 *)
13101   ac_count=0
13102   $as_echo_n 0123456789 >"conftest.in"
13103   while :
13104   do
13105     cat "conftest.in" "conftest.in" >"conftest.tmp"
13106     mv "conftest.tmp" "conftest.in"
13107     cp "conftest.in" "conftest.nl"
13108     $as_echo 'EGREP' >> "conftest.nl"
13109     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13111     as_fn_arith $ac_count + 1 && ac_count=$as_val
13112     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13113       # Best one so far, save it but keep looking for a better one
13114       ac_cv_path_EGREP="$ac_path_EGREP"
13115       ac_path_EGREP_max=$ac_count
13116     fi
13117     # 10*(2^10) chars as input seems more than enough
13118     test $ac_count -gt 10 && break
13119   done
13120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13121 esac
13122 
13123       $ac_path_EGREP_found && break 3
13124     done
13125   done
13126   done
13127 IFS=$as_save_IFS
13128   if test -z "$ac_cv_path_EGREP"; then
13129     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13130   fi
13131 else
13132   ac_cv_path_EGREP=$EGREP
13133 fi
13134 
13135    fi
13136 fi
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13138 $as_echo "$ac_cv_path_EGREP" >&6; }
13139  EGREP="$ac_cv_path_EGREP"
13140 
13141 
13142     else
13143       # If it succeeded, then it was overridden by the user. We will use it
13144       # for the tool.
13145 
13146       # First remove it from the list of overridden variables, so we can test
13147       # for unknown variables in the end.
13148       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13149 
13150       # Check if we try to supply an empty value
13151       if test "x$EGREP" = x; then
13152         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13153 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13154         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13155 $as_echo_n "checking for EGREP... " >&6; }
13156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13157 $as_echo "disabled" >&6; }
13158       else
13159         # Check if the provided tool contains a complete path.
13160         tool_specified="$EGREP"
13161         tool_basename="${tool_specified##*/}"
13162         if test "x$tool_basename" = "x$tool_specified"; then
13163           # A command without a complete path is provided, search $PATH.
13164           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13165 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13166           # Extract the first word of "$tool_basename", so it can be a program name with args.
13167 set dummy $tool_basename; ac_word=$2
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169 $as_echo_n "checking for $ac_word... " >&6; }
13170 if ${ac_cv_path_EGREP+:} false; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173   case $EGREP in
13174   [\\/]* | ?:[\\/]*)
13175   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13176   ;;
13177   *)
13178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181   IFS=$as_save_IFS
13182   test -z "$as_dir" && as_dir=.
13183     for ac_exec_ext in '' $ac_executable_extensions; do
13184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13185     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187     break 2
13188   fi
13189 done
13190   done
13191 IFS=$as_save_IFS
13192 
13193   ;;
13194 esac
13195 fi
13196 EGREP=$ac_cv_path_EGREP
13197 if test -n "$EGREP"; then
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13199 $as_echo "$EGREP" >&6; }
13200 else
13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204 
13205 
13206           if test "x$EGREP" = x; then
13207             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13208           fi
13209         else
13210           # Otherwise we believe it is a complete path. Use it as it is.
13211           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13212 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13213           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13214 $as_echo_n "checking for EGREP... " >&6; }
13215           if test ! -x "$tool_specified"; then
13216             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13217 $as_echo "not found" >&6; }
13218             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13219           fi
13220           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13221 $as_echo "$tool_specified" >&6; }
13222         fi
13223       fi
13224     fi
13225 
13226   fi
13227 
13228 
13229   if test "x$EGREP" = x; then
13230     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13231   fi
13232 
13233 
13234 
13235 
13236   # Publish this variable in the help.
13237 
13238 
13239   if [ -z "${FGREP+x}" ]; then
13240     # The variable is not set by user, try to locate tool using the code snippet
13241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13242 $as_echo_n "checking for fgrep... " >&6; }
13243 if ${ac_cv_path_FGREP+:} false; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13247    then ac_cv_path_FGREP="$GREP -F"
13248    else
13249      if test -z "$FGREP"; then
13250   ac_path_FGREP_found=false
13251   # Loop through the user's path and test for each of PROGNAME-LIST
13252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13254 do
13255   IFS=$as_save_IFS
13256   test -z "$as_dir" && as_dir=.
13257     for ac_prog in fgrep; do
13258     for ac_exec_ext in '' $ac_executable_extensions; do
13259       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13260       as_fn_executable_p "$ac_path_FGREP" || continue
13261 # Check for GNU ac_path_FGREP and select it if it is found.
13262   # Check for GNU $ac_path_FGREP
13263 case `"$ac_path_FGREP" --version 2>&1` in
13264 *GNU*)
13265   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13266 *)
13267   ac_count=0
13268   $as_echo_n 0123456789 >"conftest.in"
13269   while :
13270   do
13271     cat "conftest.in" "conftest.in" >"conftest.tmp"
13272     mv "conftest.tmp" "conftest.in"
13273     cp "conftest.in" "conftest.nl"
13274     $as_echo 'FGREP' >> "conftest.nl"
13275     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13277     as_fn_arith $ac_count + 1 && ac_count=$as_val
13278     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13279       # Best one so far, save it but keep looking for a better one
13280       ac_cv_path_FGREP="$ac_path_FGREP"
13281       ac_path_FGREP_max=$ac_count
13282     fi
13283     # 10*(2^10) chars as input seems more than enough
13284     test $ac_count -gt 10 && break
13285   done
13286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13287 esac
13288 
13289       $ac_path_FGREP_found && break 3
13290     done
13291   done
13292   done
13293 IFS=$as_save_IFS
13294   if test -z "$ac_cv_path_FGREP"; then
13295     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13296   fi
13297 else
13298   ac_cv_path_FGREP=$FGREP
13299 fi
13300 
13301    fi
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13304 $as_echo "$ac_cv_path_FGREP" >&6; }
13305  FGREP="$ac_cv_path_FGREP"
13306 
13307 
13308   else
13309     # The variable is set, but is it from the command line or the environment?
13310 
13311     # Try to remove the string !FGREP! from our list.
13312     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13313     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13314       # If it failed, the variable was not from the command line. Ignore it,
13315       # but warn the user (except for BASH, which is always set by the calling BASH).
13316       if test "xFGREP" != xBASH; then
13317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13318 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13319       fi
13320       # Try to locate tool using the code snippet
13321       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13322 $as_echo_n "checking for fgrep... " >&6; }
13323 if ${ac_cv_path_FGREP+:} false; then :
13324   $as_echo_n "(cached) " >&6
13325 else
13326   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13327    then ac_cv_path_FGREP="$GREP -F"
13328    else
13329      if test -z "$FGREP"; then
13330   ac_path_FGREP_found=false
13331   # Loop through the user's path and test for each of PROGNAME-LIST
13332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13334 do
13335   IFS=$as_save_IFS
13336   test -z "$as_dir" && as_dir=.
13337     for ac_prog in fgrep; do
13338     for ac_exec_ext in '' $ac_executable_extensions; do
13339       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13340       as_fn_executable_p "$ac_path_FGREP" || continue
13341 # Check for GNU ac_path_FGREP and select it if it is found.
13342   # Check for GNU $ac_path_FGREP
13343 case `"$ac_path_FGREP" --version 2>&1` in
13344 *GNU*)
13345   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13346 *)
13347   ac_count=0
13348   $as_echo_n 0123456789 >"conftest.in"
13349   while :
13350   do
13351     cat "conftest.in" "conftest.in" >"conftest.tmp"
13352     mv "conftest.tmp" "conftest.in"
13353     cp "conftest.in" "conftest.nl"
13354     $as_echo 'FGREP' >> "conftest.nl"
13355     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13356     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13357     as_fn_arith $ac_count + 1 && ac_count=$as_val
13358     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13359       # Best one so far, save it but keep looking for a better one
13360       ac_cv_path_FGREP="$ac_path_FGREP"
13361       ac_path_FGREP_max=$ac_count
13362     fi
13363     # 10*(2^10) chars as input seems more than enough
13364     test $ac_count -gt 10 && break
13365   done
13366   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13367 esac
13368 
13369       $ac_path_FGREP_found && break 3
13370     done
13371   done
13372   done
13373 IFS=$as_save_IFS
13374   if test -z "$ac_cv_path_FGREP"; then
13375     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13376   fi
13377 else
13378   ac_cv_path_FGREP=$FGREP
13379 fi
13380 
13381    fi
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13384 $as_echo "$ac_cv_path_FGREP" >&6; }
13385  FGREP="$ac_cv_path_FGREP"
13386 
13387 
13388     else
13389       # If it succeeded, then it was overridden by the user. We will use it
13390       # for the tool.
13391 
13392       # First remove it from the list of overridden variables, so we can test
13393       # for unknown variables in the end.
13394       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13395 
13396       # Check if we try to supply an empty value
13397       if test "x$FGREP" = x; then
13398         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13399 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13401 $as_echo_n "checking for FGREP... " >&6; }
13402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13403 $as_echo "disabled" >&6; }
13404       else
13405         # Check if the provided tool contains a complete path.
13406         tool_specified="$FGREP"
13407         tool_basename="${tool_specified##*/}"
13408         if test "x$tool_basename" = "x$tool_specified"; then
13409           # A command without a complete path is provided, search $PATH.
13410           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13411 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13412           # Extract the first word of "$tool_basename", so it can be a program name with args.
13413 set dummy $tool_basename; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if ${ac_cv_path_FGREP+:} false; then :
13417   $as_echo_n "(cached) " >&6
13418 else
13419   case $FGREP in
13420   [\\/]* | ?:[\\/]*)
13421   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13422   ;;
13423   *)
13424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13426 do
13427   IFS=$as_save_IFS
13428   test -z "$as_dir" && as_dir=.
13429     for ac_exec_ext in '' $ac_executable_extensions; do
13430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13431     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433     break 2
13434   fi
13435 done
13436   done
13437 IFS=$as_save_IFS
13438 
13439   ;;
13440 esac
13441 fi
13442 FGREP=$ac_cv_path_FGREP
13443 if test -n "$FGREP"; then
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13445 $as_echo "$FGREP" >&6; }
13446 else
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 fi
13450 
13451 
13452           if test "x$FGREP" = x; then
13453             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13454           fi
13455         else
13456           # Otherwise we believe it is a complete path. Use it as it is.
13457           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13458 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13459           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13460 $as_echo_n "checking for FGREP... " >&6; }
13461           if test ! -x "$tool_specified"; then
13462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13463 $as_echo "not found" >&6; }
13464             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13465           fi
13466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13467 $as_echo "$tool_specified" >&6; }
13468         fi
13469       fi
13470     fi
13471 
13472   fi
13473 
13474 
13475   if test "x$FGREP" = x; then
13476     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13477   fi
13478 
13479 
13480 
13481 
13482   # Publish this variable in the help.
13483 
13484 
13485   if [ -z "${SED+x}" ]; then
13486     # The variable is not set by user, try to locate tool using the code snippet
13487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13489 if ${ac_cv_path_SED+:} false; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13493      for ac_i in 1 2 3 4 5 6 7; do
13494        ac_script="$ac_script$as_nl$ac_script"
13495      done
13496      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13497      { ac_script=; unset ac_script;}
13498      if test -z "$SED"; then
13499   ac_path_SED_found=false
13500   # Loop through the user's path and test for each of PROGNAME-LIST
13501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13503 do
13504   IFS=$as_save_IFS
13505   test -z "$as_dir" && as_dir=.
13506     for ac_prog in sed gsed; do
13507     for ac_exec_ext in '' $ac_executable_extensions; do
13508       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13509       as_fn_executable_p "$ac_path_SED" || continue
13510 # Check for GNU ac_path_SED and select it if it is found.
13511   # Check for GNU $ac_path_SED
13512 case `"$ac_path_SED" --version 2>&1` in
13513 *GNU*)
13514   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13515 *)
13516   ac_count=0
13517   $as_echo_n 0123456789 >"conftest.in"
13518   while :
13519   do
13520     cat "conftest.in" "conftest.in" >"conftest.tmp"
13521     mv "conftest.tmp" "conftest.in"
13522     cp "conftest.in" "conftest.nl"
13523     $as_echo '' >> "conftest.nl"
13524     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13525     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13526     as_fn_arith $ac_count + 1 && ac_count=$as_val
13527     if test $ac_count -gt ${ac_path_SED_max-0}; then
13528       # Best one so far, save it but keep looking for a better one
13529       ac_cv_path_SED="$ac_path_SED"
13530       ac_path_SED_max=$ac_count
13531     fi
13532     # 10*(2^10) chars as input seems more than enough
13533     test $ac_count -gt 10 && break
13534   done
13535   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13536 esac
13537 
13538       $ac_path_SED_found && break 3
13539     done
13540   done
13541   done
13542 IFS=$as_save_IFS
13543   if test -z "$ac_cv_path_SED"; then
13544     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13545   fi
13546 else
13547   ac_cv_path_SED=$SED
13548 fi
13549 
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13552 $as_echo "$ac_cv_path_SED" >&6; }
13553  SED="$ac_cv_path_SED"
13554   rm -f conftest.sed
13555 
13556   else
13557     # The variable is set, but is it from the command line or the environment?
13558 
13559     # Try to remove the string !SED! from our list.
13560     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13561     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13562       # If it failed, the variable was not from the command line. Ignore it,
13563       # but warn the user (except for BASH, which is always set by the calling BASH).
13564       if test "xSED" != xBASH; then
13565         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13566 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13567       fi
13568       # Try to locate tool using the code snippet
13569       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13570 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13571 if ${ac_cv_path_SED+:} false; then :
13572   $as_echo_n "(cached) " >&6
13573 else
13574             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13575      for ac_i in 1 2 3 4 5 6 7; do
13576        ac_script="$ac_script$as_nl$ac_script"
13577      done
13578      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13579      { ac_script=; unset ac_script;}
13580      if test -z "$SED"; then
13581   ac_path_SED_found=false
13582   # Loop through the user's path and test for each of PROGNAME-LIST
13583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13585 do
13586   IFS=$as_save_IFS
13587   test -z "$as_dir" && as_dir=.
13588     for ac_prog in sed gsed; do
13589     for ac_exec_ext in '' $ac_executable_extensions; do
13590       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13591       as_fn_executable_p "$ac_path_SED" || continue
13592 # Check for GNU ac_path_SED and select it if it is found.
13593   # Check for GNU $ac_path_SED
13594 case `"$ac_path_SED" --version 2>&1` in
13595 *GNU*)
13596   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13597 *)
13598   ac_count=0
13599   $as_echo_n 0123456789 >"conftest.in"
13600   while :
13601   do
13602     cat "conftest.in" "conftest.in" >"conftest.tmp"
13603     mv "conftest.tmp" "conftest.in"
13604     cp "conftest.in" "conftest.nl"
13605     $as_echo '' >> "conftest.nl"
13606     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13607     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13608     as_fn_arith $ac_count + 1 && ac_count=$as_val
13609     if test $ac_count -gt ${ac_path_SED_max-0}; then
13610       # Best one so far, save it but keep looking for a better one
13611       ac_cv_path_SED="$ac_path_SED"
13612       ac_path_SED_max=$ac_count
13613     fi
13614     # 10*(2^10) chars as input seems more than enough
13615     test $ac_count -gt 10 && break
13616   done
13617   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13618 esac
13619 
13620       $ac_path_SED_found && break 3
13621     done
13622   done
13623   done
13624 IFS=$as_save_IFS
13625   if test -z "$ac_cv_path_SED"; then
13626     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13627   fi
13628 else
13629   ac_cv_path_SED=$SED
13630 fi
13631 
13632 fi
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13634 $as_echo "$ac_cv_path_SED" >&6; }
13635  SED="$ac_cv_path_SED"
13636   rm -f conftest.sed
13637 
13638     else
13639       # If it succeeded, then it was overridden by the user. We will use it
13640       # for the tool.
13641 
13642       # First remove it from the list of overridden variables, so we can test
13643       # for unknown variables in the end.
13644       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13645 
13646       # Check if we try to supply an empty value
13647       if test "x$SED" = x; then
13648         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13649 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13650         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13651 $as_echo_n "checking for SED... " >&6; }
13652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13653 $as_echo "disabled" >&6; }
13654       else
13655         # Check if the provided tool contains a complete path.
13656         tool_specified="$SED"
13657         tool_basename="${tool_specified##*/}"
13658         if test "x$tool_basename" = "x$tool_specified"; then
13659           # A command without a complete path is provided, search $PATH.
13660           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13661 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13662           # Extract the first word of "$tool_basename", so it can be a program name with args.
13663 set dummy $tool_basename; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if ${ac_cv_path_SED+:} false; then :
13667   $as_echo_n "(cached) " >&6
13668 else
13669   case $SED in
13670   [\\/]* | ?:[\\/]*)
13671   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13672   ;;
13673   *)
13674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13676 do
13677   IFS=$as_save_IFS
13678   test -z "$as_dir" && as_dir=.
13679     for ac_exec_ext in '' $ac_executable_extensions; do
13680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683     break 2
13684   fi
13685 done
13686   done
13687 IFS=$as_save_IFS
13688 
13689   ;;
13690 esac
13691 fi
13692 SED=$ac_cv_path_SED
13693 if test -n "$SED"; then
13694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13695 $as_echo "$SED" >&6; }
13696 else
13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13699 fi
13700 
13701 
13702           if test "x$SED" = x; then
13703             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13704           fi
13705         else
13706           # Otherwise we believe it is a complete path. Use it as it is.
13707           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13708 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13709           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13710 $as_echo_n "checking for SED... " >&6; }
13711           if test ! -x "$tool_specified"; then
13712             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13713 $as_echo "not found" >&6; }
13714             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13715           fi
13716           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13717 $as_echo "$tool_specified" >&6; }
13718         fi
13719       fi
13720     fi
13721 
13722   fi
13723 
13724 
13725   if test "x$SED" = x; then
13726     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13727   fi
13728 
13729 
13730 
13731   # Always force rm.
13732   RM="$RM -f"
13733 
13734   # pwd behaves differently on various platforms and some don't support the -L flag.
13735   # Always use the bash builtin pwd to get uniform behavior.
13736   THEPWDCMD=pwd
13737 
13738   # These are not required on all platforms
13739 
13740 
13741   # Publish this variable in the help.
13742 
13743 
13744   if [ -z "${CYGPATH+x}" ]; then
13745     # The variable is not set by user, try to locate tool using the code snippet
13746     for ac_prog in cygpath
13747 do
13748   # Extract the first word of "$ac_prog", so it can be a program name with args.
13749 set dummy $ac_prog; ac_word=$2
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if ${ac_cv_path_CYGPATH+:} false; then :
13753   $as_echo_n "(cached) " >&6
13754 else
13755   case $CYGPATH in
13756   [\\/]* | ?:[\\/]*)
13757   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13758   ;;
13759   *)
13760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13762 do
13763   IFS=$as_save_IFS
13764   test -z "$as_dir" && as_dir=.
13765     for ac_exec_ext in '' $ac_executable_extensions; do
13766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13767     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769     break 2
13770   fi
13771 done
13772   done
13773 IFS=$as_save_IFS
13774 
13775   ;;
13776 esac
13777 fi
13778 CYGPATH=$ac_cv_path_CYGPATH
13779 if test -n "$CYGPATH"; then
13780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13781 $as_echo "$CYGPATH" >&6; }
13782 else
13783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 $as_echo "no" >&6; }
13785 fi
13786 
13787 
13788   test -n "$CYGPATH" && break
13789 done
13790 
13791   else
13792     # The variable is set, but is it from the command line or the environment?
13793 
13794     # Try to remove the string !CYGPATH! from our list.
13795     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13796     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13797       # If it failed, the variable was not from the command line. Ignore it,
13798       # but warn the user (except for BASH, which is always set by the calling BASH).
13799       if test "xCYGPATH" != xBASH; then
13800         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13801 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13802       fi
13803       # Try to locate tool using the code snippet
13804       for ac_prog in cygpath
13805 do
13806   # Extract the first word of "$ac_prog", so it can be a program name with args.
13807 set dummy $ac_prog; ac_word=$2
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13809 $as_echo_n "checking for $ac_word... " >&6; }
13810 if ${ac_cv_path_CYGPATH+:} false; then :
13811   $as_echo_n "(cached) " >&6
13812 else
13813   case $CYGPATH in
13814   [\\/]* | ?:[\\/]*)
13815   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13816   ;;
13817   *)
13818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13820 do
13821   IFS=$as_save_IFS
13822   test -z "$as_dir" && as_dir=.
13823     for ac_exec_ext in '' $ac_executable_extensions; do
13824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827     break 2
13828   fi
13829 done
13830   done
13831 IFS=$as_save_IFS
13832 
13833   ;;
13834 esac
13835 fi
13836 CYGPATH=$ac_cv_path_CYGPATH
13837 if test -n "$CYGPATH"; then
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13839 $as_echo "$CYGPATH" >&6; }
13840 else
13841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843 fi
13844 
13845 
13846   test -n "$CYGPATH" && break
13847 done
13848 
13849     else
13850       # If it succeeded, then it was overridden by the user. We will use it
13851       # for the tool.
13852 
13853       # First remove it from the list of overridden variables, so we can test
13854       # for unknown variables in the end.
13855       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13856 
13857       # Check if we try to supply an empty value
13858       if test "x$CYGPATH" = x; then
13859         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13860 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13862 $as_echo_n "checking for CYGPATH... " >&6; }
13863         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13864 $as_echo "disabled" >&6; }
13865       else
13866         # Check if the provided tool contains a complete path.
13867         tool_specified="$CYGPATH"
13868         tool_basename="${tool_specified##*/}"
13869         if test "x$tool_basename" = "x$tool_specified"; then
13870           # A command without a complete path is provided, search $PATH.
13871           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13872 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13873           # Extract the first word of "$tool_basename", so it can be a program name with args.
13874 set dummy $tool_basename; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if ${ac_cv_path_CYGPATH+:} false; then :
13878   $as_echo_n "(cached) " >&6
13879 else
13880   case $CYGPATH in
13881   [\\/]* | ?:[\\/]*)
13882   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13883   ;;
13884   *)
13885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13887 do
13888   IFS=$as_save_IFS
13889   test -z "$as_dir" && as_dir=.
13890     for ac_exec_ext in '' $ac_executable_extensions; do
13891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894     break 2
13895   fi
13896 done
13897   done
13898 IFS=$as_save_IFS
13899 
13900   ;;
13901 esac
13902 fi
13903 CYGPATH=$ac_cv_path_CYGPATH
13904 if test -n "$CYGPATH"; then
13905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13906 $as_echo "$CYGPATH" >&6; }
13907 else
13908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910 fi
13911 
13912 
13913           if test "x$CYGPATH" = x; then
13914             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13915           fi
13916         else
13917           # Otherwise we believe it is a complete path. Use it as it is.
13918           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13919 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13920           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13921 $as_echo_n "checking for CYGPATH... " >&6; }
13922           if test ! -x "$tool_specified"; then
13923             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13924 $as_echo "not found" >&6; }
13925             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13926           fi
13927           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13928 $as_echo "$tool_specified" >&6; }
13929         fi
13930       fi
13931     fi
13932 
13933   fi
13934 
13935 
13936 
13937 
13938   # Publish this variable in the help.
13939 
13940 
13941   if [ -z "${READLINK+x}" ]; then
13942     # The variable is not set by user, try to locate tool using the code snippet
13943     for ac_prog in greadlink readlink
13944 do
13945   # Extract the first word of "$ac_prog", so it can be a program name with args.
13946 set dummy $ac_prog; ac_word=$2
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13948 $as_echo_n "checking for $ac_word... " >&6; }
13949 if ${ac_cv_path_READLINK+:} false; then :
13950   $as_echo_n "(cached) " >&6
13951 else
13952   case $READLINK in
13953   [\\/]* | ?:[\\/]*)
13954   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13955   ;;
13956   *)
13957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13959 do
13960   IFS=$as_save_IFS
13961   test -z "$as_dir" && as_dir=.
13962     for ac_exec_ext in '' $ac_executable_extensions; do
13963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13964     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13966     break 2
13967   fi
13968 done
13969   done
13970 IFS=$as_save_IFS
13971 
13972   ;;
13973 esac
13974 fi
13975 READLINK=$ac_cv_path_READLINK
13976 if test -n "$READLINK"; then
13977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13978 $as_echo "$READLINK" >&6; }
13979 else
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13982 fi
13983 
13984 
13985   test -n "$READLINK" && break
13986 done
13987 
13988   else
13989     # The variable is set, but is it from the command line or the environment?
13990 
13991     # Try to remove the string !READLINK! from our list.
13992     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13993     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13994       # If it failed, the variable was not from the command line. Ignore it,
13995       # but warn the user (except for BASH, which is always set by the calling BASH).
13996       if test "xREADLINK" != xBASH; then
13997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13998 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13999       fi
14000       # Try to locate tool using the code snippet
14001       for ac_prog in greadlink readlink
14002 do
14003   # Extract the first word of "$ac_prog", so it can be a program name with args.
14004 set dummy $ac_prog; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14006 $as_echo_n "checking for $ac_word... " >&6; }
14007 if ${ac_cv_path_READLINK+:} false; then :
14008   $as_echo_n "(cached) " >&6
14009 else
14010   case $READLINK in
14011   [\\/]* | ?:[\\/]*)
14012   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14013   ;;
14014   *)
14015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018   IFS=$as_save_IFS
14019   test -z "$as_dir" && as_dir=.
14020     for ac_exec_ext in '' $ac_executable_extensions; do
14021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14022     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14024     break 2
14025   fi
14026 done
14027   done
14028 IFS=$as_save_IFS
14029 
14030   ;;
14031 esac
14032 fi
14033 READLINK=$ac_cv_path_READLINK
14034 if test -n "$READLINK"; then
14035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14036 $as_echo "$READLINK" >&6; }
14037 else
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040 fi
14041 
14042 
14043   test -n "$READLINK" && break
14044 done
14045 
14046     else
14047       # If it succeeded, then it was overridden by the user. We will use it
14048       # for the tool.
14049 
14050       # First remove it from the list of overridden variables, so we can test
14051       # for unknown variables in the end.
14052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14053 
14054       # Check if we try to supply an empty value
14055       if test "x$READLINK" = x; then
14056         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14057 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14059 $as_echo_n "checking for READLINK... " >&6; }
14060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14061 $as_echo "disabled" >&6; }
14062       else
14063         # Check if the provided tool contains a complete path.
14064         tool_specified="$READLINK"
14065         tool_basename="${tool_specified##*/}"
14066         if test "x$tool_basename" = "x$tool_specified"; then
14067           # A command without a complete path is provided, search $PATH.
14068           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14069 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14070           # Extract the first word of "$tool_basename", so it can be a program name with args.
14071 set dummy $tool_basename; ac_word=$2
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14073 $as_echo_n "checking for $ac_word... " >&6; }
14074 if ${ac_cv_path_READLINK+:} false; then :
14075   $as_echo_n "(cached) " >&6
14076 else
14077   case $READLINK in
14078   [\\/]* | ?:[\\/]*)
14079   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14080   ;;
14081   *)
14082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14084 do
14085   IFS=$as_save_IFS
14086   test -z "$as_dir" && as_dir=.
14087     for ac_exec_ext in '' $ac_executable_extensions; do
14088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14089     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14091     break 2
14092   fi
14093 done
14094   done
14095 IFS=$as_save_IFS
14096 
14097   ;;
14098 esac
14099 fi
14100 READLINK=$ac_cv_path_READLINK
14101 if test -n "$READLINK"; then
14102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14103 $as_echo "$READLINK" >&6; }
14104 else
14105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14107 fi
14108 
14109 
14110           if test "x$READLINK" = x; then
14111             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14112           fi
14113         else
14114           # Otherwise we believe it is a complete path. Use it as it is.
14115           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14116 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14117           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14118 $as_echo_n "checking for READLINK... " >&6; }
14119           if test ! -x "$tool_specified"; then
14120             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14121 $as_echo "not found" >&6; }
14122             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14123           fi
14124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14125 $as_echo "$tool_specified" >&6; }
14126         fi
14127       fi
14128     fi
14129 
14130   fi
14131 
14132 
14133 
14134 
14135   # Publish this variable in the help.
14136 
14137 
14138   if [ -z "${DF+x}" ]; then
14139     # The variable is not set by user, try to locate tool using the code snippet
14140     for ac_prog in df
14141 do
14142   # Extract the first word of "$ac_prog", so it can be a program name with args.
14143 set dummy $ac_prog; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if ${ac_cv_path_DF+:} false; then :
14147   $as_echo_n "(cached) " >&6
14148 else
14149   case $DF in
14150   [\\/]* | ?:[\\/]*)
14151   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14152   ;;
14153   *)
14154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14156 do
14157   IFS=$as_save_IFS
14158   test -z "$as_dir" && as_dir=.
14159     for ac_exec_ext in '' $ac_executable_extensions; do
14160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163     break 2
14164   fi
14165 done
14166   done
14167 IFS=$as_save_IFS
14168 
14169   ;;
14170 esac
14171 fi
14172 DF=$ac_cv_path_DF
14173 if test -n "$DF"; then
14174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14175 $as_echo "$DF" >&6; }
14176 else
14177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 fi
14180 
14181 
14182   test -n "$DF" && break
14183 done
14184 
14185   else
14186     # The variable is set, but is it from the command line or the environment?
14187 
14188     # Try to remove the string !DF! from our list.
14189     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14190     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14191       # If it failed, the variable was not from the command line. Ignore it,
14192       # but warn the user (except for BASH, which is always set by the calling BASH).
14193       if test "xDF" != xBASH; then
14194         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14195 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14196       fi
14197       # Try to locate tool using the code snippet
14198       for ac_prog in df
14199 do
14200   # Extract the first word of "$ac_prog", so it can be a program name with args.
14201 set dummy $ac_prog; ac_word=$2
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14203 $as_echo_n "checking for $ac_word... " >&6; }
14204 if ${ac_cv_path_DF+:} false; then :
14205   $as_echo_n "(cached) " >&6
14206 else
14207   case $DF in
14208   [\\/]* | ?:[\\/]*)
14209   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14210   ;;
14211   *)
14212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14214 do
14215   IFS=$as_save_IFS
14216   test -z "$as_dir" && as_dir=.
14217     for ac_exec_ext in '' $ac_executable_extensions; do
14218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14219     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14221     break 2
14222   fi
14223 done
14224   done
14225 IFS=$as_save_IFS
14226 
14227   ;;
14228 esac
14229 fi
14230 DF=$ac_cv_path_DF
14231 if test -n "$DF"; then
14232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14233 $as_echo "$DF" >&6; }
14234 else
14235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14236 $as_echo "no" >&6; }
14237 fi
14238 
14239 
14240   test -n "$DF" && break
14241 done
14242 
14243     else
14244       # If it succeeded, then it was overridden by the user. We will use it
14245       # for the tool.
14246 
14247       # First remove it from the list of overridden variables, so we can test
14248       # for unknown variables in the end.
14249       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14250 
14251       # Check if we try to supply an empty value
14252       if test "x$DF" = x; then
14253         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14254 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14256 $as_echo_n "checking for DF... " >&6; }
14257         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14258 $as_echo "disabled" >&6; }
14259       else
14260         # Check if the provided tool contains a complete path.
14261         tool_specified="$DF"
14262         tool_basename="${tool_specified##*/}"
14263         if test "x$tool_basename" = "x$tool_specified"; then
14264           # A command without a complete path is provided, search $PATH.
14265           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14266 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14267           # Extract the first word of "$tool_basename", so it can be a program name with args.
14268 set dummy $tool_basename; ac_word=$2
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14270 $as_echo_n "checking for $ac_word... " >&6; }
14271 if ${ac_cv_path_DF+:} false; then :
14272   $as_echo_n "(cached) " >&6
14273 else
14274   case $DF in
14275   [\\/]* | ?:[\\/]*)
14276   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14277   ;;
14278   *)
14279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282   IFS=$as_save_IFS
14283   test -z "$as_dir" && as_dir=.
14284     for ac_exec_ext in '' $ac_executable_extensions; do
14285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14286     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14288     break 2
14289   fi
14290 done
14291   done
14292 IFS=$as_save_IFS
14293 
14294   ;;
14295 esac
14296 fi
14297 DF=$ac_cv_path_DF
14298 if test -n "$DF"; then
14299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14300 $as_echo "$DF" >&6; }
14301 else
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303 $as_echo "no" >&6; }
14304 fi
14305 
14306 
14307           if test "x$DF" = x; then
14308             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14309           fi
14310         else
14311           # Otherwise we believe it is a complete path. Use it as it is.
14312           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14313 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14314           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14315 $as_echo_n "checking for DF... " >&6; }
14316           if test ! -x "$tool_specified"; then
14317             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14318 $as_echo "not found" >&6; }
14319             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14320           fi
14321           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14322 $as_echo "$tool_specified" >&6; }
14323         fi
14324       fi
14325     fi
14326 
14327   fi
14328 
14329 
14330 
14331 
14332   # Publish this variable in the help.
14333 
14334 
14335   if [ -z "${CPIO+x}" ]; then
14336     # The variable is not set by user, try to locate tool using the code snippet
14337     for ac_prog in cpio bsdcpio
14338 do
14339   # Extract the first word of "$ac_prog", so it can be a program name with args.
14340 set dummy $ac_prog; ac_word=$2
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342 $as_echo_n "checking for $ac_word... " >&6; }
14343 if ${ac_cv_path_CPIO+:} false; then :
14344   $as_echo_n "(cached) " >&6
14345 else
14346   case $CPIO in
14347   [\\/]* | ?:[\\/]*)
14348   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14349   ;;
14350   *)
14351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354   IFS=$as_save_IFS
14355   test -z "$as_dir" && as_dir=.
14356     for ac_exec_ext in '' $ac_executable_extensions; do
14357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14358     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14360     break 2
14361   fi
14362 done
14363   done
14364 IFS=$as_save_IFS
14365 
14366   ;;
14367 esac
14368 fi
14369 CPIO=$ac_cv_path_CPIO
14370 if test -n "$CPIO"; then
14371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14372 $as_echo "$CPIO" >&6; }
14373 else
14374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14376 fi
14377 
14378 
14379   test -n "$CPIO" && break
14380 done
14381 
14382   else
14383     # The variable is set, but is it from the command line or the environment?
14384 
14385     # Try to remove the string !CPIO! from our list.
14386     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14387     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14388       # If it failed, the variable was not from the command line. Ignore it,
14389       # but warn the user (except for BASH, which is always set by the calling BASH).
14390       if test "xCPIO" != xBASH; then
14391         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14392 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14393       fi
14394       # Try to locate tool using the code snippet
14395       for ac_prog in cpio bsdcpio
14396 do
14397   # Extract the first word of "$ac_prog", so it can be a program name with args.
14398 set dummy $ac_prog; ac_word=$2
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14400 $as_echo_n "checking for $ac_word... " >&6; }
14401 if ${ac_cv_path_CPIO+:} false; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   case $CPIO in
14405   [\\/]* | ?:[\\/]*)
14406   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14407   ;;
14408   *)
14409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14411 do
14412   IFS=$as_save_IFS
14413   test -z "$as_dir" && as_dir=.
14414     for ac_exec_ext in '' $ac_executable_extensions; do
14415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14416     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14418     break 2
14419   fi
14420 done
14421   done
14422 IFS=$as_save_IFS
14423 
14424   ;;
14425 esac
14426 fi
14427 CPIO=$ac_cv_path_CPIO
14428 if test -n "$CPIO"; then
14429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14430 $as_echo "$CPIO" >&6; }
14431 else
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14434 fi
14435 
14436 
14437   test -n "$CPIO" && break
14438 done
14439 
14440     else
14441       # If it succeeded, then it was overridden by the user. We will use it
14442       # for the tool.
14443 
14444       # First remove it from the list of overridden variables, so we can test
14445       # for unknown variables in the end.
14446       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14447 
14448       # Check if we try to supply an empty value
14449       if test "x$CPIO" = x; then
14450         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14451 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14453 $as_echo_n "checking for CPIO... " >&6; }
14454         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14455 $as_echo "disabled" >&6; }
14456       else
14457         # Check if the provided tool contains a complete path.
14458         tool_specified="$CPIO"
14459         tool_basename="${tool_specified##*/}"
14460         if test "x$tool_basename" = "x$tool_specified"; then
14461           # A command without a complete path is provided, search $PATH.
14462           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14463 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14464           # Extract the first word of "$tool_basename", so it can be a program name with args.
14465 set dummy $tool_basename; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if ${ac_cv_path_CPIO+:} false; then :
14469   $as_echo_n "(cached) " >&6
14470 else
14471   case $CPIO in
14472   [\\/]* | ?:[\\/]*)
14473   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14474   ;;
14475   *)
14476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14477 for as_dir in $PATH
14478 do
14479   IFS=$as_save_IFS
14480   test -z "$as_dir" && as_dir=.
14481     for ac_exec_ext in '' $ac_executable_extensions; do
14482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14483     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14485     break 2
14486   fi
14487 done
14488   done
14489 IFS=$as_save_IFS
14490 
14491   ;;
14492 esac
14493 fi
14494 CPIO=$ac_cv_path_CPIO
14495 if test -n "$CPIO"; then
14496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14497 $as_echo "$CPIO" >&6; }
14498 else
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14501 fi
14502 
14503 
14504           if test "x$CPIO" = x; then
14505             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14506           fi
14507         else
14508           # Otherwise we believe it is a complete path. Use it as it is.
14509           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14510 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14511           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14512 $as_echo_n "checking for CPIO... " >&6; }
14513           if test ! -x "$tool_specified"; then
14514             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14515 $as_echo "not found" >&6; }
14516             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14517           fi
14518           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14519 $as_echo "$tool_specified" >&6; }
14520         fi
14521       fi
14522     fi
14523 
14524   fi
14525 
14526 
14527 
14528 
14529   # Publish this variable in the help.
14530 
14531 
14532   if [ -z "${NICE+x}" ]; then
14533     # The variable is not set by user, try to locate tool using the code snippet
14534     for ac_prog in nice
14535 do
14536   # Extract the first word of "$ac_prog", so it can be a program name with args.
14537 set dummy $ac_prog; ac_word=$2
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 $as_echo_n "checking for $ac_word... " >&6; }
14540 if ${ac_cv_path_NICE+:} false; then :
14541   $as_echo_n "(cached) " >&6
14542 else
14543   case $NICE in
14544   [\\/]* | ?:[\\/]*)
14545   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14546   ;;
14547   *)
14548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14550 do
14551   IFS=$as_save_IFS
14552   test -z "$as_dir" && as_dir=.
14553     for ac_exec_ext in '' $ac_executable_extensions; do
14554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14555     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14557     break 2
14558   fi
14559 done
14560   done
14561 IFS=$as_save_IFS
14562 
14563   ;;
14564 esac
14565 fi
14566 NICE=$ac_cv_path_NICE
14567 if test -n "$NICE"; then
14568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14569 $as_echo "$NICE" >&6; }
14570 else
14571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 $as_echo "no" >&6; }
14573 fi
14574 
14575 
14576   test -n "$NICE" && break
14577 done
14578 
14579   else
14580     # The variable is set, but is it from the command line or the environment?
14581 
14582     # Try to remove the string !NICE! from our list.
14583     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14584     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14585       # If it failed, the variable was not from the command line. Ignore it,
14586       # but warn the user (except for BASH, which is always set by the calling BASH).
14587       if test "xNICE" != xBASH; then
14588         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14589 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14590       fi
14591       # Try to locate tool using the code snippet
14592       for ac_prog in nice
14593 do
14594   # Extract the first word of "$ac_prog", so it can be a program name with args.
14595 set dummy $ac_prog; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 $as_echo_n "checking for $ac_word... " >&6; }
14598 if ${ac_cv_path_NICE+:} false; then :
14599   $as_echo_n "(cached) " >&6
14600 else
14601   case $NICE in
14602   [\\/]* | ?:[\\/]*)
14603   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14604   ;;
14605   *)
14606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607 for as_dir in $PATH
14608 do
14609   IFS=$as_save_IFS
14610   test -z "$as_dir" && as_dir=.
14611     for ac_exec_ext in '' $ac_executable_extensions; do
14612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14613     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14615     break 2
14616   fi
14617 done
14618   done
14619 IFS=$as_save_IFS
14620 
14621   ;;
14622 esac
14623 fi
14624 NICE=$ac_cv_path_NICE
14625 if test -n "$NICE"; then
14626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14627 $as_echo "$NICE" >&6; }
14628 else
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631 fi
14632 
14633 
14634   test -n "$NICE" && break
14635 done
14636 
14637     else
14638       # If it succeeded, then it was overridden by the user. We will use it
14639       # for the tool.
14640 
14641       # First remove it from the list of overridden variables, so we can test
14642       # for unknown variables in the end.
14643       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14644 
14645       # Check if we try to supply an empty value
14646       if test "x$NICE" = x; then
14647         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14648 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14650 $as_echo_n "checking for NICE... " >&6; }
14651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14652 $as_echo "disabled" >&6; }
14653       else
14654         # Check if the provided tool contains a complete path.
14655         tool_specified="$NICE"
14656         tool_basename="${tool_specified##*/}"
14657         if test "x$tool_basename" = "x$tool_specified"; then
14658           # A command without a complete path is provided, search $PATH.
14659           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14660 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14661           # Extract the first word of "$tool_basename", so it can be a program name with args.
14662 set dummy $tool_basename; ac_word=$2
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14664 $as_echo_n "checking for $ac_word... " >&6; }
14665 if ${ac_cv_path_NICE+:} false; then :
14666   $as_echo_n "(cached) " >&6
14667 else
14668   case $NICE in
14669   [\\/]* | ?:[\\/]*)
14670   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14671   ;;
14672   *)
14673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14674 for as_dir in $PATH
14675 do
14676   IFS=$as_save_IFS
14677   test -z "$as_dir" && as_dir=.
14678     for ac_exec_ext in '' $ac_executable_extensions; do
14679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14680     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14682     break 2
14683   fi
14684 done
14685   done
14686 IFS=$as_save_IFS
14687 
14688   ;;
14689 esac
14690 fi
14691 NICE=$ac_cv_path_NICE
14692 if test -n "$NICE"; then
14693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14694 $as_echo "$NICE" >&6; }
14695 else
14696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 fi
14699 
14700 
14701           if test "x$NICE" = x; then
14702             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14703           fi
14704         else
14705           # Otherwise we believe it is a complete path. Use it as it is.
14706           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14707 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14708           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14709 $as_echo_n "checking for NICE... " >&6; }
14710           if test ! -x "$tool_specified"; then
14711             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14712 $as_echo "not found" >&6; }
14713             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14714           fi
14715           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14716 $as_echo "$tool_specified" >&6; }
14717         fi
14718       fi
14719     fi
14720 
14721   fi
14722 
14723 
14724 
14725 
14726 # Now we can determine OpenJDK build and target platforms. This is required to
14727 # have early on.
14728 # Make sure we can run config.sub.
14729 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14730   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14731 
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14733 $as_echo_n "checking build system type... " >&6; }
14734 if ${ac_cv_build+:} false; then :
14735   $as_echo_n "(cached) " >&6
14736 else
14737   ac_build_alias=$build_alias
14738 test "x$ac_build_alias" = x &&
14739   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14740 test "x$ac_build_alias" = x &&
14741   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14742 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14743   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14744 
14745 fi
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14747 $as_echo "$ac_cv_build" >&6; }
14748 case $ac_cv_build in
14749 *-*-*) ;;
14750 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14751 esac
14752 build=$ac_cv_build
14753 ac_save_IFS=$IFS; IFS='-'
14754 set x $ac_cv_build
14755 shift
14756 build_cpu=$1
14757 build_vendor=$2
14758 shift; shift
14759 # Remember, the first character of IFS is used to create $*,
14760 # except with old shells:
14761 build_os=$*
14762 IFS=$ac_save_IFS
14763 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14764 
14765 
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14767 $as_echo_n "checking host system type... " >&6; }
14768 if ${ac_cv_host+:} false; then :
14769   $as_echo_n "(cached) " >&6
14770 else
14771   if test "x$host_alias" = x; then
14772   ac_cv_host=$ac_cv_build
14773 else
14774   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14775     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14776 fi
14777 
14778 fi
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14780 $as_echo "$ac_cv_host" >&6; }
14781 case $ac_cv_host in
14782 *-*-*) ;;
14783 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14784 esac
14785 host=$ac_cv_host
14786 ac_save_IFS=$IFS; IFS='-'
14787 set x $ac_cv_host
14788 shift
14789 host_cpu=$1
14790 host_vendor=$2
14791 shift; shift
14792 # Remember, the first character of IFS is used to create $*,
14793 # except with old shells:
14794 host_os=$*
14795 IFS=$ac_save_IFS
14796 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14797 
14798 
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14800 $as_echo_n "checking target system type... " >&6; }
14801 if ${ac_cv_target+:} false; then :
14802   $as_echo_n "(cached) " >&6
14803 else
14804   if test "x$target_alias" = x; then
14805   ac_cv_target=$ac_cv_host
14806 else
14807   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14808     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14809 fi
14810 
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14813 $as_echo "$ac_cv_target" >&6; }
14814 case $ac_cv_target in
14815 *-*-*) ;;
14816 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14817 esac
14818 target=$ac_cv_target
14819 ac_save_IFS=$IFS; IFS='-'
14820 set x $ac_cv_target
14821 shift
14822 target_cpu=$1
14823 target_vendor=$2
14824 shift; shift
14825 # Remember, the first character of IFS is used to create $*,
14826 # except with old shells:
14827 target_os=$*
14828 IFS=$ac_save_IFS
14829 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14830 
14831 
14832 # The aliases save the names the user supplied, while $host etc.
14833 # will get canonicalized.
14834 test -n "$target_alias" &&
14835   test "$program_prefix$program_suffix$program_transform_name" = \
14836     NONENONEs,x,x, &&
14837   program_prefix=${target_alias}-
14838 
14839   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14840   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14841   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14842   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14843   # to use the configure naming style.
14844 
14845 
14846 
14847 
14848 
14849   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14850   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14851   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14852   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14853   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14854   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14855 
14856 
14857 
14858   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14859 
14860   case "$build_os" in
14861     *linux*)
14862       VAR_OS=linux
14863       VAR_OS_TYPE=unix
14864       ;;
14865     *solaris*)
14866       VAR_OS=solaris
14867       VAR_OS_TYPE=unix
14868       ;;
14869     *darwin*)
14870       VAR_OS=macosx
14871       VAR_OS_TYPE=unix
14872       ;;
14873     *bsd*)
14874       VAR_OS=bsd
14875       VAR_OS_TYPE=unix
14876       ;;
14877     *cygwin*)
14878       VAR_OS=windows
14879       VAR_OS_ENV=windows.cygwin
14880       ;;
14881     *mingw*)
14882       VAR_OS=windows
14883       VAR_OS_ENV=windows.msys
14884       ;;
14885     *aix*)
14886       VAR_OS=aix
14887       VAR_OS_TYPE=unix
14888       ;;
14889     *)
14890       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14891       ;;
14892   esac
14893 
14894 
14895   # First argument is the cpu name from the trip/quad
14896   case "$build_cpu" in
14897     x86_64)
14898       VAR_CPU=x86_64
14899       VAR_CPU_ARCH=x86
14900       VAR_CPU_BITS=64
14901       VAR_CPU_ENDIAN=little
14902       ;;
14903     i?86)
14904       VAR_CPU=x86
14905       VAR_CPU_ARCH=x86
14906       VAR_CPU_BITS=32
14907       VAR_CPU_ENDIAN=little
14908       ;;
14909     arm*)
14910       VAR_CPU=arm
14911       VAR_CPU_ARCH=arm
14912       VAR_CPU_BITS=32
14913       VAR_CPU_ENDIAN=little
14914       ;;
14915     aarch64)
14916       VAR_CPU=aarch64
14917       VAR_CPU_ARCH=aarch64
14918       VAR_CPU_BITS=64
14919       VAR_CPU_ENDIAN=little
14920       ;;
14921     powerpc)
14922       VAR_CPU=ppc
14923       VAR_CPU_ARCH=ppc
14924       VAR_CPU_BITS=32
14925       VAR_CPU_ENDIAN=big
14926       ;;
14927     powerpc64)
14928       VAR_CPU=ppc64
14929       VAR_CPU_ARCH=ppc
14930       VAR_CPU_BITS=64
14931       VAR_CPU_ENDIAN=big
14932       ;;
14933     powerpc64le)
14934       VAR_CPU=ppc64le
14935       VAR_CPU_ARCH=ppc
14936       VAR_CPU_BITS=64
14937       VAR_CPU_ENDIAN=little
14938       ;;
14939     s390)
14940       VAR_CPU=s390
14941       VAR_CPU_ARCH=s390
14942       VAR_CPU_BITS=32
14943       VAR_CPU_ENDIAN=big
14944       ;;
14945     s390x)
14946       VAR_CPU=s390x
14947       VAR_CPU_ARCH=s390
14948       VAR_CPU_BITS=64
14949       VAR_CPU_ENDIAN=big
14950       ;;
14951     sparc)
14952       VAR_CPU=sparc
14953       VAR_CPU_ARCH=sparc
14954       VAR_CPU_BITS=32
14955       VAR_CPU_ENDIAN=big
14956       ;;
14957     sparcv9|sparc64)
14958       VAR_CPU=sparcv9
14959       VAR_CPU_ARCH=sparc
14960       VAR_CPU_BITS=64
14961       VAR_CPU_ENDIAN=big
14962       ;;
14963     *)
14964       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14965       ;;
14966   esac
14967 
14968   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14969   OPENJDK_BUILD_OS="$VAR_OS"
14970   if test "x$VAR_OS_TYPE" != x; then
14971     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14972   else
14973     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14974   fi
14975   if test "x$VAR_OS_ENV" != x; then
14976     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14977   else
14978     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14979   fi
14980   OPENJDK_BUILD_CPU="$VAR_CPU"
14981   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14982   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14983   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14984 
14985 
14986 
14987 
14988 
14989 
14990 
14991 
14992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14993 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14995 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14996 
14997   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14998 
14999   case "$host_os" in
15000     *linux*)
15001       VAR_OS=linux
15002       VAR_OS_TYPE=unix
15003       ;;
15004     *solaris*)
15005       VAR_OS=solaris
15006       VAR_OS_TYPE=unix
15007       ;;
15008     *darwin*)
15009       VAR_OS=macosx
15010       VAR_OS_TYPE=unix
15011       ;;
15012     *bsd*)
15013       VAR_OS=bsd
15014       VAR_OS_TYPE=unix
15015       ;;
15016     *cygwin*)
15017       VAR_OS=windows
15018       VAR_OS_ENV=windows.cygwin
15019       ;;
15020     *mingw*)
15021       VAR_OS=windows
15022       VAR_OS_ENV=windows.msys
15023       ;;
15024     *aix*)
15025       VAR_OS=aix
15026       VAR_OS_TYPE=unix
15027       ;;
15028     *)
15029       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15030       ;;
15031   esac
15032 
15033 
15034   # First argument is the cpu name from the trip/quad
15035   case "$host_cpu" in
15036     x86_64)
15037       VAR_CPU=x86_64
15038       VAR_CPU_ARCH=x86
15039       VAR_CPU_BITS=64
15040       VAR_CPU_ENDIAN=little
15041       ;;
15042     i?86)
15043       VAR_CPU=x86
15044       VAR_CPU_ARCH=x86
15045       VAR_CPU_BITS=32
15046       VAR_CPU_ENDIAN=little
15047       ;;
15048     arm*)
15049       VAR_CPU=arm
15050       VAR_CPU_ARCH=arm
15051       VAR_CPU_BITS=32
15052       VAR_CPU_ENDIAN=little
15053       ;;
15054     aarch64)
15055       VAR_CPU=aarch64
15056       VAR_CPU_ARCH=aarch64
15057       VAR_CPU_BITS=64
15058       VAR_CPU_ENDIAN=little
15059       ;;
15060     powerpc)
15061       VAR_CPU=ppc
15062       VAR_CPU_ARCH=ppc
15063       VAR_CPU_BITS=32
15064       VAR_CPU_ENDIAN=big
15065       ;;
15066     powerpc64)
15067       VAR_CPU=ppc64
15068       VAR_CPU_ARCH=ppc
15069       VAR_CPU_BITS=64
15070       VAR_CPU_ENDIAN=big
15071       ;;
15072     powerpc64le)
15073       VAR_CPU=ppc64le
15074       VAR_CPU_ARCH=ppc
15075       VAR_CPU_BITS=64
15076       VAR_CPU_ENDIAN=little
15077       ;;
15078     s390)
15079       VAR_CPU=s390
15080       VAR_CPU_ARCH=s390
15081       VAR_CPU_BITS=32
15082       VAR_CPU_ENDIAN=big
15083       ;;
15084     s390x)
15085       VAR_CPU=s390x
15086       VAR_CPU_ARCH=s390
15087       VAR_CPU_BITS=64
15088       VAR_CPU_ENDIAN=big
15089       ;;
15090     sparc)
15091       VAR_CPU=sparc
15092       VAR_CPU_ARCH=sparc
15093       VAR_CPU_BITS=32
15094       VAR_CPU_ENDIAN=big
15095       ;;
15096     sparcv9|sparc64)
15097       VAR_CPU=sparcv9
15098       VAR_CPU_ARCH=sparc
15099       VAR_CPU_BITS=64
15100       VAR_CPU_ENDIAN=big
15101       ;;
15102     *)
15103       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15104       ;;
15105   esac
15106 
15107   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15108   OPENJDK_TARGET_OS="$VAR_OS"
15109   if test "x$VAR_OS_TYPE" != x; then
15110     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15111   else
15112     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15113   fi
15114   if test "x$VAR_OS_ENV" != x; then
15115     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15116   else
15117     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15118   fi
15119   OPENJDK_TARGET_CPU="$VAR_CPU"
15120   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15121   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15122   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15123 
15124 
15125 
15126 
15127 
15128 
15129 
15130 
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15132 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15134 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15135 
15136 
15137 
15138 # Check whether --with-target-bits was given.
15139 if test "${with_target_bits+set}" = set; then :
15140   withval=$with_target_bits;
15141 fi
15142 
15143 
15144   # We have three types of compiles:
15145   # native  == normal compilation, target system == build system
15146   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15147   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15148   #
15149   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15150     # We're doing a proper cross-compilation
15151     COMPILE_TYPE="cross"
15152   else
15153     COMPILE_TYPE="native"
15154   fi
15155 
15156   if test "x$with_target_bits" != x; then
15157     if test "x$COMPILE_TYPE" = "xcross"; then
15158       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15159     fi
15160 
15161     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15162       # A reduced build is requested
15163       COMPILE_TYPE="reduced"
15164       OPENJDK_TARGET_CPU_BITS=32
15165       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15166         OPENJDK_TARGET_CPU=x86
15167       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15168         OPENJDK_TARGET_CPU=sparc
15169       else
15170         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15171       fi
15172     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15173       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
15174     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15175       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15176 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15177     else
15178       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15179     fi
15180   fi
15181 
15182 
15183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15184 $as_echo_n "checking compilation type... " >&6; }
15185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15186 $as_echo "$COMPILE_TYPE" >&6; }
15187 
15188 
15189   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15190     REQUIRED_OS_NAME=SunOS
15191     REQUIRED_OS_VERSION=5.10
15192   fi
15193   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15194     REQUIRED_OS_NAME=Linux
15195     REQUIRED_OS_VERSION=2.6
15196   fi
15197   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15198     REQUIRED_OS_NAME=Windows
15199     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15200       REQUIRED_OS_VERSION=5.2
15201     else
15202       REQUIRED_OS_VERSION=5.1
15203     fi
15204   fi
15205   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15206     REQUIRED_OS_NAME=Darwin
15207     REQUIRED_OS_VERSION=11.2
15208   fi
15209   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15210     REQUIRED_OS_NAME=AIX
15211     REQUIRED_OS_VERSION=7.1
15212   fi
15213 
15214 
15215 
15216 
15217 
15218   # Also store the legacy naming of the cpu.
15219   # Ie i586 and amd64 instead of x86 and x86_64
15220   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15221   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15222     OPENJDK_TARGET_CPU_LEGACY="i586"
15223   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15224     # On all platforms except MacOSX replace x86_64 with amd64.
15225     OPENJDK_TARGET_CPU_LEGACY="amd64"
15226   fi
15227 
15228 
15229   # And the second legacy naming of the cpu.
15230   # Ie i386 and amd64 instead of x86 and x86_64.
15231   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15232   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15233     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15234   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15235     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15236   fi
15237 
15238 
15239   # This is the name of the cpu (but using i386 and amd64 instead of
15240   # x86 and x86_64, respectively), preceeded by a /, to be used when
15241   # locating libraries. On macosx, it's empty, though.
15242   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15243   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15244     OPENJDK_TARGET_CPU_LIBDIR=""
15245   fi
15246 
15247 
15248   # Now do the same for OPENJDK_BUILD_CPU...
15249   # Also store the legacy naming of the cpu.
15250   # Ie i586 and amd64 instead of x86 and x86_64
15251   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15252   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15253     OPENJDK_BUILD_CPU_LEGACY="i586"
15254   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15255     # On all platforms except MacOSX replace x86_64 with amd64.
15256     OPENJDK_BUILD_CPU_LEGACY="amd64"
15257   fi
15258 
15259 
15260   # And the second legacy naming of the cpu.
15261   # Ie i386 and amd64 instead of x86 and x86_64.
15262   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15263   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15264     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15265   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15266     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15267   fi
15268 
15269 
15270   # This is the name of the cpu (but using i386 and amd64 instead of
15271   # x86 and x86_64, respectively), preceeded by a /, to be used when
15272   # locating libraries. On macosx, it's empty, though.
15273   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
15274   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15275     OPENJDK_BUILD_CPU_LIBDIR=""
15276   fi
15277 
15278 
15279   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15280   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15281   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15282   OPENJDK_TARGET_CPU_ISADIR=""
15283   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15284     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15285       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15286     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15287       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15288     fi
15289   fi
15290 
15291 
15292   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15293   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15294   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15295     # On linux only, we replace x86 with i386.
15296     OPENJDK_TARGET_CPU_OSARCH="i386"
15297   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15298     # On all platforms except macosx, we replace x86_64 with amd64.
15299     OPENJDK_TARGET_CPU_OSARCH="amd64"
15300   fi
15301 
15302 
15303   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15304   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15305     OPENJDK_TARGET_CPU_JLI="i386"
15306   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15307     # On all platforms except macosx, we replace x86_64 with amd64.
15308     OPENJDK_TARGET_CPU_JLI="amd64"
15309   fi
15310   # Now setup the -D flags for building libjli.
15311   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15312   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15313     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15314       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15315     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15316       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15317     fi
15318   fi
15319 
15320 
15321   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
15322   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15323     OPENJDK_BUILD_CPU_JLI="i386"
15324   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15325     # On all platforms except macosx, we replace x86_64 with amd64.
15326     OPENJDK_BUILD_CPU_JLI="amd64"
15327   fi
15328   # Now setup the -D flags for building libjli.
15329   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
15330   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15331     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
15332       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15333     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
15334       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15335     fi
15336   fi
15337 
15338 
15339   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15340       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15341   else
15342       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15343   fi
15344 
15345 
15346   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15347     A_LP64="LP64:="
15348     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15349     # unpack200.exe
15350     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15351       ADD_LP64="-D_LP64=1"
15352     fi
15353   fi
15354   LP64=$A_LP64
15355 
15356   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
15357     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
15358       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
15359     fi
15360   fi
15361 
15362   if test "x$COMPILE_TYPE" = "xcross"; then
15363     # FIXME: ... or should this include reduced builds..?
15364     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15365   else
15366     DEFINE_CROSS_COMPILE_ARCH=""
15367   fi
15368 
15369 
15370   # ZERO_ARCHDEF is used to enable architecture-specific code
15371   case "${OPENJDK_TARGET_CPU}" in
15372     ppc)     ZERO_ARCHDEF=PPC32 ;;
15373     ppc64)   ZERO_ARCHDEF=PPC64 ;;
15374     s390*)   ZERO_ARCHDEF=S390  ;;
15375     sparc*)  ZERO_ARCHDEF=SPARC ;;
15376     x86_64*) ZERO_ARCHDEF=AMD64 ;;
15377     x86)     ZERO_ARCHDEF=IA32  ;;
15378     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
15379   esac
15380 
15381 
15382 
15383 
15384 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15385 
15386   # Save the current directory this script was started from
15387   CURDIR="$PWD"
15388 
15389   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15390   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15391   # was not available at that time.
15392   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15393   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15394     ORIGINAL_PATH="$REWRITTEN_PATH"
15395     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15396 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15397   fi
15398 
15399   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15400     PATH_SEP=";"
15401 
15402   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15403   if test $SRC_ROOT_LENGTH -gt 100; then
15404     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15405   fi
15406 
15407   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15409 $as_echo_n "checking cygwin release... " >&6; }
15410     CYGWIN_VERSION=`$UNAME -r`
15411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15412 $as_echo "$CYGWIN_VERSION" >&6; }
15413     WINDOWS_ENV_VENDOR='cygwin'
15414     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15415 
15416     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15417     if test "x$CYGWIN_VERSION_OLD" != x; then
15418       { $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
15419 $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;}
15420       as_fn_error $? "Cannot continue" "$LINENO" 5
15421     fi
15422     if test "x$CYGPATH" = x; then
15423       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15424     fi
15425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15426 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15427     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15428     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15429     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15430     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15432 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15433     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15434     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15435     if test "x$test_cygdrive_prefix" = x; then
15436       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15437     fi
15438   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15440 $as_echo_n "checking msys release... " >&6; }
15441     MSYS_VERSION=`$UNAME -r`
15442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15443 $as_echo "$MSYS_VERSION" >&6; }
15444 
15445     WINDOWS_ENV_VENDOR='msys'
15446     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15447 
15448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15449 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15450     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15451     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15452 
15453   windows_path="$MSYS_ROOT_PATH"
15454   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15455     unix_path=`$CYGPATH -u "$windows_path"`
15456     MSYS_ROOT_PATH="$unix_path"
15457   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15458     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15459     MSYS_ROOT_PATH="$unix_path"
15460   fi
15461 
15462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15463 $as_echo "$MSYS_ROOT_PATH" >&6; }
15464     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15465   else
15466     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15467   fi
15468 
15469   # Test if windows or unix (cygwin/msys) find is first in path.
15470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15471 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15472   FIND_BINARY_OUTPUT=`find --version 2>&1`
15473   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15475 $as_echo "unix style" >&6; }
15476   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15478 $as_echo "Windows" >&6; }
15479     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15480 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15481     { $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
15482 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15483     as_fn_error $? "Cannot continue" "$LINENO" 5
15484   else
15485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15486 $as_echo "unknown" >&6; }
15487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15488 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15489   fi
15490 
15491   else
15492     PATH_SEP=":"
15493   fi
15494 
15495 
15496   # We get the top-level directory from the supporting wrappers.
15497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15498 $as_echo_n "checking for top-level directory... " >&6; }
15499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15500 $as_echo "$TOPDIR" >&6; }
15501 
15502 
15503   # Save the original version of TOPDIR for string comparisons
15504   ORIGINAL_TOPDIR="$TOPDIR"
15505 
15506 
15507   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15508 
15509   # Only process if variable expands to non-empty
15510 
15511   if test "x$CURDIR" != x; then
15512     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15513 
15514   # Input might be given as Windows format, start by converting to
15515   # unix format.
15516   path="$CURDIR"
15517   new_path=`$CYGPATH -u "$path"`
15518 
15519   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15520   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15521   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15522   # "foo.exe" is OK but "foo" is an error.
15523   #
15524   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15525   # It is also a way to make sure we got the proper file name for the real test later on.
15526   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15527   if test "x$test_shortpath" = x; then
15528     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15529 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15530     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15531   fi
15532 
15533   # Call helper function which possibly converts this using DOS-style short mode.
15534   # If so, the updated path is stored in $new_path.
15535 
15536   input_path="$new_path"
15537   # Check if we need to convert this using DOS-style short mode. If the path
15538   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15539   # take no chances and rewrite it.
15540   # Note: m4 eats our [], so we need to use [ and ] instead.
15541   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15542   if test "x$has_forbidden_chars" != x; then
15543     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15544     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15545     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15546     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15547       # Going to short mode and back again did indeed matter. Since short mode is
15548       # case insensitive, let's make it lowercase to improve readability.
15549       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15550       # Now convert it back to Unix-style (cygpath)
15551       input_path=`$CYGPATH -u "$shortmode_path"`
15552       new_path="$input_path"
15553     fi
15554   fi
15555 
15556   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15557   if test "x$test_cygdrive_prefix" = x; then
15558     # As a simple fix, exclude /usr/bin since it's not a real path.
15559     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15560       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15561       # a path prefixed by /cygdrive for fixpath to work.
15562       new_path="$CYGWIN_ROOT_PATH$input_path"
15563     fi
15564   fi
15565 
15566 
15567   if test "x$path" != "x$new_path"; then
15568     CURDIR="$new_path"
15569     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15570 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15571   fi
15572 
15573     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15574 
15575   path="$CURDIR"
15576   has_colon=`$ECHO $path | $GREP ^.:`
15577   new_path="$path"
15578   if test "x$has_colon" = x; then
15579     # Not in mixed or Windows style, start by that.
15580     new_path=`cmd //c echo $path`
15581   fi
15582 
15583 
15584   input_path="$new_path"
15585   # Check if we need to convert this using DOS-style short mode. If the path
15586   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15587   # take no chances and rewrite it.
15588   # Note: m4 eats our [], so we need to use [ and ] instead.
15589   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15590   if test "x$has_forbidden_chars" != x; then
15591     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15592     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15593   fi
15594 
15595 
15596   windows_path="$new_path"
15597   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15598     unix_path=`$CYGPATH -u "$windows_path"`
15599     new_path="$unix_path"
15600   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15601     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15602     new_path="$unix_path"
15603   fi
15604 
15605   if test "x$path" != "x$new_path"; then
15606     CURDIR="$new_path"
15607     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15608 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15609   fi
15610 
15611   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15612   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15613 
15614     else
15615       # We're on a unix platform. Hooray! :)
15616       path="$CURDIR"
15617       has_space=`$ECHO "$path" | $GREP " "`
15618       if test "x$has_space" != x; then
15619         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15620 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15621         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15622       fi
15623 
15624       # Use eval to expand a potential ~
15625       eval path="$path"
15626       if test ! -f "$path" && test ! -d "$path"; then
15627         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15628       fi
15629 
15630       if test -d "$path"; then
15631         CURDIR="`cd "$path"; $THEPWDCMD -L`"
15632       else
15633         dir="`$DIRNAME "$path"`"
15634         base="`$BASENAME "$path"`"
15635         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15636       fi
15637     fi
15638   fi
15639 
15640 
15641   # Only process if variable expands to non-empty
15642 
15643   if test "x$TOPDIR" != x; then
15644     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15645 
15646   # Input might be given as Windows format, start by converting to
15647   # unix format.
15648   path="$TOPDIR"
15649   new_path=`$CYGPATH -u "$path"`
15650 
15651   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15652   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15653   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15654   # "foo.exe" is OK but "foo" is an error.
15655   #
15656   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15657   # It is also a way to make sure we got the proper file name for the real test later on.
15658   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15659   if test "x$test_shortpath" = x; then
15660     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15661 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15662     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15663   fi
15664 
15665   # Call helper function which possibly converts this using DOS-style short mode.
15666   # If so, the updated path is stored in $new_path.
15667 
15668   input_path="$new_path"
15669   # Check if we need to convert this using DOS-style short mode. If the path
15670   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15671   # take no chances and rewrite it.
15672   # Note: m4 eats our [], so we need to use [ and ] instead.
15673   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15674   if test "x$has_forbidden_chars" != x; then
15675     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15676     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15677     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15678     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15679       # Going to short mode and back again did indeed matter. Since short mode is
15680       # case insensitive, let's make it lowercase to improve readability.
15681       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15682       # Now convert it back to Unix-style (cygpath)
15683       input_path=`$CYGPATH -u "$shortmode_path"`
15684       new_path="$input_path"
15685     fi
15686   fi
15687 
15688   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15689   if test "x$test_cygdrive_prefix" = x; then
15690     # As a simple fix, exclude /usr/bin since it's not a real path.
15691     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15692       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15693       # a path prefixed by /cygdrive for fixpath to work.
15694       new_path="$CYGWIN_ROOT_PATH$input_path"
15695     fi
15696   fi
15697 
15698 
15699   if test "x$path" != "x$new_path"; then
15700     TOPDIR="$new_path"
15701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15702 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15703   fi
15704 
15705     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15706 
15707   path="$TOPDIR"
15708   has_colon=`$ECHO $path | $GREP ^.:`
15709   new_path="$path"
15710   if test "x$has_colon" = x; then
15711     # Not in mixed or Windows style, start by that.
15712     new_path=`cmd //c echo $path`
15713   fi
15714 
15715 
15716   input_path="$new_path"
15717   # Check if we need to convert this using DOS-style short mode. If the path
15718   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15719   # take no chances and rewrite it.
15720   # Note: m4 eats our [], so we need to use [ and ] instead.
15721   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15722   if test "x$has_forbidden_chars" != x; then
15723     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15724     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15725   fi
15726 
15727 
15728   windows_path="$new_path"
15729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15730     unix_path=`$CYGPATH -u "$windows_path"`
15731     new_path="$unix_path"
15732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15734     new_path="$unix_path"
15735   fi
15736 
15737   if test "x$path" != "x$new_path"; then
15738     TOPDIR="$new_path"
15739     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15740 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15741   fi
15742 
15743   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15744   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15745 
15746     else
15747       # We're on a unix platform. Hooray! :)
15748       path="$TOPDIR"
15749       has_space=`$ECHO "$path" | $GREP " "`
15750       if test "x$has_space" != x; then
15751         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15752 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15753         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15754       fi
15755 
15756       # Use eval to expand a potential ~
15757       eval path="$path"
15758       if test ! -f "$path" && test ! -d "$path"; then
15759         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15760       fi
15761 
15762       if test -d "$path"; then
15763         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15764       else
15765         dir="`$DIRNAME "$path"`"
15766         base="`$BASENAME "$path"`"
15767         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15768       fi
15769     fi
15770   fi
15771 
15772   # SRC_ROOT is a traditional alias for TOPDIR.
15773   SRC_ROOT=$TOPDIR
15774 
15775   # Calculate a canonical version of TOPDIR for string comparisons
15776   CANONICAL_TOPDIR=$TOPDIR
15777 
15778   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15779     # Follow a chain of symbolic links. Use readlink
15780     # where it exists, else fall back to horribly
15781     # complicated shell code.
15782     if test "x$READLINK_TESTED" != yes; then
15783       # On MacOSX there is a readlink tool with a different
15784       # purpose than the GNU readlink tool. Check the found readlink.
15785       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15786       if test "x$ISGNU" = x; then
15787         # A readlink that we do not know how to use.
15788         # Are there other non-GNU readlinks out there?
15789         READLINK_TESTED=yes
15790         READLINK=
15791       fi
15792     fi
15793 
15794     if test "x$READLINK" != x; then
15795       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15796     else
15797       # Save the current directory for restoring afterwards
15798       STARTDIR=$PWD
15799       COUNTER=0
15800       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15801       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15802       cd $sym_link_dir
15803       # Use -P flag to resolve symlinks in directories.
15804       cd `$THEPWDCMD -P`
15805       sym_link_dir=`$THEPWDCMD -P`
15806       # Resolve file symlinks
15807       while test $COUNTER -lt 20; do
15808         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15809         if test "x$ISLINK" == x; then
15810           # This is not a symbolic link! We are done!
15811           break
15812         fi
15813         # Again resolve directory symlinks since the target of the just found
15814         # link could be in a different directory
15815         cd `$DIRNAME $ISLINK`
15816         sym_link_dir=`$THEPWDCMD -P`
15817         sym_link_file=`$BASENAME $ISLINK`
15818         let COUNTER=COUNTER+1
15819       done
15820       cd $STARTDIR
15821       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15822     fi
15823   fi
15824 
15825 
15826 
15827   # Locate the directory of this script.
15828   AUTOCONF_DIR=$TOPDIR/common/autoconf
15829 
15830   # Setup username (for use in adhoc version strings etc)
15831   # Outer [ ] to quote m4.
15832    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
15833 
15834 
15835 
15836 # Check if it's a pure open build or if custom sources are to be used.
15837 
15838   # Check whether --enable-openjdk-only was given.
15839 if test "${enable_openjdk_only+set}" = set; then :
15840   enableval=$enable_openjdk_only;
15841 else
15842   enable_openjdk_only="no"
15843 fi
15844 
15845 
15846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15847 $as_echo_n "checking for presence of closed sources... " >&6; }
15848   if test -d "$SRC_ROOT/jdk/src/closed"; then
15849     CLOSED_SOURCE_PRESENT=yes
15850   else
15851     CLOSED_SOURCE_PRESENT=no
15852   fi
15853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15854 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15855 
15856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15857 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15858   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15860 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15861 
15862   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15863     OPENJDK=true
15864     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15865       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15866 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15867     fi
15868   else
15869     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15870       OPENJDK=true
15871     else
15872       OPENJDK=false
15873     fi
15874   fi
15875 
15876   if test "x$OPENJDK" = "xtrue"; then
15877     SET_OPENJDK="OPENJDK=true"
15878   fi
15879 
15880 
15881 
15882   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15883   # the IncludeCustomExtension macro.
15884 
15885 
15886 # Check whether --with-custom-make-dir was given.
15887 if test "${with_custom_make_dir+set}" = set; then :
15888   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
15889 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15890 fi
15891 
15892 
15893 
15894 
15895 # These are needed to be able to create a configuration name (and thus the output directory)
15896 
15897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15898 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15899 
15900 # Check whether --with-jdk-variant was given.
15901 if test "${with_jdk_variant+set}" = set; then :
15902   withval=$with_jdk_variant;
15903 fi
15904 
15905 
15906   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15907     JDK_VARIANT="normal"
15908   else
15909     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15910   fi
15911 
15912 
15913 
15914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15915 $as_echo "$JDK_VARIANT" >&6; }
15916 
15917 
15918 
15919 # Check whether --with-jvm-interpreter was given.
15920 if test "${with_jvm_interpreter+set}" = set; then :
15921   withval=$with_jvm_interpreter;
15922 fi
15923 
15924 
15925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15926 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15927   if test "x$with_jvm_interpreter" = x; then
15928     JVM_INTERPRETER="template"
15929   else
15930     JVM_INTERPRETER="$with_jvm_interpreter"
15931   fi
15932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_INTERPRETER" >&5
15933 $as_echo "$JVM_INTERPRETER" >&6; }
15934 
15935   if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15936     as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15937   fi
15938 
15939 
15940 
15941 
15942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15943 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15944 
15945 # Check whether --with-jvm-variants was given.
15946 if test "${with_jvm_variants+set}" = set; then :
15947   withval=$with_jvm_variants;
15948 fi
15949 
15950 
15951   if test "x$with_jvm_variants" = x; then
15952     with_jvm_variants="server"
15953   fi
15954 
15955   JVM_VARIANTS=",$with_jvm_variants,"
15956   TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//'  -e 's/minimal1,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'`
15957 
15958   if test "x$TEST_VARIANTS" != "x,"; then
15959     as_fn_error $? "The available JVM variants are: server, client, minimal1, zero, zeroshark, core" "$LINENO" 5
15960   fi
15961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15962 $as_echo "$with_jvm_variants" >&6; }
15963 
15964   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15965   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15966   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15967   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15968   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15969   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15970 
15971   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15972     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15973       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15974     fi
15975   fi
15976   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15977     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15978       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15979     fi
15980   fi
15981 
15982   # Replace the commas with AND for use in the build directory name.
15983   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15984   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/'`
15985   if test "x$COUNT_VARIANTS" != "x,1"; then
15986     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15987   else
15988     BUILDING_MULTIPLE_JVM_VARIANTS=no
15989   fi
15990 
15991   if test "x$JVM_VARIANT_ZERO" = xtrue && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xyes; then
15992     as_fn_error $? "You cannot build multiple variants with zero." "$LINENO" 5
15993   fi
15994 
15995 
15996 
15997 
15998 
15999 
16000 
16001 
16002 
16003   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
16004     MACOSX_UNIVERSAL="true"
16005   fi
16006 
16007 
16008 
16009 
16010   DEBUG_LEVEL="release"
16011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16012 $as_echo_n "checking which debug level to use... " >&6; }
16013   # Check whether --enable-debug was given.
16014 if test "${enable_debug+set}" = set; then :
16015   enableval=$enable_debug;
16016         ENABLE_DEBUG="${enableval}"
16017         DEBUG_LEVEL="fastdebug"
16018 
16019 else
16020   ENABLE_DEBUG="no"
16021 fi
16022 
16023 
16024 
16025 # Check whether --with-debug-level was given.
16026 if test "${with_debug_level+set}" = set; then :
16027   withval=$with_debug_level;
16028         DEBUG_LEVEL="${withval}"
16029         if test "x$ENABLE_DEBUG" = xyes; then
16030           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16031         fi
16032 
16033 fi
16034 
16035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16036 $as_echo "$DEBUG_LEVEL" >&6; }
16037 
16038   if test "x$DEBUG_LEVEL" != xrelease && \
16039       test "x$DEBUG_LEVEL" != xoptimized && \
16040       test "x$DEBUG_LEVEL" != xfastdebug && \
16041       test "x$DEBUG_LEVEL" != xslowdebug; then
16042     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16043   fi
16044 
16045 
16046   case $DEBUG_LEVEL in
16047     release )
16048       VARIANT="OPT"
16049       FASTDEBUG="false"
16050       DEBUG_CLASSFILES="false"
16051       BUILD_VARIANT_RELEASE=""
16052       HOTSPOT_DEBUG_LEVEL="product"
16053       HOTSPOT_EXPORT="product"
16054       ;;
16055     fastdebug )
16056       VARIANT="DBG"
16057       FASTDEBUG="true"
16058       DEBUG_CLASSFILES="true"
16059       BUILD_VARIANT_RELEASE="-fastdebug"
16060       HOTSPOT_DEBUG_LEVEL="fastdebug"
16061       HOTSPOT_EXPORT="fastdebug"
16062       ;;
16063     slowdebug )
16064       VARIANT="DBG"
16065       FASTDEBUG="false"
16066       DEBUG_CLASSFILES="true"
16067       BUILD_VARIANT_RELEASE="-debug"
16068       HOTSPOT_DEBUG_LEVEL="debug"
16069       HOTSPOT_EXPORT="debug"
16070       ;;
16071     optimized )
16072       VARIANT="OPT"
16073       FASTDEBUG="false"
16074       DEBUG_CLASSFILES="false"
16075       BUILD_VARIANT_RELEASE="-optimized"
16076       HOTSPOT_DEBUG_LEVEL="optimized"
16077       HOTSPOT_EXPORT="optimized"
16078       ;;
16079   esac
16080 
16081   # The debug level 'optimized' is a little special because it is currently only
16082   # applicable to the HotSpot build where it means to build a completely
16083   # optimized version of the VM without any debugging code (like for the
16084   # 'release' debug level which is called 'product' in the HotSpot build) but
16085   # with the exception that it can contain additional code which is otherwise
16086   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16087   # test new and/or experimental features which are not intended for customer
16088   # shipment. Because these new features need to be tested and benchmarked in
16089   # real world scenarios, we want to build the containing JDK at the 'release'
16090   # debug level.
16091   if test "x$DEBUG_LEVEL" = xoptimized; then
16092     DEBUG_LEVEL="release"
16093   fi
16094 
16095   #####
16096   # Generate the legacy makefile targets for hotspot.
16097   # The hotspot api for selecting the build artifacts, really, needs to be improved.
16098   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
16099   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
16100   # But until then ...
16101   HOTSPOT_TARGET=""
16102 
16103   if test "x$JVM_VARIANT_SERVER" = xtrue; then
16104     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
16105   fi
16106 
16107   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
16108     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
16109   fi
16110 
16111   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
16112     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
16113   fi
16114 
16115   if test "x$JVM_VARIANT_ZERO" = xtrue; then
16116     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
16117   fi
16118 
16119   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
16120     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
16121   fi
16122 
16123   if test "x$JVM_VARIANT_CORE" = xtrue; then
16124     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
16125   fi
16126 
16127   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
16128 
16129   # On Macosx universal binaries are produced, but they only contain
16130   # 64 bit intel. This invalidates control of which jvms are built
16131   # from configure, but only server is valid anyway. Fix this
16132   # when hotspot makefiles are rewritten.
16133   if test "x$MACOSX_UNIVERSAL" = xtrue; then
16134     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
16135   fi
16136 
16137   #####
16138 
16139 
16140 
16141 
16142 
16143 
16144 
16145 
16146 # With basic setup done, call the custom early hook.
16147 
16148 
16149 # Check if we have devkits, extra paths or sysroot set.
16150 
16151 
16152 # Check whether --with-devkit was given.
16153 if test "${with_devkit+set}" = set; then :
16154   withval=$with_devkit;
16155 
16156   # Only process if variable expands to non-empty
16157 
16158   if test "x$with_devkit" != x; then
16159     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16160 
16161   # Input might be given as Windows format, start by converting to
16162   # unix format.
16163   path="$with_devkit"
16164   new_path=`$CYGPATH -u "$path"`
16165 
16166   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16167   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16168   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16169   # "foo.exe" is OK but "foo" is an error.
16170   #
16171   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16172   # It is also a way to make sure we got the proper file name for the real test later on.
16173   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16174   if test "x$test_shortpath" = x; then
16175     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16176 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16177     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16178   fi
16179 
16180   # Call helper function which possibly converts this using DOS-style short mode.
16181   # If so, the updated path is stored in $new_path.
16182 
16183   input_path="$new_path"
16184   # Check if we need to convert this using DOS-style short mode. If the path
16185   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16186   # take no chances and rewrite it.
16187   # Note: m4 eats our [], so we need to use [ and ] instead.
16188   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16189   if test "x$has_forbidden_chars" != x; then
16190     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16191     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16192     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16193     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16194       # Going to short mode and back again did indeed matter. Since short mode is
16195       # case insensitive, let's make it lowercase to improve readability.
16196       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16197       # Now convert it back to Unix-style (cygpath)
16198       input_path=`$CYGPATH -u "$shortmode_path"`
16199       new_path="$input_path"
16200     fi
16201   fi
16202 
16203   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16204   if test "x$test_cygdrive_prefix" = x; then
16205     # As a simple fix, exclude /usr/bin since it's not a real path.
16206     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16207       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16208       # a path prefixed by /cygdrive for fixpath to work.
16209       new_path="$CYGWIN_ROOT_PATH$input_path"
16210     fi
16211   fi
16212 
16213 
16214   if test "x$path" != "x$new_path"; then
16215     with_devkit="$new_path"
16216     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16217 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16218   fi
16219 
16220     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16221 
16222   path="$with_devkit"
16223   has_colon=`$ECHO $path | $GREP ^.:`
16224   new_path="$path"
16225   if test "x$has_colon" = x; then
16226     # Not in mixed or Windows style, start by that.
16227     new_path=`cmd //c echo $path`
16228   fi
16229 
16230 
16231   input_path="$new_path"
16232   # Check if we need to convert this using DOS-style short mode. If the path
16233   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16234   # take no chances and rewrite it.
16235   # Note: m4 eats our [], so we need to use [ and ] instead.
16236   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16237   if test "x$has_forbidden_chars" != x; then
16238     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16239     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16240   fi
16241 
16242 
16243   windows_path="$new_path"
16244   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16245     unix_path=`$CYGPATH -u "$windows_path"`
16246     new_path="$unix_path"
16247   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16248     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16249     new_path="$unix_path"
16250   fi
16251 
16252   if test "x$path" != "x$new_path"; then
16253     with_devkit="$new_path"
16254     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16255 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16256   fi
16257 
16258   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16259   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16260 
16261     else
16262       # We're on a unix platform. Hooray! :)
16263       path="$with_devkit"
16264       has_space=`$ECHO "$path" | $GREP " "`
16265       if test "x$has_space" != x; then
16266         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16267 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16268         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16269       fi
16270 
16271       # Use eval to expand a potential ~
16272       eval path="$path"
16273       if test ! -f "$path" && test ! -d "$path"; then
16274         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16275       fi
16276 
16277       if test -d "$path"; then
16278         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16279       else
16280         dir="`$DIRNAME "$path"`"
16281         base="`$BASENAME "$path"`"
16282         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16283       fi
16284     fi
16285   fi
16286 
16287         DEVKIT_ROOT="$with_devkit"
16288         # Check for a meta data info file in the root of the devkit
16289         if test -f "$DEVKIT_ROOT/devkit.info"; then
16290           . $DEVKIT_ROOT/devkit.info
16291           # This potentially sets the following:
16292           # A descriptive name of the devkit
16293 
16294   if test "x$DEVKIT_NAME" = x; then
16295     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16296   fi
16297 
16298           # Corresponds to --with-extra-path
16299 
16300   if test "x$DEVKIT_EXTRA_PATH" = x; then
16301     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16302   fi
16303 
16304           # Corresponds to --with-toolchain-path
16305 
16306   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16307     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16308   fi
16309 
16310           # Corresponds to --with-sysroot
16311 
16312   if test "x$DEVKIT_SYSROOT" = x; then
16313     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16314   fi
16315 
16316 
16317           # Identifies the Visual Studio version in the devkit
16318 
16319   if test "x$DEVKIT_VS_VERSION" = x; then
16320     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16321   fi
16322 
16323           # The Visual Studio include environment variable
16324 
16325   if test "x$DEVKIT_VS_INCLUDE" = x; then
16326     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16327   fi
16328 
16329           # The Visual Studio lib environment variable
16330 
16331   if test "x$DEVKIT_VS_LIB" = x; then
16332     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16333   fi
16334 
16335           # Corresponds to --with-msvcr-dll
16336 
16337   if test "x$DEVKIT_MSVCR_DLL" = x; then
16338     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16339   fi
16340 
16341           # Corresponds to --with-msvcp-dll
16342 
16343   if test "x$DEVKIT_MSVCP_DLL" = x; then
16344     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16345   fi
16346 
16347         fi
16348 
16349         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16350 $as_echo_n "checking for devkit... " >&6; }
16351         if test "x$DEVKIT_NAME" != x; then
16352           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16353 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16354         else
16355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16356 $as_echo "$DEVKIT_ROOT" >&6; }
16357         fi
16358 
16359 
16360   if test "x$DEVKIT_EXTRA_PATH" != x; then
16361     if test "x$EXTRA_PATH" = x; then
16362       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16363     else
16364       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16365     fi
16366   fi
16367 
16368 
16369         # Fallback default of just /bin if DEVKIT_PATH is not defined
16370         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16371           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16372         fi
16373 
16374   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16375     if test "x$TOOLCHAIN_PATH" = x; then
16376       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16377     else
16378       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16379     fi
16380   fi
16381 
16382 
16383         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16384         # places for backwards compatiblity.
16385         if test "x$DEVKIT_SYSROOT" != x; then
16386           SYSROOT="$DEVKIT_SYSROOT"
16387         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16388           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16389         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16390           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16391         fi
16392 
16393 
16394 fi
16395 
16396 
16397   # You can force the sysroot if the sysroot encoded into the compiler tools
16398   # is not correct.
16399 
16400 # Check whether --with-sys-root was given.
16401 if test "${with_sys_root+set}" = set; then :
16402   withval=$with_sys_root; SYSROOT=$with_sys_root
16403 
16404 fi
16405 
16406 
16407 
16408 # Check whether --with-sysroot was given.
16409 if test "${with_sysroot+set}" = set; then :
16410   withval=$with_sysroot; SYSROOT=$with_sysroot
16411 
16412 fi
16413 
16414 
16415 
16416 # Check whether --with-tools-dir was given.
16417 if test "${with_tools_dir+set}" = set; then :
16418   withval=$with_tools_dir;
16419   if test "x$with_tools_dir" != x; then
16420     if test "x$TOOLCHAIN_PATH" = x; then
16421       TOOLCHAIN_PATH="$with_tools_dir"
16422     else
16423       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16424     fi
16425   fi
16426 
16427 
16428 fi
16429 
16430 
16431 
16432 # Check whether --with-toolchain-path was given.
16433 if test "${with_toolchain_path+set}" = set; then :
16434   withval=$with_toolchain_path;
16435   if test "x$with_toolchain_path" != x; then
16436     if test "x$TOOLCHAIN_PATH" = x; then
16437       TOOLCHAIN_PATH="$with_toolchain_path"
16438     else
16439       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16440     fi
16441   fi
16442 
16443 
16444 fi
16445 
16446 
16447 
16448 # Check whether --with-extra-path was given.
16449 if test "${with_extra_path+set}" = set; then :
16450   withval=$with_extra_path;
16451   if test "x$with_extra_path" != x; then
16452     if test "x$EXTRA_PATH" = x; then
16453       EXTRA_PATH="$with_extra_path"
16454     else
16455       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16456     fi
16457   fi
16458 
16459 
16460 fi
16461 
16462 
16463   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16464     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16465     # If not, detect if Xcode is installed by running xcodebuild -version
16466     # if no Xcode installed, xcodebuild exits with 1
16467     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16468     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16469       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16470       # fall back on the stub binary in /usr/bin/xcodebuild
16471       # Extract the first word of "xcodebuild", so it can be a program name with args.
16472 set dummy xcodebuild; ac_word=$2
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16474 $as_echo_n "checking for $ac_word... " >&6; }
16475 if ${ac_cv_path_XCODEBUILD+:} false; then :
16476   $as_echo_n "(cached) " >&6
16477 else
16478   case $XCODEBUILD in
16479   [\\/]* | ?:[\\/]*)
16480   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16481   ;;
16482   *)
16483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $TOOLCHAIN_PATH
16485 do
16486   IFS=$as_save_IFS
16487   test -z "$as_dir" && as_dir=.
16488     for ac_exec_ext in '' $ac_executable_extensions; do
16489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492     break 2
16493   fi
16494 done
16495   done
16496 IFS=$as_save_IFS
16497 
16498   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16499   ;;
16500 esac
16501 fi
16502 XCODEBUILD=$ac_cv_path_XCODEBUILD
16503 if test -n "$XCODEBUILD"; then
16504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16505 $as_echo "$XCODEBUILD" >&6; }
16506 else
16507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16508 $as_echo "no" >&6; }
16509 fi
16510 
16511 
16512     else
16513       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16514       # when only the command line tools are installed there are no SDKs, so headers
16515       # are copied into the system frameworks
16516       XCODEBUILD=
16517 
16518     fi
16519 
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16521 $as_echo_n "checking for sdk name... " >&6; }
16522 
16523 # Check whether --with-sdk-name was given.
16524 if test "${with_sdk_name+set}" = set; then :
16525   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16526 
16527 fi
16528 
16529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16530 $as_echo "$SDKNAME" >&6; }
16531 
16532     # if toolchain path is specified then don't rely on system headers, they may not compile
16533     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16534     test -z "$TOOLCHAIN_PATH" && \
16535       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16536 
16537     if test -z "$SYSROOT"; then
16538       if test -n "$XCODEBUILD"; then
16539         # if we don't have system headers, use default SDK name (last resort)
16540         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16541           SDKNAME=${SDKNAME:-macosx}
16542         fi
16543 
16544         if test -n "$SDKNAME"; then
16545           # Call xcodebuild to determine SYSROOT
16546           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16547         fi
16548       else
16549         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16550           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
16551         fi
16552       fi
16553     else
16554       # warn user if --with-sdk-name was also set
16555       if test -n "$with_sdk_name"; then
16556         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16557 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16558       fi
16559     fi
16560 
16561     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16562       # If no system framework headers, then SYSROOT must be set, or we won't build
16563       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
16564     fi
16565 
16566     # Perform a basic sanity test
16567     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16568       if test -z "$SYSROOT"; then
16569         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
16570       else
16571         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16572       fi
16573     fi
16574 
16575     # set SDKROOT too, Xcode tools will pick it up
16576     SDKROOT=$SYSROOT
16577 
16578   fi
16579 
16580   # Prepend the extra path to the global path
16581 
16582   if test "x$EXTRA_PATH" != x; then
16583     if test "x$PATH" = x; then
16584       PATH="$EXTRA_PATH"
16585     else
16586       PATH="$EXTRA_PATH:$PATH"
16587     fi
16588   fi
16589 
16590 
16591   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16592     # Add extra search paths on solaris for utilities like ar and as etc...
16593     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16594   fi
16595 
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16597 $as_echo_n "checking for sysroot... " >&6; }
16598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16599 $as_echo "$SYSROOT" >&6; }
16600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16601 $as_echo_n "checking for toolchain path... " >&6; }
16602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16603 $as_echo "$TOOLCHAIN_PATH" >&6; }
16604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16605 $as_echo_n "checking for extra path... " >&6; }
16606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16607 $as_echo "$EXTRA_PATH" >&6; }
16608 
16609 
16610 # To properly create a configuration name, we need to have the OpenJDK target
16611 # and options (variants and debug level) parsed.
16612 
16613 
16614 
16615 # Check whether --with-conf-name was given.
16616 if test "${with_conf_name+set}" = set; then :
16617   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16618 fi
16619 
16620 
16621   # Test from where we are running configure, in or outside of src root.
16622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16623 $as_echo_n "checking where to store configuration... " >&6; }
16624   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16625       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16626       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16627     # We are running configure from the src root.
16628     # Create a default ./build/target-variant-debuglevel output root.
16629     if test "x${CONF_NAME}" = x; then
16630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16631 $as_echo "in default location" >&6; }
16632       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16633     else
16634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16635 $as_echo "in build directory with custom name" >&6; }
16636     fi
16637     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16638     $MKDIR -p "$OUTPUT_ROOT"
16639     if test ! -d "$OUTPUT_ROOT"; then
16640       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16641     fi
16642   else
16643     # We are running configure from outside of the src dir.
16644     # Then use the current directory as output dir!
16645     # If configuration is situated in normal build directory, just use the build
16646     # directory name as configuration name, otherwise use the complete path.
16647     if test "x${CONF_NAME}" = x; then
16648       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16649     fi
16650     OUTPUT_ROOT="$CURDIR"
16651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16652 $as_echo "in current directory" >&6; }
16653 
16654     # WARNING: This might be a bad thing to do. You need to be sure you want to
16655     # have a configuration in this directory. Do some sanity checks!
16656 
16657     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16658       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16659       # other files
16660       files_present=`$LS $OUTPUT_ROOT`
16661       # Configure has already touched config.log and confdefs.h in the current dir when this check
16662       # is performed.
16663       filtered_files=`$ECHO "$files_present" \
16664           | $SED -e 's/config.log//g' \
16665               -e 's/configure.log//g' \
16666               -e 's/confdefs.h//g' \
16667               -e 's/ //g' \
16668           | $TR -d '\n'`
16669       if test "x$filtered_files" != x; then
16670         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16671 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16672         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16673 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16674         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16675 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16676         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16677 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16678         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16679 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16680         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16681 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16682         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16683 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16684         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16685       fi
16686     fi
16687   fi
16688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16689 $as_echo_n "checking what configuration name to use... " >&6; }
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16691 $as_echo "$CONF_NAME" >&6; }
16692 
16693 
16694   # Only process if variable expands to non-empty
16695 
16696   if test "x$OUTPUT_ROOT" != x; then
16697     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16698 
16699   # Input might be given as Windows format, start by converting to
16700   # unix format.
16701   path="$OUTPUT_ROOT"
16702   new_path=`$CYGPATH -u "$path"`
16703 
16704   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16705   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16706   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16707   # "foo.exe" is OK but "foo" is an error.
16708   #
16709   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16710   # It is also a way to make sure we got the proper file name for the real test later on.
16711   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16712   if test "x$test_shortpath" = x; then
16713     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16714 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16715     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16716   fi
16717 
16718   # Call helper function which possibly converts this using DOS-style short mode.
16719   # If so, the updated path is stored in $new_path.
16720 
16721   input_path="$new_path"
16722   # Check if we need to convert this using DOS-style short mode. If the path
16723   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16724   # take no chances and rewrite it.
16725   # Note: m4 eats our [], so we need to use [ and ] instead.
16726   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16727   if test "x$has_forbidden_chars" != x; then
16728     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16729     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16730     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16731     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16732       # Going to short mode and back again did indeed matter. Since short mode is
16733       # case insensitive, let's make it lowercase to improve readability.
16734       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16735       # Now convert it back to Unix-style (cygpath)
16736       input_path=`$CYGPATH -u "$shortmode_path"`
16737       new_path="$input_path"
16738     fi
16739   fi
16740 
16741   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16742   if test "x$test_cygdrive_prefix" = x; then
16743     # As a simple fix, exclude /usr/bin since it's not a real path.
16744     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16745       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16746       # a path prefixed by /cygdrive for fixpath to work.
16747       new_path="$CYGWIN_ROOT_PATH$input_path"
16748     fi
16749   fi
16750 
16751 
16752   if test "x$path" != "x$new_path"; then
16753     OUTPUT_ROOT="$new_path"
16754     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16755 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16756   fi
16757 
16758     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16759 
16760   path="$OUTPUT_ROOT"
16761   has_colon=`$ECHO $path | $GREP ^.:`
16762   new_path="$path"
16763   if test "x$has_colon" = x; then
16764     # Not in mixed or Windows style, start by that.
16765     new_path=`cmd //c echo $path`
16766   fi
16767 
16768 
16769   input_path="$new_path"
16770   # Check if we need to convert this using DOS-style short mode. If the path
16771   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16772   # take no chances and rewrite it.
16773   # Note: m4 eats our [], so we need to use [ and ] instead.
16774   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16775   if test "x$has_forbidden_chars" != x; then
16776     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16777     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16778   fi
16779 
16780 
16781   windows_path="$new_path"
16782   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16783     unix_path=`$CYGPATH -u "$windows_path"`
16784     new_path="$unix_path"
16785   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16786     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16787     new_path="$unix_path"
16788   fi
16789 
16790   if test "x$path" != "x$new_path"; then
16791     OUTPUT_ROOT="$new_path"
16792     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16793 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16794   fi
16795 
16796   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16797   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16798 
16799     else
16800       # We're on a unix platform. Hooray! :)
16801       path="$OUTPUT_ROOT"
16802       has_space=`$ECHO "$path" | $GREP " "`
16803       if test "x$has_space" != x; then
16804         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16805 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16806         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16807       fi
16808 
16809       # Use eval to expand a potential ~
16810       eval path="$path"
16811       if test ! -f "$path" && test ! -d "$path"; then
16812         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16813       fi
16814 
16815       if test -d "$path"; then
16816         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16817       else
16818         dir="`$DIRNAME "$path"`"
16819         base="`$BASENAME "$path"`"
16820         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
16821       fi
16822     fi
16823   fi
16824 
16825 
16826   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16827   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16828 
16829   SPEC=$OUTPUT_ROOT/spec.gmk
16830 
16831   CONF_NAME=$CONF_NAME
16832 
16833   OUTPUT_ROOT=$OUTPUT_ROOT
16834 
16835 
16836 
16837   # The spec.gmk file contains all variables for the make system.
16838   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16839 
16840   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16841   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16842 
16843   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16844   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16845 
16846   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
16847   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
16848 
16849   # The compare.sh is used to compare the build output to other builds.
16850   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16851 
16852   # The generated Makefile knows where the spec.gmk is and where the source is.
16853   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16854   # which will look for generated configurations
16855   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16856 
16857 
16858 
16859 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16860 
16861   for ac_prog in apt-get yum port pkgutil pkgadd
16862 do
16863   # Extract the first word of "$ac_prog", so it can be a program name with args.
16864 set dummy $ac_prog; ac_word=$2
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16866 $as_echo_n "checking for $ac_word... " >&6; }
16867 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16868   $as_echo_n "(cached) " >&6
16869 else
16870   if test -n "$PKGHANDLER"; then
16871   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16872 else
16873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16874 for as_dir in $PATH
16875 do
16876   IFS=$as_save_IFS
16877   test -z "$as_dir" && as_dir=.
16878     for ac_exec_ext in '' $ac_executable_extensions; do
16879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16880     ac_cv_prog_PKGHANDLER="$ac_prog"
16881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16882     break 2
16883   fi
16884 done
16885   done
16886 IFS=$as_save_IFS
16887 
16888 fi
16889 fi
16890 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16891 if test -n "$PKGHANDLER"; then
16892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16893 $as_echo "$PKGHANDLER" >&6; }
16894 else
16895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897 fi
16898 
16899 
16900   test -n "$PKGHANDLER" && break
16901 done
16902 
16903 
16904 
16905 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16906 
16907 
16908 
16909   # Publish this variable in the help.
16910 
16911 
16912   if [ -z "${MAKE+x}" ]; then
16913     # The variable is not set by user, try to locate tool using the code snippet
16914 
16915     # Try our hardest to locate a correct version of GNU make
16916     for ac_prog in gmake
16917 do
16918   # Extract the first word of "$ac_prog", so it can be a program name with args.
16919 set dummy $ac_prog; ac_word=$2
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16921 $as_echo_n "checking for $ac_word... " >&6; }
16922 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16923   $as_echo_n "(cached) " >&6
16924 else
16925   case $CHECK_GMAKE in
16926   [\\/]* | ?:[\\/]*)
16927   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16928   ;;
16929   *)
16930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16931 for as_dir in $PATH
16932 do
16933   IFS=$as_save_IFS
16934   test -z "$as_dir" && as_dir=.
16935     for ac_exec_ext in '' $ac_executable_extensions; do
16936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16937     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16939     break 2
16940   fi
16941 done
16942   done
16943 IFS=$as_save_IFS
16944 
16945   ;;
16946 esac
16947 fi
16948 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16949 if test -n "$CHECK_GMAKE"; then
16950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16951 $as_echo "$CHECK_GMAKE" >&6; }
16952 else
16953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954 $as_echo "no" >&6; }
16955 fi
16956 
16957 
16958   test -n "$CHECK_GMAKE" && break
16959 done
16960 
16961 
16962   MAKE_CANDIDATE=""$CHECK_GMAKE""
16963   DESCRIPTION="gmake in PATH"
16964 
16965   # On Cygwin, we require a newer version of make than on other platforms
16966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16967     MAKE_VERSION_EXPR="-e 4\."
16968     MAKE_REQUIRED_VERSION="4.0"
16969    else
16970     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16971     MAKE_REQUIRED_VERSION="3.81"
16972   fi
16973 
16974   if test "x$MAKE_CANDIDATE" != x; then
16975     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16976 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16977     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16978     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16979     if test "x$IS_GNU_MAKE" = x; then
16980       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16981 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16982     else
16983       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16984       if test "x$IS_MODERN_MAKE" = x; then
16985         { $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
16986 $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;}
16987       else
16988         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16989           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16990             MAKE_EXPECTED_ENV='cygwin'
16991           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16992             MAKE_EXPECTED_ENV='msys'
16993           else
16994             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16995           fi
16996           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16997           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16998         else
16999           # Not relevant for non-Windows
17000           IS_MAKE_CORRECT_ENV=true
17001         fi
17002         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17003           { $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
17004 $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;}
17005         else
17006           FOUND_MAKE=$MAKE_CANDIDATE
17007 
17008   # Only process if variable expands to non-empty
17009 
17010   if test "x$FOUND_MAKE" != x; then
17011     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17012 
17013   # First separate the path from the arguments. This will split at the first
17014   # space.
17015   complete="$FOUND_MAKE"
17016   path="${complete%% *}"
17017   tmp="$complete EOL"
17018   arguments="${tmp#* }"
17019 
17020   # Input might be given as Windows format, start by converting to
17021   # unix format.
17022   new_path=`$CYGPATH -u "$path"`
17023 
17024   # Now try to locate executable using which
17025   new_path=`$WHICH "$new_path" 2> /dev/null`
17026   # bat and cmd files are not always considered executable in cygwin causing which
17027   # to not find them
17028   if test "x$new_path" = x \
17029       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17030       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17031     new_path=`$CYGPATH -u "$path"`
17032   fi
17033   if test "x$new_path" = x; then
17034     # Oops. Which didn't find the executable.
17035     # The splitting of arguments from the executable at a space might have been incorrect,
17036     # since paths with space are more likely in Windows. Give it another try with the whole
17037     # argument.
17038     path="$complete"
17039     arguments="EOL"
17040     new_path=`$CYGPATH -u "$path"`
17041     new_path=`$WHICH "$new_path" 2> /dev/null`
17042     # bat and cmd files are not always considered executable in cygwin causing which
17043     # to not find them
17044     if test "x$new_path" = x \
17045         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17046         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17047       new_path=`$CYGPATH -u "$path"`
17048     fi
17049     if test "x$new_path" = x; then
17050       # It's still not found. Now this is an unrecoverable error.
17051       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17052 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17053       has_space=`$ECHO "$complete" | $GREP " "`
17054       if test "x$has_space" != x; then
17055         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17057       fi
17058       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17059     fi
17060   fi
17061 
17062   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17063   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17064   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17065   # "foo.exe" is OK but "foo" is an error.
17066   #
17067   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17068   # It is also a way to make sure we got the proper file name for the real test later on.
17069   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17070   if test "x$test_shortpath" = x; then
17071     # Short path failed, file does not exist as specified.
17072     # Try adding .exe or .cmd
17073     if test -f "${new_path}.exe"; then
17074       input_to_shortpath="${new_path}.exe"
17075     elif test -f "${new_path}.cmd"; then
17076       input_to_shortpath="${new_path}.cmd"
17077     else
17078       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17079 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17080       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17082       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17083     fi
17084   else
17085     input_to_shortpath="$new_path"
17086   fi
17087 
17088   # Call helper function which possibly converts this using DOS-style short mode.
17089   # If so, the updated path is stored in $new_path.
17090   new_path="$input_to_shortpath"
17091 
17092   input_path="$input_to_shortpath"
17093   # Check if we need to convert this using DOS-style short mode. If the path
17094   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17095   # take no chances and rewrite it.
17096   # Note: m4 eats our [], so we need to use [ and ] instead.
17097   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17098   if test "x$has_forbidden_chars" != x; then
17099     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17100     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17101     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17102     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17103       # Going to short mode and back again did indeed matter. Since short mode is
17104       # case insensitive, let's make it lowercase to improve readability.
17105       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17106       # Now convert it back to Unix-style (cygpath)
17107       input_path=`$CYGPATH -u "$shortmode_path"`
17108       new_path="$input_path"
17109     fi
17110   fi
17111 
17112   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17113   if test "x$test_cygdrive_prefix" = x; then
17114     # As a simple fix, exclude /usr/bin since it's not a real path.
17115     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17116       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17117       # a path prefixed by /cygdrive for fixpath to work.
17118       new_path="$CYGWIN_ROOT_PATH$input_path"
17119     fi
17120   fi
17121 
17122   # remove trailing .exe if any
17123   new_path="${new_path/%.exe/}"
17124 
17125     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17126 
17127   # First separate the path from the arguments. This will split at the first
17128   # space.
17129   complete="$FOUND_MAKE"
17130   path="${complete%% *}"
17131   tmp="$complete EOL"
17132   arguments="${tmp#* }"
17133 
17134   # Input might be given as Windows format, start by converting to
17135   # unix format.
17136   new_path="$path"
17137 
17138   windows_path="$new_path"
17139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17140     unix_path=`$CYGPATH -u "$windows_path"`
17141     new_path="$unix_path"
17142   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17143     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17144     new_path="$unix_path"
17145   fi
17146 
17147 
17148   # Now try to locate executable using which
17149   new_path=`$WHICH "$new_path" 2> /dev/null`
17150 
17151   if test "x$new_path" = x; then
17152     # Oops. Which didn't find the executable.
17153     # The splitting of arguments from the executable at a space might have been incorrect,
17154     # since paths with space are more likely in Windows. Give it another try with the whole
17155     # argument.
17156     path="$complete"
17157     arguments="EOL"
17158     new_path="$path"
17159 
17160   windows_path="$new_path"
17161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17162     unix_path=`$CYGPATH -u "$windows_path"`
17163     new_path="$unix_path"
17164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17166     new_path="$unix_path"
17167   fi
17168 
17169 
17170     new_path=`$WHICH "$new_path" 2> /dev/null`
17171     # bat and cmd files are not always considered executable in MSYS causing which
17172     # to not find them
17173     if test "x$new_path" = x \
17174         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17175         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17176       new_path="$path"
17177 
17178   windows_path="$new_path"
17179   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17180     unix_path=`$CYGPATH -u "$windows_path"`
17181     new_path="$unix_path"
17182   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17183     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17184     new_path="$unix_path"
17185   fi
17186 
17187     fi
17188 
17189     if test "x$new_path" = x; then
17190       # It's still not found. Now this is an unrecoverable error.
17191       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17192 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17193       has_space=`$ECHO "$complete" | $GREP " "`
17194       if test "x$has_space" != x; then
17195         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17197       fi
17198       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17199     fi
17200   fi
17201 
17202   # Now new_path has a complete unix path to the binary
17203   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17204     # Keep paths in /bin as-is, but remove trailing .exe if any
17205     new_path="${new_path/%.exe/}"
17206     # Do not save /bin paths to all_fixpath_prefixes!
17207   else
17208     # Not in mixed or Windows style, start by that.
17209     new_path=`cmd //c echo $new_path`
17210 
17211   input_path="$new_path"
17212   # Check if we need to convert this using DOS-style short mode. If the path
17213   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17214   # take no chances and rewrite it.
17215   # Note: m4 eats our [], so we need to use [ and ] instead.
17216   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17217   if test "x$has_forbidden_chars" != x; then
17218     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17219     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17220   fi
17221 
17222     # Output is in $new_path
17223 
17224   windows_path="$new_path"
17225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17226     unix_path=`$CYGPATH -u "$windows_path"`
17227     new_path="$unix_path"
17228   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17229     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17230     new_path="$unix_path"
17231   fi
17232 
17233     # remove trailing .exe if any
17234     new_path="${new_path/%.exe/}"
17235 
17236     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17237     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17238   fi
17239 
17240     else
17241       # We're on a unix platform. Hooray! :)
17242       # First separate the path from the arguments. This will split at the first
17243       # space.
17244       complete="$FOUND_MAKE"
17245       path="${complete%% *}"
17246       tmp="$complete EOL"
17247       arguments="${tmp#* }"
17248 
17249       # Cannot rely on the command "which" here since it doesn't always work.
17250       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17251       if test -z "$is_absolute_path"; then
17252         # Path to executable is not absolute. Find it.
17253         IFS_save="$IFS"
17254         IFS=:
17255         for p in $PATH; do
17256           if test -f "$p/$path" && test -x "$p/$path"; then
17257             new_path="$p/$path"
17258             break
17259           fi
17260         done
17261         IFS="$IFS_save"
17262       else
17263         # This is an absolute path, we can use it without further modifications.
17264         new_path="$path"
17265       fi
17266 
17267       if test "x$new_path" = x; then
17268         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17269 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17270         has_space=`$ECHO "$complete" | $GREP " "`
17271         if test "x$has_space" != x; then
17272           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17273 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17274         fi
17275         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17276       fi
17277     fi
17278 
17279     # Now join together the path and the arguments once again
17280     if test "x$arguments" != xEOL; then
17281       new_complete="$new_path ${arguments% *}"
17282     else
17283       new_complete="$new_path"
17284     fi
17285 
17286     if test "x$complete" != "x$new_complete"; then
17287       FOUND_MAKE="$new_complete"
17288       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17289 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17290     fi
17291   fi
17292 
17293         fi
17294       fi
17295     fi
17296   fi
17297 
17298 
17299     if test "x$FOUND_MAKE" = x; then
17300       for ac_prog in make
17301 do
17302   # Extract the first word of "$ac_prog", so it can be a program name with args.
17303 set dummy $ac_prog; ac_word=$2
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17305 $as_echo_n "checking for $ac_word... " >&6; }
17306 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17307   $as_echo_n "(cached) " >&6
17308 else
17309   case $CHECK_MAKE in
17310   [\\/]* | ?:[\\/]*)
17311   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17312   ;;
17313   *)
17314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17315 for as_dir in $PATH
17316 do
17317   IFS=$as_save_IFS
17318   test -z "$as_dir" && as_dir=.
17319     for ac_exec_ext in '' $ac_executable_extensions; do
17320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17321     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17323     break 2
17324   fi
17325 done
17326   done
17327 IFS=$as_save_IFS
17328 
17329   ;;
17330 esac
17331 fi
17332 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17333 if test -n "$CHECK_MAKE"; then
17334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17335 $as_echo "$CHECK_MAKE" >&6; }
17336 else
17337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17338 $as_echo "no" >&6; }
17339 fi
17340 
17341 
17342   test -n "$CHECK_MAKE" && break
17343 done
17344 
17345 
17346   MAKE_CANDIDATE=""$CHECK_MAKE""
17347   DESCRIPTION="make in PATH"
17348 
17349   # On Cygwin, we require a newer version of make than on other platforms
17350   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17351     MAKE_VERSION_EXPR="-e 4\."
17352     MAKE_REQUIRED_VERSION="4.0"
17353    else
17354     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17355     MAKE_REQUIRED_VERSION="3.81"
17356   fi
17357 
17358   if test "x$MAKE_CANDIDATE" != x; then
17359     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17360 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17361     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17362     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17363     if test "x$IS_GNU_MAKE" = x; then
17364       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17365 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17366     else
17367       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17368       if test "x$IS_MODERN_MAKE" = x; then
17369         { $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
17370 $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;}
17371       else
17372         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17373           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17374             MAKE_EXPECTED_ENV='cygwin'
17375           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17376             MAKE_EXPECTED_ENV='msys'
17377           else
17378             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17379           fi
17380           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17381           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17382         else
17383           # Not relevant for non-Windows
17384           IS_MAKE_CORRECT_ENV=true
17385         fi
17386         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17387           { $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
17388 $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;}
17389         else
17390           FOUND_MAKE=$MAKE_CANDIDATE
17391 
17392   # Only process if variable expands to non-empty
17393 
17394   if test "x$FOUND_MAKE" != x; then
17395     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17396 
17397   # First separate the path from the arguments. This will split at the first
17398   # space.
17399   complete="$FOUND_MAKE"
17400   path="${complete%% *}"
17401   tmp="$complete EOL"
17402   arguments="${tmp#* }"
17403 
17404   # Input might be given as Windows format, start by converting to
17405   # unix format.
17406   new_path=`$CYGPATH -u "$path"`
17407 
17408   # Now try to locate executable using which
17409   new_path=`$WHICH "$new_path" 2> /dev/null`
17410   # bat and cmd files are not always considered executable in cygwin causing which
17411   # to not find them
17412   if test "x$new_path" = x \
17413       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17414       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17415     new_path=`$CYGPATH -u "$path"`
17416   fi
17417   if test "x$new_path" = x; then
17418     # Oops. Which didn't find the executable.
17419     # The splitting of arguments from the executable at a space might have been incorrect,
17420     # since paths with space are more likely in Windows. Give it another try with the whole
17421     # argument.
17422     path="$complete"
17423     arguments="EOL"
17424     new_path=`$CYGPATH -u "$path"`
17425     new_path=`$WHICH "$new_path" 2> /dev/null`
17426     # bat and cmd files are not always considered executable in cygwin causing which
17427     # to not find them
17428     if test "x$new_path" = x \
17429         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17430         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17431       new_path=`$CYGPATH -u "$path"`
17432     fi
17433     if test "x$new_path" = x; then
17434       # It's still not found. Now this is an unrecoverable error.
17435       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17436 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17437       has_space=`$ECHO "$complete" | $GREP " "`
17438       if test "x$has_space" != x; then
17439         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17440 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17441       fi
17442       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17443     fi
17444   fi
17445 
17446   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17447   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17448   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17449   # "foo.exe" is OK but "foo" is an error.
17450   #
17451   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17452   # It is also a way to make sure we got the proper file name for the real test later on.
17453   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17454   if test "x$test_shortpath" = x; then
17455     # Short path failed, file does not exist as specified.
17456     # Try adding .exe or .cmd
17457     if test -f "${new_path}.exe"; then
17458       input_to_shortpath="${new_path}.exe"
17459     elif test -f "${new_path}.cmd"; then
17460       input_to_shortpath="${new_path}.cmd"
17461     else
17462       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17463 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17464       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17465 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17466       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17467     fi
17468   else
17469     input_to_shortpath="$new_path"
17470   fi
17471 
17472   # Call helper function which possibly converts this using DOS-style short mode.
17473   # If so, the updated path is stored in $new_path.
17474   new_path="$input_to_shortpath"
17475 
17476   input_path="$input_to_shortpath"
17477   # Check if we need to convert this using DOS-style short mode. If the path
17478   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17479   # take no chances and rewrite it.
17480   # Note: m4 eats our [], so we need to use [ and ] instead.
17481   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17482   if test "x$has_forbidden_chars" != x; then
17483     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17484     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17485     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17486     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17487       # Going to short mode and back again did indeed matter. Since short mode is
17488       # case insensitive, let's make it lowercase to improve readability.
17489       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17490       # Now convert it back to Unix-style (cygpath)
17491       input_path=`$CYGPATH -u "$shortmode_path"`
17492       new_path="$input_path"
17493     fi
17494   fi
17495 
17496   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17497   if test "x$test_cygdrive_prefix" = x; then
17498     # As a simple fix, exclude /usr/bin since it's not a real path.
17499     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17500       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17501       # a path prefixed by /cygdrive for fixpath to work.
17502       new_path="$CYGWIN_ROOT_PATH$input_path"
17503     fi
17504   fi
17505 
17506   # remove trailing .exe if any
17507   new_path="${new_path/%.exe/}"
17508 
17509     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17510 
17511   # First separate the path from the arguments. This will split at the first
17512   # space.
17513   complete="$FOUND_MAKE"
17514   path="${complete%% *}"
17515   tmp="$complete EOL"
17516   arguments="${tmp#* }"
17517 
17518   # Input might be given as Windows format, start by converting to
17519   # unix format.
17520   new_path="$path"
17521 
17522   windows_path="$new_path"
17523   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17524     unix_path=`$CYGPATH -u "$windows_path"`
17525     new_path="$unix_path"
17526   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17527     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17528     new_path="$unix_path"
17529   fi
17530 
17531 
17532   # Now try to locate executable using which
17533   new_path=`$WHICH "$new_path" 2> /dev/null`
17534 
17535   if test "x$new_path" = x; then
17536     # Oops. Which didn't find the executable.
17537     # The splitting of arguments from the executable at a space might have been incorrect,
17538     # since paths with space are more likely in Windows. Give it another try with the whole
17539     # argument.
17540     path="$complete"
17541     arguments="EOL"
17542     new_path="$path"
17543 
17544   windows_path="$new_path"
17545   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17546     unix_path=`$CYGPATH -u "$windows_path"`
17547     new_path="$unix_path"
17548   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17549     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17550     new_path="$unix_path"
17551   fi
17552 
17553 
17554     new_path=`$WHICH "$new_path" 2> /dev/null`
17555     # bat and cmd files are not always considered executable in MSYS causing which
17556     # to not find them
17557     if test "x$new_path" = x \
17558         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17559         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17560       new_path="$path"
17561 
17562   windows_path="$new_path"
17563   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17564     unix_path=`$CYGPATH -u "$windows_path"`
17565     new_path="$unix_path"
17566   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17567     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17568     new_path="$unix_path"
17569   fi
17570 
17571     fi
17572 
17573     if test "x$new_path" = x; then
17574       # It's still not found. Now this is an unrecoverable error.
17575       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17576 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17577       has_space=`$ECHO "$complete" | $GREP " "`
17578       if test "x$has_space" != x; then
17579         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17580 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17581       fi
17582       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17583     fi
17584   fi
17585 
17586   # Now new_path has a complete unix path to the binary
17587   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17588     # Keep paths in /bin as-is, but remove trailing .exe if any
17589     new_path="${new_path/%.exe/}"
17590     # Do not save /bin paths to all_fixpath_prefixes!
17591   else
17592     # Not in mixed or Windows style, start by that.
17593     new_path=`cmd //c echo $new_path`
17594 
17595   input_path="$new_path"
17596   # Check if we need to convert this using DOS-style short mode. If the path
17597   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17598   # take no chances and rewrite it.
17599   # Note: m4 eats our [], so we need to use [ and ] instead.
17600   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17601   if test "x$has_forbidden_chars" != x; then
17602     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17603     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17604   fi
17605 
17606     # Output is in $new_path
17607 
17608   windows_path="$new_path"
17609   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17610     unix_path=`$CYGPATH -u "$windows_path"`
17611     new_path="$unix_path"
17612   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17613     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17614     new_path="$unix_path"
17615   fi
17616 
17617     # remove trailing .exe if any
17618     new_path="${new_path/%.exe/}"
17619 
17620     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17621     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17622   fi
17623 
17624     else
17625       # We're on a unix platform. Hooray! :)
17626       # First separate the path from the arguments. This will split at the first
17627       # space.
17628       complete="$FOUND_MAKE"
17629       path="${complete%% *}"
17630       tmp="$complete EOL"
17631       arguments="${tmp#* }"
17632 
17633       # Cannot rely on the command "which" here since it doesn't always work.
17634       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17635       if test -z "$is_absolute_path"; then
17636         # Path to executable is not absolute. Find it.
17637         IFS_save="$IFS"
17638         IFS=:
17639         for p in $PATH; do
17640           if test -f "$p/$path" && test -x "$p/$path"; then
17641             new_path="$p/$path"
17642             break
17643           fi
17644         done
17645         IFS="$IFS_save"
17646       else
17647         # This is an absolute path, we can use it without further modifications.
17648         new_path="$path"
17649       fi
17650 
17651       if test "x$new_path" = x; then
17652         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17653 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17654         has_space=`$ECHO "$complete" | $GREP " "`
17655         if test "x$has_space" != x; then
17656           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17657 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17658         fi
17659         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17660       fi
17661     fi
17662 
17663     # Now join together the path and the arguments once again
17664     if test "x$arguments" != xEOL; then
17665       new_complete="$new_path ${arguments% *}"
17666     else
17667       new_complete="$new_path"
17668     fi
17669 
17670     if test "x$complete" != "x$new_complete"; then
17671       FOUND_MAKE="$new_complete"
17672       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17673 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17674     fi
17675   fi
17676 
17677         fi
17678       fi
17679     fi
17680   fi
17681 
17682     fi
17683 
17684     if test "x$FOUND_MAKE" = x; then
17685       if test "x$TOOLCHAIN_PATH" != x; then
17686         # We have a toolchain path, check that as well before giving up.
17687         OLD_PATH=$PATH
17688         PATH=$TOOLCHAIN_PATH:$PATH
17689         for ac_prog in gmake
17690 do
17691   # Extract the first word of "$ac_prog", so it can be a program name with args.
17692 set dummy $ac_prog; ac_word=$2
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17694 $as_echo_n "checking for $ac_word... " >&6; }
17695 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17696   $as_echo_n "(cached) " >&6
17697 else
17698   case $CHECK_TOOLSDIR_GMAKE in
17699   [\\/]* | ?:[\\/]*)
17700   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17701   ;;
17702   *)
17703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17704 for as_dir in $PATH
17705 do
17706   IFS=$as_save_IFS
17707   test -z "$as_dir" && as_dir=.
17708     for ac_exec_ext in '' $ac_executable_extensions; do
17709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17710     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17712     break 2
17713   fi
17714 done
17715   done
17716 IFS=$as_save_IFS
17717 
17718   ;;
17719 esac
17720 fi
17721 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17722 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17724 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17725 else
17726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17727 $as_echo "no" >&6; }
17728 fi
17729 
17730 
17731   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17732 done
17733 
17734 
17735   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17736   DESCRIPTION="gmake in tools-dir"
17737 
17738   # On Cygwin, we require a newer version of make than on other platforms
17739   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17740     MAKE_VERSION_EXPR="-e 4\."
17741     MAKE_REQUIRED_VERSION="4.0"
17742    else
17743     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17744     MAKE_REQUIRED_VERSION="3.81"
17745   fi
17746 
17747   if test "x$MAKE_CANDIDATE" != x; then
17748     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17749 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17750     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17751     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17752     if test "x$IS_GNU_MAKE" = x; then
17753       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17754 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17755     else
17756       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17757       if test "x$IS_MODERN_MAKE" = x; then
17758         { $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
17759 $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;}
17760       else
17761         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17762           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17763             MAKE_EXPECTED_ENV='cygwin'
17764           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17765             MAKE_EXPECTED_ENV='msys'
17766           else
17767             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17768           fi
17769           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17770           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17771         else
17772           # Not relevant for non-Windows
17773           IS_MAKE_CORRECT_ENV=true
17774         fi
17775         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17776           { $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
17777 $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;}
17778         else
17779           FOUND_MAKE=$MAKE_CANDIDATE
17780 
17781   # Only process if variable expands to non-empty
17782 
17783   if test "x$FOUND_MAKE" != x; then
17784     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17785 
17786   # First separate the path from the arguments. This will split at the first
17787   # space.
17788   complete="$FOUND_MAKE"
17789   path="${complete%% *}"
17790   tmp="$complete EOL"
17791   arguments="${tmp#* }"
17792 
17793   # Input might be given as Windows format, start by converting to
17794   # unix format.
17795   new_path=`$CYGPATH -u "$path"`
17796 
17797   # Now try to locate executable using which
17798   new_path=`$WHICH "$new_path" 2> /dev/null`
17799   # bat and cmd files are not always considered executable in cygwin causing which
17800   # to not find them
17801   if test "x$new_path" = x \
17802       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17803       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17804     new_path=`$CYGPATH -u "$path"`
17805   fi
17806   if test "x$new_path" = x; then
17807     # Oops. Which didn't find the executable.
17808     # The splitting of arguments from the executable at a space might have been incorrect,
17809     # since paths with space are more likely in Windows. Give it another try with the whole
17810     # argument.
17811     path="$complete"
17812     arguments="EOL"
17813     new_path=`$CYGPATH -u "$path"`
17814     new_path=`$WHICH "$new_path" 2> /dev/null`
17815     # bat and cmd files are not always considered executable in cygwin causing which
17816     # to not find them
17817     if test "x$new_path" = x \
17818         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17819         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17820       new_path=`$CYGPATH -u "$path"`
17821     fi
17822     if test "x$new_path" = x; then
17823       # It's still not found. Now this is an unrecoverable error.
17824       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17826       has_space=`$ECHO "$complete" | $GREP " "`
17827       if test "x$has_space" != x; then
17828         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17829 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17830       fi
17831       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17832     fi
17833   fi
17834 
17835   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17836   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17837   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17838   # "foo.exe" is OK but "foo" is an error.
17839   #
17840   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17841   # It is also a way to make sure we got the proper file name for the real test later on.
17842   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17843   if test "x$test_shortpath" = x; then
17844     # Short path failed, file does not exist as specified.
17845     # Try adding .exe or .cmd
17846     if test -f "${new_path}.exe"; then
17847       input_to_shortpath="${new_path}.exe"
17848     elif test -f "${new_path}.cmd"; then
17849       input_to_shortpath="${new_path}.cmd"
17850     else
17851       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17852 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17853       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17854 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17855       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17856     fi
17857   else
17858     input_to_shortpath="$new_path"
17859   fi
17860 
17861   # Call helper function which possibly converts this using DOS-style short mode.
17862   # If so, the updated path is stored in $new_path.
17863   new_path="$input_to_shortpath"
17864 
17865   input_path="$input_to_shortpath"
17866   # Check if we need to convert this using DOS-style short mode. If the path
17867   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17868   # take no chances and rewrite it.
17869   # Note: m4 eats our [], so we need to use [ and ] instead.
17870   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17871   if test "x$has_forbidden_chars" != x; then
17872     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17873     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17874     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17875     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17876       # Going to short mode and back again did indeed matter. Since short mode is
17877       # case insensitive, let's make it lowercase to improve readability.
17878       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17879       # Now convert it back to Unix-style (cygpath)
17880       input_path=`$CYGPATH -u "$shortmode_path"`
17881       new_path="$input_path"
17882     fi
17883   fi
17884 
17885   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17886   if test "x$test_cygdrive_prefix" = x; then
17887     # As a simple fix, exclude /usr/bin since it's not a real path.
17888     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17889       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17890       # a path prefixed by /cygdrive for fixpath to work.
17891       new_path="$CYGWIN_ROOT_PATH$input_path"
17892     fi
17893   fi
17894 
17895   # remove trailing .exe if any
17896   new_path="${new_path/%.exe/}"
17897 
17898     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17899 
17900   # First separate the path from the arguments. This will split at the first
17901   # space.
17902   complete="$FOUND_MAKE"
17903   path="${complete%% *}"
17904   tmp="$complete EOL"
17905   arguments="${tmp#* }"
17906 
17907   # Input might be given as Windows format, start by converting to
17908   # unix format.
17909   new_path="$path"
17910 
17911   windows_path="$new_path"
17912   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17913     unix_path=`$CYGPATH -u "$windows_path"`
17914     new_path="$unix_path"
17915   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17916     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17917     new_path="$unix_path"
17918   fi
17919 
17920 
17921   # Now try to locate executable using which
17922   new_path=`$WHICH "$new_path" 2> /dev/null`
17923 
17924   if test "x$new_path" = x; then
17925     # Oops. Which didn't find the executable.
17926     # The splitting of arguments from the executable at a space might have been incorrect,
17927     # since paths with space are more likely in Windows. Give it another try with the whole
17928     # argument.
17929     path="$complete"
17930     arguments="EOL"
17931     new_path="$path"
17932 
17933   windows_path="$new_path"
17934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17935     unix_path=`$CYGPATH -u "$windows_path"`
17936     new_path="$unix_path"
17937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17938     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17939     new_path="$unix_path"
17940   fi
17941 
17942 
17943     new_path=`$WHICH "$new_path" 2> /dev/null`
17944     # bat and cmd files are not always considered executable in MSYS causing which
17945     # to not find them
17946     if test "x$new_path" = x \
17947         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17948         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17949       new_path="$path"
17950 
17951   windows_path="$new_path"
17952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17953     unix_path=`$CYGPATH -u "$windows_path"`
17954     new_path="$unix_path"
17955   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17956     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17957     new_path="$unix_path"
17958   fi
17959 
17960     fi
17961 
17962     if test "x$new_path" = x; then
17963       # It's still not found. Now this is an unrecoverable error.
17964       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17965 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17966       has_space=`$ECHO "$complete" | $GREP " "`
17967       if test "x$has_space" != x; then
17968         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17969 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17970       fi
17971       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17972     fi
17973   fi
17974 
17975   # Now new_path has a complete unix path to the binary
17976   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17977     # Keep paths in /bin as-is, but remove trailing .exe if any
17978     new_path="${new_path/%.exe/}"
17979     # Do not save /bin paths to all_fixpath_prefixes!
17980   else
17981     # Not in mixed or Windows style, start by that.
17982     new_path=`cmd //c echo $new_path`
17983 
17984   input_path="$new_path"
17985   # Check if we need to convert this using DOS-style short mode. If the path
17986   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17987   # take no chances and rewrite it.
17988   # Note: m4 eats our [], so we need to use [ and ] instead.
17989   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17990   if test "x$has_forbidden_chars" != x; then
17991     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17992     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17993   fi
17994 
17995     # Output is in $new_path
17996 
17997   windows_path="$new_path"
17998   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17999     unix_path=`$CYGPATH -u "$windows_path"`
18000     new_path="$unix_path"
18001   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18002     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18003     new_path="$unix_path"
18004   fi
18005 
18006     # remove trailing .exe if any
18007     new_path="${new_path/%.exe/}"
18008 
18009     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18010     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18011   fi
18012 
18013     else
18014       # We're on a unix platform. Hooray! :)
18015       # First separate the path from the arguments. This will split at the first
18016       # space.
18017       complete="$FOUND_MAKE"
18018       path="${complete%% *}"
18019       tmp="$complete EOL"
18020       arguments="${tmp#* }"
18021 
18022       # Cannot rely on the command "which" here since it doesn't always work.
18023       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18024       if test -z "$is_absolute_path"; then
18025         # Path to executable is not absolute. Find it.
18026         IFS_save="$IFS"
18027         IFS=:
18028         for p in $PATH; do
18029           if test -f "$p/$path" && test -x "$p/$path"; then
18030             new_path="$p/$path"
18031             break
18032           fi
18033         done
18034         IFS="$IFS_save"
18035       else
18036         # This is an absolute path, we can use it without further modifications.
18037         new_path="$path"
18038       fi
18039 
18040       if test "x$new_path" = x; then
18041         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18042 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18043         has_space=`$ECHO "$complete" | $GREP " "`
18044         if test "x$has_space" != x; then
18045           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18046 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18047         fi
18048         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18049       fi
18050     fi
18051 
18052     # Now join together the path and the arguments once again
18053     if test "x$arguments" != xEOL; then
18054       new_complete="$new_path ${arguments% *}"
18055     else
18056       new_complete="$new_path"
18057     fi
18058 
18059     if test "x$complete" != "x$new_complete"; then
18060       FOUND_MAKE="$new_complete"
18061       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18062 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18063     fi
18064   fi
18065 
18066         fi
18067       fi
18068     fi
18069   fi
18070 
18071         if test "x$FOUND_MAKE" = x; then
18072           for ac_prog in make
18073 do
18074   # Extract the first word of "$ac_prog", so it can be a program name with args.
18075 set dummy $ac_prog; ac_word=$2
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18077 $as_echo_n "checking for $ac_word... " >&6; }
18078 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18079   $as_echo_n "(cached) " >&6
18080 else
18081   case $CHECK_TOOLSDIR_MAKE in
18082   [\\/]* | ?:[\\/]*)
18083   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18084   ;;
18085   *)
18086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18087 for as_dir in $PATH
18088 do
18089   IFS=$as_save_IFS
18090   test -z "$as_dir" && as_dir=.
18091     for ac_exec_ext in '' $ac_executable_extensions; do
18092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18093     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18095     break 2
18096   fi
18097 done
18098   done
18099 IFS=$as_save_IFS
18100 
18101   ;;
18102 esac
18103 fi
18104 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18105 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18107 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18108 else
18109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18110 $as_echo "no" >&6; }
18111 fi
18112 
18113 
18114   test -n "$CHECK_TOOLSDIR_MAKE" && break
18115 done
18116 
18117 
18118   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18119   DESCRIPTION="make in tools-dir"
18120 
18121   # On Cygwin, we require a newer version of make than on other platforms
18122   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18123     MAKE_VERSION_EXPR="-e 4\."
18124     MAKE_REQUIRED_VERSION="4.0"
18125    else
18126     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18127     MAKE_REQUIRED_VERSION="3.81"
18128   fi
18129 
18130   if test "x$MAKE_CANDIDATE" != x; then
18131     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18132 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18133     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18134     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18135     if test "x$IS_GNU_MAKE" = x; then
18136       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18137 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18138     else
18139       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18140       if test "x$IS_MODERN_MAKE" = x; then
18141         { $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
18142 $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;}
18143       else
18144         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18145           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18146             MAKE_EXPECTED_ENV='cygwin'
18147           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18148             MAKE_EXPECTED_ENV='msys'
18149           else
18150             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18151           fi
18152           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18153           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18154         else
18155           # Not relevant for non-Windows
18156           IS_MAKE_CORRECT_ENV=true
18157         fi
18158         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18159           { $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
18160 $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;}
18161         else
18162           FOUND_MAKE=$MAKE_CANDIDATE
18163 
18164   # Only process if variable expands to non-empty
18165 
18166   if test "x$FOUND_MAKE" != x; then
18167     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18168 
18169   # First separate the path from the arguments. This will split at the first
18170   # space.
18171   complete="$FOUND_MAKE"
18172   path="${complete%% *}"
18173   tmp="$complete EOL"
18174   arguments="${tmp#* }"
18175 
18176   # Input might be given as Windows format, start by converting to
18177   # unix format.
18178   new_path=`$CYGPATH -u "$path"`
18179 
18180   # Now try to locate executable using which
18181   new_path=`$WHICH "$new_path" 2> /dev/null`
18182   # bat and cmd files are not always considered executable in cygwin causing which
18183   # to not find them
18184   if test "x$new_path" = x \
18185       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18186       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18187     new_path=`$CYGPATH -u "$path"`
18188   fi
18189   if test "x$new_path" = x; then
18190     # Oops. Which didn't find the executable.
18191     # The splitting of arguments from the executable at a space might have been incorrect,
18192     # since paths with space are more likely in Windows. Give it another try with the whole
18193     # argument.
18194     path="$complete"
18195     arguments="EOL"
18196     new_path=`$CYGPATH -u "$path"`
18197     new_path=`$WHICH "$new_path" 2> /dev/null`
18198     # bat and cmd files are not always considered executable in cygwin causing which
18199     # to not find them
18200     if test "x$new_path" = x \
18201         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18202         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18203       new_path=`$CYGPATH -u "$path"`
18204     fi
18205     if test "x$new_path" = x; then
18206       # It's still not found. Now this is an unrecoverable error.
18207       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18208 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18209       has_space=`$ECHO "$complete" | $GREP " "`
18210       if test "x$has_space" != x; then
18211         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18212 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18213       fi
18214       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18215     fi
18216   fi
18217 
18218   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18219   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18220   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18221   # "foo.exe" is OK but "foo" is an error.
18222   #
18223   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18224   # It is also a way to make sure we got the proper file name for the real test later on.
18225   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18226   if test "x$test_shortpath" = x; then
18227     # Short path failed, file does not exist as specified.
18228     # Try adding .exe or .cmd
18229     if test -f "${new_path}.exe"; then
18230       input_to_shortpath="${new_path}.exe"
18231     elif test -f "${new_path}.cmd"; then
18232       input_to_shortpath="${new_path}.cmd"
18233     else
18234       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18235 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18236       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18237 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18238       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18239     fi
18240   else
18241     input_to_shortpath="$new_path"
18242   fi
18243 
18244   # Call helper function which possibly converts this using DOS-style short mode.
18245   # If so, the updated path is stored in $new_path.
18246   new_path="$input_to_shortpath"
18247 
18248   input_path="$input_to_shortpath"
18249   # Check if we need to convert this using DOS-style short mode. If the path
18250   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18251   # take no chances and rewrite it.
18252   # Note: m4 eats our [], so we need to use [ and ] instead.
18253   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18254   if test "x$has_forbidden_chars" != x; then
18255     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18256     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18257     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18258     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18259       # Going to short mode and back again did indeed matter. Since short mode is
18260       # case insensitive, let's make it lowercase to improve readability.
18261       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18262       # Now convert it back to Unix-style (cygpath)
18263       input_path=`$CYGPATH -u "$shortmode_path"`
18264       new_path="$input_path"
18265     fi
18266   fi
18267 
18268   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18269   if test "x$test_cygdrive_prefix" = x; then
18270     # As a simple fix, exclude /usr/bin since it's not a real path.
18271     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18272       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18273       # a path prefixed by /cygdrive for fixpath to work.
18274       new_path="$CYGWIN_ROOT_PATH$input_path"
18275     fi
18276   fi
18277 
18278   # remove trailing .exe if any
18279   new_path="${new_path/%.exe/}"
18280 
18281     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18282 
18283   # First separate the path from the arguments. This will split at the first
18284   # space.
18285   complete="$FOUND_MAKE"
18286   path="${complete%% *}"
18287   tmp="$complete EOL"
18288   arguments="${tmp#* }"
18289 
18290   # Input might be given as Windows format, start by converting to
18291   # unix format.
18292   new_path="$path"
18293 
18294   windows_path="$new_path"
18295   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18296     unix_path=`$CYGPATH -u "$windows_path"`
18297     new_path="$unix_path"
18298   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18299     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18300     new_path="$unix_path"
18301   fi
18302 
18303 
18304   # Now try to locate executable using which
18305   new_path=`$WHICH "$new_path" 2> /dev/null`
18306 
18307   if test "x$new_path" = x; then
18308     # Oops. Which didn't find the executable.
18309     # The splitting of arguments from the executable at a space might have been incorrect,
18310     # since paths with space are more likely in Windows. Give it another try with the whole
18311     # argument.
18312     path="$complete"
18313     arguments="EOL"
18314     new_path="$path"
18315 
18316   windows_path="$new_path"
18317   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18318     unix_path=`$CYGPATH -u "$windows_path"`
18319     new_path="$unix_path"
18320   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18321     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18322     new_path="$unix_path"
18323   fi
18324 
18325 
18326     new_path=`$WHICH "$new_path" 2> /dev/null`
18327     # bat and cmd files are not always considered executable in MSYS causing which
18328     # to not find them
18329     if test "x$new_path" = x \
18330         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18331         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18332       new_path="$path"
18333 
18334   windows_path="$new_path"
18335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18336     unix_path=`$CYGPATH -u "$windows_path"`
18337     new_path="$unix_path"
18338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18340     new_path="$unix_path"
18341   fi
18342 
18343     fi
18344 
18345     if test "x$new_path" = x; then
18346       # It's still not found. Now this is an unrecoverable error.
18347       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18348 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18349       has_space=`$ECHO "$complete" | $GREP " "`
18350       if test "x$has_space" != x; then
18351         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18352 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18353       fi
18354       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18355     fi
18356   fi
18357 
18358   # Now new_path has a complete unix path to the binary
18359   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18360     # Keep paths in /bin as-is, but remove trailing .exe if any
18361     new_path="${new_path/%.exe/}"
18362     # Do not save /bin paths to all_fixpath_prefixes!
18363   else
18364     # Not in mixed or Windows style, start by that.
18365     new_path=`cmd //c echo $new_path`
18366 
18367   input_path="$new_path"
18368   # Check if we need to convert this using DOS-style short mode. If the path
18369   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18370   # take no chances and rewrite it.
18371   # Note: m4 eats our [], so we need to use [ and ] instead.
18372   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18373   if test "x$has_forbidden_chars" != x; then
18374     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18375     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18376   fi
18377 
18378     # Output is in $new_path
18379 
18380   windows_path="$new_path"
18381   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18382     unix_path=`$CYGPATH -u "$windows_path"`
18383     new_path="$unix_path"
18384   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18385     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18386     new_path="$unix_path"
18387   fi
18388 
18389     # remove trailing .exe if any
18390     new_path="${new_path/%.exe/}"
18391 
18392     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18393     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18394   fi
18395 
18396     else
18397       # We're on a unix platform. Hooray! :)
18398       # First separate the path from the arguments. This will split at the first
18399       # space.
18400       complete="$FOUND_MAKE"
18401       path="${complete%% *}"
18402       tmp="$complete EOL"
18403       arguments="${tmp#* }"
18404 
18405       # Cannot rely on the command "which" here since it doesn't always work.
18406       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18407       if test -z "$is_absolute_path"; then
18408         # Path to executable is not absolute. Find it.
18409         IFS_save="$IFS"
18410         IFS=:
18411         for p in $PATH; do
18412           if test -f "$p/$path" && test -x "$p/$path"; then
18413             new_path="$p/$path"
18414             break
18415           fi
18416         done
18417         IFS="$IFS_save"
18418       else
18419         # This is an absolute path, we can use it without further modifications.
18420         new_path="$path"
18421       fi
18422 
18423       if test "x$new_path" = x; then
18424         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18425 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18426         has_space=`$ECHO "$complete" | $GREP " "`
18427         if test "x$has_space" != x; then
18428           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18429 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18430         fi
18431         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18432       fi
18433     fi
18434 
18435     # Now join together the path and the arguments once again
18436     if test "x$arguments" != xEOL; then
18437       new_complete="$new_path ${arguments% *}"
18438     else
18439       new_complete="$new_path"
18440     fi
18441 
18442     if test "x$complete" != "x$new_complete"; then
18443       FOUND_MAKE="$new_complete"
18444       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18445 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18446     fi
18447   fi
18448 
18449         fi
18450       fi
18451     fi
18452   fi
18453 
18454         fi
18455         PATH=$OLD_PATH
18456       fi
18457     fi
18458 
18459     if test "x$FOUND_MAKE" = x; then
18460       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
18461     fi
18462 
18463   else
18464     # The variable is set, but is it from the command line or the environment?
18465 
18466     # Try to remove the string !MAKE! from our list.
18467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18469       # If it failed, the variable was not from the command line. Ignore it,
18470       # but warn the user (except for BASH, which is always set by the calling BASH).
18471       if test "xMAKE" != xBASH; then
18472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18473 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18474       fi
18475       # Try to locate tool using the code snippet
18476 
18477     # Try our hardest to locate a correct version of GNU make
18478     for ac_prog in gmake
18479 do
18480   # Extract the first word of "$ac_prog", so it can be a program name with args.
18481 set dummy $ac_prog; ac_word=$2
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18483 $as_echo_n "checking for $ac_word... " >&6; }
18484 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18485   $as_echo_n "(cached) " >&6
18486 else
18487   case $CHECK_GMAKE in
18488   [\\/]* | ?:[\\/]*)
18489   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18490   ;;
18491   *)
18492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18493 for as_dir in $PATH
18494 do
18495   IFS=$as_save_IFS
18496   test -z "$as_dir" && as_dir=.
18497     for ac_exec_ext in '' $ac_executable_extensions; do
18498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18499     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18501     break 2
18502   fi
18503 done
18504   done
18505 IFS=$as_save_IFS
18506 
18507   ;;
18508 esac
18509 fi
18510 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18511 if test -n "$CHECK_GMAKE"; then
18512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18513 $as_echo "$CHECK_GMAKE" >&6; }
18514 else
18515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18516 $as_echo "no" >&6; }
18517 fi
18518 
18519 
18520   test -n "$CHECK_GMAKE" && break
18521 done
18522 
18523 
18524   MAKE_CANDIDATE=""$CHECK_GMAKE""
18525   DESCRIPTION="gmake in PATH"
18526 
18527   # On Cygwin, we require a newer version of make than on other platforms
18528   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18529     MAKE_VERSION_EXPR="-e 4\."
18530     MAKE_REQUIRED_VERSION="4.0"
18531    else
18532     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18533     MAKE_REQUIRED_VERSION="3.81"
18534   fi
18535 
18536   if test "x$MAKE_CANDIDATE" != x; then
18537     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18538 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18539     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18540     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18541     if test "x$IS_GNU_MAKE" = x; then
18542       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18543 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18544     else
18545       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18546       if test "x$IS_MODERN_MAKE" = x; then
18547         { $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
18548 $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;}
18549       else
18550         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18551           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18552             MAKE_EXPECTED_ENV='cygwin'
18553           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18554             MAKE_EXPECTED_ENV='msys'
18555           else
18556             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18557           fi
18558           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18559           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18560         else
18561           # Not relevant for non-Windows
18562           IS_MAKE_CORRECT_ENV=true
18563         fi
18564         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18565           { $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
18566 $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;}
18567         else
18568           FOUND_MAKE=$MAKE_CANDIDATE
18569 
18570   # Only process if variable expands to non-empty
18571 
18572   if test "x$FOUND_MAKE" != x; then
18573     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18574 
18575   # First separate the path from the arguments. This will split at the first
18576   # space.
18577   complete="$FOUND_MAKE"
18578   path="${complete%% *}"
18579   tmp="$complete EOL"
18580   arguments="${tmp#* }"
18581 
18582   # Input might be given as Windows format, start by converting to
18583   # unix format.
18584   new_path=`$CYGPATH -u "$path"`
18585 
18586   # Now try to locate executable using which
18587   new_path=`$WHICH "$new_path" 2> /dev/null`
18588   # bat and cmd files are not always considered executable in cygwin causing which
18589   # to not find them
18590   if test "x$new_path" = x \
18591       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18592       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18593     new_path=`$CYGPATH -u "$path"`
18594   fi
18595   if test "x$new_path" = x; then
18596     # Oops. Which didn't find the executable.
18597     # The splitting of arguments from the executable at a space might have been incorrect,
18598     # since paths with space are more likely in Windows. Give it another try with the whole
18599     # argument.
18600     path="$complete"
18601     arguments="EOL"
18602     new_path=`$CYGPATH -u "$path"`
18603     new_path=`$WHICH "$new_path" 2> /dev/null`
18604     # bat and cmd files are not always considered executable in cygwin causing which
18605     # to not find them
18606     if test "x$new_path" = x \
18607         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18608         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18609       new_path=`$CYGPATH -u "$path"`
18610     fi
18611     if test "x$new_path" = x; then
18612       # It's still not found. Now this is an unrecoverable error.
18613       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18614 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18615       has_space=`$ECHO "$complete" | $GREP " "`
18616       if test "x$has_space" != x; then
18617         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18618 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18619       fi
18620       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18621     fi
18622   fi
18623 
18624   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18625   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18626   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18627   # "foo.exe" is OK but "foo" is an error.
18628   #
18629   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18630   # It is also a way to make sure we got the proper file name for the real test later on.
18631   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18632   if test "x$test_shortpath" = x; then
18633     # Short path failed, file does not exist as specified.
18634     # Try adding .exe or .cmd
18635     if test -f "${new_path}.exe"; then
18636       input_to_shortpath="${new_path}.exe"
18637     elif test -f "${new_path}.cmd"; then
18638       input_to_shortpath="${new_path}.cmd"
18639     else
18640       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18641 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18642       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18643 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18644       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18645     fi
18646   else
18647     input_to_shortpath="$new_path"
18648   fi
18649 
18650   # Call helper function which possibly converts this using DOS-style short mode.
18651   # If so, the updated path is stored in $new_path.
18652   new_path="$input_to_shortpath"
18653 
18654   input_path="$input_to_shortpath"
18655   # Check if we need to convert this using DOS-style short mode. If the path
18656   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18657   # take no chances and rewrite it.
18658   # Note: m4 eats our [], so we need to use [ and ] instead.
18659   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18660   if test "x$has_forbidden_chars" != x; then
18661     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18662     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18663     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18664     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18665       # Going to short mode and back again did indeed matter. Since short mode is
18666       # case insensitive, let's make it lowercase to improve readability.
18667       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18668       # Now convert it back to Unix-style (cygpath)
18669       input_path=`$CYGPATH -u "$shortmode_path"`
18670       new_path="$input_path"
18671     fi
18672   fi
18673 
18674   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18675   if test "x$test_cygdrive_prefix" = x; then
18676     # As a simple fix, exclude /usr/bin since it's not a real path.
18677     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18678       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18679       # a path prefixed by /cygdrive for fixpath to work.
18680       new_path="$CYGWIN_ROOT_PATH$input_path"
18681     fi
18682   fi
18683 
18684   # remove trailing .exe if any
18685   new_path="${new_path/%.exe/}"
18686 
18687     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18688 
18689   # First separate the path from the arguments. This will split at the first
18690   # space.
18691   complete="$FOUND_MAKE"
18692   path="${complete%% *}"
18693   tmp="$complete EOL"
18694   arguments="${tmp#* }"
18695 
18696   # Input might be given as Windows format, start by converting to
18697   # unix format.
18698   new_path="$path"
18699 
18700   windows_path="$new_path"
18701   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18702     unix_path=`$CYGPATH -u "$windows_path"`
18703     new_path="$unix_path"
18704   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18705     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18706     new_path="$unix_path"
18707   fi
18708 
18709 
18710   # Now try to locate executable using which
18711   new_path=`$WHICH "$new_path" 2> /dev/null`
18712 
18713   if test "x$new_path" = x; then
18714     # Oops. Which didn't find the executable.
18715     # The splitting of arguments from the executable at a space might have been incorrect,
18716     # since paths with space are more likely in Windows. Give it another try with the whole
18717     # argument.
18718     path="$complete"
18719     arguments="EOL"
18720     new_path="$path"
18721 
18722   windows_path="$new_path"
18723   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18724     unix_path=`$CYGPATH -u "$windows_path"`
18725     new_path="$unix_path"
18726   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18727     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18728     new_path="$unix_path"
18729   fi
18730 
18731 
18732     new_path=`$WHICH "$new_path" 2> /dev/null`
18733     # bat and cmd files are not always considered executable in MSYS causing which
18734     # to not find them
18735     if test "x$new_path" = x \
18736         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18737         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18738       new_path="$path"
18739 
18740   windows_path="$new_path"
18741   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18742     unix_path=`$CYGPATH -u "$windows_path"`
18743     new_path="$unix_path"
18744   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18745     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18746     new_path="$unix_path"
18747   fi
18748 
18749     fi
18750 
18751     if test "x$new_path" = x; then
18752       # It's still not found. Now this is an unrecoverable error.
18753       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18754 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18755       has_space=`$ECHO "$complete" | $GREP " "`
18756       if test "x$has_space" != x; then
18757         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18758 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18759       fi
18760       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18761     fi
18762   fi
18763 
18764   # Now new_path has a complete unix path to the binary
18765   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18766     # Keep paths in /bin as-is, but remove trailing .exe if any
18767     new_path="${new_path/%.exe/}"
18768     # Do not save /bin paths to all_fixpath_prefixes!
18769   else
18770     # Not in mixed or Windows style, start by that.
18771     new_path=`cmd //c echo $new_path`
18772 
18773   input_path="$new_path"
18774   # Check if we need to convert this using DOS-style short mode. If the path
18775   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18776   # take no chances and rewrite it.
18777   # Note: m4 eats our [], so we need to use [ and ] instead.
18778   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18779   if test "x$has_forbidden_chars" != x; then
18780     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18781     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18782   fi
18783 
18784     # Output is in $new_path
18785 
18786   windows_path="$new_path"
18787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18788     unix_path=`$CYGPATH -u "$windows_path"`
18789     new_path="$unix_path"
18790   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18791     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18792     new_path="$unix_path"
18793   fi
18794 
18795     # remove trailing .exe if any
18796     new_path="${new_path/%.exe/}"
18797 
18798     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18799     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18800   fi
18801 
18802     else
18803       # We're on a unix platform. Hooray! :)
18804       # First separate the path from the arguments. This will split at the first
18805       # space.
18806       complete="$FOUND_MAKE"
18807       path="${complete%% *}"
18808       tmp="$complete EOL"
18809       arguments="${tmp#* }"
18810 
18811       # Cannot rely on the command "which" here since it doesn't always work.
18812       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18813       if test -z "$is_absolute_path"; then
18814         # Path to executable is not absolute. Find it.
18815         IFS_save="$IFS"
18816         IFS=:
18817         for p in $PATH; do
18818           if test -f "$p/$path" && test -x "$p/$path"; then
18819             new_path="$p/$path"
18820             break
18821           fi
18822         done
18823         IFS="$IFS_save"
18824       else
18825         # This is an absolute path, we can use it without further modifications.
18826         new_path="$path"
18827       fi
18828 
18829       if test "x$new_path" = x; then
18830         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18831 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18832         has_space=`$ECHO "$complete" | $GREP " "`
18833         if test "x$has_space" != x; then
18834           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18835 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18836         fi
18837         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18838       fi
18839     fi
18840 
18841     # Now join together the path and the arguments once again
18842     if test "x$arguments" != xEOL; then
18843       new_complete="$new_path ${arguments% *}"
18844     else
18845       new_complete="$new_path"
18846     fi
18847 
18848     if test "x$complete" != "x$new_complete"; then
18849       FOUND_MAKE="$new_complete"
18850       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18851 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18852     fi
18853   fi
18854 
18855         fi
18856       fi
18857     fi
18858   fi
18859 
18860 
18861     if test "x$FOUND_MAKE" = x; then
18862       for ac_prog in make
18863 do
18864   # Extract the first word of "$ac_prog", so it can be a program name with args.
18865 set dummy $ac_prog; ac_word=$2
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18867 $as_echo_n "checking for $ac_word... " >&6; }
18868 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18869   $as_echo_n "(cached) " >&6
18870 else
18871   case $CHECK_MAKE in
18872   [\\/]* | ?:[\\/]*)
18873   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18874   ;;
18875   *)
18876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18878 do
18879   IFS=$as_save_IFS
18880   test -z "$as_dir" && as_dir=.
18881     for ac_exec_ext in '' $ac_executable_extensions; do
18882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18883     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18885     break 2
18886   fi
18887 done
18888   done
18889 IFS=$as_save_IFS
18890 
18891   ;;
18892 esac
18893 fi
18894 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18895 if test -n "$CHECK_MAKE"; then
18896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18897 $as_echo "$CHECK_MAKE" >&6; }
18898 else
18899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18901 fi
18902 
18903 
18904   test -n "$CHECK_MAKE" && break
18905 done
18906 
18907 
18908   MAKE_CANDIDATE=""$CHECK_MAKE""
18909   DESCRIPTION="make in PATH"
18910 
18911   # On Cygwin, we require a newer version of make than on other platforms
18912   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18913     MAKE_VERSION_EXPR="-e 4\."
18914     MAKE_REQUIRED_VERSION="4.0"
18915    else
18916     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18917     MAKE_REQUIRED_VERSION="3.81"
18918   fi
18919 
18920   if test "x$MAKE_CANDIDATE" != x; then
18921     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18922 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18923     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18924     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18925     if test "x$IS_GNU_MAKE" = x; then
18926       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18927 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18928     else
18929       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18930       if test "x$IS_MODERN_MAKE" = x; then
18931         { $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
18932 $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;}
18933       else
18934         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18935           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18936             MAKE_EXPECTED_ENV='cygwin'
18937           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18938             MAKE_EXPECTED_ENV='msys'
18939           else
18940             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18941           fi
18942           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18943           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18944         else
18945           # Not relevant for non-Windows
18946           IS_MAKE_CORRECT_ENV=true
18947         fi
18948         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18949           { $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
18950 $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;}
18951         else
18952           FOUND_MAKE=$MAKE_CANDIDATE
18953 
18954   # Only process if variable expands to non-empty
18955 
18956   if test "x$FOUND_MAKE" != x; then
18957     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18958 
18959   # First separate the path from the arguments. This will split at the first
18960   # space.
18961   complete="$FOUND_MAKE"
18962   path="${complete%% *}"
18963   tmp="$complete EOL"
18964   arguments="${tmp#* }"
18965 
18966   # Input might be given as Windows format, start by converting to
18967   # unix format.
18968   new_path=`$CYGPATH -u "$path"`
18969 
18970   # Now try to locate executable using which
18971   new_path=`$WHICH "$new_path" 2> /dev/null`
18972   # bat and cmd files are not always considered executable in cygwin causing which
18973   # to not find them
18974   if test "x$new_path" = x \
18975       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18976       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18977     new_path=`$CYGPATH -u "$path"`
18978   fi
18979   if test "x$new_path" = x; then
18980     # Oops. Which didn't find the executable.
18981     # The splitting of arguments from the executable at a space might have been incorrect,
18982     # since paths with space are more likely in Windows. Give it another try with the whole
18983     # argument.
18984     path="$complete"
18985     arguments="EOL"
18986     new_path=`$CYGPATH -u "$path"`
18987     new_path=`$WHICH "$new_path" 2> /dev/null`
18988     # bat and cmd files are not always considered executable in cygwin causing which
18989     # to not find them
18990     if test "x$new_path" = x \
18991         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18992         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18993       new_path=`$CYGPATH -u "$path"`
18994     fi
18995     if test "x$new_path" = x; then
18996       # It's still not found. Now this is an unrecoverable error.
18997       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18998 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18999       has_space=`$ECHO "$complete" | $GREP " "`
19000       if test "x$has_space" != x; then
19001         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19002 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19003       fi
19004       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19005     fi
19006   fi
19007 
19008   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19009   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19010   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19011   # "foo.exe" is OK but "foo" is an error.
19012   #
19013   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19014   # It is also a way to make sure we got the proper file name for the real test later on.
19015   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19016   if test "x$test_shortpath" = x; then
19017     # Short path failed, file does not exist as specified.
19018     # Try adding .exe or .cmd
19019     if test -f "${new_path}.exe"; then
19020       input_to_shortpath="${new_path}.exe"
19021     elif test -f "${new_path}.cmd"; then
19022       input_to_shortpath="${new_path}.cmd"
19023     else
19024       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19025 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19026       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19027 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19028       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19029     fi
19030   else
19031     input_to_shortpath="$new_path"
19032   fi
19033 
19034   # Call helper function which possibly converts this using DOS-style short mode.
19035   # If so, the updated path is stored in $new_path.
19036   new_path="$input_to_shortpath"
19037 
19038   input_path="$input_to_shortpath"
19039   # Check if we need to convert this using DOS-style short mode. If the path
19040   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19041   # take no chances and rewrite it.
19042   # Note: m4 eats our [], so we need to use [ and ] instead.
19043   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19044   if test "x$has_forbidden_chars" != x; then
19045     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19046     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19047     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19048     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19049       # Going to short mode and back again did indeed matter. Since short mode is
19050       # case insensitive, let's make it lowercase to improve readability.
19051       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19052       # Now convert it back to Unix-style (cygpath)
19053       input_path=`$CYGPATH -u "$shortmode_path"`
19054       new_path="$input_path"
19055     fi
19056   fi
19057 
19058   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19059   if test "x$test_cygdrive_prefix" = x; then
19060     # As a simple fix, exclude /usr/bin since it's not a real path.
19061     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19062       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19063       # a path prefixed by /cygdrive for fixpath to work.
19064       new_path="$CYGWIN_ROOT_PATH$input_path"
19065     fi
19066   fi
19067 
19068   # remove trailing .exe if any
19069   new_path="${new_path/%.exe/}"
19070 
19071     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19072 
19073   # First separate the path from the arguments. This will split at the first
19074   # space.
19075   complete="$FOUND_MAKE"
19076   path="${complete%% *}"
19077   tmp="$complete EOL"
19078   arguments="${tmp#* }"
19079 
19080   # Input might be given as Windows format, start by converting to
19081   # unix format.
19082   new_path="$path"
19083 
19084   windows_path="$new_path"
19085   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19086     unix_path=`$CYGPATH -u "$windows_path"`
19087     new_path="$unix_path"
19088   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19089     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19090     new_path="$unix_path"
19091   fi
19092 
19093 
19094   # Now try to locate executable using which
19095   new_path=`$WHICH "$new_path" 2> /dev/null`
19096 
19097   if test "x$new_path" = x; then
19098     # Oops. Which didn't find the executable.
19099     # The splitting of arguments from the executable at a space might have been incorrect,
19100     # since paths with space are more likely in Windows. Give it another try with the whole
19101     # argument.
19102     path="$complete"
19103     arguments="EOL"
19104     new_path="$path"
19105 
19106   windows_path="$new_path"
19107   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19108     unix_path=`$CYGPATH -u "$windows_path"`
19109     new_path="$unix_path"
19110   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19111     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19112     new_path="$unix_path"
19113   fi
19114 
19115 
19116     new_path=`$WHICH "$new_path" 2> /dev/null`
19117     # bat and cmd files are not always considered executable in MSYS causing which
19118     # to not find them
19119     if test "x$new_path" = x \
19120         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19121         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19122       new_path="$path"
19123 
19124   windows_path="$new_path"
19125   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19126     unix_path=`$CYGPATH -u "$windows_path"`
19127     new_path="$unix_path"
19128   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19129     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19130     new_path="$unix_path"
19131   fi
19132 
19133     fi
19134 
19135     if test "x$new_path" = x; then
19136       # It's still not found. Now this is an unrecoverable error.
19137       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19138 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19139       has_space=`$ECHO "$complete" | $GREP " "`
19140       if test "x$has_space" != x; then
19141         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19142 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19143       fi
19144       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19145     fi
19146   fi
19147 
19148   # Now new_path has a complete unix path to the binary
19149   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19150     # Keep paths in /bin as-is, but remove trailing .exe if any
19151     new_path="${new_path/%.exe/}"
19152     # Do not save /bin paths to all_fixpath_prefixes!
19153   else
19154     # Not in mixed or Windows style, start by that.
19155     new_path=`cmd //c echo $new_path`
19156 
19157   input_path="$new_path"
19158   # Check if we need to convert this using DOS-style short mode. If the path
19159   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19160   # take no chances and rewrite it.
19161   # Note: m4 eats our [], so we need to use [ and ] instead.
19162   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19163   if test "x$has_forbidden_chars" != x; then
19164     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19165     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19166   fi
19167 
19168     # Output is in $new_path
19169 
19170   windows_path="$new_path"
19171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19172     unix_path=`$CYGPATH -u "$windows_path"`
19173     new_path="$unix_path"
19174   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19175     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19176     new_path="$unix_path"
19177   fi
19178 
19179     # remove trailing .exe if any
19180     new_path="${new_path/%.exe/}"
19181 
19182     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19183     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19184   fi
19185 
19186     else
19187       # We're on a unix platform. Hooray! :)
19188       # First separate the path from the arguments. This will split at the first
19189       # space.
19190       complete="$FOUND_MAKE"
19191       path="${complete%% *}"
19192       tmp="$complete EOL"
19193       arguments="${tmp#* }"
19194 
19195       # Cannot rely on the command "which" here since it doesn't always work.
19196       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19197       if test -z "$is_absolute_path"; then
19198         # Path to executable is not absolute. Find it.
19199         IFS_save="$IFS"
19200         IFS=:
19201         for p in $PATH; do
19202           if test -f "$p/$path" && test -x "$p/$path"; then
19203             new_path="$p/$path"
19204             break
19205           fi
19206         done
19207         IFS="$IFS_save"
19208       else
19209         # This is an absolute path, we can use it without further modifications.
19210         new_path="$path"
19211       fi
19212 
19213       if test "x$new_path" = x; then
19214         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19215 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19216         has_space=`$ECHO "$complete" | $GREP " "`
19217         if test "x$has_space" != x; then
19218           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19219 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19220         fi
19221         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19222       fi
19223     fi
19224 
19225     # Now join together the path and the arguments once again
19226     if test "x$arguments" != xEOL; then
19227       new_complete="$new_path ${arguments% *}"
19228     else
19229       new_complete="$new_path"
19230     fi
19231 
19232     if test "x$complete" != "x$new_complete"; then
19233       FOUND_MAKE="$new_complete"
19234       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19235 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19236     fi
19237   fi
19238 
19239         fi
19240       fi
19241     fi
19242   fi
19243 
19244     fi
19245 
19246     if test "x$FOUND_MAKE" = x; then
19247       if test "x$TOOLCHAIN_PATH" != x; then
19248         # We have a toolchain path, check that as well before giving up.
19249         OLD_PATH=$PATH
19250         PATH=$TOOLCHAIN_PATH:$PATH
19251         for ac_prog in gmake
19252 do
19253   # Extract the first word of "$ac_prog", so it can be a program name with args.
19254 set dummy $ac_prog; ac_word=$2
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19256 $as_echo_n "checking for $ac_word... " >&6; }
19257 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19258   $as_echo_n "(cached) " >&6
19259 else
19260   case $CHECK_TOOLSDIR_GMAKE in
19261   [\\/]* | ?:[\\/]*)
19262   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19263   ;;
19264   *)
19265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19266 for as_dir in $PATH
19267 do
19268   IFS=$as_save_IFS
19269   test -z "$as_dir" && as_dir=.
19270     for ac_exec_ext in '' $ac_executable_extensions; do
19271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19272     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19274     break 2
19275   fi
19276 done
19277   done
19278 IFS=$as_save_IFS
19279 
19280   ;;
19281 esac
19282 fi
19283 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19284 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19286 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19287 else
19288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289 $as_echo "no" >&6; }
19290 fi
19291 
19292 
19293   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19294 done
19295 
19296 
19297   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19298   DESCRIPTION="gmake in tools-dir"
19299 
19300   # On Cygwin, we require a newer version of make than on other platforms
19301   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19302     MAKE_VERSION_EXPR="-e 4\."
19303     MAKE_REQUIRED_VERSION="4.0"
19304    else
19305     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19306     MAKE_REQUIRED_VERSION="3.81"
19307   fi
19308 
19309   if test "x$MAKE_CANDIDATE" != x; then
19310     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19311 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19312     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19313     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19314     if test "x$IS_GNU_MAKE" = x; then
19315       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19316 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19317     else
19318       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19319       if test "x$IS_MODERN_MAKE" = x; then
19320         { $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
19321 $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;}
19322       else
19323         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19324           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19325             MAKE_EXPECTED_ENV='cygwin'
19326           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19327             MAKE_EXPECTED_ENV='msys'
19328           else
19329             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19330           fi
19331           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19332           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19333         else
19334           # Not relevant for non-Windows
19335           IS_MAKE_CORRECT_ENV=true
19336         fi
19337         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19338           { $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
19339 $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;}
19340         else
19341           FOUND_MAKE=$MAKE_CANDIDATE
19342 
19343   # Only process if variable expands to non-empty
19344 
19345   if test "x$FOUND_MAKE" != x; then
19346     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19347 
19348   # First separate the path from the arguments. This will split at the first
19349   # space.
19350   complete="$FOUND_MAKE"
19351   path="${complete%% *}"
19352   tmp="$complete EOL"
19353   arguments="${tmp#* }"
19354 
19355   # Input might be given as Windows format, start by converting to
19356   # unix format.
19357   new_path=`$CYGPATH -u "$path"`
19358 
19359   # Now try to locate executable using which
19360   new_path=`$WHICH "$new_path" 2> /dev/null`
19361   # bat and cmd files are not always considered executable in cygwin causing which
19362   # to not find them
19363   if test "x$new_path" = x \
19364       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19365       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19366     new_path=`$CYGPATH -u "$path"`
19367   fi
19368   if test "x$new_path" = x; then
19369     # Oops. Which didn't find the executable.
19370     # The splitting of arguments from the executable at a space might have been incorrect,
19371     # since paths with space are more likely in Windows. Give it another try with the whole
19372     # argument.
19373     path="$complete"
19374     arguments="EOL"
19375     new_path=`$CYGPATH -u "$path"`
19376     new_path=`$WHICH "$new_path" 2> /dev/null`
19377     # bat and cmd files are not always considered executable in cygwin causing which
19378     # to not find them
19379     if test "x$new_path" = x \
19380         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19381         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19382       new_path=`$CYGPATH -u "$path"`
19383     fi
19384     if test "x$new_path" = x; then
19385       # It's still not found. Now this is an unrecoverable error.
19386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19387 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19388       has_space=`$ECHO "$complete" | $GREP " "`
19389       if test "x$has_space" != x; then
19390         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19391 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19392       fi
19393       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19394     fi
19395   fi
19396 
19397   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19398   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19399   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19400   # "foo.exe" is OK but "foo" is an error.
19401   #
19402   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19403   # It is also a way to make sure we got the proper file name for the real test later on.
19404   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19405   if test "x$test_shortpath" = x; then
19406     # Short path failed, file does not exist as specified.
19407     # Try adding .exe or .cmd
19408     if test -f "${new_path}.exe"; then
19409       input_to_shortpath="${new_path}.exe"
19410     elif test -f "${new_path}.cmd"; then
19411       input_to_shortpath="${new_path}.cmd"
19412     else
19413       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19414 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19415       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19416 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19417       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19418     fi
19419   else
19420     input_to_shortpath="$new_path"
19421   fi
19422 
19423   # Call helper function which possibly converts this using DOS-style short mode.
19424   # If so, the updated path is stored in $new_path.
19425   new_path="$input_to_shortpath"
19426 
19427   input_path="$input_to_shortpath"
19428   # Check if we need to convert this using DOS-style short mode. If the path
19429   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19430   # take no chances and rewrite it.
19431   # Note: m4 eats our [], so we need to use [ and ] instead.
19432   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19433   if test "x$has_forbidden_chars" != x; then
19434     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19435     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19436     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19437     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19438       # Going to short mode and back again did indeed matter. Since short mode is
19439       # case insensitive, let's make it lowercase to improve readability.
19440       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19441       # Now convert it back to Unix-style (cygpath)
19442       input_path=`$CYGPATH -u "$shortmode_path"`
19443       new_path="$input_path"
19444     fi
19445   fi
19446 
19447   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19448   if test "x$test_cygdrive_prefix" = x; then
19449     # As a simple fix, exclude /usr/bin since it's not a real path.
19450     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19451       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19452       # a path prefixed by /cygdrive for fixpath to work.
19453       new_path="$CYGWIN_ROOT_PATH$input_path"
19454     fi
19455   fi
19456 
19457   # remove trailing .exe if any
19458   new_path="${new_path/%.exe/}"
19459 
19460     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19461 
19462   # First separate the path from the arguments. This will split at the first
19463   # space.
19464   complete="$FOUND_MAKE"
19465   path="${complete%% *}"
19466   tmp="$complete EOL"
19467   arguments="${tmp#* }"
19468 
19469   # Input might be given as Windows format, start by converting to
19470   # unix format.
19471   new_path="$path"
19472 
19473   windows_path="$new_path"
19474   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19475     unix_path=`$CYGPATH -u "$windows_path"`
19476     new_path="$unix_path"
19477   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19478     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19479     new_path="$unix_path"
19480   fi
19481 
19482 
19483   # Now try to locate executable using which
19484   new_path=`$WHICH "$new_path" 2> /dev/null`
19485 
19486   if test "x$new_path" = x; then
19487     # Oops. Which didn't find the executable.
19488     # The splitting of arguments from the executable at a space might have been incorrect,
19489     # since paths with space are more likely in Windows. Give it another try with the whole
19490     # argument.
19491     path="$complete"
19492     arguments="EOL"
19493     new_path="$path"
19494 
19495   windows_path="$new_path"
19496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19497     unix_path=`$CYGPATH -u "$windows_path"`
19498     new_path="$unix_path"
19499   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19500     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19501     new_path="$unix_path"
19502   fi
19503 
19504 
19505     new_path=`$WHICH "$new_path" 2> /dev/null`
19506     # bat and cmd files are not always considered executable in MSYS causing which
19507     # to not find them
19508     if test "x$new_path" = x \
19509         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19510         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19511       new_path="$path"
19512 
19513   windows_path="$new_path"
19514   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19515     unix_path=`$CYGPATH -u "$windows_path"`
19516     new_path="$unix_path"
19517   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19518     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19519     new_path="$unix_path"
19520   fi
19521 
19522     fi
19523 
19524     if test "x$new_path" = x; then
19525       # It's still not found. Now this is an unrecoverable error.
19526       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19527 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19528       has_space=`$ECHO "$complete" | $GREP " "`
19529       if test "x$has_space" != x; then
19530         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19531 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19532       fi
19533       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19534     fi
19535   fi
19536 
19537   # Now new_path has a complete unix path to the binary
19538   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19539     # Keep paths in /bin as-is, but remove trailing .exe if any
19540     new_path="${new_path/%.exe/}"
19541     # Do not save /bin paths to all_fixpath_prefixes!
19542   else
19543     # Not in mixed or Windows style, start by that.
19544     new_path=`cmd //c echo $new_path`
19545 
19546   input_path="$new_path"
19547   # Check if we need to convert this using DOS-style short mode. If the path
19548   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19549   # take no chances and rewrite it.
19550   # Note: m4 eats our [], so we need to use [ and ] instead.
19551   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19552   if test "x$has_forbidden_chars" != x; then
19553     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19554     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19555   fi
19556 
19557     # Output is in $new_path
19558 
19559   windows_path="$new_path"
19560   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19561     unix_path=`$CYGPATH -u "$windows_path"`
19562     new_path="$unix_path"
19563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19564     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19565     new_path="$unix_path"
19566   fi
19567 
19568     # remove trailing .exe if any
19569     new_path="${new_path/%.exe/}"
19570 
19571     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19572     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19573   fi
19574 
19575     else
19576       # We're on a unix platform. Hooray! :)
19577       # First separate the path from the arguments. This will split at the first
19578       # space.
19579       complete="$FOUND_MAKE"
19580       path="${complete%% *}"
19581       tmp="$complete EOL"
19582       arguments="${tmp#* }"
19583 
19584       # Cannot rely on the command "which" here since it doesn't always work.
19585       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19586       if test -z "$is_absolute_path"; then
19587         # Path to executable is not absolute. Find it.
19588         IFS_save="$IFS"
19589         IFS=:
19590         for p in $PATH; do
19591           if test -f "$p/$path" && test -x "$p/$path"; then
19592             new_path="$p/$path"
19593             break
19594           fi
19595         done
19596         IFS="$IFS_save"
19597       else
19598         # This is an absolute path, we can use it without further modifications.
19599         new_path="$path"
19600       fi
19601 
19602       if test "x$new_path" = x; then
19603         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19604 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19605         has_space=`$ECHO "$complete" | $GREP " "`
19606         if test "x$has_space" != x; then
19607           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19608 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19609         fi
19610         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19611       fi
19612     fi
19613 
19614     # Now join together the path and the arguments once again
19615     if test "x$arguments" != xEOL; then
19616       new_complete="$new_path ${arguments% *}"
19617     else
19618       new_complete="$new_path"
19619     fi
19620 
19621     if test "x$complete" != "x$new_complete"; then
19622       FOUND_MAKE="$new_complete"
19623       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19624 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19625     fi
19626   fi
19627 
19628         fi
19629       fi
19630     fi
19631   fi
19632 
19633         if test "x$FOUND_MAKE" = x; then
19634           for ac_prog in make
19635 do
19636   # Extract the first word of "$ac_prog", so it can be a program name with args.
19637 set dummy $ac_prog; ac_word=$2
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19639 $as_echo_n "checking for $ac_word... " >&6; }
19640 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19641   $as_echo_n "(cached) " >&6
19642 else
19643   case $CHECK_TOOLSDIR_MAKE in
19644   [\\/]* | ?:[\\/]*)
19645   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19646   ;;
19647   *)
19648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 for as_dir in $PATH
19650 do
19651   IFS=$as_save_IFS
19652   test -z "$as_dir" && as_dir=.
19653     for ac_exec_ext in '' $ac_executable_extensions; do
19654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19655     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19657     break 2
19658   fi
19659 done
19660   done
19661 IFS=$as_save_IFS
19662 
19663   ;;
19664 esac
19665 fi
19666 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19667 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19669 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19670 else
19671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19672 $as_echo "no" >&6; }
19673 fi
19674 
19675 
19676   test -n "$CHECK_TOOLSDIR_MAKE" && break
19677 done
19678 
19679 
19680   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19681   DESCRIPTION="make in tools-dir"
19682 
19683   # On Cygwin, we require a newer version of make than on other platforms
19684   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19685     MAKE_VERSION_EXPR="-e 4\."
19686     MAKE_REQUIRED_VERSION="4.0"
19687    else
19688     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19689     MAKE_REQUIRED_VERSION="3.81"
19690   fi
19691 
19692   if test "x$MAKE_CANDIDATE" != x; then
19693     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19694 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19695     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19696     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19697     if test "x$IS_GNU_MAKE" = x; then
19698       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19699 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19700     else
19701       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19702       if test "x$IS_MODERN_MAKE" = x; then
19703         { $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
19704 $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;}
19705       else
19706         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19707           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19708             MAKE_EXPECTED_ENV='cygwin'
19709           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19710             MAKE_EXPECTED_ENV='msys'
19711           else
19712             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19713           fi
19714           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19715           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19716         else
19717           # Not relevant for non-Windows
19718           IS_MAKE_CORRECT_ENV=true
19719         fi
19720         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19721           { $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
19722 $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;}
19723         else
19724           FOUND_MAKE=$MAKE_CANDIDATE
19725 
19726   # Only process if variable expands to non-empty
19727 
19728   if test "x$FOUND_MAKE" != x; then
19729     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19730 
19731   # First separate the path from the arguments. This will split at the first
19732   # space.
19733   complete="$FOUND_MAKE"
19734   path="${complete%% *}"
19735   tmp="$complete EOL"
19736   arguments="${tmp#* }"
19737 
19738   # Input might be given as Windows format, start by converting to
19739   # unix format.
19740   new_path=`$CYGPATH -u "$path"`
19741 
19742   # Now try to locate executable using which
19743   new_path=`$WHICH "$new_path" 2> /dev/null`
19744   # bat and cmd files are not always considered executable in cygwin causing which
19745   # to not find them
19746   if test "x$new_path" = x \
19747       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19748       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19749     new_path=`$CYGPATH -u "$path"`
19750   fi
19751   if test "x$new_path" = x; then
19752     # Oops. Which didn't find the executable.
19753     # The splitting of arguments from the executable at a space might have been incorrect,
19754     # since paths with space are more likely in Windows. Give it another try with the whole
19755     # argument.
19756     path="$complete"
19757     arguments="EOL"
19758     new_path=`$CYGPATH -u "$path"`
19759     new_path=`$WHICH "$new_path" 2> /dev/null`
19760     # bat and cmd files are not always considered executable in cygwin causing which
19761     # to not find them
19762     if test "x$new_path" = x \
19763         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19764         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19765       new_path=`$CYGPATH -u "$path"`
19766     fi
19767     if test "x$new_path" = x; then
19768       # It's still not found. Now this is an unrecoverable error.
19769       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19770 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19771       has_space=`$ECHO "$complete" | $GREP " "`
19772       if test "x$has_space" != x; then
19773         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19774 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19775       fi
19776       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19777     fi
19778   fi
19779 
19780   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19781   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19782   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19783   # "foo.exe" is OK but "foo" is an error.
19784   #
19785   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19786   # It is also a way to make sure we got the proper file name for the real test later on.
19787   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19788   if test "x$test_shortpath" = x; then
19789     # Short path failed, file does not exist as specified.
19790     # Try adding .exe or .cmd
19791     if test -f "${new_path}.exe"; then
19792       input_to_shortpath="${new_path}.exe"
19793     elif test -f "${new_path}.cmd"; then
19794       input_to_shortpath="${new_path}.cmd"
19795     else
19796       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19797 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19798       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19799 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19800       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19801     fi
19802   else
19803     input_to_shortpath="$new_path"
19804   fi
19805 
19806   # Call helper function which possibly converts this using DOS-style short mode.
19807   # If so, the updated path is stored in $new_path.
19808   new_path="$input_to_shortpath"
19809 
19810   input_path="$input_to_shortpath"
19811   # Check if we need to convert this using DOS-style short mode. If the path
19812   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19813   # take no chances and rewrite it.
19814   # Note: m4 eats our [], so we need to use [ and ] instead.
19815   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19816   if test "x$has_forbidden_chars" != x; then
19817     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19818     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19819     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19820     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19821       # Going to short mode and back again did indeed matter. Since short mode is
19822       # case insensitive, let's make it lowercase to improve readability.
19823       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19824       # Now convert it back to Unix-style (cygpath)
19825       input_path=`$CYGPATH -u "$shortmode_path"`
19826       new_path="$input_path"
19827     fi
19828   fi
19829 
19830   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19831   if test "x$test_cygdrive_prefix" = x; then
19832     # As a simple fix, exclude /usr/bin since it's not a real path.
19833     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19834       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19835       # a path prefixed by /cygdrive for fixpath to work.
19836       new_path="$CYGWIN_ROOT_PATH$input_path"
19837     fi
19838   fi
19839 
19840   # remove trailing .exe if any
19841   new_path="${new_path/%.exe/}"
19842 
19843     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19844 
19845   # First separate the path from the arguments. This will split at the first
19846   # space.
19847   complete="$FOUND_MAKE"
19848   path="${complete%% *}"
19849   tmp="$complete EOL"
19850   arguments="${tmp#* }"
19851 
19852   # Input might be given as Windows format, start by converting to
19853   # unix format.
19854   new_path="$path"
19855 
19856   windows_path="$new_path"
19857   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19858     unix_path=`$CYGPATH -u "$windows_path"`
19859     new_path="$unix_path"
19860   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19861     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19862     new_path="$unix_path"
19863   fi
19864 
19865 
19866   # Now try to locate executable using which
19867   new_path=`$WHICH "$new_path" 2> /dev/null`
19868 
19869   if test "x$new_path" = x; then
19870     # Oops. Which didn't find the executable.
19871     # The splitting of arguments from the executable at a space might have been incorrect,
19872     # since paths with space are more likely in Windows. Give it another try with the whole
19873     # argument.
19874     path="$complete"
19875     arguments="EOL"
19876     new_path="$path"
19877 
19878   windows_path="$new_path"
19879   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19880     unix_path=`$CYGPATH -u "$windows_path"`
19881     new_path="$unix_path"
19882   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19883     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19884     new_path="$unix_path"
19885   fi
19886 
19887 
19888     new_path=`$WHICH "$new_path" 2> /dev/null`
19889     # bat and cmd files are not always considered executable in MSYS causing which
19890     # to not find them
19891     if test "x$new_path" = x \
19892         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19893         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19894       new_path="$path"
19895 
19896   windows_path="$new_path"
19897   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19898     unix_path=`$CYGPATH -u "$windows_path"`
19899     new_path="$unix_path"
19900   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19901     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19902     new_path="$unix_path"
19903   fi
19904 
19905     fi
19906 
19907     if test "x$new_path" = x; then
19908       # It's still not found. Now this is an unrecoverable error.
19909       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19910 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19911       has_space=`$ECHO "$complete" | $GREP " "`
19912       if test "x$has_space" != x; then
19913         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19914 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19915       fi
19916       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19917     fi
19918   fi
19919 
19920   # Now new_path has a complete unix path to the binary
19921   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19922     # Keep paths in /bin as-is, but remove trailing .exe if any
19923     new_path="${new_path/%.exe/}"
19924     # Do not save /bin paths to all_fixpath_prefixes!
19925   else
19926     # Not in mixed or Windows style, start by that.
19927     new_path=`cmd //c echo $new_path`
19928 
19929   input_path="$new_path"
19930   # Check if we need to convert this using DOS-style short mode. If the path
19931   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19932   # take no chances and rewrite it.
19933   # Note: m4 eats our [], so we need to use [ and ] instead.
19934   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19935   if test "x$has_forbidden_chars" != x; then
19936     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19937     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19938   fi
19939 
19940     # Output is in $new_path
19941 
19942   windows_path="$new_path"
19943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19944     unix_path=`$CYGPATH -u "$windows_path"`
19945     new_path="$unix_path"
19946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19948     new_path="$unix_path"
19949   fi
19950 
19951     # remove trailing .exe if any
19952     new_path="${new_path/%.exe/}"
19953 
19954     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19955     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19956   fi
19957 
19958     else
19959       # We're on a unix platform. Hooray! :)
19960       # First separate the path from the arguments. This will split at the first
19961       # space.
19962       complete="$FOUND_MAKE"
19963       path="${complete%% *}"
19964       tmp="$complete EOL"
19965       arguments="${tmp#* }"
19966 
19967       # Cannot rely on the command "which" here since it doesn't always work.
19968       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19969       if test -z "$is_absolute_path"; then
19970         # Path to executable is not absolute. Find it.
19971         IFS_save="$IFS"
19972         IFS=:
19973         for p in $PATH; do
19974           if test -f "$p/$path" && test -x "$p/$path"; then
19975             new_path="$p/$path"
19976             break
19977           fi
19978         done
19979         IFS="$IFS_save"
19980       else
19981         # This is an absolute path, we can use it without further modifications.
19982         new_path="$path"
19983       fi
19984 
19985       if test "x$new_path" = x; then
19986         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19988         has_space=`$ECHO "$complete" | $GREP " "`
19989         if test "x$has_space" != x; then
19990           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19991 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19992         fi
19993         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19994       fi
19995     fi
19996 
19997     # Now join together the path and the arguments once again
19998     if test "x$arguments" != xEOL; then
19999       new_complete="$new_path ${arguments% *}"
20000     else
20001       new_complete="$new_path"
20002     fi
20003 
20004     if test "x$complete" != "x$new_complete"; then
20005       FOUND_MAKE="$new_complete"
20006       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20007 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20008     fi
20009   fi
20010 
20011         fi
20012       fi
20013     fi
20014   fi
20015 
20016         fi
20017         PATH=$OLD_PATH
20018       fi
20019     fi
20020 
20021     if test "x$FOUND_MAKE" = x; then
20022       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
20023     fi
20024 
20025     else
20026       # If it succeeded, then it was overridden by the user. We will use it
20027       # for the tool.
20028 
20029       # First remove it from the list of overridden variables, so we can test
20030       # for unknown variables in the end.
20031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20032 
20033       # Check if we try to supply an empty value
20034       if test "x$MAKE" = x; then
20035         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20036 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20038 $as_echo_n "checking for MAKE... " >&6; }
20039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20040 $as_echo "disabled" >&6; }
20041       else
20042         # Check if the provided tool contains a complete path.
20043         tool_specified="$MAKE"
20044         tool_basename="${tool_specified##*/}"
20045         if test "x$tool_basename" = "x$tool_specified"; then
20046           # A command without a complete path is provided, search $PATH.
20047           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20048 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20049           # Extract the first word of "$tool_basename", so it can be a program name with args.
20050 set dummy $tool_basename; ac_word=$2
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20052 $as_echo_n "checking for $ac_word... " >&6; }
20053 if ${ac_cv_path_MAKE+:} false; then :
20054   $as_echo_n "(cached) " >&6
20055 else
20056   case $MAKE in
20057   [\\/]* | ?:[\\/]*)
20058   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20059   ;;
20060   *)
20061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20062 for as_dir in $PATH
20063 do
20064   IFS=$as_save_IFS
20065   test -z "$as_dir" && as_dir=.
20066     for ac_exec_ext in '' $ac_executable_extensions; do
20067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20068     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20070     break 2
20071   fi
20072 done
20073   done
20074 IFS=$as_save_IFS
20075 
20076   ;;
20077 esac
20078 fi
20079 MAKE=$ac_cv_path_MAKE
20080 if test -n "$MAKE"; then
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20082 $as_echo "$MAKE" >&6; }
20083 else
20084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 $as_echo "no" >&6; }
20086 fi
20087 
20088 
20089           if test "x$MAKE" = x; then
20090             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20091           fi
20092         else
20093           # Otherwise we believe it is a complete path. Use it as it is.
20094           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20095 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20096           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20097 $as_echo_n "checking for MAKE... " >&6; }
20098           if test ! -x "$tool_specified"; then
20099             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20100 $as_echo "not found" >&6; }
20101             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20102           fi
20103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20104 $as_echo "$tool_specified" >&6; }
20105         fi
20106       fi
20107     fi
20108 
20109     # If MAKE was set by user, verify the version
20110 
20111   MAKE_CANDIDATE=""$MAKE""
20112   DESCRIPTION="user supplied MAKE=$MAKE"
20113 
20114   # On Cygwin, we require a newer version of make than on other platforms
20115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20116     MAKE_VERSION_EXPR="-e 4\."
20117     MAKE_REQUIRED_VERSION="4.0"
20118    else
20119     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20120     MAKE_REQUIRED_VERSION="3.81"
20121   fi
20122 
20123   if test "x$MAKE_CANDIDATE" != x; then
20124     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20125 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20126     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20127     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20128     if test "x$IS_GNU_MAKE" = x; then
20129       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20130 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20131     else
20132       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20133       if test "x$IS_MODERN_MAKE" = x; then
20134         { $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
20135 $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;}
20136       else
20137         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20138           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20139             MAKE_EXPECTED_ENV='cygwin'
20140           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20141             MAKE_EXPECTED_ENV='msys'
20142           else
20143             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20144           fi
20145           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20146           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20147         else
20148           # Not relevant for non-Windows
20149           IS_MAKE_CORRECT_ENV=true
20150         fi
20151         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20152           { $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
20153 $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;}
20154         else
20155           FOUND_MAKE=$MAKE_CANDIDATE
20156 
20157   # Only process if variable expands to non-empty
20158 
20159   if test "x$FOUND_MAKE" != x; then
20160     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20161 
20162   # First separate the path from the arguments. This will split at the first
20163   # space.
20164   complete="$FOUND_MAKE"
20165   path="${complete%% *}"
20166   tmp="$complete EOL"
20167   arguments="${tmp#* }"
20168 
20169   # Input might be given as Windows format, start by converting to
20170   # unix format.
20171   new_path=`$CYGPATH -u "$path"`
20172 
20173   # Now try to locate executable using which
20174   new_path=`$WHICH "$new_path" 2> /dev/null`
20175   # bat and cmd files are not always considered executable in cygwin causing which
20176   # to not find them
20177   if test "x$new_path" = x \
20178       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20179       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20180     new_path=`$CYGPATH -u "$path"`
20181   fi
20182   if test "x$new_path" = x; then
20183     # Oops. Which didn't find the executable.
20184     # The splitting of arguments from the executable at a space might have been incorrect,
20185     # since paths with space are more likely in Windows. Give it another try with the whole
20186     # argument.
20187     path="$complete"
20188     arguments="EOL"
20189     new_path=`$CYGPATH -u "$path"`
20190     new_path=`$WHICH "$new_path" 2> /dev/null`
20191     # bat and cmd files are not always considered executable in cygwin causing which
20192     # to not find them
20193     if test "x$new_path" = x \
20194         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20195         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20196       new_path=`$CYGPATH -u "$path"`
20197     fi
20198     if test "x$new_path" = x; then
20199       # It's still not found. Now this is an unrecoverable error.
20200       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20201 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20202       has_space=`$ECHO "$complete" | $GREP " "`
20203       if test "x$has_space" != x; then
20204         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20205 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20206       fi
20207       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20208     fi
20209   fi
20210 
20211   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20212   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20213   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20214   # "foo.exe" is OK but "foo" is an error.
20215   #
20216   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20217   # It is also a way to make sure we got the proper file name for the real test later on.
20218   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20219   if test "x$test_shortpath" = x; then
20220     # Short path failed, file does not exist as specified.
20221     # Try adding .exe or .cmd
20222     if test -f "${new_path}.exe"; then
20223       input_to_shortpath="${new_path}.exe"
20224     elif test -f "${new_path}.cmd"; then
20225       input_to_shortpath="${new_path}.cmd"
20226     else
20227       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20228 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20229       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20230 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20231       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20232     fi
20233   else
20234     input_to_shortpath="$new_path"
20235   fi
20236 
20237   # Call helper function which possibly converts this using DOS-style short mode.
20238   # If so, the updated path is stored in $new_path.
20239   new_path="$input_to_shortpath"
20240 
20241   input_path="$input_to_shortpath"
20242   # Check if we need to convert this using DOS-style short mode. If the path
20243   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20244   # take no chances and rewrite it.
20245   # Note: m4 eats our [], so we need to use [ and ] instead.
20246   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20247   if test "x$has_forbidden_chars" != x; then
20248     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20249     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20250     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20251     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20252       # Going to short mode and back again did indeed matter. Since short mode is
20253       # case insensitive, let's make it lowercase to improve readability.
20254       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20255       # Now convert it back to Unix-style (cygpath)
20256       input_path=`$CYGPATH -u "$shortmode_path"`
20257       new_path="$input_path"
20258     fi
20259   fi
20260 
20261   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20262   if test "x$test_cygdrive_prefix" = x; then
20263     # As a simple fix, exclude /usr/bin since it's not a real path.
20264     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20265       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20266       # a path prefixed by /cygdrive for fixpath to work.
20267       new_path="$CYGWIN_ROOT_PATH$input_path"
20268     fi
20269   fi
20270 
20271   # remove trailing .exe if any
20272   new_path="${new_path/%.exe/}"
20273 
20274     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20275 
20276   # First separate the path from the arguments. This will split at the first
20277   # space.
20278   complete="$FOUND_MAKE"
20279   path="${complete%% *}"
20280   tmp="$complete EOL"
20281   arguments="${tmp#* }"
20282 
20283   # Input might be given as Windows format, start by converting to
20284   # unix format.
20285   new_path="$path"
20286 
20287   windows_path="$new_path"
20288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20289     unix_path=`$CYGPATH -u "$windows_path"`
20290     new_path="$unix_path"
20291   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20292     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20293     new_path="$unix_path"
20294   fi
20295 
20296 
20297   # Now try to locate executable using which
20298   new_path=`$WHICH "$new_path" 2> /dev/null`
20299 
20300   if test "x$new_path" = x; then
20301     # Oops. Which didn't find the executable.
20302     # The splitting of arguments from the executable at a space might have been incorrect,
20303     # since paths with space are more likely in Windows. Give it another try with the whole
20304     # argument.
20305     path="$complete"
20306     arguments="EOL"
20307     new_path="$path"
20308 
20309   windows_path="$new_path"
20310   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20311     unix_path=`$CYGPATH -u "$windows_path"`
20312     new_path="$unix_path"
20313   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20314     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20315     new_path="$unix_path"
20316   fi
20317 
20318 
20319     new_path=`$WHICH "$new_path" 2> /dev/null`
20320     # bat and cmd files are not always considered executable in MSYS causing which
20321     # to not find them
20322     if test "x$new_path" = x \
20323         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20324         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20325       new_path="$path"
20326 
20327   windows_path="$new_path"
20328   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20329     unix_path=`$CYGPATH -u "$windows_path"`
20330     new_path="$unix_path"
20331   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20332     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20333     new_path="$unix_path"
20334   fi
20335 
20336     fi
20337 
20338     if test "x$new_path" = x; then
20339       # It's still not found. Now this is an unrecoverable error.
20340       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20341 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20342       has_space=`$ECHO "$complete" | $GREP " "`
20343       if test "x$has_space" != x; then
20344         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20345 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20346       fi
20347       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20348     fi
20349   fi
20350 
20351   # Now new_path has a complete unix path to the binary
20352   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20353     # Keep paths in /bin as-is, but remove trailing .exe if any
20354     new_path="${new_path/%.exe/}"
20355     # Do not save /bin paths to all_fixpath_prefixes!
20356   else
20357     # Not in mixed or Windows style, start by that.
20358     new_path=`cmd //c echo $new_path`
20359 
20360   input_path="$new_path"
20361   # Check if we need to convert this using DOS-style short mode. If the path
20362   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20363   # take no chances and rewrite it.
20364   # Note: m4 eats our [], so we need to use [ and ] instead.
20365   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20366   if test "x$has_forbidden_chars" != x; then
20367     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20368     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20369   fi
20370 
20371     # Output is in $new_path
20372 
20373   windows_path="$new_path"
20374   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20375     unix_path=`$CYGPATH -u "$windows_path"`
20376     new_path="$unix_path"
20377   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20378     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20379     new_path="$unix_path"
20380   fi
20381 
20382     # remove trailing .exe if any
20383     new_path="${new_path/%.exe/}"
20384 
20385     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20386     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20387   fi
20388 
20389     else
20390       # We're on a unix platform. Hooray! :)
20391       # First separate the path from the arguments. This will split at the first
20392       # space.
20393       complete="$FOUND_MAKE"
20394       path="${complete%% *}"
20395       tmp="$complete EOL"
20396       arguments="${tmp#* }"
20397 
20398       # Cannot rely on the command "which" here since it doesn't always work.
20399       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20400       if test -z "$is_absolute_path"; then
20401         # Path to executable is not absolute. Find it.
20402         IFS_save="$IFS"
20403         IFS=:
20404         for p in $PATH; do
20405           if test -f "$p/$path" && test -x "$p/$path"; then
20406             new_path="$p/$path"
20407             break
20408           fi
20409         done
20410         IFS="$IFS_save"
20411       else
20412         # This is an absolute path, we can use it without further modifications.
20413         new_path="$path"
20414       fi
20415 
20416       if test "x$new_path" = x; then
20417         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20418 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20419         has_space=`$ECHO "$complete" | $GREP " "`
20420         if test "x$has_space" != x; then
20421           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20422 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20423         fi
20424         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20425       fi
20426     fi
20427 
20428     # Now join together the path and the arguments once again
20429     if test "x$arguments" != xEOL; then
20430       new_complete="$new_path ${arguments% *}"
20431     else
20432       new_complete="$new_path"
20433     fi
20434 
20435     if test "x$complete" != "x$new_complete"; then
20436       FOUND_MAKE="$new_complete"
20437       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20438 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20439     fi
20440   fi
20441 
20442         fi
20443       fi
20444     fi
20445   fi
20446 
20447     if test "x$FOUND_MAKE" = x; then
20448       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20449     fi
20450 
20451   fi
20452 
20453 
20454   MAKE=$FOUND_MAKE
20455 
20456   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20457 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20458 
20459 
20460   # Check if make supports the output sync option and if so, setup using it.
20461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20462 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20463   if $MAKE --version -O > /dev/null 2>&1; then
20464     OUTPUT_SYNC_SUPPORTED=true
20465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20466 $as_echo "yes" >&6; }
20467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20468 $as_echo_n "checking for output-sync value... " >&6; }
20469 
20470 # Check whether --with-output-sync was given.
20471 if test "${with_output_sync+set}" = set; then :
20472   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20473 fi
20474 
20475     if test "x$OUTPUT_SYNC" = "x"; then
20476       OUTPUT_SYNC=none
20477     fi
20478     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20479 $as_echo "$OUTPUT_SYNC" >&6; }
20480     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20481       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20482     fi
20483   else
20484     OUTPUT_SYNC_SUPPORTED=false
20485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20486 $as_echo "no" >&6; }
20487   fi
20488 
20489 
20490 
20491 
20492 
20493 
20494   # Test if find supports -delete
20495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20496 $as_echo_n "checking if find supports -delete... " >&6; }
20497   FIND_DELETE="-delete"
20498 
20499   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20500 
20501   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20502 
20503   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20504   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20505     # No, it does not.
20506     rm $DELETEDIR/TestIfFindSupportsDelete
20507     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20508       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20509       FIND_DELETE="-print | xargs rm"
20510     else
20511       FIND_DELETE="-exec rm \{\} \+"
20512     fi
20513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20514 $as_echo "no" >&6; }
20515   else
20516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20517 $as_echo "yes" >&6; }
20518   fi
20519   rmdir $DELETEDIR
20520 
20521 
20522 
20523   # These tools might not be installed by default,
20524   # need hint on how to install them.
20525 
20526 
20527 
20528   # Publish this variable in the help.
20529 
20530 
20531   if [ -z "${UNZIP+x}" ]; then
20532     # The variable is not set by user, try to locate tool using the code snippet
20533     for ac_prog in unzip
20534 do
20535   # Extract the first word of "$ac_prog", so it can be a program name with args.
20536 set dummy $ac_prog; ac_word=$2
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20538 $as_echo_n "checking for $ac_word... " >&6; }
20539 if ${ac_cv_path_UNZIP+:} false; then :
20540   $as_echo_n "(cached) " >&6
20541 else
20542   case $UNZIP in
20543   [\\/]* | ?:[\\/]*)
20544   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20545   ;;
20546   *)
20547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20548 for as_dir in $PATH
20549 do
20550   IFS=$as_save_IFS
20551   test -z "$as_dir" && as_dir=.
20552     for ac_exec_ext in '' $ac_executable_extensions; do
20553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20554     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20556     break 2
20557   fi
20558 done
20559   done
20560 IFS=$as_save_IFS
20561 
20562   ;;
20563 esac
20564 fi
20565 UNZIP=$ac_cv_path_UNZIP
20566 if test -n "$UNZIP"; then
20567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20568 $as_echo "$UNZIP" >&6; }
20569 else
20570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20571 $as_echo "no" >&6; }
20572 fi
20573 
20574 
20575   test -n "$UNZIP" && break
20576 done
20577 
20578   else
20579     # The variable is set, but is it from the command line or the environment?
20580 
20581     # Try to remove the string !UNZIP! from our list.
20582     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20583     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20584       # If it failed, the variable was not from the command line. Ignore it,
20585       # but warn the user (except for BASH, which is always set by the calling BASH).
20586       if test "xUNZIP" != xBASH; then
20587         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20588 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20589       fi
20590       # Try to locate tool using the code snippet
20591       for ac_prog in unzip
20592 do
20593   # Extract the first word of "$ac_prog", so it can be a program name with args.
20594 set dummy $ac_prog; ac_word=$2
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20596 $as_echo_n "checking for $ac_word... " >&6; }
20597 if ${ac_cv_path_UNZIP+:} false; then :
20598   $as_echo_n "(cached) " >&6
20599 else
20600   case $UNZIP in
20601   [\\/]* | ?:[\\/]*)
20602   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20603   ;;
20604   *)
20605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20606 for as_dir in $PATH
20607 do
20608   IFS=$as_save_IFS
20609   test -z "$as_dir" && as_dir=.
20610     for ac_exec_ext in '' $ac_executable_extensions; do
20611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20612     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20614     break 2
20615   fi
20616 done
20617   done
20618 IFS=$as_save_IFS
20619 
20620   ;;
20621 esac
20622 fi
20623 UNZIP=$ac_cv_path_UNZIP
20624 if test -n "$UNZIP"; then
20625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20626 $as_echo "$UNZIP" >&6; }
20627 else
20628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20629 $as_echo "no" >&6; }
20630 fi
20631 
20632 
20633   test -n "$UNZIP" && break
20634 done
20635 
20636     else
20637       # If it succeeded, then it was overridden by the user. We will use it
20638       # for the tool.
20639 
20640       # First remove it from the list of overridden variables, so we can test
20641       # for unknown variables in the end.
20642       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20643 
20644       # Check if we try to supply an empty value
20645       if test "x$UNZIP" = x; then
20646         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20647 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20649 $as_echo_n "checking for UNZIP... " >&6; }
20650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20651 $as_echo "disabled" >&6; }
20652       else
20653         # Check if the provided tool contains a complete path.
20654         tool_specified="$UNZIP"
20655         tool_basename="${tool_specified##*/}"
20656         if test "x$tool_basename" = "x$tool_specified"; then
20657           # A command without a complete path is provided, search $PATH.
20658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20659 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20660           # Extract the first word of "$tool_basename", so it can be a program name with args.
20661 set dummy $tool_basename; ac_word=$2
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20663 $as_echo_n "checking for $ac_word... " >&6; }
20664 if ${ac_cv_path_UNZIP+:} false; then :
20665   $as_echo_n "(cached) " >&6
20666 else
20667   case $UNZIP in
20668   [\\/]* | ?:[\\/]*)
20669   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20670   ;;
20671   *)
20672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20673 for as_dir in $PATH
20674 do
20675   IFS=$as_save_IFS
20676   test -z "$as_dir" && as_dir=.
20677     for ac_exec_ext in '' $ac_executable_extensions; do
20678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20679     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20681     break 2
20682   fi
20683 done
20684   done
20685 IFS=$as_save_IFS
20686 
20687   ;;
20688 esac
20689 fi
20690 UNZIP=$ac_cv_path_UNZIP
20691 if test -n "$UNZIP"; then
20692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20693 $as_echo "$UNZIP" >&6; }
20694 else
20695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696 $as_echo "no" >&6; }
20697 fi
20698 
20699 
20700           if test "x$UNZIP" = x; then
20701             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20702           fi
20703         else
20704           # Otherwise we believe it is a complete path. Use it as it is.
20705           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20706 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20707           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20708 $as_echo_n "checking for UNZIP... " >&6; }
20709           if test ! -x "$tool_specified"; then
20710             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20711 $as_echo "not found" >&6; }
20712             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20713           fi
20714           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20715 $as_echo "$tool_specified" >&6; }
20716         fi
20717       fi
20718     fi
20719 
20720   fi
20721 
20722 
20723 
20724   if test "x$UNZIP" = x; then
20725     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20726   fi
20727 
20728 
20729 
20730 
20731 
20732   # Publish this variable in the help.
20733 
20734 
20735   if [ -z "${ZIP+x}" ]; then
20736     # The variable is not set by user, try to locate tool using the code snippet
20737     for ac_prog in zip
20738 do
20739   # Extract the first word of "$ac_prog", so it can be a program name with args.
20740 set dummy $ac_prog; ac_word=$2
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20742 $as_echo_n "checking for $ac_word... " >&6; }
20743 if ${ac_cv_path_ZIP+:} false; then :
20744   $as_echo_n "(cached) " >&6
20745 else
20746   case $ZIP in
20747   [\\/]* | ?:[\\/]*)
20748   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20749   ;;
20750   *)
20751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20752 for as_dir in $PATH
20753 do
20754   IFS=$as_save_IFS
20755   test -z "$as_dir" && as_dir=.
20756     for ac_exec_ext in '' $ac_executable_extensions; do
20757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20758     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20760     break 2
20761   fi
20762 done
20763   done
20764 IFS=$as_save_IFS
20765 
20766   ;;
20767 esac
20768 fi
20769 ZIP=$ac_cv_path_ZIP
20770 if test -n "$ZIP"; then
20771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20772 $as_echo "$ZIP" >&6; }
20773 else
20774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20775 $as_echo "no" >&6; }
20776 fi
20777 
20778 
20779   test -n "$ZIP" && break
20780 done
20781 
20782   else
20783     # The variable is set, but is it from the command line or the environment?
20784 
20785     # Try to remove the string !ZIP! from our list.
20786     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20787     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20788       # If it failed, the variable was not from the command line. Ignore it,
20789       # but warn the user (except for BASH, which is always set by the calling BASH).
20790       if test "xZIP" != xBASH; then
20791         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20792 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20793       fi
20794       # Try to locate tool using the code snippet
20795       for ac_prog in zip
20796 do
20797   # Extract the first word of "$ac_prog", so it can be a program name with args.
20798 set dummy $ac_prog; ac_word=$2
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20800 $as_echo_n "checking for $ac_word... " >&6; }
20801 if ${ac_cv_path_ZIP+:} false; then :
20802   $as_echo_n "(cached) " >&6
20803 else
20804   case $ZIP in
20805   [\\/]* | ?:[\\/]*)
20806   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20807   ;;
20808   *)
20809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20810 for as_dir in $PATH
20811 do
20812   IFS=$as_save_IFS
20813   test -z "$as_dir" && as_dir=.
20814     for ac_exec_ext in '' $ac_executable_extensions; do
20815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20816     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20818     break 2
20819   fi
20820 done
20821   done
20822 IFS=$as_save_IFS
20823 
20824   ;;
20825 esac
20826 fi
20827 ZIP=$ac_cv_path_ZIP
20828 if test -n "$ZIP"; then
20829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20830 $as_echo "$ZIP" >&6; }
20831 else
20832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20833 $as_echo "no" >&6; }
20834 fi
20835 
20836 
20837   test -n "$ZIP" && break
20838 done
20839 
20840     else
20841       # If it succeeded, then it was overridden by the user. We will use it
20842       # for the tool.
20843 
20844       # First remove it from the list of overridden variables, so we can test
20845       # for unknown variables in the end.
20846       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20847 
20848       # Check if we try to supply an empty value
20849       if test "x$ZIP" = x; then
20850         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20851 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20853 $as_echo_n "checking for ZIP... " >&6; }
20854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20855 $as_echo "disabled" >&6; }
20856       else
20857         # Check if the provided tool contains a complete path.
20858         tool_specified="$ZIP"
20859         tool_basename="${tool_specified##*/}"
20860         if test "x$tool_basename" = "x$tool_specified"; then
20861           # A command without a complete path is provided, search $PATH.
20862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20863 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20864           # Extract the first word of "$tool_basename", so it can be a program name with args.
20865 set dummy $tool_basename; ac_word=$2
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20867 $as_echo_n "checking for $ac_word... " >&6; }
20868 if ${ac_cv_path_ZIP+:} false; then :
20869   $as_echo_n "(cached) " >&6
20870 else
20871   case $ZIP in
20872   [\\/]* | ?:[\\/]*)
20873   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20874   ;;
20875   *)
20876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20877 for as_dir in $PATH
20878 do
20879   IFS=$as_save_IFS
20880   test -z "$as_dir" && as_dir=.
20881     for ac_exec_ext in '' $ac_executable_extensions; do
20882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20883     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20885     break 2
20886   fi
20887 done
20888   done
20889 IFS=$as_save_IFS
20890 
20891   ;;
20892 esac
20893 fi
20894 ZIP=$ac_cv_path_ZIP
20895 if test -n "$ZIP"; then
20896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20897 $as_echo "$ZIP" >&6; }
20898 else
20899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20900 $as_echo "no" >&6; }
20901 fi
20902 
20903 
20904           if test "x$ZIP" = x; then
20905             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20906           fi
20907         else
20908           # Otherwise we believe it is a complete path. Use it as it is.
20909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20910 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20911           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20912 $as_echo_n "checking for ZIP... " >&6; }
20913           if test ! -x "$tool_specified"; then
20914             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20915 $as_echo "not found" >&6; }
20916             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20917           fi
20918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20919 $as_echo "$tool_specified" >&6; }
20920         fi
20921       fi
20922     fi
20923 
20924   fi
20925 
20926 
20927 
20928   if test "x$ZIP" = x; then
20929     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20930   fi
20931 
20932 
20933 
20934   # Non-required basic tools
20935 
20936 
20937 
20938   # Publish this variable in the help.
20939 
20940 
20941   if [ -z "${LDD+x}" ]; then
20942     # The variable is not set by user, try to locate tool using the code snippet
20943     for ac_prog in ldd
20944 do
20945   # Extract the first word of "$ac_prog", so it can be a program name with args.
20946 set dummy $ac_prog; ac_word=$2
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20948 $as_echo_n "checking for $ac_word... " >&6; }
20949 if ${ac_cv_path_LDD+:} false; then :
20950   $as_echo_n "(cached) " >&6
20951 else
20952   case $LDD in
20953   [\\/]* | ?:[\\/]*)
20954   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20955   ;;
20956   *)
20957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20958 for as_dir in $PATH
20959 do
20960   IFS=$as_save_IFS
20961   test -z "$as_dir" && as_dir=.
20962     for ac_exec_ext in '' $ac_executable_extensions; do
20963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20964     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20966     break 2
20967   fi
20968 done
20969   done
20970 IFS=$as_save_IFS
20971 
20972   ;;
20973 esac
20974 fi
20975 LDD=$ac_cv_path_LDD
20976 if test -n "$LDD"; then
20977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20978 $as_echo "$LDD" >&6; }
20979 else
20980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981 $as_echo "no" >&6; }
20982 fi
20983 
20984 
20985   test -n "$LDD" && break
20986 done
20987 
20988   else
20989     # The variable is set, but is it from the command line or the environment?
20990 
20991     # Try to remove the string !LDD! from our list.
20992     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20993     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20994       # If it failed, the variable was not from the command line. Ignore it,
20995       # but warn the user (except for BASH, which is always set by the calling BASH).
20996       if test "xLDD" != xBASH; then
20997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20998 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20999       fi
21000       # Try to locate tool using the code snippet
21001       for ac_prog in ldd
21002 do
21003   # Extract the first word of "$ac_prog", so it can be a program name with args.
21004 set dummy $ac_prog; ac_word=$2
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21006 $as_echo_n "checking for $ac_word... " >&6; }
21007 if ${ac_cv_path_LDD+:} false; then :
21008   $as_echo_n "(cached) " >&6
21009 else
21010   case $LDD in
21011   [\\/]* | ?:[\\/]*)
21012   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21013   ;;
21014   *)
21015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016 for as_dir in $PATH
21017 do
21018   IFS=$as_save_IFS
21019   test -z "$as_dir" && as_dir=.
21020     for ac_exec_ext in '' $ac_executable_extensions; do
21021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21022     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21024     break 2
21025   fi
21026 done
21027   done
21028 IFS=$as_save_IFS
21029 
21030   ;;
21031 esac
21032 fi
21033 LDD=$ac_cv_path_LDD
21034 if test -n "$LDD"; then
21035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21036 $as_echo "$LDD" >&6; }
21037 else
21038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21039 $as_echo "no" >&6; }
21040 fi
21041 
21042 
21043   test -n "$LDD" && break
21044 done
21045 
21046     else
21047       # If it succeeded, then it was overridden by the user. We will use it
21048       # for the tool.
21049 
21050       # First remove it from the list of overridden variables, so we can test
21051       # for unknown variables in the end.
21052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21053 
21054       # Check if we try to supply an empty value
21055       if test "x$LDD" = x; then
21056         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21057 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21059 $as_echo_n "checking for LDD... " >&6; }
21060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21061 $as_echo "disabled" >&6; }
21062       else
21063         # Check if the provided tool contains a complete path.
21064         tool_specified="$LDD"
21065         tool_basename="${tool_specified##*/}"
21066         if test "x$tool_basename" = "x$tool_specified"; then
21067           # A command without a complete path is provided, search $PATH.
21068           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21069 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21070           # Extract the first word of "$tool_basename", so it can be a program name with args.
21071 set dummy $tool_basename; ac_word=$2
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21073 $as_echo_n "checking for $ac_word... " >&6; }
21074 if ${ac_cv_path_LDD+:} false; then :
21075   $as_echo_n "(cached) " >&6
21076 else
21077   case $LDD in
21078   [\\/]* | ?:[\\/]*)
21079   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21080   ;;
21081   *)
21082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21083 for as_dir in $PATH
21084 do
21085   IFS=$as_save_IFS
21086   test -z "$as_dir" && as_dir=.
21087     for ac_exec_ext in '' $ac_executable_extensions; do
21088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21089     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21091     break 2
21092   fi
21093 done
21094   done
21095 IFS=$as_save_IFS
21096 
21097   ;;
21098 esac
21099 fi
21100 LDD=$ac_cv_path_LDD
21101 if test -n "$LDD"; then
21102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21103 $as_echo "$LDD" >&6; }
21104 else
21105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21106 $as_echo "no" >&6; }
21107 fi
21108 
21109 
21110           if test "x$LDD" = x; then
21111             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21112           fi
21113         else
21114           # Otherwise we believe it is a complete path. Use it as it is.
21115           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21116 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21117           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21118 $as_echo_n "checking for LDD... " >&6; }
21119           if test ! -x "$tool_specified"; then
21120             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21121 $as_echo "not found" >&6; }
21122             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21123           fi
21124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21125 $as_echo "$tool_specified" >&6; }
21126         fi
21127       fi
21128     fi
21129 
21130   fi
21131 
21132 
21133   if test "x$LDD" = "x"; then
21134     # List shared lib dependencies is used for
21135     # debug output and checking for forbidden dependencies.
21136     # We can build without it.
21137     LDD="true"
21138   fi
21139 
21140 
21141   # Publish this variable in the help.
21142 
21143 
21144   if [ -z "${OTOOL+x}" ]; then
21145     # The variable is not set by user, try to locate tool using the code snippet
21146     for ac_prog in otool
21147 do
21148   # Extract the first word of "$ac_prog", so it can be a program name with args.
21149 set dummy $ac_prog; ac_word=$2
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21151 $as_echo_n "checking for $ac_word... " >&6; }
21152 if ${ac_cv_path_OTOOL+:} false; then :
21153   $as_echo_n "(cached) " >&6
21154 else
21155   case $OTOOL in
21156   [\\/]* | ?:[\\/]*)
21157   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21158   ;;
21159   *)
21160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21161 for as_dir in $PATH
21162 do
21163   IFS=$as_save_IFS
21164   test -z "$as_dir" && as_dir=.
21165     for ac_exec_ext in '' $ac_executable_extensions; do
21166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21167     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21169     break 2
21170   fi
21171 done
21172   done
21173 IFS=$as_save_IFS
21174 
21175   ;;
21176 esac
21177 fi
21178 OTOOL=$ac_cv_path_OTOOL
21179 if test -n "$OTOOL"; then
21180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21181 $as_echo "$OTOOL" >&6; }
21182 else
21183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21184 $as_echo "no" >&6; }
21185 fi
21186 
21187 
21188   test -n "$OTOOL" && break
21189 done
21190 
21191   else
21192     # The variable is set, but is it from the command line or the environment?
21193 
21194     # Try to remove the string !OTOOL! from our list.
21195     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21196     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21197       # If it failed, the variable was not from the command line. Ignore it,
21198       # but warn the user (except for BASH, which is always set by the calling BASH).
21199       if test "xOTOOL" != xBASH; then
21200         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21201 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21202       fi
21203       # Try to locate tool using the code snippet
21204       for ac_prog in otool
21205 do
21206   # Extract the first word of "$ac_prog", so it can be a program name with args.
21207 set dummy $ac_prog; ac_word=$2
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21209 $as_echo_n "checking for $ac_word... " >&6; }
21210 if ${ac_cv_path_OTOOL+:} false; then :
21211   $as_echo_n "(cached) " >&6
21212 else
21213   case $OTOOL in
21214   [\\/]* | ?:[\\/]*)
21215   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21216   ;;
21217   *)
21218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21219 for as_dir in $PATH
21220 do
21221   IFS=$as_save_IFS
21222   test -z "$as_dir" && as_dir=.
21223     for ac_exec_ext in '' $ac_executable_extensions; do
21224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21225     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21227     break 2
21228   fi
21229 done
21230   done
21231 IFS=$as_save_IFS
21232 
21233   ;;
21234 esac
21235 fi
21236 OTOOL=$ac_cv_path_OTOOL
21237 if test -n "$OTOOL"; then
21238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21239 $as_echo "$OTOOL" >&6; }
21240 else
21241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21242 $as_echo "no" >&6; }
21243 fi
21244 
21245 
21246   test -n "$OTOOL" && break
21247 done
21248 
21249     else
21250       # If it succeeded, then it was overridden by the user. We will use it
21251       # for the tool.
21252 
21253       # First remove it from the list of overridden variables, so we can test
21254       # for unknown variables in the end.
21255       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21256 
21257       # Check if we try to supply an empty value
21258       if test "x$OTOOL" = x; then
21259         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21260 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21262 $as_echo_n "checking for OTOOL... " >&6; }
21263         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21264 $as_echo "disabled" >&6; }
21265       else
21266         # Check if the provided tool contains a complete path.
21267         tool_specified="$OTOOL"
21268         tool_basename="${tool_specified##*/}"
21269         if test "x$tool_basename" = "x$tool_specified"; then
21270           # A command without a complete path is provided, search $PATH.
21271           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21272 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21273           # Extract the first word of "$tool_basename", so it can be a program name with args.
21274 set dummy $tool_basename; ac_word=$2
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21276 $as_echo_n "checking for $ac_word... " >&6; }
21277 if ${ac_cv_path_OTOOL+:} false; then :
21278   $as_echo_n "(cached) " >&6
21279 else
21280   case $OTOOL in
21281   [\\/]* | ?:[\\/]*)
21282   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21283   ;;
21284   *)
21285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21286 for as_dir in $PATH
21287 do
21288   IFS=$as_save_IFS
21289   test -z "$as_dir" && as_dir=.
21290     for ac_exec_ext in '' $ac_executable_extensions; do
21291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21292     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21294     break 2
21295   fi
21296 done
21297   done
21298 IFS=$as_save_IFS
21299 
21300   ;;
21301 esac
21302 fi
21303 OTOOL=$ac_cv_path_OTOOL
21304 if test -n "$OTOOL"; then
21305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21306 $as_echo "$OTOOL" >&6; }
21307 else
21308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21309 $as_echo "no" >&6; }
21310 fi
21311 
21312 
21313           if test "x$OTOOL" = x; then
21314             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21315           fi
21316         else
21317           # Otherwise we believe it is a complete path. Use it as it is.
21318           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21319 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21320           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21321 $as_echo_n "checking for OTOOL... " >&6; }
21322           if test ! -x "$tool_specified"; then
21323             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21324 $as_echo "not found" >&6; }
21325             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21326           fi
21327           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21328 $as_echo "$tool_specified" >&6; }
21329         fi
21330       fi
21331     fi
21332 
21333   fi
21334 
21335 
21336   if test "x$OTOOL" = "x"; then
21337     OTOOL="true"
21338   fi
21339 
21340 
21341   # Publish this variable in the help.
21342 
21343 
21344   if [ -z "${READELF+x}" ]; then
21345     # The variable is not set by user, try to locate tool using the code snippet
21346     for ac_prog in greadelf readelf
21347 do
21348   # Extract the first word of "$ac_prog", so it can be a program name with args.
21349 set dummy $ac_prog; ac_word=$2
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21351 $as_echo_n "checking for $ac_word... " >&6; }
21352 if ${ac_cv_path_READELF+:} false; then :
21353   $as_echo_n "(cached) " >&6
21354 else
21355   case $READELF in
21356   [\\/]* | ?:[\\/]*)
21357   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21358   ;;
21359   *)
21360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21361 for as_dir in $PATH
21362 do
21363   IFS=$as_save_IFS
21364   test -z "$as_dir" && as_dir=.
21365     for ac_exec_ext in '' $ac_executable_extensions; do
21366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21367     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21369     break 2
21370   fi
21371 done
21372   done
21373 IFS=$as_save_IFS
21374 
21375   ;;
21376 esac
21377 fi
21378 READELF=$ac_cv_path_READELF
21379 if test -n "$READELF"; then
21380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21381 $as_echo "$READELF" >&6; }
21382 else
21383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21384 $as_echo "no" >&6; }
21385 fi
21386 
21387 
21388   test -n "$READELF" && break
21389 done
21390 
21391   else
21392     # The variable is set, but is it from the command line or the environment?
21393 
21394     # Try to remove the string !READELF! from our list.
21395     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21396     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21397       # If it failed, the variable was not from the command line. Ignore it,
21398       # but warn the user (except for BASH, which is always set by the calling BASH).
21399       if test "xREADELF" != xBASH; then
21400         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21401 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21402       fi
21403       # Try to locate tool using the code snippet
21404       for ac_prog in greadelf readelf
21405 do
21406   # Extract the first word of "$ac_prog", so it can be a program name with args.
21407 set dummy $ac_prog; ac_word=$2
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21409 $as_echo_n "checking for $ac_word... " >&6; }
21410 if ${ac_cv_path_READELF+:} false; then :
21411   $as_echo_n "(cached) " >&6
21412 else
21413   case $READELF in
21414   [\\/]* | ?:[\\/]*)
21415   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21416   ;;
21417   *)
21418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21419 for as_dir in $PATH
21420 do
21421   IFS=$as_save_IFS
21422   test -z "$as_dir" && as_dir=.
21423     for ac_exec_ext in '' $ac_executable_extensions; do
21424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21425     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21427     break 2
21428   fi
21429 done
21430   done
21431 IFS=$as_save_IFS
21432 
21433   ;;
21434 esac
21435 fi
21436 READELF=$ac_cv_path_READELF
21437 if test -n "$READELF"; then
21438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21439 $as_echo "$READELF" >&6; }
21440 else
21441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21442 $as_echo "no" >&6; }
21443 fi
21444 
21445 
21446   test -n "$READELF" && break
21447 done
21448 
21449     else
21450       # If it succeeded, then it was overridden by the user. We will use it
21451       # for the tool.
21452 
21453       # First remove it from the list of overridden variables, so we can test
21454       # for unknown variables in the end.
21455       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21456 
21457       # Check if we try to supply an empty value
21458       if test "x$READELF" = x; then
21459         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21460 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21462 $as_echo_n "checking for READELF... " >&6; }
21463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21464 $as_echo "disabled" >&6; }
21465       else
21466         # Check if the provided tool contains a complete path.
21467         tool_specified="$READELF"
21468         tool_basename="${tool_specified##*/}"
21469         if test "x$tool_basename" = "x$tool_specified"; then
21470           # A command without a complete path is provided, search $PATH.
21471           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21472 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21473           # Extract the first word of "$tool_basename", so it can be a program name with args.
21474 set dummy $tool_basename; ac_word=$2
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21476 $as_echo_n "checking for $ac_word... " >&6; }
21477 if ${ac_cv_path_READELF+:} false; then :
21478   $as_echo_n "(cached) " >&6
21479 else
21480   case $READELF in
21481   [\\/]* | ?:[\\/]*)
21482   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21483   ;;
21484   *)
21485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21486 for as_dir in $PATH
21487 do
21488   IFS=$as_save_IFS
21489   test -z "$as_dir" && as_dir=.
21490     for ac_exec_ext in '' $ac_executable_extensions; do
21491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21492     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21494     break 2
21495   fi
21496 done
21497   done
21498 IFS=$as_save_IFS
21499 
21500   ;;
21501 esac
21502 fi
21503 READELF=$ac_cv_path_READELF
21504 if test -n "$READELF"; then
21505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21506 $as_echo "$READELF" >&6; }
21507 else
21508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21509 $as_echo "no" >&6; }
21510 fi
21511 
21512 
21513           if test "x$READELF" = x; then
21514             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21515           fi
21516         else
21517           # Otherwise we believe it is a complete path. Use it as it is.
21518           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21519 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21520           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21521 $as_echo_n "checking for READELF... " >&6; }
21522           if test ! -x "$tool_specified"; then
21523             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21524 $as_echo "not found" >&6; }
21525             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21526           fi
21527           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21528 $as_echo "$tool_specified" >&6; }
21529         fi
21530       fi
21531     fi
21532 
21533   fi
21534 
21535 
21536 
21537 
21538   # Publish this variable in the help.
21539 
21540 
21541   if [ -z "${HG+x}" ]; then
21542     # The variable is not set by user, try to locate tool using the code snippet
21543     for ac_prog in hg
21544 do
21545   # Extract the first word of "$ac_prog", so it can be a program name with args.
21546 set dummy $ac_prog; ac_word=$2
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21548 $as_echo_n "checking for $ac_word... " >&6; }
21549 if ${ac_cv_path_HG+:} false; then :
21550   $as_echo_n "(cached) " >&6
21551 else
21552   case $HG in
21553   [\\/]* | ?:[\\/]*)
21554   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21555   ;;
21556   *)
21557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21558 for as_dir in $PATH
21559 do
21560   IFS=$as_save_IFS
21561   test -z "$as_dir" && as_dir=.
21562     for ac_exec_ext in '' $ac_executable_extensions; do
21563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21564     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21566     break 2
21567   fi
21568 done
21569   done
21570 IFS=$as_save_IFS
21571 
21572   ;;
21573 esac
21574 fi
21575 HG=$ac_cv_path_HG
21576 if test -n "$HG"; then
21577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21578 $as_echo "$HG" >&6; }
21579 else
21580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21581 $as_echo "no" >&6; }
21582 fi
21583 
21584 
21585   test -n "$HG" && break
21586 done
21587 
21588   else
21589     # The variable is set, but is it from the command line or the environment?
21590 
21591     # Try to remove the string !HG! from our list.
21592     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21593     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21594       # If it failed, the variable was not from the command line. Ignore it,
21595       # but warn the user (except for BASH, which is always set by the calling BASH).
21596       if test "xHG" != xBASH; then
21597         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21598 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21599       fi
21600       # Try to locate tool using the code snippet
21601       for ac_prog in hg
21602 do
21603   # Extract the first word of "$ac_prog", so it can be a program name with args.
21604 set dummy $ac_prog; ac_word=$2
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21606 $as_echo_n "checking for $ac_word... " >&6; }
21607 if ${ac_cv_path_HG+:} false; then :
21608   $as_echo_n "(cached) " >&6
21609 else
21610   case $HG in
21611   [\\/]* | ?:[\\/]*)
21612   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21613   ;;
21614   *)
21615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21616 for as_dir in $PATH
21617 do
21618   IFS=$as_save_IFS
21619   test -z "$as_dir" && as_dir=.
21620     for ac_exec_ext in '' $ac_executable_extensions; do
21621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21622     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21624     break 2
21625   fi
21626 done
21627   done
21628 IFS=$as_save_IFS
21629 
21630   ;;
21631 esac
21632 fi
21633 HG=$ac_cv_path_HG
21634 if test -n "$HG"; then
21635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21636 $as_echo "$HG" >&6; }
21637 else
21638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639 $as_echo "no" >&6; }
21640 fi
21641 
21642 
21643   test -n "$HG" && break
21644 done
21645 
21646     else
21647       # If it succeeded, then it was overridden by the user. We will use it
21648       # for the tool.
21649 
21650       # First remove it from the list of overridden variables, so we can test
21651       # for unknown variables in the end.
21652       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21653 
21654       # Check if we try to supply an empty value
21655       if test "x$HG" = x; then
21656         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21657 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21658         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21659 $as_echo_n "checking for HG... " >&6; }
21660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21661 $as_echo "disabled" >&6; }
21662       else
21663         # Check if the provided tool contains a complete path.
21664         tool_specified="$HG"
21665         tool_basename="${tool_specified##*/}"
21666         if test "x$tool_basename" = "x$tool_specified"; then
21667           # A command without a complete path is provided, search $PATH.
21668           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21669 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21670           # Extract the first word of "$tool_basename", so it can be a program name with args.
21671 set dummy $tool_basename; ac_word=$2
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21673 $as_echo_n "checking for $ac_word... " >&6; }
21674 if ${ac_cv_path_HG+:} false; then :
21675   $as_echo_n "(cached) " >&6
21676 else
21677   case $HG in
21678   [\\/]* | ?:[\\/]*)
21679   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21680   ;;
21681   *)
21682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21683 for as_dir in $PATH
21684 do
21685   IFS=$as_save_IFS
21686   test -z "$as_dir" && as_dir=.
21687     for ac_exec_ext in '' $ac_executable_extensions; do
21688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21689     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21691     break 2
21692   fi
21693 done
21694   done
21695 IFS=$as_save_IFS
21696 
21697   ;;
21698 esac
21699 fi
21700 HG=$ac_cv_path_HG
21701 if test -n "$HG"; then
21702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21703 $as_echo "$HG" >&6; }
21704 else
21705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21706 $as_echo "no" >&6; }
21707 fi
21708 
21709 
21710           if test "x$HG" = x; then
21711             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21712           fi
21713         else
21714           # Otherwise we believe it is a complete path. Use it as it is.
21715           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21716 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21717           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21718 $as_echo_n "checking for HG... " >&6; }
21719           if test ! -x "$tool_specified"; then
21720             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21721 $as_echo "not found" >&6; }
21722             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21723           fi
21724           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21725 $as_echo "$tool_specified" >&6; }
21726         fi
21727       fi
21728     fi
21729 
21730   fi
21731 
21732 
21733 
21734 
21735   # Publish this variable in the help.
21736 
21737 
21738   if [ -z "${STAT+x}" ]; then
21739     # The variable is not set by user, try to locate tool using the code snippet
21740     for ac_prog in stat
21741 do
21742   # Extract the first word of "$ac_prog", so it can be a program name with args.
21743 set dummy $ac_prog; ac_word=$2
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21745 $as_echo_n "checking for $ac_word... " >&6; }
21746 if ${ac_cv_path_STAT+:} false; then :
21747   $as_echo_n "(cached) " >&6
21748 else
21749   case $STAT in
21750   [\\/]* | ?:[\\/]*)
21751   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21752   ;;
21753   *)
21754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21755 for as_dir in $PATH
21756 do
21757   IFS=$as_save_IFS
21758   test -z "$as_dir" && as_dir=.
21759     for ac_exec_ext in '' $ac_executable_extensions; do
21760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21761     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21763     break 2
21764   fi
21765 done
21766   done
21767 IFS=$as_save_IFS
21768 
21769   ;;
21770 esac
21771 fi
21772 STAT=$ac_cv_path_STAT
21773 if test -n "$STAT"; then
21774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21775 $as_echo "$STAT" >&6; }
21776 else
21777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21778 $as_echo "no" >&6; }
21779 fi
21780 
21781 
21782   test -n "$STAT" && break
21783 done
21784 
21785   else
21786     # The variable is set, but is it from the command line or the environment?
21787 
21788     # Try to remove the string !STAT! from our list.
21789     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21790     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21791       # If it failed, the variable was not from the command line. Ignore it,
21792       # but warn the user (except for BASH, which is always set by the calling BASH).
21793       if test "xSTAT" != xBASH; then
21794         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21795 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21796       fi
21797       # Try to locate tool using the code snippet
21798       for ac_prog in stat
21799 do
21800   # Extract the first word of "$ac_prog", so it can be a program name with args.
21801 set dummy $ac_prog; ac_word=$2
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21803 $as_echo_n "checking for $ac_word... " >&6; }
21804 if ${ac_cv_path_STAT+:} false; then :
21805   $as_echo_n "(cached) " >&6
21806 else
21807   case $STAT in
21808   [\\/]* | ?:[\\/]*)
21809   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21810   ;;
21811   *)
21812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21813 for as_dir in $PATH
21814 do
21815   IFS=$as_save_IFS
21816   test -z "$as_dir" && as_dir=.
21817     for ac_exec_ext in '' $ac_executable_extensions; do
21818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21819     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21821     break 2
21822   fi
21823 done
21824   done
21825 IFS=$as_save_IFS
21826 
21827   ;;
21828 esac
21829 fi
21830 STAT=$ac_cv_path_STAT
21831 if test -n "$STAT"; then
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21833 $as_echo "$STAT" >&6; }
21834 else
21835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21837 fi
21838 
21839 
21840   test -n "$STAT" && break
21841 done
21842 
21843     else
21844       # If it succeeded, then it was overridden by the user. We will use it
21845       # for the tool.
21846 
21847       # First remove it from the list of overridden variables, so we can test
21848       # for unknown variables in the end.
21849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21850 
21851       # Check if we try to supply an empty value
21852       if test "x$STAT" = x; then
21853         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21854 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21856 $as_echo_n "checking for STAT... " >&6; }
21857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21858 $as_echo "disabled" >&6; }
21859       else
21860         # Check if the provided tool contains a complete path.
21861         tool_specified="$STAT"
21862         tool_basename="${tool_specified##*/}"
21863         if test "x$tool_basename" = "x$tool_specified"; then
21864           # A command without a complete path is provided, search $PATH.
21865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21866 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21867           # Extract the first word of "$tool_basename", so it can be a program name with args.
21868 set dummy $tool_basename; ac_word=$2
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21870 $as_echo_n "checking for $ac_word... " >&6; }
21871 if ${ac_cv_path_STAT+:} false; then :
21872   $as_echo_n "(cached) " >&6
21873 else
21874   case $STAT in
21875   [\\/]* | ?:[\\/]*)
21876   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21877   ;;
21878   *)
21879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880 for as_dir in $PATH
21881 do
21882   IFS=$as_save_IFS
21883   test -z "$as_dir" && as_dir=.
21884     for ac_exec_ext in '' $ac_executable_extensions; do
21885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21886     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21888     break 2
21889   fi
21890 done
21891   done
21892 IFS=$as_save_IFS
21893 
21894   ;;
21895 esac
21896 fi
21897 STAT=$ac_cv_path_STAT
21898 if test -n "$STAT"; then
21899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21900 $as_echo "$STAT" >&6; }
21901 else
21902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21903 $as_echo "no" >&6; }
21904 fi
21905 
21906 
21907           if test "x$STAT" = x; then
21908             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21909           fi
21910         else
21911           # Otherwise we believe it is a complete path. Use it as it is.
21912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21913 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21914           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21915 $as_echo_n "checking for STAT... " >&6; }
21916           if test ! -x "$tool_specified"; then
21917             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21918 $as_echo "not found" >&6; }
21919             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21920           fi
21921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21922 $as_echo "$tool_specified" >&6; }
21923         fi
21924       fi
21925     fi
21926 
21927   fi
21928 
21929 
21930 
21931 
21932   # Publish this variable in the help.
21933 
21934 
21935   if [ -z "${TIME+x}" ]; then
21936     # The variable is not set by user, try to locate tool using the code snippet
21937     for ac_prog in time
21938 do
21939   # Extract the first word of "$ac_prog", so it can be a program name with args.
21940 set dummy $ac_prog; ac_word=$2
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21942 $as_echo_n "checking for $ac_word... " >&6; }
21943 if ${ac_cv_path_TIME+:} false; then :
21944   $as_echo_n "(cached) " >&6
21945 else
21946   case $TIME in
21947   [\\/]* | ?:[\\/]*)
21948   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21949   ;;
21950   *)
21951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21952 for as_dir in $PATH
21953 do
21954   IFS=$as_save_IFS
21955   test -z "$as_dir" && as_dir=.
21956     for ac_exec_ext in '' $ac_executable_extensions; do
21957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21958     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21960     break 2
21961   fi
21962 done
21963   done
21964 IFS=$as_save_IFS
21965 
21966   ;;
21967 esac
21968 fi
21969 TIME=$ac_cv_path_TIME
21970 if test -n "$TIME"; then
21971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21972 $as_echo "$TIME" >&6; }
21973 else
21974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21975 $as_echo "no" >&6; }
21976 fi
21977 
21978 
21979   test -n "$TIME" && break
21980 done
21981 
21982   else
21983     # The variable is set, but is it from the command line or the environment?
21984 
21985     # Try to remove the string !TIME! from our list.
21986     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21987     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21988       # If it failed, the variable was not from the command line. Ignore it,
21989       # but warn the user (except for BASH, which is always set by the calling BASH).
21990       if test "xTIME" != xBASH; then
21991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21992 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21993       fi
21994       # Try to locate tool using the code snippet
21995       for ac_prog in time
21996 do
21997   # Extract the first word of "$ac_prog", so it can be a program name with args.
21998 set dummy $ac_prog; ac_word=$2
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22000 $as_echo_n "checking for $ac_word... " >&6; }
22001 if ${ac_cv_path_TIME+:} false; then :
22002   $as_echo_n "(cached) " >&6
22003 else
22004   case $TIME in
22005   [\\/]* | ?:[\\/]*)
22006   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22007   ;;
22008   *)
22009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22010 for as_dir in $PATH
22011 do
22012   IFS=$as_save_IFS
22013   test -z "$as_dir" && as_dir=.
22014     for ac_exec_ext in '' $ac_executable_extensions; do
22015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22016     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22018     break 2
22019   fi
22020 done
22021   done
22022 IFS=$as_save_IFS
22023 
22024   ;;
22025 esac
22026 fi
22027 TIME=$ac_cv_path_TIME
22028 if test -n "$TIME"; then
22029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22030 $as_echo "$TIME" >&6; }
22031 else
22032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22033 $as_echo "no" >&6; }
22034 fi
22035 
22036 
22037   test -n "$TIME" && break
22038 done
22039 
22040     else
22041       # If it succeeded, then it was overridden by the user. We will use it
22042       # for the tool.
22043 
22044       # First remove it from the list of overridden variables, so we can test
22045       # for unknown variables in the end.
22046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22047 
22048       # Check if we try to supply an empty value
22049       if test "x$TIME" = x; then
22050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22051 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22053 $as_echo_n "checking for TIME... " >&6; }
22054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22055 $as_echo "disabled" >&6; }
22056       else
22057         # Check if the provided tool contains a complete path.
22058         tool_specified="$TIME"
22059         tool_basename="${tool_specified##*/}"
22060         if test "x$tool_basename" = "x$tool_specified"; then
22061           # A command without a complete path is provided, search $PATH.
22062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22063 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22064           # Extract the first word of "$tool_basename", so it can be a program name with args.
22065 set dummy $tool_basename; ac_word=$2
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22067 $as_echo_n "checking for $ac_word... " >&6; }
22068 if ${ac_cv_path_TIME+:} false; then :
22069   $as_echo_n "(cached) " >&6
22070 else
22071   case $TIME in
22072   [\\/]* | ?:[\\/]*)
22073   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22074   ;;
22075   *)
22076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22077 for as_dir in $PATH
22078 do
22079   IFS=$as_save_IFS
22080   test -z "$as_dir" && as_dir=.
22081     for ac_exec_ext in '' $ac_executable_extensions; do
22082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22083     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22085     break 2
22086   fi
22087 done
22088   done
22089 IFS=$as_save_IFS
22090 
22091   ;;
22092 esac
22093 fi
22094 TIME=$ac_cv_path_TIME
22095 if test -n "$TIME"; then
22096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22097 $as_echo "$TIME" >&6; }
22098 else
22099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22100 $as_echo "no" >&6; }
22101 fi
22102 
22103 
22104           if test "x$TIME" = x; then
22105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22106           fi
22107         else
22108           # Otherwise we believe it is a complete path. Use it as it is.
22109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22110 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22112 $as_echo_n "checking for TIME... " >&6; }
22113           if test ! -x "$tool_specified"; then
22114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22115 $as_echo "not found" >&6; }
22116             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22117           fi
22118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22119 $as_echo "$tool_specified" >&6; }
22120         fi
22121       fi
22122     fi
22123 
22124   fi
22125 
22126 
22127 
22128 
22129   # Publish this variable in the help.
22130 
22131 
22132   if [ -z "${PATCH+x}" ]; then
22133     # The variable is not set by user, try to locate tool using the code snippet
22134     for ac_prog in gpatch patch
22135 do
22136   # Extract the first word of "$ac_prog", so it can be a program name with args.
22137 set dummy $ac_prog; ac_word=$2
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22139 $as_echo_n "checking for $ac_word... " >&6; }
22140 if ${ac_cv_path_PATCH+:} false; then :
22141   $as_echo_n "(cached) " >&6
22142 else
22143   case $PATCH in
22144   [\\/]* | ?:[\\/]*)
22145   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22146   ;;
22147   *)
22148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22149 for as_dir in $PATH
22150 do
22151   IFS=$as_save_IFS
22152   test -z "$as_dir" && as_dir=.
22153     for ac_exec_ext in '' $ac_executable_extensions; do
22154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22155     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22157     break 2
22158   fi
22159 done
22160   done
22161 IFS=$as_save_IFS
22162 
22163   ;;
22164 esac
22165 fi
22166 PATCH=$ac_cv_path_PATCH
22167 if test -n "$PATCH"; then
22168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22169 $as_echo "$PATCH" >&6; }
22170 else
22171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22172 $as_echo "no" >&6; }
22173 fi
22174 
22175 
22176   test -n "$PATCH" && break
22177 done
22178 
22179   else
22180     # The variable is set, but is it from the command line or the environment?
22181 
22182     # Try to remove the string !PATCH! from our list.
22183     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
22184     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22185       # If it failed, the variable was not from the command line. Ignore it,
22186       # but warn the user (except for BASH, which is always set by the calling BASH).
22187       if test "xPATCH" != xBASH; then
22188         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
22189 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
22190       fi
22191       # Try to locate tool using the code snippet
22192       for ac_prog in gpatch patch
22193 do
22194   # Extract the first word of "$ac_prog", so it can be a program name with args.
22195 set dummy $ac_prog; ac_word=$2
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22197 $as_echo_n "checking for $ac_word... " >&6; }
22198 if ${ac_cv_path_PATCH+:} false; then :
22199   $as_echo_n "(cached) " >&6
22200 else
22201   case $PATCH in
22202   [\\/]* | ?:[\\/]*)
22203   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22204   ;;
22205   *)
22206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22207 for as_dir in $PATH
22208 do
22209   IFS=$as_save_IFS
22210   test -z "$as_dir" && as_dir=.
22211     for ac_exec_ext in '' $ac_executable_extensions; do
22212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22213     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22215     break 2
22216   fi
22217 done
22218   done
22219 IFS=$as_save_IFS
22220 
22221   ;;
22222 esac
22223 fi
22224 PATCH=$ac_cv_path_PATCH
22225 if test -n "$PATCH"; then
22226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22227 $as_echo "$PATCH" >&6; }
22228 else
22229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22230 $as_echo "no" >&6; }
22231 fi
22232 
22233 
22234   test -n "$PATCH" && break
22235 done
22236 
22237     else
22238       # If it succeeded, then it was overridden by the user. We will use it
22239       # for the tool.
22240 
22241       # First remove it from the list of overridden variables, so we can test
22242       # for unknown variables in the end.
22243       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22244 
22245       # Check if we try to supply an empty value
22246       if test "x$PATCH" = x; then
22247         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
22248 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
22249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22250 $as_echo_n "checking for PATCH... " >&6; }
22251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22252 $as_echo "disabled" >&6; }
22253       else
22254         # Check if the provided tool contains a complete path.
22255         tool_specified="$PATCH"
22256         tool_basename="${tool_specified##*/}"
22257         if test "x$tool_basename" = "x$tool_specified"; then
22258           # A command without a complete path is provided, search $PATH.
22259           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
22260 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
22261           # Extract the first word of "$tool_basename", so it can be a program name with args.
22262 set dummy $tool_basename; ac_word=$2
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22264 $as_echo_n "checking for $ac_word... " >&6; }
22265 if ${ac_cv_path_PATCH+:} false; then :
22266   $as_echo_n "(cached) " >&6
22267 else
22268   case $PATCH in
22269   [\\/]* | ?:[\\/]*)
22270   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22271   ;;
22272   *)
22273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22274 for as_dir in $PATH
22275 do
22276   IFS=$as_save_IFS
22277   test -z "$as_dir" && as_dir=.
22278     for ac_exec_ext in '' $ac_executable_extensions; do
22279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22280     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22282     break 2
22283   fi
22284 done
22285   done
22286 IFS=$as_save_IFS
22287 
22288   ;;
22289 esac
22290 fi
22291 PATCH=$ac_cv_path_PATCH
22292 if test -n "$PATCH"; then
22293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22294 $as_echo "$PATCH" >&6; }
22295 else
22296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22297 $as_echo "no" >&6; }
22298 fi
22299 
22300 
22301           if test "x$PATCH" = x; then
22302             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22303           fi
22304         else
22305           # Otherwise we believe it is a complete path. Use it as it is.
22306           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
22307 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
22308           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22309 $as_echo_n "checking for PATCH... " >&6; }
22310           if test ! -x "$tool_specified"; then
22311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22312 $as_echo "not found" >&6; }
22313             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
22314           fi
22315           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22316 $as_echo "$tool_specified" >&6; }
22317         fi
22318       fi
22319     fi
22320 
22321   fi
22322 
22323 
22324   # Check if it's GNU time
22325   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22326   if test "x$IS_GNU_TIME" != x; then
22327     IS_GNU_TIME=yes
22328   else
22329     IS_GNU_TIME=no
22330   fi
22331 
22332 
22333   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22334 
22335 
22336 
22337   # Publish this variable in the help.
22338 
22339 
22340   if [ -z "${DSYMUTIL+x}" ]; then
22341     # The variable is not set by user, try to locate tool using the code snippet
22342     for ac_prog in dsymutil
22343 do
22344   # Extract the first word of "$ac_prog", so it can be a program name with args.
22345 set dummy $ac_prog; ac_word=$2
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22347 $as_echo_n "checking for $ac_word... " >&6; }
22348 if ${ac_cv_path_DSYMUTIL+:} false; then :
22349   $as_echo_n "(cached) " >&6
22350 else
22351   case $DSYMUTIL in
22352   [\\/]* | ?:[\\/]*)
22353   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22354   ;;
22355   *)
22356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22357 for as_dir in $PATH
22358 do
22359   IFS=$as_save_IFS
22360   test -z "$as_dir" && as_dir=.
22361     for ac_exec_ext in '' $ac_executable_extensions; do
22362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22363     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22365     break 2
22366   fi
22367 done
22368   done
22369 IFS=$as_save_IFS
22370 
22371   ;;
22372 esac
22373 fi
22374 DSYMUTIL=$ac_cv_path_DSYMUTIL
22375 if test -n "$DSYMUTIL"; then
22376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22377 $as_echo "$DSYMUTIL" >&6; }
22378 else
22379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22380 $as_echo "no" >&6; }
22381 fi
22382 
22383 
22384   test -n "$DSYMUTIL" && break
22385 done
22386 
22387   else
22388     # The variable is set, but is it from the command line or the environment?
22389 
22390     # Try to remove the string !DSYMUTIL! from our list.
22391     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22392     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22393       # If it failed, the variable was not from the command line. Ignore it,
22394       # but warn the user (except for BASH, which is always set by the calling BASH).
22395       if test "xDSYMUTIL" != xBASH; then
22396         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22397 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22398       fi
22399       # Try to locate tool using the code snippet
22400       for ac_prog in dsymutil
22401 do
22402   # Extract the first word of "$ac_prog", so it can be a program name with args.
22403 set dummy $ac_prog; ac_word=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if ${ac_cv_path_DSYMUTIL+:} false; then :
22407   $as_echo_n "(cached) " >&6
22408 else
22409   case $DSYMUTIL in
22410   [\\/]* | ?:[\\/]*)
22411   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22412   ;;
22413   *)
22414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22416 do
22417   IFS=$as_save_IFS
22418   test -z "$as_dir" && as_dir=.
22419     for ac_exec_ext in '' $ac_executable_extensions; do
22420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22421     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22423     break 2
22424   fi
22425 done
22426   done
22427 IFS=$as_save_IFS
22428 
22429   ;;
22430 esac
22431 fi
22432 DSYMUTIL=$ac_cv_path_DSYMUTIL
22433 if test -n "$DSYMUTIL"; then
22434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22435 $as_echo "$DSYMUTIL" >&6; }
22436 else
22437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438 $as_echo "no" >&6; }
22439 fi
22440 
22441 
22442   test -n "$DSYMUTIL" && break
22443 done
22444 
22445     else
22446       # If it succeeded, then it was overridden by the user. We will use it
22447       # for the tool.
22448 
22449       # First remove it from the list of overridden variables, so we can test
22450       # for unknown variables in the end.
22451       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22452 
22453       # Check if we try to supply an empty value
22454       if test "x$DSYMUTIL" = x; then
22455         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22456 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22458 $as_echo_n "checking for DSYMUTIL... " >&6; }
22459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22460 $as_echo "disabled" >&6; }
22461       else
22462         # Check if the provided tool contains a complete path.
22463         tool_specified="$DSYMUTIL"
22464         tool_basename="${tool_specified##*/}"
22465         if test "x$tool_basename" = "x$tool_specified"; then
22466           # A command without a complete path is provided, search $PATH.
22467           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22468 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22469           # Extract the first word of "$tool_basename", so it can be a program name with args.
22470 set dummy $tool_basename; ac_word=$2
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22472 $as_echo_n "checking for $ac_word... " >&6; }
22473 if ${ac_cv_path_DSYMUTIL+:} false; then :
22474   $as_echo_n "(cached) " >&6
22475 else
22476   case $DSYMUTIL in
22477   [\\/]* | ?:[\\/]*)
22478   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22479   ;;
22480   *)
22481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22482 for as_dir in $PATH
22483 do
22484   IFS=$as_save_IFS
22485   test -z "$as_dir" && as_dir=.
22486     for ac_exec_ext in '' $ac_executable_extensions; do
22487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22488     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22490     break 2
22491   fi
22492 done
22493   done
22494 IFS=$as_save_IFS
22495 
22496   ;;
22497 esac
22498 fi
22499 DSYMUTIL=$ac_cv_path_DSYMUTIL
22500 if test -n "$DSYMUTIL"; then
22501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22502 $as_echo "$DSYMUTIL" >&6; }
22503 else
22504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22505 $as_echo "no" >&6; }
22506 fi
22507 
22508 
22509           if test "x$DSYMUTIL" = x; then
22510             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22511           fi
22512         else
22513           # Otherwise we believe it is a complete path. Use it as it is.
22514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22515 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22516           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22517 $as_echo_n "checking for DSYMUTIL... " >&6; }
22518           if test ! -x "$tool_specified"; then
22519             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22520 $as_echo "not found" >&6; }
22521             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22522           fi
22523           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22524 $as_echo "$tool_specified" >&6; }
22525         fi
22526       fi
22527     fi
22528 
22529   fi
22530 
22531 
22532 
22533   if test "x$DSYMUTIL" = x; then
22534     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22535   fi
22536 
22537 
22538 
22539 
22540 
22541   # Publish this variable in the help.
22542 
22543 
22544   if [ -z "${XATTR+x}" ]; then
22545     # The variable is not set by user, try to locate tool using the code snippet
22546     for ac_prog in xattr
22547 do
22548   # Extract the first word of "$ac_prog", so it can be a program name with args.
22549 set dummy $ac_prog; ac_word=$2
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22551 $as_echo_n "checking for $ac_word... " >&6; }
22552 if ${ac_cv_path_XATTR+:} false; then :
22553   $as_echo_n "(cached) " >&6
22554 else
22555   case $XATTR in
22556   [\\/]* | ?:[\\/]*)
22557   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22558   ;;
22559   *)
22560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22561 for as_dir in $PATH
22562 do
22563   IFS=$as_save_IFS
22564   test -z "$as_dir" && as_dir=.
22565     for ac_exec_ext in '' $ac_executable_extensions; do
22566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22567     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22569     break 2
22570   fi
22571 done
22572   done
22573 IFS=$as_save_IFS
22574 
22575   ;;
22576 esac
22577 fi
22578 XATTR=$ac_cv_path_XATTR
22579 if test -n "$XATTR"; then
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22581 $as_echo "$XATTR" >&6; }
22582 else
22583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22584 $as_echo "no" >&6; }
22585 fi
22586 
22587 
22588   test -n "$XATTR" && break
22589 done
22590 
22591   else
22592     # The variable is set, but is it from the command line or the environment?
22593 
22594     # Try to remove the string !XATTR! from our list.
22595     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22596     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22597       # If it failed, the variable was not from the command line. Ignore it,
22598       # but warn the user (except for BASH, which is always set by the calling BASH).
22599       if test "xXATTR" != xBASH; then
22600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22601 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22602       fi
22603       # Try to locate tool using the code snippet
22604       for ac_prog in xattr
22605 do
22606   # Extract the first word of "$ac_prog", so it can be a program name with args.
22607 set dummy $ac_prog; ac_word=$2
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22609 $as_echo_n "checking for $ac_word... " >&6; }
22610 if ${ac_cv_path_XATTR+:} false; then :
22611   $as_echo_n "(cached) " >&6
22612 else
22613   case $XATTR in
22614   [\\/]* | ?:[\\/]*)
22615   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22616   ;;
22617   *)
22618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22619 for as_dir in $PATH
22620 do
22621   IFS=$as_save_IFS
22622   test -z "$as_dir" && as_dir=.
22623     for ac_exec_ext in '' $ac_executable_extensions; do
22624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22625     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22627     break 2
22628   fi
22629 done
22630   done
22631 IFS=$as_save_IFS
22632 
22633   ;;
22634 esac
22635 fi
22636 XATTR=$ac_cv_path_XATTR
22637 if test -n "$XATTR"; then
22638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22639 $as_echo "$XATTR" >&6; }
22640 else
22641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642 $as_echo "no" >&6; }
22643 fi
22644 
22645 
22646   test -n "$XATTR" && break
22647 done
22648 
22649     else
22650       # If it succeeded, then it was overridden by the user. We will use it
22651       # for the tool.
22652 
22653       # First remove it from the list of overridden variables, so we can test
22654       # for unknown variables in the end.
22655       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22656 
22657       # Check if we try to supply an empty value
22658       if test "x$XATTR" = x; then
22659         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22660 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22662 $as_echo_n "checking for XATTR... " >&6; }
22663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22664 $as_echo "disabled" >&6; }
22665       else
22666         # Check if the provided tool contains a complete path.
22667         tool_specified="$XATTR"
22668         tool_basename="${tool_specified##*/}"
22669         if test "x$tool_basename" = "x$tool_specified"; then
22670           # A command without a complete path is provided, search $PATH.
22671           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22672 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22673           # Extract the first word of "$tool_basename", so it can be a program name with args.
22674 set dummy $tool_basename; ac_word=$2
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22676 $as_echo_n "checking for $ac_word... " >&6; }
22677 if ${ac_cv_path_XATTR+:} false; then :
22678   $as_echo_n "(cached) " >&6
22679 else
22680   case $XATTR in
22681   [\\/]* | ?:[\\/]*)
22682   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22683   ;;
22684   *)
22685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22686 for as_dir in $PATH
22687 do
22688   IFS=$as_save_IFS
22689   test -z "$as_dir" && as_dir=.
22690     for ac_exec_ext in '' $ac_executable_extensions; do
22691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22692     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22694     break 2
22695   fi
22696 done
22697   done
22698 IFS=$as_save_IFS
22699 
22700   ;;
22701 esac
22702 fi
22703 XATTR=$ac_cv_path_XATTR
22704 if test -n "$XATTR"; then
22705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22706 $as_echo "$XATTR" >&6; }
22707 else
22708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22709 $as_echo "no" >&6; }
22710 fi
22711 
22712 
22713           if test "x$XATTR" = x; then
22714             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22715           fi
22716         else
22717           # Otherwise we believe it is a complete path. Use it as it is.
22718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22719 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22721 $as_echo_n "checking for XATTR... " >&6; }
22722           if test ! -x "$tool_specified"; then
22723             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22724 $as_echo "not found" >&6; }
22725             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22726           fi
22727           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22728 $as_echo "$tool_specified" >&6; }
22729         fi
22730       fi
22731     fi
22732 
22733   fi
22734 
22735 
22736 
22737   if test "x$XATTR" = x; then
22738     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22739   fi
22740 
22741 
22742 
22743 
22744   # Publish this variable in the help.
22745 
22746 
22747   if [ -z "${CODESIGN+x}" ]; then
22748     # The variable is not set by user, try to locate tool using the code snippet
22749     for ac_prog in codesign
22750 do
22751   # Extract the first word of "$ac_prog", so it can be a program name with args.
22752 set dummy $ac_prog; ac_word=$2
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22754 $as_echo_n "checking for $ac_word... " >&6; }
22755 if ${ac_cv_path_CODESIGN+:} false; then :
22756   $as_echo_n "(cached) " >&6
22757 else
22758   case $CODESIGN in
22759   [\\/]* | ?:[\\/]*)
22760   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22761   ;;
22762   *)
22763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22764 for as_dir in $PATH
22765 do
22766   IFS=$as_save_IFS
22767   test -z "$as_dir" && as_dir=.
22768     for ac_exec_ext in '' $ac_executable_extensions; do
22769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22770     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22772     break 2
22773   fi
22774 done
22775   done
22776 IFS=$as_save_IFS
22777 
22778   ;;
22779 esac
22780 fi
22781 CODESIGN=$ac_cv_path_CODESIGN
22782 if test -n "$CODESIGN"; then
22783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22784 $as_echo "$CODESIGN" >&6; }
22785 else
22786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22787 $as_echo "no" >&6; }
22788 fi
22789 
22790 
22791   test -n "$CODESIGN" && break
22792 done
22793 
22794   else
22795     # The variable is set, but is it from the command line or the environment?
22796 
22797     # Try to remove the string !CODESIGN! from our list.
22798     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22799     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22800       # If it failed, the variable was not from the command line. Ignore it,
22801       # but warn the user (except for BASH, which is always set by the calling BASH).
22802       if test "xCODESIGN" != xBASH; then
22803         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22804 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22805       fi
22806       # Try to locate tool using the code snippet
22807       for ac_prog in codesign
22808 do
22809   # Extract the first word of "$ac_prog", so it can be a program name with args.
22810 set dummy $ac_prog; ac_word=$2
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22812 $as_echo_n "checking for $ac_word... " >&6; }
22813 if ${ac_cv_path_CODESIGN+:} false; then :
22814   $as_echo_n "(cached) " >&6
22815 else
22816   case $CODESIGN in
22817   [\\/]* | ?:[\\/]*)
22818   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22819   ;;
22820   *)
22821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22822 for as_dir in $PATH
22823 do
22824   IFS=$as_save_IFS
22825   test -z "$as_dir" && as_dir=.
22826     for ac_exec_ext in '' $ac_executable_extensions; do
22827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22828     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22830     break 2
22831   fi
22832 done
22833   done
22834 IFS=$as_save_IFS
22835 
22836   ;;
22837 esac
22838 fi
22839 CODESIGN=$ac_cv_path_CODESIGN
22840 if test -n "$CODESIGN"; then
22841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22842 $as_echo "$CODESIGN" >&6; }
22843 else
22844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22845 $as_echo "no" >&6; }
22846 fi
22847 
22848 
22849   test -n "$CODESIGN" && break
22850 done
22851 
22852     else
22853       # If it succeeded, then it was overridden by the user. We will use it
22854       # for the tool.
22855 
22856       # First remove it from the list of overridden variables, so we can test
22857       # for unknown variables in the end.
22858       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22859 
22860       # Check if we try to supply an empty value
22861       if test "x$CODESIGN" = x; then
22862         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22863 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22865 $as_echo_n "checking for CODESIGN... " >&6; }
22866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22867 $as_echo "disabled" >&6; }
22868       else
22869         # Check if the provided tool contains a complete path.
22870         tool_specified="$CODESIGN"
22871         tool_basename="${tool_specified##*/}"
22872         if test "x$tool_basename" = "x$tool_specified"; then
22873           # A command without a complete path is provided, search $PATH.
22874           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22875 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22876           # Extract the first word of "$tool_basename", so it can be a program name with args.
22877 set dummy $tool_basename; ac_word=$2
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22879 $as_echo_n "checking for $ac_word... " >&6; }
22880 if ${ac_cv_path_CODESIGN+:} false; then :
22881   $as_echo_n "(cached) " >&6
22882 else
22883   case $CODESIGN in
22884   [\\/]* | ?:[\\/]*)
22885   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22886   ;;
22887   *)
22888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22889 for as_dir in $PATH
22890 do
22891   IFS=$as_save_IFS
22892   test -z "$as_dir" && as_dir=.
22893     for ac_exec_ext in '' $ac_executable_extensions; do
22894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22895     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22897     break 2
22898   fi
22899 done
22900   done
22901 IFS=$as_save_IFS
22902 
22903   ;;
22904 esac
22905 fi
22906 CODESIGN=$ac_cv_path_CODESIGN
22907 if test -n "$CODESIGN"; then
22908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22909 $as_echo "$CODESIGN" >&6; }
22910 else
22911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22912 $as_echo "no" >&6; }
22913 fi
22914 
22915 
22916           if test "x$CODESIGN" = x; then
22917             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22918           fi
22919         else
22920           # Otherwise we believe it is a complete path. Use it as it is.
22921           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22922 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22923           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22924 $as_echo_n "checking for CODESIGN... " >&6; }
22925           if test ! -x "$tool_specified"; then
22926             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22927 $as_echo "not found" >&6; }
22928             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22929           fi
22930           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22931 $as_echo "$tool_specified" >&6; }
22932         fi
22933       fi
22934     fi
22935 
22936   fi
22937 
22938 
22939     if test "x$CODESIGN" != "x"; then
22940       # Verify that the openjdk_codesign certificate is present
22941       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22942 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22943       rm -f codesign-testfile
22944       touch codesign-testfile
22945       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22946       rm -f codesign-testfile
22947       if test "x$CODESIGN" = x; then
22948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22949 $as_echo "no" >&6; }
22950       else
22951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22952 $as_echo "yes" >&6; }
22953       fi
22954     fi
22955 
22956 
22957 
22958   # Publish this variable in the help.
22959 
22960 
22961   if [ -z "${SETFILE+x}" ]; then
22962     # The variable is not set by user, try to locate tool using the code snippet
22963     for ac_prog in SetFile
22964 do
22965   # Extract the first word of "$ac_prog", so it can be a program name with args.
22966 set dummy $ac_prog; ac_word=$2
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22968 $as_echo_n "checking for $ac_word... " >&6; }
22969 if ${ac_cv_path_SETFILE+:} false; then :
22970   $as_echo_n "(cached) " >&6
22971 else
22972   case $SETFILE in
22973   [\\/]* | ?:[\\/]*)
22974   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22975   ;;
22976   *)
22977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22978 for as_dir in $PATH
22979 do
22980   IFS=$as_save_IFS
22981   test -z "$as_dir" && as_dir=.
22982     for ac_exec_ext in '' $ac_executable_extensions; do
22983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22984     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22986     break 2
22987   fi
22988 done
22989   done
22990 IFS=$as_save_IFS
22991 
22992   ;;
22993 esac
22994 fi
22995 SETFILE=$ac_cv_path_SETFILE
22996 if test -n "$SETFILE"; then
22997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22998 $as_echo "$SETFILE" >&6; }
22999 else
23000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23001 $as_echo "no" >&6; }
23002 fi
23003 
23004 
23005   test -n "$SETFILE" && break
23006 done
23007 
23008   else
23009     # The variable is set, but is it from the command line or the environment?
23010 
23011     # Try to remove the string !SETFILE! from our list.
23012     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23013     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23014       # If it failed, the variable was not from the command line. Ignore it,
23015       # but warn the user (except for BASH, which is always set by the calling BASH).
23016       if test "xSETFILE" != xBASH; then
23017         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23018 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23019       fi
23020       # Try to locate tool using the code snippet
23021       for ac_prog in SetFile
23022 do
23023   # Extract the first word of "$ac_prog", so it can be a program name with args.
23024 set dummy $ac_prog; ac_word=$2
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23026 $as_echo_n "checking for $ac_word... " >&6; }
23027 if ${ac_cv_path_SETFILE+:} false; then :
23028   $as_echo_n "(cached) " >&6
23029 else
23030   case $SETFILE in
23031   [\\/]* | ?:[\\/]*)
23032   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23033   ;;
23034   *)
23035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23036 for as_dir in $PATH
23037 do
23038   IFS=$as_save_IFS
23039   test -z "$as_dir" && as_dir=.
23040     for ac_exec_ext in '' $ac_executable_extensions; do
23041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23042     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23044     break 2
23045   fi
23046 done
23047   done
23048 IFS=$as_save_IFS
23049 
23050   ;;
23051 esac
23052 fi
23053 SETFILE=$ac_cv_path_SETFILE
23054 if test -n "$SETFILE"; then
23055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23056 $as_echo "$SETFILE" >&6; }
23057 else
23058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23059 $as_echo "no" >&6; }
23060 fi
23061 
23062 
23063   test -n "$SETFILE" && break
23064 done
23065 
23066     else
23067       # If it succeeded, then it was overridden by the user. We will use it
23068       # for the tool.
23069 
23070       # First remove it from the list of overridden variables, so we can test
23071       # for unknown variables in the end.
23072       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23073 
23074       # Check if we try to supply an empty value
23075       if test "x$SETFILE" = x; then
23076         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23077 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23078         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23079 $as_echo_n "checking for SETFILE... " >&6; }
23080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23081 $as_echo "disabled" >&6; }
23082       else
23083         # Check if the provided tool contains a complete path.
23084         tool_specified="$SETFILE"
23085         tool_basename="${tool_specified##*/}"
23086         if test "x$tool_basename" = "x$tool_specified"; then
23087           # A command without a complete path is provided, search $PATH.
23088           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23089 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23090           # Extract the first word of "$tool_basename", so it can be a program name with args.
23091 set dummy $tool_basename; ac_word=$2
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23093 $as_echo_n "checking for $ac_word... " >&6; }
23094 if ${ac_cv_path_SETFILE+:} false; then :
23095   $as_echo_n "(cached) " >&6
23096 else
23097   case $SETFILE in
23098   [\\/]* | ?:[\\/]*)
23099   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23100   ;;
23101   *)
23102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23103 for as_dir in $PATH
23104 do
23105   IFS=$as_save_IFS
23106   test -z "$as_dir" && as_dir=.
23107     for ac_exec_ext in '' $ac_executable_extensions; do
23108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23109     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23111     break 2
23112   fi
23113 done
23114   done
23115 IFS=$as_save_IFS
23116 
23117   ;;
23118 esac
23119 fi
23120 SETFILE=$ac_cv_path_SETFILE
23121 if test -n "$SETFILE"; then
23122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23123 $as_echo "$SETFILE" >&6; }
23124 else
23125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23126 $as_echo "no" >&6; }
23127 fi
23128 
23129 
23130           if test "x$SETFILE" = x; then
23131             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23132           fi
23133         else
23134           # Otherwise we believe it is a complete path. Use it as it is.
23135           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
23136 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
23137           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23138 $as_echo_n "checking for SETFILE... " >&6; }
23139           if test ! -x "$tool_specified"; then
23140             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23141 $as_echo "not found" >&6; }
23142             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
23143           fi
23144           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23145 $as_echo "$tool_specified" >&6; }
23146         fi
23147       fi
23148     fi
23149 
23150   fi
23151 
23152 
23153 
23154   if test "x$SETFILE" = x; then
23155     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
23156   fi
23157 
23158 
23159   fi
23160 
23161 
23162   # Test if bash supports pipefail.
23163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
23164 $as_echo_n "checking if bash supports pipefail... " >&6; }
23165   if ${BASH} -c 'set -o pipefail'; then
23166     BASH_ARGS="$BASH_ARGS -o pipefail"
23167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23168 $as_echo "yes" >&6; }
23169   else
23170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23171 $as_echo "no" >&6; }
23172   fi
23173 
23174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
23175 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
23176   if ${BASH} -e -c 'true'; then
23177     BASH_ARGS="$BASH_ARGS -e"
23178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23179 $as_echo "yes" >&6; }
23180   else
23181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23182 $as_echo "no" >&6; }
23183   fi
23184 
23185 
23186 
23187 
23188 # Check if pkg-config is available.
23189 
23190 
23191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23192         if test -n "$ac_tool_prefix"; then
23193   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23194 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23196 $as_echo_n "checking for $ac_word... " >&6; }
23197 if ${ac_cv_path_PKG_CONFIG+:} false; then :
23198   $as_echo_n "(cached) " >&6
23199 else
23200   case $PKG_CONFIG in
23201   [\\/]* | ?:[\\/]*)
23202   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23203   ;;
23204   *)
23205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23206 for as_dir in $PATH
23207 do
23208   IFS=$as_save_IFS
23209   test -z "$as_dir" && as_dir=.
23210     for ac_exec_ext in '' $ac_executable_extensions; do
23211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23212     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23214     break 2
23215   fi
23216 done
23217   done
23218 IFS=$as_save_IFS
23219 
23220   ;;
23221 esac
23222 fi
23223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23224 if test -n "$PKG_CONFIG"; then
23225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23226 $as_echo "$PKG_CONFIG" >&6; }
23227 else
23228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23229 $as_echo "no" >&6; }
23230 fi
23231 
23232 
23233 fi
23234 if test -z "$ac_cv_path_PKG_CONFIG"; then
23235   ac_pt_PKG_CONFIG=$PKG_CONFIG
23236   # Extract the first word of "pkg-config", so it can be a program name with args.
23237 set dummy pkg-config; ac_word=$2
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23239 $as_echo_n "checking for $ac_word... " >&6; }
23240 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
23241   $as_echo_n "(cached) " >&6
23242 else
23243   case $ac_pt_PKG_CONFIG in
23244   [\\/]* | ?:[\\/]*)
23245   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23246   ;;
23247   *)
23248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23249 for as_dir in $PATH
23250 do
23251   IFS=$as_save_IFS
23252   test -z "$as_dir" && as_dir=.
23253     for ac_exec_ext in '' $ac_executable_extensions; do
23254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23255     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23257     break 2
23258   fi
23259 done
23260   done
23261 IFS=$as_save_IFS
23262 
23263   ;;
23264 esac
23265 fi
23266 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23267 if test -n "$ac_pt_PKG_CONFIG"; then
23268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23269 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23270 else
23271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23272 $as_echo "no" >&6; }
23273 fi
23274 
23275   if test "x$ac_pt_PKG_CONFIG" = x; then
23276     PKG_CONFIG=""
23277   else
23278     case $cross_compiling:$ac_tool_warned in
23279 yes:)
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23282 ac_tool_warned=yes ;;
23283 esac
23284     PKG_CONFIG=$ac_pt_PKG_CONFIG
23285   fi
23286 else
23287   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23288 fi
23289 
23290 fi
23291 if test -n "$PKG_CONFIG"; then
23292         _pkg_min_version=0.9.0
23293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23294 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23295         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23296                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23297 $as_echo "yes" >&6; }
23298         else
23299                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23300 $as_echo "no" >&6; }
23301                 PKG_CONFIG=""
23302         fi
23303 
23304 fi
23305 
23306 # After basic tools have been setup, we can check build os specific details.
23307 
23308   ###############################################################################
23309 
23310   # Note that this is the build platform OS version!
23311 
23312   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
23313   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
23314   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
23315   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
23316 
23317 
23318 
23319 
23320 
23321 # Misc basic settings
23322 
23323 
23324 # Check whether --with-default-make-target was given.
23325 if test "${with_default_make_target+set}" = set; then :
23326   withval=$with_default_make_target;
23327 fi
23328 
23329   if test "x$with_default_make_target" = "x" \
23330       || test "x$with_default_make_target" = "xyes"; then
23331     DEFAULT_MAKE_TARGET="exploded-image"
23332   elif test "x$with_default_make_target" = "xno"; then
23333     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
23334   else
23335     DEFAULT_MAKE_TARGET="$with_default_make_target"
23336   fi
23337 
23338 
23339 
23340 
23341 ###############################################################################
23342 #
23343 # Determine OpenJDK variants, options and version numbers.
23344 #
23345 ###############################################################################
23346 
23347 # We need build & target for this.
23348 
23349   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23350   # We always build headless support.
23351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23352 $as_echo_n "checking headful support... " >&6; }
23353   # Check whether --enable-headful was given.
23354 if test "${enable_headful+set}" = set; then :
23355   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23356 else
23357   SUPPORT_HEADFUL=yes
23358 fi
23359 
23360 
23361   SUPPORT_HEADLESS=yes
23362   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23363 
23364   if test "x$SUPPORT_HEADFUL" = xyes; then
23365     # We are building both headful and headless.
23366     headful_msg="include support for both headful and headless"
23367   fi
23368 
23369   if test "x$SUPPORT_HEADFUL" = xno; then
23370     # Thus we are building headless only.
23371     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23372     headful_msg="headless only"
23373   fi
23374 
23375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23376 $as_echo "$headful_msg" >&6; }
23377 
23378 
23379 
23380 
23381 
23382   # Choose cacerts source file
23383 
23384 # Check whether --with-cacerts-file was given.
23385 if test "${with_cacerts_file+set}" = set; then :
23386   withval=$with_cacerts_file;
23387 fi
23388 
23389   if test "x$with_cacerts_file" != x; then
23390     CACERTS_FILE=$with_cacerts_file
23391   fi
23392 
23393 
23394   # Enable or disable unlimited crypto
23395   # Check whether --enable-unlimited-crypto was given.
23396 if test "${enable_unlimited_crypto+set}" = set; then :
23397   enableval=$enable_unlimited_crypto;
23398 else
23399   enable_unlimited_crypto=no
23400 fi
23401 
23402   if test "x$enable_unlimited_crypto" = "xyes"; then
23403     UNLIMITED_CRYPTO=true
23404   else
23405     UNLIMITED_CRYPTO=false
23406   fi
23407 
23408 
23409   # Should we build the serviceability agent (SA)?
23410   INCLUDE_SA=true
23411   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
23412     INCLUDE_SA=false
23413   fi
23414   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
23415     INCLUDE_SA=false
23416   fi
23417   if test "x$OPENJDK_TARGET_OS" = xaix ; then
23418     INCLUDE_SA=false
23419   fi
23420   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
23421     INCLUDE_SA=false
23422   fi
23423 
23424 
23425   # Compress jars
23426   COMPRESS_JARS=false
23427 
23428 
23429 
23430   # Setup default copyright year. Mostly overridden when building close to a new year.
23431 
23432 # Check whether --with-copyright-year was given.
23433 if test "${with_copyright_year+set}" = set; then :
23434   withval=$with_copyright_year;
23435 fi
23436 
23437   if test "x$with_copyright_year" = xyes; then
23438     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23439   elif test "x$with_copyright_year" != x; then
23440     COPYRIGHT_YEAR="$with_copyright_year"
23441   else
23442     COPYRIGHT_YEAR=`date +'%Y'`
23443   fi
23444 
23445 
23446 
23447   # Check whether --enable-keep-packaged-modules was given.
23448 if test "${enable_keep_packaged_modules+set}" = set; then :
23449   enableval=$enable_keep_packaged_modules;
23450 fi
23451 
23452 
23453   if test "x$enable_keep_packaged_modules" = "xyes"; then
23454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23455 $as_echo_n "checking if packaged modules are kept... " >&6; }
23456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23457 $as_echo "yes" >&6; }
23458     JLINK_KEEP_PACKAGED_MODULES=true
23459   elif test "x$enable_keep_packaged_modules" = "xno"; then
23460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23461 $as_echo_n "checking if packaged modules are kept... " >&6; }
23462     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23463 $as_echo "no" >&6; }
23464     JLINK_KEEP_PACKAGED_MODULES=false
23465   elif test "x$enable_keep_packaged_modules" = "x"; then
23466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
23467 $as_echo "yes (default)" >&6; }
23468     JLINK_KEEP_PACKAGED_MODULES=true
23469   else
23470     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
23471   fi
23472 
23473 
23474 
23475 
23476   # Control wether Hotspot runs Queens test after build.
23477   # Check whether --enable-hotspot-test-in-build was given.
23478 if test "${enable_hotspot_test_in_build+set}" = set; then :
23479   enableval=$enable_hotspot_test_in_build;
23480 else
23481   enable_hotspot_test_in_build=no
23482 fi
23483 
23484   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23485     TEST_IN_BUILD=true
23486   else
23487     TEST_IN_BUILD=false
23488   fi
23489 
23490 
23491 
23492   # Warn user that old version arguments are deprecated.
23493 
23494 
23495 # Check whether --with-milestone was given.
23496 if test "${with_milestone+set}" = set; then :
23497   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
23498 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
23499 fi
23500 
23501 
23502 
23503 
23504 # Check whether --with-update-version was given.
23505 if test "${with_update_version+set}" = set; then :
23506   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
23507 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
23508 fi
23509 
23510 
23511 
23512 
23513 # Check whether --with-user-release-suffix was given.
23514 if test "${with_user_release_suffix+set}" = set; then :
23515   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
23516 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
23517 fi
23518 
23519 
23520 
23521 
23522 # Check whether --with-build-number was given.
23523 if test "${with_build_number+set}" = set; then :
23524   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
23525 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
23526 fi
23527 
23528 
23529 
23530   # Source the version numbers file
23531   . $AUTOCONF_DIR/version-numbers
23532 
23533   # Some non-version number information is set in that file
23534 
23535 
23536 
23537 
23538 
23539 
23540 
23541 
23542   # Override version from arguments
23543 
23544   # If --with-version-string is set, process it first. It is possible to
23545   # override parts with more specific flags, since these are processed later.
23546 
23547 # Check whether --with-version-string was given.
23548 if test "${with_version_string+set}" = set; then :
23549   withval=$with_version_string;
23550 fi
23551 
23552   if test "x$with_version_string" = xyes; then
23553     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
23554   elif test "x$with_version_string" != x; then
23555     # Additional [] needed to keep m4 from mangling shell constructs.
23556     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
23557       VERSION_MAJOR=${BASH_REMATCH[1]}
23558       VERSION_MINOR=${BASH_REMATCH[3]}
23559       VERSION_SECURITY=${BASH_REMATCH[5]}
23560       VERSION_PATCH=${BASH_REMATCH[7]}
23561       VERSION_PRE=${BASH_REMATCH[9]}
23562       version_plus_separator=${BASH_REMATCH[11]}
23563       VERSION_BUILD=${BASH_REMATCH[12]}
23564       VERSION_OPT=${BASH_REMATCH[14]}
23565       # Unspecified numerical fields are interpreted as 0.
23566       if test "x$VERSION_MINOR" = x; then
23567         VERSION_MINOR=0
23568       fi
23569       if test "x$VERSION_SECURITY" = x; then
23570         VERSION_SECURITY=0
23571       fi
23572       if test "x$VERSION_PATCH" = x; then
23573         VERSION_PATCH=0
23574       fi
23575       if test "x$version_plus_separator" != x \
23576           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
23577         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
23578       fi
23579       # Stop the version part process from setting default values.
23580       # We still allow them to explicitely override though.
23581       NO_DEFAULT_VERSION_PARTS=true
23582     else
23583       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
23584     fi
23585   fi
23586 
23587 
23588 # Check whether --with-version-pre was given.
23589 if test "${with_version_pre+set}" = set; then :
23590   withval=$with_version_pre; with_version_pre_present=true
23591 else
23592   with_version_pre_present=false
23593 fi
23594 
23595 
23596   if test "x$with_version_pre_present" = xtrue; then
23597     if test "x$with_version_pre" = xyes; then
23598       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
23599     elif test "x$with_version_pre" = xno; then
23600       # Interpret --without-* as empty string instead of the literal "no"
23601       VERSION_PRE=
23602     else
23603       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
23604        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
23605       if test "x$VERSION_PRE" != "x$with_version_pre"; then
23606         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
23607 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
23608       fi
23609     fi
23610   else
23611     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23612       # Default is to use "internal" as pre
23613       VERSION_PRE="internal"
23614     fi
23615   fi
23616 
23617 
23618 # Check whether --with-version-opt was given.
23619 if test "${with_version_opt+set}" = set; then :
23620   withval=$with_version_opt; with_version_opt_present=true
23621 else
23622   with_version_opt_present=false
23623 fi
23624 
23625 
23626   if test "x$with_version_opt_present" = xtrue; then
23627     if test "x$with_version_opt" = xyes; then
23628       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
23629     elif test "x$with_version_opt" = xno; then
23630       # Interpret --without-* as empty string instead of the literal "no"
23631       VERSION_OPT=
23632     else
23633       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
23634        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
23635       if test "x$VERSION_OPT" != "x$with_version_opt"; then
23636         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
23637 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
23638       fi
23639     fi
23640   else
23641     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23642       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
23643       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
23644       # Outer [ ] to quote m4.
23645        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
23646       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
23647     fi
23648   fi
23649 
23650 
23651 # Check whether --with-version-build was given.
23652 if test "${with_version_build+set}" = set; then :
23653   withval=$with_version_build; with_version_build_present=true
23654 else
23655   with_version_build_present=false
23656 fi
23657 
23658 
23659   if test "x$with_version_build_present" = xtrue; then
23660     if test "x$with_version_build" = xyes; then
23661       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
23662     elif test "x$with_version_build" = xno; then
23663       # Interpret --without-* as empty string instead of the literal "no"
23664       VERSION_BUILD=
23665     elif test "x$with_version_build" = x; then
23666       VERSION_BUILD=
23667     else
23668 
23669   # Additional [] needed to keep m4 from mangling shell constructs.
23670   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23671     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
23672   fi
23673   # Extract the version number without leading zeros.
23674   cleaned_value=${BASH_REMATCH[1]}
23675   if test "x$cleaned_value" = x; then
23676     # Special case for zero
23677     cleaned_value=${BASH_REMATCH[2]}
23678   fi
23679 
23680   if test $cleaned_value -gt 255; then
23681     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
23682   fi
23683   if test "x$cleaned_value" != "x$with_version_build"; then
23684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
23685 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
23686   fi
23687   VERSION_BUILD=$cleaned_value
23688 
23689     fi
23690   else
23691     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23692       # Default is to not have a build number.
23693       VERSION_BUILD=""
23694       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
23695       VERSION_BUILD=0
23696     fi
23697   fi
23698 
23699 
23700 # Check whether --with-version-major was given.
23701 if test "${with_version_major+set}" = set; then :
23702   withval=$with_version_major; with_version_major_present=true
23703 else
23704   with_version_major_present=false
23705 fi
23706 
23707 
23708   if test "x$with_version_major_present" = xtrue; then
23709     if test "x$with_version_major" = xyes; then
23710       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
23711     else
23712 
23713   # Additional [] needed to keep m4 from mangling shell constructs.
23714   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23715     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
23716   fi
23717   # Extract the version number without leading zeros.
23718   cleaned_value=${BASH_REMATCH[1]}
23719   if test "x$cleaned_value" = x; then
23720     # Special case for zero
23721     cleaned_value=${BASH_REMATCH[2]}
23722   fi
23723 
23724   if test $cleaned_value -gt 255; then
23725     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
23726   fi
23727   if test "x$cleaned_value" != "x$with_version_major"; then
23728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
23729 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
23730   fi
23731   VERSION_MAJOR=$cleaned_value
23732 
23733     fi
23734   else
23735     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23736       # Default is to get value from version-numbers
23737       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
23738     fi
23739   fi
23740 
23741 
23742 # Check whether --with-version-minor was given.
23743 if test "${with_version_minor+set}" = set; then :
23744   withval=$with_version_minor; with_version_minor_present=true
23745 else
23746   with_version_minor_present=false
23747 fi
23748 
23749 
23750   if test "x$with_version_minor_present" = xtrue; then
23751     if test "x$with_version_minor" = xyes; then
23752       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
23753     elif test "x$with_version_minor" = xno; then
23754       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23755       VERSION_MINOR=0
23756     elif test "x$with_version_minor" = x; then
23757       VERSION_MINOR=0
23758     else
23759 
23760   # Additional [] needed to keep m4 from mangling shell constructs.
23761   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23762     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
23763   fi
23764   # Extract the version number without leading zeros.
23765   cleaned_value=${BASH_REMATCH[1]}
23766   if test "x$cleaned_value" = x; then
23767     # Special case for zero
23768     cleaned_value=${BASH_REMATCH[2]}
23769   fi
23770 
23771   if test $cleaned_value -gt 255; then
23772     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
23773   fi
23774   if test "x$cleaned_value" != "x$with_version_minor"; then
23775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
23776 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
23777   fi
23778   VERSION_MINOR=$cleaned_value
23779 
23780     fi
23781   else
23782     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23783       # Default is 0, if unspecified
23784       VERSION_MINOR=0
23785     fi
23786   fi
23787 
23788 
23789 # Check whether --with-version-security was given.
23790 if test "${with_version_security+set}" = set; then :
23791   withval=$with_version_security; with_version_security_present=true
23792 else
23793   with_version_security_present=false
23794 fi
23795 
23796 
23797   if test "x$with_version_security_present" = xtrue; then
23798     if test "x$with_version_security" = xyes; then
23799       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
23800     elif test "x$with_version_security" = xno; then
23801       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23802       VERSION_SECURITY=0
23803     elif test "x$with_version_security" = x; then
23804       VERSION_SECURITY=0
23805     else
23806 
23807   # Additional [] needed to keep m4 from mangling shell constructs.
23808   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23809     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
23810   fi
23811   # Extract the version number without leading zeros.
23812   cleaned_value=${BASH_REMATCH[1]}
23813   if test "x$cleaned_value" = x; then
23814     # Special case for zero
23815     cleaned_value=${BASH_REMATCH[2]}
23816   fi
23817 
23818   if test $cleaned_value -gt 255; then
23819     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
23820   fi
23821   if test "x$cleaned_value" != "x$with_version_security"; then
23822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
23823 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
23824   fi
23825   VERSION_SECURITY=$cleaned_value
23826 
23827     fi
23828   else
23829     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23830       # Default is 0, if unspecified
23831       VERSION_SECURITY=0
23832     fi
23833   fi
23834 
23835 
23836 # Check whether --with-version-patch was given.
23837 if test "${with_version_patch+set}" = set; then :
23838   withval=$with_version_patch; with_version_patch_present=true
23839 else
23840   with_version_patch_present=false
23841 fi
23842 
23843 
23844   if test "x$with_version_patch_present" = xtrue; then
23845     if test "x$with_version_patch" = xyes; then
23846       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
23847     elif test "x$with_version_patch" = xno; then
23848       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
23849       VERSION_PATCH=0
23850     elif test "x$with_version_patch" = x; then
23851       VERSION_PATCH=0
23852     else
23853 
23854   # Additional [] needed to keep m4 from mangling shell constructs.
23855   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
23856     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
23857   fi
23858   # Extract the version number without leading zeros.
23859   cleaned_value=${BASH_REMATCH[1]}
23860   if test "x$cleaned_value" = x; then
23861     # Special case for zero
23862     cleaned_value=${BASH_REMATCH[2]}
23863   fi
23864 
23865   if test $cleaned_value -gt 255; then
23866     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
23867   fi
23868   if test "x$cleaned_value" != "x$with_version_patch"; then
23869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
23870 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
23871   fi
23872   VERSION_PATCH=$cleaned_value
23873 
23874     fi
23875   else
23876     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23877       # Default is 0, if unspecified
23878       VERSION_PATCH=0
23879     fi
23880   fi
23881 
23882   # Calculate derived version properties
23883 
23884   # Set VERSION_IS_GA based on if VERSION_PRE has a value
23885   if test "x$VERSION_PRE" = x; then
23886     VERSION_IS_GA=true
23887   else
23888     VERSION_IS_GA=false
23889   fi
23890 
23891   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
23892   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
23893 
23894   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
23895   # Strip trailing zeroes from stripped_version_number
23896   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
23897   VERSION_NUMBER=$stripped_version_number
23898 
23899   # The complete version string, with additional build information
23900   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
23901     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23902   else
23903     # If either build or opt is set, we need a + separator
23904     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
23905   fi
23906 
23907   # The short version string, just VERSION_NUMBER and PRE, if present.
23908   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
23909 
23910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
23911 $as_echo_n "checking for version string... " >&6; }
23912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
23913 $as_echo "$VERSION_STRING" >&6; }
23914 
23915 
23916 
23917 
23918 
23919 
23920 
23921 
23922 
23923 
23924 
23925 
23926 
23927 
23928 
23929 ###############################################################################
23930 #
23931 # Setup BootJDK, used to bootstrap the build.
23932 #
23933 ###############################################################################
23934 
23935 
23936   BOOT_JDK_FOUND=no
23937 
23938 # Check whether --with-boot-jdk was given.
23939 if test "${with_boot_jdk+set}" = set; then :
23940   withval=$with_boot_jdk;
23941 fi
23942 
23943 
23944   # We look for the Boot JDK through various means, going from more certain to
23945   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23946   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23947   # must check if this is indeed valid; otherwise we'll continue looking.
23948 
23949   # Test: Is bootjdk explicitely set by command line arguments?
23950 
23951   if test "x$BOOT_JDK_FOUND" = xno; then
23952     # Now execute the test
23953 
23954   if test "x$with_boot_jdk" != x; then
23955     BOOT_JDK=$with_boot_jdk
23956     BOOT_JDK_FOUND=maybe
23957     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23958 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23959   fi
23960 
23961 
23962     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23963     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23964       # Do we have a bin/java?
23965       if test ! -x "$BOOT_JDK/bin/java"; then
23966         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23967 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23968         BOOT_JDK_FOUND=no
23969       else
23970         # Do we have a bin/javac?
23971         if test ! -x "$BOOT_JDK/bin/javac"; then
23972           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23974           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23975 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23976           BOOT_JDK_FOUND=no
23977         else
23978           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23979           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23980 
23981           # Extra M4 quote needed to protect [] in grep expression.
23982           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
23983           if test "x$FOUND_CORRECT_VERSION" = x; then
23984             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23985 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23986             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23987 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23988             BOOT_JDK_FOUND=no
23989           else
23990             # We're done! :-)
23991             BOOT_JDK_FOUND=yes
23992 
23993   # Only process if variable expands to non-empty
23994 
23995   if test "x$BOOT_JDK" != x; then
23996     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23997 
23998   # Input might be given as Windows format, start by converting to
23999   # unix format.
24000   path="$BOOT_JDK"
24001   new_path=`$CYGPATH -u "$path"`
24002 
24003   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24004   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24005   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24006   # "foo.exe" is OK but "foo" is an error.
24007   #
24008   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24009   # It is also a way to make sure we got the proper file name for the real test later on.
24010   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24011   if test "x$test_shortpath" = x; then
24012     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24013 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24014     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24015   fi
24016 
24017   # Call helper function which possibly converts this using DOS-style short mode.
24018   # If so, the updated path is stored in $new_path.
24019 
24020   input_path="$new_path"
24021   # Check if we need to convert this using DOS-style short mode. If the path
24022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24023   # take no chances and rewrite it.
24024   # Note: m4 eats our [], so we need to use [ and ] instead.
24025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24026   if test "x$has_forbidden_chars" != x; then
24027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24028     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24029     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24030     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24031       # Going to short mode and back again did indeed matter. Since short mode is
24032       # case insensitive, let's make it lowercase to improve readability.
24033       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24034       # Now convert it back to Unix-style (cygpath)
24035       input_path=`$CYGPATH -u "$shortmode_path"`
24036       new_path="$input_path"
24037     fi
24038   fi
24039 
24040   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24041   if test "x$test_cygdrive_prefix" = x; then
24042     # As a simple fix, exclude /usr/bin since it's not a real path.
24043     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24044       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24045       # a path prefixed by /cygdrive for fixpath to work.
24046       new_path="$CYGWIN_ROOT_PATH$input_path"
24047     fi
24048   fi
24049 
24050 
24051   if test "x$path" != "x$new_path"; then
24052     BOOT_JDK="$new_path"
24053     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24054 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24055   fi
24056 
24057     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24058 
24059   path="$BOOT_JDK"
24060   has_colon=`$ECHO $path | $GREP ^.:`
24061   new_path="$path"
24062   if test "x$has_colon" = x; then
24063     # Not in mixed or Windows style, start by that.
24064     new_path=`cmd //c echo $path`
24065   fi
24066 
24067 
24068   input_path="$new_path"
24069   # Check if we need to convert this using DOS-style short mode. If the path
24070   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24071   # take no chances and rewrite it.
24072   # Note: m4 eats our [], so we need to use [ and ] instead.
24073   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24074   if test "x$has_forbidden_chars" != x; then
24075     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24076     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24077   fi
24078 
24079 
24080   windows_path="$new_path"
24081   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24082     unix_path=`$CYGPATH -u "$windows_path"`
24083     new_path="$unix_path"
24084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24085     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24086     new_path="$unix_path"
24087   fi
24088 
24089   if test "x$path" != "x$new_path"; then
24090     BOOT_JDK="$new_path"
24091     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24093   fi
24094 
24095   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24096   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24097 
24098     else
24099       # We're on a unix platform. Hooray! :)
24100       path="$BOOT_JDK"
24101       has_space=`$ECHO "$path" | $GREP " "`
24102       if test "x$has_space" != x; then
24103         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24105         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24106       fi
24107 
24108       # Use eval to expand a potential ~
24109       eval path="$path"
24110       if test ! -f "$path" && test ! -d "$path"; then
24111         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24112       fi
24113 
24114       if test -d "$path"; then
24115         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24116       else
24117         dir="`$DIRNAME "$path"`"
24118         base="`$BASENAME "$path"`"
24119         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24120       fi
24121     fi
24122   fi
24123 
24124             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24125 $as_echo_n "checking for Boot JDK... " >&6; }
24126             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24127 $as_echo "$BOOT_JDK" >&6; }
24128             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24129 $as_echo_n "checking Boot JDK version... " >&6; }
24130             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24131             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24132 $as_echo "$BOOT_JDK_VERSION" >&6; }
24133           fi # end check jdk version
24134         fi # end check javac
24135       fi # end check java
24136     fi # end check boot jdk found
24137   fi
24138 
24139   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
24140     # Having specified an argument which is incorrect will produce an instant failure;
24141     # we should not go on looking
24142     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
24143   fi
24144 
24145   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
24146 
24147   if test "x$BOOT_JDK_FOUND" = xno; then
24148     # Now execute the test
24149 
24150   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
24151     # First check at user selected default
24152 
24153   if test "x$BOOT_JDK_FOUND" = xno; then
24154     # Now execute the test
24155 
24156   if test -x /usr/libexec/java_home; then
24157     BOOT_JDK=`/usr/libexec/java_home `
24158     BOOT_JDK_FOUND=maybe
24159     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
24160 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
24161   fi
24162 
24163 
24164     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24165     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24166       # Do we have a bin/java?
24167       if test ! -x "$BOOT_JDK/bin/java"; then
24168         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24170         BOOT_JDK_FOUND=no
24171       else
24172         # Do we have a bin/javac?
24173         if test ! -x "$BOOT_JDK/bin/javac"; then
24174           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24175 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24176           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24177 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24178           BOOT_JDK_FOUND=no
24179         else
24180           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24181           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24182 
24183           # Extra M4 quote needed to protect [] in grep expression.
24184           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24185           if test "x$FOUND_CORRECT_VERSION" = x; then
24186             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24188             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24189 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24190             BOOT_JDK_FOUND=no
24191           else
24192             # We're done! :-)
24193             BOOT_JDK_FOUND=yes
24194 
24195   # Only process if variable expands to non-empty
24196 
24197   if test "x$BOOT_JDK" != x; then
24198     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24199 
24200   # Input might be given as Windows format, start by converting to
24201   # unix format.
24202   path="$BOOT_JDK"
24203   new_path=`$CYGPATH -u "$path"`
24204 
24205   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24206   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24207   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24208   # "foo.exe" is OK but "foo" is an error.
24209   #
24210   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24211   # It is also a way to make sure we got the proper file name for the real test later on.
24212   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24213   if test "x$test_shortpath" = x; then
24214     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24216     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24217   fi
24218 
24219   # Call helper function which possibly converts this using DOS-style short mode.
24220   # If so, the updated path is stored in $new_path.
24221 
24222   input_path="$new_path"
24223   # Check if we need to convert this using DOS-style short mode. If the path
24224   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24225   # take no chances and rewrite it.
24226   # Note: m4 eats our [], so we need to use [ and ] instead.
24227   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24228   if test "x$has_forbidden_chars" != x; then
24229     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24230     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24231     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24232     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24233       # Going to short mode and back again did indeed matter. Since short mode is
24234       # case insensitive, let's make it lowercase to improve readability.
24235       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24236       # Now convert it back to Unix-style (cygpath)
24237       input_path=`$CYGPATH -u "$shortmode_path"`
24238       new_path="$input_path"
24239     fi
24240   fi
24241 
24242   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24243   if test "x$test_cygdrive_prefix" = x; then
24244     # As a simple fix, exclude /usr/bin since it's not a real path.
24245     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24246       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24247       # a path prefixed by /cygdrive for fixpath to work.
24248       new_path="$CYGWIN_ROOT_PATH$input_path"
24249     fi
24250   fi
24251 
24252 
24253   if test "x$path" != "x$new_path"; then
24254     BOOT_JDK="$new_path"
24255     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24257   fi
24258 
24259     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24260 
24261   path="$BOOT_JDK"
24262   has_colon=`$ECHO $path | $GREP ^.:`
24263   new_path="$path"
24264   if test "x$has_colon" = x; then
24265     # Not in mixed or Windows style, start by that.
24266     new_path=`cmd //c echo $path`
24267   fi
24268 
24269 
24270   input_path="$new_path"
24271   # Check if we need to convert this using DOS-style short mode. If the path
24272   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24273   # take no chances and rewrite it.
24274   # Note: m4 eats our [], so we need to use [ and ] instead.
24275   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24276   if test "x$has_forbidden_chars" != x; then
24277     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24278     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24279   fi
24280 
24281 
24282   windows_path="$new_path"
24283   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24284     unix_path=`$CYGPATH -u "$windows_path"`
24285     new_path="$unix_path"
24286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24287     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24288     new_path="$unix_path"
24289   fi
24290 
24291   if test "x$path" != "x$new_path"; then
24292     BOOT_JDK="$new_path"
24293     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24294 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24295   fi
24296 
24297   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24298   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24299 
24300     else
24301       # We're on a unix platform. Hooray! :)
24302       path="$BOOT_JDK"
24303       has_space=`$ECHO "$path" | $GREP " "`
24304       if test "x$has_space" != x; then
24305         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24306 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24307         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24308       fi
24309 
24310       # Use eval to expand a potential ~
24311       eval path="$path"
24312       if test ! -f "$path" && test ! -d "$path"; then
24313         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24314       fi
24315 
24316       if test -d "$path"; then
24317         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24318       else
24319         dir="`$DIRNAME "$path"`"
24320         base="`$BASENAME "$path"`"
24321         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24322       fi
24323     fi
24324   fi
24325 
24326             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24327 $as_echo_n "checking for Boot JDK... " >&6; }
24328             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24329 $as_echo "$BOOT_JDK" >&6; }
24330             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24331 $as_echo_n "checking Boot JDK version... " >&6; }
24332             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24333             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24334 $as_echo "$BOOT_JDK_VERSION" >&6; }
24335           fi # end check jdk version
24336         fi # end check javac
24337       fi # end check java
24338     fi # end check boot jdk found
24339   fi
24340 
24341     # If that did not work out (e.g. too old), try explicit versions instead
24342 
24343   if test "x$BOOT_JDK_FOUND" = xno; then
24344     # Now execute the test
24345 
24346   if test -x /usr/libexec/java_home; then
24347     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
24348     BOOT_JDK_FOUND=maybe
24349     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
24350 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
24351   fi
24352 
24353 
24354     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24355     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24356       # Do we have a bin/java?
24357       if test ! -x "$BOOT_JDK/bin/java"; then
24358         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24359 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24360         BOOT_JDK_FOUND=no
24361       else
24362         # Do we have a bin/javac?
24363         if test ! -x "$BOOT_JDK/bin/javac"; then
24364           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24366           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24367 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24368           BOOT_JDK_FOUND=no
24369         else
24370           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24371           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24372 
24373           # Extra M4 quote needed to protect [] in grep expression.
24374           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24375           if test "x$FOUND_CORRECT_VERSION" = x; then
24376             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24377 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24378             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24379 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24380             BOOT_JDK_FOUND=no
24381           else
24382             # We're done! :-)
24383             BOOT_JDK_FOUND=yes
24384 
24385   # Only process if variable expands to non-empty
24386 
24387   if test "x$BOOT_JDK" != x; then
24388     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24389 
24390   # Input might be given as Windows format, start by converting to
24391   # unix format.
24392   path="$BOOT_JDK"
24393   new_path=`$CYGPATH -u "$path"`
24394 
24395   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24396   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24397   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24398   # "foo.exe" is OK but "foo" is an error.
24399   #
24400   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24401   # It is also a way to make sure we got the proper file name for the real test later on.
24402   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24403   if test "x$test_shortpath" = x; then
24404     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24405 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24406     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24407   fi
24408 
24409   # Call helper function which possibly converts this using DOS-style short mode.
24410   # If so, the updated path is stored in $new_path.
24411 
24412   input_path="$new_path"
24413   # Check if we need to convert this using DOS-style short mode. If the path
24414   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24415   # take no chances and rewrite it.
24416   # Note: m4 eats our [], so we need to use [ and ] instead.
24417   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24418   if test "x$has_forbidden_chars" != x; then
24419     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24420     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24421     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24422     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24423       # Going to short mode and back again did indeed matter. Since short mode is
24424       # case insensitive, let's make it lowercase to improve readability.
24425       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24426       # Now convert it back to Unix-style (cygpath)
24427       input_path=`$CYGPATH -u "$shortmode_path"`
24428       new_path="$input_path"
24429     fi
24430   fi
24431 
24432   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24433   if test "x$test_cygdrive_prefix" = x; then
24434     # As a simple fix, exclude /usr/bin since it's not a real path.
24435     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24436       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24437       # a path prefixed by /cygdrive for fixpath to work.
24438       new_path="$CYGWIN_ROOT_PATH$input_path"
24439     fi
24440   fi
24441 
24442 
24443   if test "x$path" != "x$new_path"; then
24444     BOOT_JDK="$new_path"
24445     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24446 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24447   fi
24448 
24449     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24450 
24451   path="$BOOT_JDK"
24452   has_colon=`$ECHO $path | $GREP ^.:`
24453   new_path="$path"
24454   if test "x$has_colon" = x; then
24455     # Not in mixed or Windows style, start by that.
24456     new_path=`cmd //c echo $path`
24457   fi
24458 
24459 
24460   input_path="$new_path"
24461   # Check if we need to convert this using DOS-style short mode. If the path
24462   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24463   # take no chances and rewrite it.
24464   # Note: m4 eats our [], so we need to use [ and ] instead.
24465   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24466   if test "x$has_forbidden_chars" != x; then
24467     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24468     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24469   fi
24470 
24471 
24472   windows_path="$new_path"
24473   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24474     unix_path=`$CYGPATH -u "$windows_path"`
24475     new_path="$unix_path"
24476   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24477     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24478     new_path="$unix_path"
24479   fi
24480 
24481   if test "x$path" != "x$new_path"; then
24482     BOOT_JDK="$new_path"
24483     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24484 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24485   fi
24486 
24487   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24488   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24489 
24490     else
24491       # We're on a unix platform. Hooray! :)
24492       path="$BOOT_JDK"
24493       has_space=`$ECHO "$path" | $GREP " "`
24494       if test "x$has_space" != x; then
24495         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24496 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24497         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24498       fi
24499 
24500       # Use eval to expand a potential ~
24501       eval path="$path"
24502       if test ! -f "$path" && test ! -d "$path"; then
24503         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24504       fi
24505 
24506       if test -d "$path"; then
24507         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24508       else
24509         dir="`$DIRNAME "$path"`"
24510         base="`$BASENAME "$path"`"
24511         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24512       fi
24513     fi
24514   fi
24515 
24516             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24517 $as_echo_n "checking for Boot JDK... " >&6; }
24518             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24519 $as_echo "$BOOT_JDK" >&6; }
24520             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24521 $as_echo_n "checking Boot JDK version... " >&6; }
24522             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24523             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24524 $as_echo "$BOOT_JDK_VERSION" >&6; }
24525           fi # end check jdk version
24526         fi # end check javac
24527       fi # end check java
24528     fi # end check boot jdk found
24529   fi
24530 
24531 
24532   if test "x$BOOT_JDK_FOUND" = xno; then
24533     # Now execute the test
24534 
24535   if test -x /usr/libexec/java_home; then
24536     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
24537     BOOT_JDK_FOUND=maybe
24538     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
24539 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
24540   fi
24541 
24542 
24543     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24544     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24545       # Do we have a bin/java?
24546       if test ! -x "$BOOT_JDK/bin/java"; then
24547         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24549         BOOT_JDK_FOUND=no
24550       else
24551         # Do we have a bin/javac?
24552         if test ! -x "$BOOT_JDK/bin/javac"; then
24553           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24554 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24555           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24556 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24557           BOOT_JDK_FOUND=no
24558         else
24559           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24560           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24561 
24562           # Extra M4 quote needed to protect [] in grep expression.
24563           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24564           if test "x$FOUND_CORRECT_VERSION" = x; then
24565             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24567             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24568 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24569             BOOT_JDK_FOUND=no
24570           else
24571             # We're done! :-)
24572             BOOT_JDK_FOUND=yes
24573 
24574   # Only process if variable expands to non-empty
24575 
24576   if test "x$BOOT_JDK" != x; then
24577     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24578 
24579   # Input might be given as Windows format, start by converting to
24580   # unix format.
24581   path="$BOOT_JDK"
24582   new_path=`$CYGPATH -u "$path"`
24583 
24584   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24585   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24586   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24587   # "foo.exe" is OK but "foo" is an error.
24588   #
24589   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24590   # It is also a way to make sure we got the proper file name for the real test later on.
24591   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24592   if test "x$test_shortpath" = x; then
24593     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24594 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24595     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24596   fi
24597 
24598   # Call helper function which possibly converts this using DOS-style short mode.
24599   # If so, the updated path is stored in $new_path.
24600 
24601   input_path="$new_path"
24602   # Check if we need to convert this using DOS-style short mode. If the path
24603   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24604   # take no chances and rewrite it.
24605   # Note: m4 eats our [], so we need to use [ and ] instead.
24606   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24607   if test "x$has_forbidden_chars" != x; then
24608     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24609     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24610     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24611     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24612       # Going to short mode and back again did indeed matter. Since short mode is
24613       # case insensitive, let's make it lowercase to improve readability.
24614       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24615       # Now convert it back to Unix-style (cygpath)
24616       input_path=`$CYGPATH -u "$shortmode_path"`
24617       new_path="$input_path"
24618     fi
24619   fi
24620 
24621   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24622   if test "x$test_cygdrive_prefix" = x; then
24623     # As a simple fix, exclude /usr/bin since it's not a real path.
24624     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24625       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24626       # a path prefixed by /cygdrive for fixpath to work.
24627       new_path="$CYGWIN_ROOT_PATH$input_path"
24628     fi
24629   fi
24630 
24631 
24632   if test "x$path" != "x$new_path"; then
24633     BOOT_JDK="$new_path"
24634     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24635 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24636   fi
24637 
24638     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24639 
24640   path="$BOOT_JDK"
24641   has_colon=`$ECHO $path | $GREP ^.:`
24642   new_path="$path"
24643   if test "x$has_colon" = x; then
24644     # Not in mixed or Windows style, start by that.
24645     new_path=`cmd //c echo $path`
24646   fi
24647 
24648 
24649   input_path="$new_path"
24650   # Check if we need to convert this using DOS-style short mode. If the path
24651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24652   # take no chances and rewrite it.
24653   # Note: m4 eats our [], so we need to use [ and ] instead.
24654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24655   if test "x$has_forbidden_chars" != x; then
24656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24657     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24658   fi
24659 
24660 
24661   windows_path="$new_path"
24662   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24663     unix_path=`$CYGPATH -u "$windows_path"`
24664     new_path="$unix_path"
24665   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24666     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24667     new_path="$unix_path"
24668   fi
24669 
24670   if test "x$path" != "x$new_path"; then
24671     BOOT_JDK="$new_path"
24672     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24673 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24674   fi
24675 
24676   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24677   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24678 
24679     else
24680       # We're on a unix platform. Hooray! :)
24681       path="$BOOT_JDK"
24682       has_space=`$ECHO "$path" | $GREP " "`
24683       if test "x$has_space" != x; then
24684         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24685 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24686         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24687       fi
24688 
24689       # Use eval to expand a potential ~
24690       eval path="$path"
24691       if test ! -f "$path" && test ! -d "$path"; then
24692         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24693       fi
24694 
24695       if test -d "$path"; then
24696         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24697       else
24698         dir="`$DIRNAME "$path"`"
24699         base="`$BASENAME "$path"`"
24700         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24701       fi
24702     fi
24703   fi
24704 
24705             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24706 $as_echo_n "checking for Boot JDK... " >&6; }
24707             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24708 $as_echo "$BOOT_JDK" >&6; }
24709             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24710 $as_echo_n "checking Boot JDK version... " >&6; }
24711             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24712             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24713 $as_echo "$BOOT_JDK_VERSION" >&6; }
24714           fi # end check jdk version
24715         fi # end check javac
24716       fi # end check java
24717     fi # end check boot jdk found
24718   fi
24719 
24720 
24721   if test "x$BOOT_JDK_FOUND" = xno; then
24722     # Now execute the test
24723 
24724   if test -x /usr/libexec/java_home; then
24725     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
24726     BOOT_JDK_FOUND=maybe
24727     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
24728 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
24729   fi
24730 
24731 
24732     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24733     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24734       # Do we have a bin/java?
24735       if test ! -x "$BOOT_JDK/bin/java"; then
24736         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24738         BOOT_JDK_FOUND=no
24739       else
24740         # Do we have a bin/javac?
24741         if test ! -x "$BOOT_JDK/bin/javac"; then
24742           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24744           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24745 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24746           BOOT_JDK_FOUND=no
24747         else
24748           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24749           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24750 
24751           # Extra M4 quote needed to protect [] in grep expression.
24752           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24753           if test "x$FOUND_CORRECT_VERSION" = x; then
24754             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24756             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24757 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24758             BOOT_JDK_FOUND=no
24759           else
24760             # We're done! :-)
24761             BOOT_JDK_FOUND=yes
24762 
24763   # Only process if variable expands to non-empty
24764 
24765   if test "x$BOOT_JDK" != x; then
24766     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24767 
24768   # Input might be given as Windows format, start by converting to
24769   # unix format.
24770   path="$BOOT_JDK"
24771   new_path=`$CYGPATH -u "$path"`
24772 
24773   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24774   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24775   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24776   # "foo.exe" is OK but "foo" is an error.
24777   #
24778   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24779   # It is also a way to make sure we got the proper file name for the real test later on.
24780   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24781   if test "x$test_shortpath" = x; then
24782     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24783 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24784     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24785   fi
24786 
24787   # Call helper function which possibly converts this using DOS-style short mode.
24788   # If so, the updated path is stored in $new_path.
24789 
24790   input_path="$new_path"
24791   # Check if we need to convert this using DOS-style short mode. If the path
24792   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24793   # take no chances and rewrite it.
24794   # Note: m4 eats our [], so we need to use [ and ] instead.
24795   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24796   if test "x$has_forbidden_chars" != x; then
24797     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24798     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24799     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24800     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24801       # Going to short mode and back again did indeed matter. Since short mode is
24802       # case insensitive, let's make it lowercase to improve readability.
24803       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24804       # Now convert it back to Unix-style (cygpath)
24805       input_path=`$CYGPATH -u "$shortmode_path"`
24806       new_path="$input_path"
24807     fi
24808   fi
24809 
24810   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24811   if test "x$test_cygdrive_prefix" = x; then
24812     # As a simple fix, exclude /usr/bin since it's not a real path.
24813     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24814       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24815       # a path prefixed by /cygdrive for fixpath to work.
24816       new_path="$CYGWIN_ROOT_PATH$input_path"
24817     fi
24818   fi
24819 
24820 
24821   if test "x$path" != "x$new_path"; then
24822     BOOT_JDK="$new_path"
24823     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24824 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24825   fi
24826 
24827     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24828 
24829   path="$BOOT_JDK"
24830   has_colon=`$ECHO $path | $GREP ^.:`
24831   new_path="$path"
24832   if test "x$has_colon" = x; then
24833     # Not in mixed or Windows style, start by that.
24834     new_path=`cmd //c echo $path`
24835   fi
24836 
24837 
24838   input_path="$new_path"
24839   # Check if we need to convert this using DOS-style short mode. If the path
24840   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24841   # take no chances and rewrite it.
24842   # Note: m4 eats our [], so we need to use [ and ] instead.
24843   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24844   if test "x$has_forbidden_chars" != x; then
24845     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24846     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24847   fi
24848 
24849 
24850   windows_path="$new_path"
24851   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24852     unix_path=`$CYGPATH -u "$windows_path"`
24853     new_path="$unix_path"
24854   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24855     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24856     new_path="$unix_path"
24857   fi
24858 
24859   if test "x$path" != "x$new_path"; then
24860     BOOT_JDK="$new_path"
24861     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24862 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24863   fi
24864 
24865   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24866   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24867 
24868     else
24869       # We're on a unix platform. Hooray! :)
24870       path="$BOOT_JDK"
24871       has_space=`$ECHO "$path" | $GREP " "`
24872       if test "x$has_space" != x; then
24873         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24874 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24875         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24876       fi
24877 
24878       # Use eval to expand a potential ~
24879       eval path="$path"
24880       if test ! -f "$path" && test ! -d "$path"; then
24881         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24882       fi
24883 
24884       if test -d "$path"; then
24885         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24886       else
24887         dir="`$DIRNAME "$path"`"
24888         base="`$BASENAME "$path"`"
24889         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24890       fi
24891     fi
24892   fi
24893 
24894             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24895 $as_echo_n "checking for Boot JDK... " >&6; }
24896             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24897 $as_echo "$BOOT_JDK" >&6; }
24898             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24899 $as_echo_n "checking Boot JDK version... " >&6; }
24900             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24902 $as_echo "$BOOT_JDK_VERSION" >&6; }
24903           fi # end check jdk version
24904         fi # end check javac
24905       fi # end check java
24906     fi # end check boot jdk found
24907   fi
24908 
24909   fi
24910 
24911 
24912     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24913     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24914       # Do we have a bin/java?
24915       if test ! -x "$BOOT_JDK/bin/java"; then
24916         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24918         BOOT_JDK_FOUND=no
24919       else
24920         # Do we have a bin/javac?
24921         if test ! -x "$BOOT_JDK/bin/javac"; then
24922           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24923 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24924           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24925 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24926           BOOT_JDK_FOUND=no
24927         else
24928           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24929           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24930 
24931           # Extra M4 quote needed to protect [] in grep expression.
24932           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24933           if test "x$FOUND_CORRECT_VERSION" = x; then
24934             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24935 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24936             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24937 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24938             BOOT_JDK_FOUND=no
24939           else
24940             # We're done! :-)
24941             BOOT_JDK_FOUND=yes
24942 
24943   # Only process if variable expands to non-empty
24944 
24945   if test "x$BOOT_JDK" != x; then
24946     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24947 
24948   # Input might be given as Windows format, start by converting to
24949   # unix format.
24950   path="$BOOT_JDK"
24951   new_path=`$CYGPATH -u "$path"`
24952 
24953   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24954   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24955   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24956   # "foo.exe" is OK but "foo" is an error.
24957   #
24958   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24959   # It is also a way to make sure we got the proper file name for the real test later on.
24960   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24961   if test "x$test_shortpath" = x; then
24962     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24963 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24964     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24965   fi
24966 
24967   # Call helper function which possibly converts this using DOS-style short mode.
24968   # If so, the updated path is stored in $new_path.
24969 
24970   input_path="$new_path"
24971   # Check if we need to convert this using DOS-style short mode. If the path
24972   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24973   # take no chances and rewrite it.
24974   # Note: m4 eats our [], so we need to use [ and ] instead.
24975   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24976   if test "x$has_forbidden_chars" != x; then
24977     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24978     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24979     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24980     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24981       # Going to short mode and back again did indeed matter. Since short mode is
24982       # case insensitive, let's make it lowercase to improve readability.
24983       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24984       # Now convert it back to Unix-style (cygpath)
24985       input_path=`$CYGPATH -u "$shortmode_path"`
24986       new_path="$input_path"
24987     fi
24988   fi
24989 
24990   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24991   if test "x$test_cygdrive_prefix" = x; then
24992     # As a simple fix, exclude /usr/bin since it's not a real path.
24993     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24994       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24995       # a path prefixed by /cygdrive for fixpath to work.
24996       new_path="$CYGWIN_ROOT_PATH$input_path"
24997     fi
24998   fi
24999 
25000 
25001   if test "x$path" != "x$new_path"; then
25002     BOOT_JDK="$new_path"
25003     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25004 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25005   fi
25006 
25007     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25008 
25009   path="$BOOT_JDK"
25010   has_colon=`$ECHO $path | $GREP ^.:`
25011   new_path="$path"
25012   if test "x$has_colon" = x; then
25013     # Not in mixed or Windows style, start by that.
25014     new_path=`cmd //c echo $path`
25015   fi
25016 
25017 
25018   input_path="$new_path"
25019   # Check if we need to convert this using DOS-style short mode. If the path
25020   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25021   # take no chances and rewrite it.
25022   # Note: m4 eats our [], so we need to use [ and ] instead.
25023   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25024   if test "x$has_forbidden_chars" != x; then
25025     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25026     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25027   fi
25028 
25029 
25030   windows_path="$new_path"
25031   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25032     unix_path=`$CYGPATH -u "$windows_path"`
25033     new_path="$unix_path"
25034   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25035     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25036     new_path="$unix_path"
25037   fi
25038 
25039   if test "x$path" != "x$new_path"; then
25040     BOOT_JDK="$new_path"
25041     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25042 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25043   fi
25044 
25045   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25046   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25047 
25048     else
25049       # We're on a unix platform. Hooray! :)
25050       path="$BOOT_JDK"
25051       has_space=`$ECHO "$path" | $GREP " "`
25052       if test "x$has_space" != x; then
25053         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25054 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25055         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25056       fi
25057 
25058       # Use eval to expand a potential ~
25059       eval path="$path"
25060       if test ! -f "$path" && test ! -d "$path"; then
25061         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25062       fi
25063 
25064       if test -d "$path"; then
25065         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25066       else
25067         dir="`$DIRNAME "$path"`"
25068         base="`$BASENAME "$path"`"
25069         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25070       fi
25071     fi
25072   fi
25073 
25074             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25075 $as_echo_n "checking for Boot JDK... " >&6; }
25076             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25077 $as_echo "$BOOT_JDK" >&6; }
25078             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25079 $as_echo_n "checking Boot JDK version... " >&6; }
25080             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25081             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25082 $as_echo "$BOOT_JDK_VERSION" >&6; }
25083           fi # end check jdk version
25084         fi # end check javac
25085       fi # end check java
25086     fi # end check boot jdk found
25087   fi
25088 
25089 
25090   # Test: Is $JAVA_HOME set?
25091 
25092   if test "x$BOOT_JDK_FOUND" = xno; then
25093     # Now execute the test
25094 
25095   if test "x$JAVA_HOME" != x; then
25096     JAVA_HOME_PROCESSED="$JAVA_HOME"
25097 
25098   # Only process if variable expands to non-empty
25099 
25100   if test "x$JAVA_HOME_PROCESSED" != x; then
25101     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25102 
25103   # Input might be given as Windows format, start by converting to
25104   # unix format.
25105   path="$JAVA_HOME_PROCESSED"
25106   new_path=`$CYGPATH -u "$path"`
25107 
25108   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25109   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25110   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25111   # "foo.exe" is OK but "foo" is an error.
25112   #
25113   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25114   # It is also a way to make sure we got the proper file name for the real test later on.
25115   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25116   if test "x$test_shortpath" = x; then
25117     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
25118 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
25119     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
25120   fi
25121 
25122   # Call helper function which possibly converts this using DOS-style short mode.
25123   # If so, the updated path is stored in $new_path.
25124 
25125   input_path="$new_path"
25126   # Check if we need to convert this using DOS-style short mode. If the path
25127   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25128   # take no chances and rewrite it.
25129   # Note: m4 eats our [], so we need to use [ and ] instead.
25130   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25131   if test "x$has_forbidden_chars" != x; then
25132     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25133     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25134     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25135     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25136       # Going to short mode and back again did indeed matter. Since short mode is
25137       # case insensitive, let's make it lowercase to improve readability.
25138       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25139       # Now convert it back to Unix-style (cygpath)
25140       input_path=`$CYGPATH -u "$shortmode_path"`
25141       new_path="$input_path"
25142     fi
25143   fi
25144 
25145   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25146   if test "x$test_cygdrive_prefix" = x; then
25147     # As a simple fix, exclude /usr/bin since it's not a real path.
25148     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25149       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25150       # a path prefixed by /cygdrive for fixpath to work.
25151       new_path="$CYGWIN_ROOT_PATH$input_path"
25152     fi
25153   fi
25154 
25155 
25156   if test "x$path" != "x$new_path"; then
25157     JAVA_HOME_PROCESSED="$new_path"
25158     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
25159 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
25160   fi
25161 
25162     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25163 
25164   path="$JAVA_HOME_PROCESSED"
25165   has_colon=`$ECHO $path | $GREP ^.:`
25166   new_path="$path"
25167   if test "x$has_colon" = x; then
25168     # Not in mixed or Windows style, start by that.
25169     new_path=`cmd //c echo $path`
25170   fi
25171 
25172 
25173   input_path="$new_path"
25174   # Check if we need to convert this using DOS-style short mode. If the path
25175   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25176   # take no chances and rewrite it.
25177   # Note: m4 eats our [], so we need to use [ and ] instead.
25178   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25179   if test "x$has_forbidden_chars" != x; then
25180     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25181     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25182   fi
25183 
25184 
25185   windows_path="$new_path"
25186   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25187     unix_path=`$CYGPATH -u "$windows_path"`
25188     new_path="$unix_path"
25189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25190     unix_pa